esi v0.1.1 ESI.API.Market

Summary

Functions

Get information on an item group

Get a list of item groups

Return a list of historical market statistics for the specified type in a region

Return a list of orders in a region

Return a list of prices

Return all orders in a structure

Return a list of type IDs that have active orders in the region, for efficient market indexing

Types

group_market_group_opt()
group_market_group_opt() :: {:language, nil | :de | :"en-us" | :fr | :ja | :ru | :zh}
group_market_group_opts()
group_market_group_opts() :: [group_market_group_opt]

Options for Market.group_market_group/2.

  • :language (DEFAULT: :"en-us") — Language to use in the response
history_opt()
history_opt() :: {:type_id, integer}
history_opts()
history_opts() :: [history_opt]

Options for Market.history/2.

  • :type_id (REQUIRED) — Return statistics for this type
orders_opt()
orders_opt ::
  {:order_type, :buy | :sell | :all} |
  {:page, nil | integer} |
  {:type_id, nil | integer}
orders_opts()
orders_opts() :: [orders_opt]

Options for Market.orders/2.

  • :order_type (DEFAULT: :all) — Filter buy/sell orders, return all orders by default. If you query without type_id, we always return both buy and sell orders.
  • :page (DEFAULT: 1) — Which page of results to return
  • :type_id — Return orders only for this type
structure_opt()
structure_opt ::
  {:page, nil | integer} |
  {:token, nil | String.t}
structure_opts()
structure_opts() :: [structure_opt]

Options for Market.structure/2.

  • :page (DEFAULT: 1) — Which page of results to return
  • :token — Access token to use if unable to set a header
types_opt()
types_opt() :: {:page, nil | integer}
types_opts()
types_opts() :: [types_opt]

Options for Market.types/2.

  • :page (DEFAULT: 1) — Which page of results to return

Functions

group_market_group(market_group_id, opts \\ [])
group_market_group(market_group_id :: integer, opts :: group_market_group_opts) :: ESI.Request.t

Get information on an item group.

Response Example

Information about an item group:

%{"description" => "Small, fast vessels suited to a variety of purposes.",
  "market_group_id" => 5, "name" => "Standard Frigates",
  "parent_group_id" => 1361, "types" => [582, 583]}

Swagger Source

This function was generated from the following Swagger operation:

  • operationIdget_markets_groups_market_group_id
  • path/markets/groups/{market_group_id}/

View on ESI Site

groups()
groups() :: ESI.Request.t

Get a list of item groups.

Response Example

A list of item group ids:

[1, 2, 3]

Swagger Source

This function was generated from the following Swagger operation:

  • operationIdget_markets_groups
  • path/markets/groups/

View on ESI Site

history(region_id, opts \\ [])
history(region_id :: integer, opts :: history_opts) :: ESI.Request.t

Return a list of historical market statistics for the specified type in a region.

Response Example

A list of historical market statistics:

[%{"average" => 5.25, "date" => "2015-05-01", "highest" => 5.27,
   "lowest" => 5.11, "order_count" => 2267, "volume" => 16276782035}]

Swagger Source

This function was generated from the following Swagger operation:

  • operationIdget_markets_region_id_history
  • path/markets/{region_id}/history/

View on ESI Site

orders(region_id, opts \\ [])
orders(region_id :: integer, opts :: orders_opts) :: ESI.Request.t

Return a list of orders in a region.

Response Example

A list of orders:

[%{"duration" => 90, "is_buy_order" => false,
   "issued" => "2016-09-03T05:12:25Z", "location_id" => 60005599,
   "min_volume" => 1, "order_id" => 4623824223, "price" => 9.9,
   "range" => "region", "type_id" => 34, "volume_remain" => 1296000,
   "volume_total" => 2000000}]

Swagger Source

This function was generated from the following Swagger operation:

  • operationIdget_markets_region_id_orders
  • path/markets/{region_id}/orders/

View on ESI Site

prices()
prices() :: ESI.Request.t

Return a list of prices.

Response Example

A list of prices:

[%{"adjusted_price" => 306988.09, "average_price" => 306292.67,
   "type_id" => 32772}]

Swagger Source

This function was generated from the following Swagger operation:

  • operationIdget_markets_prices
  • path/markets/prices/

View on ESI Site

structure(structure_id, opts \\ [])
structure(structure_id :: integer, opts :: structure_opts) :: ESI.Request.t

Return all orders in a structure.

Response Example

A list of orders:

[%{"duration" => 90, "is_buy_order" => false,
   "issued" => "2016-09-03T05:12:25Z", "location_id" => 1020988381992,
   "min_volume" => 1, "order_id" => 4623824223, "price" => 9.9,
   "range" => "region", "type_id" => 34, "volume_remain" => 1296000,
   "volume_total" => 2000000}]

Swagger Source

This function was generated from the following Swagger operation:

  • operationIdget_markets_structures_structure_id
  • path/markets/structures/{structure_id}/

View on ESI Site

types(region_id, opts \\ [])
types(region_id :: integer, opts :: types_opts) :: ESI.Request.t

Return a list of type IDs that have active orders in the region, for efficient market indexing..

Response Example

A list of type IDs:

[587, 593, 597]

Swagger Source

This function was generated from the following Swagger operation:

  • operationIdget_markets_region_id_types
  • path/markets/{region_id}/types/

View on ESI Site