class ESI::MarketApi
Attributes
Public Class Methods
# File lib/ruby-esi/api/market_api.rb, line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end
Public Instance Methods
List open orders from a character List open market orders placed by a character — Alternate route: `/dev/characters/{character_id}/orders/` Alternate route: `/v2/characters/{character_id}/orders/` — This route is cached for up to 1200 seconds @param character_id An EVE character ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [String] :token Access token to use if unable to set a header @return [Array<GetCharactersCharacterIdOrders200Ok>]
# File lib/ruby-esi/api/market_api.rb, line 30 def get_characters_character_id_orders(character_id, opts = {}) data, _status_code, _headers = get_characters_character_id_orders_with_http_info(character_id, opts) data end
List historical orders by a character List cancelled and expired market orders placed by a character up to 90 days in the past. — Alternate route: `/dev/characters/{character_id}/orders/history/` Alternate route: `/legacy/characters/{character_id}/orders/history/` Alternate route: `/v1/characters/{character_id}/orders/history/` — This route is cached for up to 3600 seconds @param character_id An EVE character ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return (default to 1) @option opts [String] :token Access token to use if unable to set a header @return [Array<GetCharactersCharacterIdOrdersHistory200Ok>]
# File lib/ruby-esi/api/market_api.rb, line 101 def get_characters_character_id_orders_history(character_id, opts = {}) data, _status_code, _headers = get_characters_character_id_orders_history_with_http_info(character_id, opts) data end
List historical orders by a character List cancelled and expired market orders placed by a character up to 90 days in the past. — Alternate route: `/dev/characters/{character_id}/orders/history/` Alternate route: `/legacy/characters/{character_id}/orders/history/` Alternate route: `/v1/characters/{character_id}/orders/history/` — This route is cached for up to 3600 seconds @param character_id An EVE character ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return @option opts [String] :token Access token to use if unable to set a header @return [Array<(Array<GetCharactersCharacterIdOrdersHistory200Ok>, Fixnum, Hash)>] Array<GetCharactersCharacterIdOrdersHistory200Ok> data, response status code and response headers
# File lib/ruby-esi/api/market_api.rb, line 115 def get_characters_character_id_orders_history_with_http_info(character_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MarketApi.get_characters_character_id_orders_history ...' end # verify the required parameter 'character_id' is set if @api_client.config.client_side_validation && character_id.nil? fail ArgumentError, "Missing the required parameter 'character_id' when calling MarketApi.get_characters_character_id_orders_history" end if @api_client.config.client_side_validation && character_id < 1 fail ArgumentError, 'invalid value for "character_id" when calling MarketApi.get_characters_character_id_orders_history, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1 fail ArgumentError, 'invalid value for "opts[:"page"]" when calling MarketApi.get_characters_character_id_orders_history, must be greater than or equal to 1.' end # resource path local_var_path = '/characters/{character_id}/orders/history/'.sub('{' + 'character_id' + '}', character_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetCharactersCharacterIdOrdersHistory200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: MarketApi#get_characters_character_id_orders_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List open orders from a character List open market orders placed by a character — Alternate route: `/dev/characters/{character_id}/orders/` Alternate route: `/v2/characters/{character_id}/orders/` — This route is cached for up to 1200 seconds @param character_id An EVE character ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [String] :token Access token to use if unable to set a header @return [Array<(Array<GetCharactersCharacterIdOrders200Ok>, Fixnum, Hash)>] Array<GetCharactersCharacterIdOrders200Ok> data, response status code and response headers
# File lib/ruby-esi/api/market_api.rb, line 43 def get_characters_character_id_orders_with_http_info(character_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MarketApi.get_characters_character_id_orders ...' end # verify the required parameter 'character_id' is set if @api_client.config.client_side_validation && character_id.nil? fail ArgumentError, "Missing the required parameter 'character_id' when calling MarketApi.get_characters_character_id_orders" end if @api_client.config.client_side_validation && character_id < 1 fail ArgumentError, 'invalid value for "character_id" when calling MarketApi.get_characters_character_id_orders, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/characters/{character_id}/orders/'.sub('{' + 'character_id' + '}', character_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetCharactersCharacterIdOrders200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: MarketApi#get_characters_character_id_orders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List open orders from a corporation List open market orders placed on behalf of a corporation — Alternate route: `/dev/corporations/{corporation_id}/orders/` Alternate route: `/v3/corporations/{corporation_id}/orders/` — This route is cached for up to 1200 seconds — Requires one of the following EVE corporation role(s): Accountant, Trader @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return (default to 1) @option opts [String] :token Access token to use if unable to set a header @return [Array<GetCorporationsCorporationIdOrders200Ok>]
# File lib/ruby-esi/api/market_api.rb, line 178 def get_corporations_corporation_id_orders(corporation_id, opts = {}) data, _status_code, _headers = get_corporations_corporation_id_orders_with_http_info(corporation_id, opts) data end
List historical orders from a corporation List cancelled and expired market orders placed on behalf of a corporation up to 90 days in the past. — Alternate route: `/dev/corporations/{corporation_id}/orders/history/` Alternate route: `/v2/corporations/{corporation_id}/orders/history/` — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Accountant, Trader @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return (default to 1) @option opts [String] :token Access token to use if unable to set a header @return [Array<GetCorporationsCorporationIdOrdersHistory200Ok>]
# File lib/ruby-esi/api/market_api.rb, line 255 def get_corporations_corporation_id_orders_history(corporation_id, opts = {}) data, _status_code, _headers = get_corporations_corporation_id_orders_history_with_http_info(corporation_id, opts) data end
List historical orders from a corporation List cancelled and expired market orders placed on behalf of a corporation up to 90 days in the past. — Alternate route: `/dev/corporations/{corporation_id}/orders/history/` Alternate route: `/v2/corporations/{corporation_id}/orders/history/` — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Accountant, Trader @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return @option opts [String] :token Access token to use if unable to set a header @return [Array<(Array<GetCorporationsCorporationIdOrdersHistory200Ok>, Fixnum, Hash)>] Array<GetCorporationsCorporationIdOrdersHistory200Ok> data, response status code and response headers
# File lib/ruby-esi/api/market_api.rb, line 269 def get_corporations_corporation_id_orders_history_with_http_info(corporation_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MarketApi.get_corporations_corporation_id_orders_history ...' end # verify the required parameter 'corporation_id' is set if @api_client.config.client_side_validation && corporation_id.nil? fail ArgumentError, "Missing the required parameter 'corporation_id' when calling MarketApi.get_corporations_corporation_id_orders_history" end if @api_client.config.client_side_validation && corporation_id < 1 fail ArgumentError, 'invalid value for "corporation_id" when calling MarketApi.get_corporations_corporation_id_orders_history, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1 fail ArgumentError, 'invalid value for "opts[:"page"]" when calling MarketApi.get_corporations_corporation_id_orders_history, must be greater than or equal to 1.' end # resource path local_var_path = '/corporations/{corporation_id}/orders/history/'.sub('{' + 'corporation_id' + '}', corporation_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetCorporationsCorporationIdOrdersHistory200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: MarketApi#get_corporations_corporation_id_orders_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List open orders from a corporation List open market orders placed on behalf of a corporation — Alternate route: `/dev/corporations/{corporation_id}/orders/` Alternate route: `/v3/corporations/{corporation_id}/orders/` — This route is cached for up to 1200 seconds — Requires one of the following EVE corporation role(s): Accountant, Trader @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return @option opts [String] :token Access token to use if unable to set a header @return [Array<(Array<GetCorporationsCorporationIdOrders200Ok>, Fixnum, Hash)>] Array<GetCorporationsCorporationIdOrders200Ok> data, response status code and response headers
# File lib/ruby-esi/api/market_api.rb, line 192 def get_corporations_corporation_id_orders_with_http_info(corporation_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MarketApi.get_corporations_corporation_id_orders ...' end # verify the required parameter 'corporation_id' is set if @api_client.config.client_side_validation && corporation_id.nil? fail ArgumentError, "Missing the required parameter 'corporation_id' when calling MarketApi.get_corporations_corporation_id_orders" end if @api_client.config.client_side_validation && corporation_id < 1 fail ArgumentError, 'invalid value for "corporation_id" when calling MarketApi.get_corporations_corporation_id_orders, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1 fail ArgumentError, 'invalid value for "opts[:"page"]" when calling MarketApi.get_corporations_corporation_id_orders, must be greater than or equal to 1.' end # resource path local_var_path = '/corporations/{corporation_id}/orders/'.sub('{' + 'corporation_id' + '}', corporation_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetCorporationsCorporationIdOrders200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: MarketApi#get_corporations_corporation_id_orders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get item groups Get a list of item groups — Alternate route: `/dev/markets/groups/` Alternate route: `/legacy/markets/groups/` Alternate route: `/v1/markets/groups/` — This route expires daily at 11:05 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @return [Array<Integer>]
# File lib/ruby-esi/api/market_api.rb, line 329 def get_markets_groups(opts = {}) data, _status_code, _headers = get_markets_groups_with_http_info(opts) data end
Get item group information Get information on an item group — Alternate route: `/dev/markets/groups/{market_group_id}/` Alternate route: `/legacy/markets/groups/{market_group_id}/` Alternate route: `/v1/markets/groups/{market_group_id}/` — This route expires daily at 11:05 @param market_group_id An Eve item group ID @param [Hash] opts the optional parameters @option opts [String] :accept_language Language to use in the response (default to en-us) @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [String] :language Language to use in the response, takes precedence over Accept-Language (default to en-us) @return [GetMarketsGroupsMarketGroupIdOk]
# File lib/ruby-esi/api/market_api.rb, line 389 def get_markets_groups_market_group_id(market_group_id, opts = {}) data, _status_code, _headers = get_markets_groups_market_group_id_with_http_info(market_group_id, opts) data end
Get item group information Get information on an item group — Alternate route: `/dev/markets/groups/{market_group_id}/` Alternate route: `/legacy/markets/groups/{market_group_id}/` Alternate route: `/v1/markets/groups/{market_group_id}/` — This route expires daily at 11:05 @param market_group_id An Eve item group ID @param [Hash] opts the optional parameters @option opts [String] :accept_language Language to use in the response @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [String] :language Language to use in the response, takes precedence over Accept-Language @return [Array<(GetMarketsGroupsMarketGroupIdOk
, Fixnum, Hash)>] GetMarketsGroupsMarketGroupIdOk
data, response status code and response headers
# File lib/ruby-esi/api/market_api.rb, line 403 def get_markets_groups_market_group_id_with_http_info(market_group_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MarketApi.get_markets_groups_market_group_id ...' end # verify the required parameter 'market_group_id' is set if @api_client.config.client_side_validation && market_group_id.nil? fail ArgumentError, "Missing the required parameter 'market_group_id' when calling MarketApi.get_markets_groups_market_group_id" end if @api_client.config.client_side_validation && opts[:'accept_language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh', 'ko'].include?(opts[:'accept_language']) fail ArgumentError, 'invalid value for "accept_language", must be one of de, en-us, fr, ja, ru, zh, ko' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end if @api_client.config.client_side_validation && opts[:'language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh', 'ko'].include?(opts[:'language']) fail ArgumentError, 'invalid value for "language", must be one of de, en-us, fr, ja, ru, zh, ko' end # resource path local_var_path = '/markets/groups/{market_group_id}/'.sub('{' + 'market_group_id' + '}', market_group_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'GetMarketsGroupsMarketGroupIdOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: MarketApi#get_markets_groups_market_group_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get item groups Get a list of item groups — Alternate route: `/dev/markets/groups/` Alternate route: `/legacy/markets/groups/` Alternate route: `/v1/markets/groups/` — This route expires daily at 11:05 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @return [Array<(Array<Integer>, Fixnum, Hash)>] Array<Integer> data, response status code and response headers
# File lib/ruby-esi/api/market_api.rb, line 340 def get_markets_groups_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MarketApi.get_markets_groups ...' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/markets/groups/' # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<Integer>') if @api_client.config.debugging @api_client.config.logger.debug "API called: MarketApi#get_markets_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List market prices Return a list of prices — Alternate route: `/dev/markets/prices/` Alternate route: `/legacy/markets/prices/` Alternate route: `/v1/markets/prices/` — This route is cached for up to 3600 seconds @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @return [Array<GetMarketsPrices200Ok>]
# File lib/ruby-esi/api/market_api.rb, line 461 def get_markets_prices(opts = {}) data, _status_code, _headers = get_markets_prices_with_http_info(opts) data end
List market prices Return a list of prices — Alternate route: `/dev/markets/prices/` Alternate route: `/legacy/markets/prices/` Alternate route: `/v1/markets/prices/` — This route is cached for up to 3600 seconds @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @return [Array<(Array<GetMarketsPrices200Ok>, Fixnum, Hash)>] Array<GetMarketsPrices200Ok> data, response status code and response headers
# File lib/ruby-esi/api/market_api.rb, line 472 def get_markets_prices_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MarketApi.get_markets_prices ...' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/markets/prices/' # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetMarketsPrices200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: MarketApi#get_markets_prices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List historical market statistics in a region Return a list of historical market statistics for the specified type in a region — Alternate route: `/dev/markets/{region_id}/history/` Alternate route: `/legacy/markets/{region_id}/history/` Alternate route: `/v1/markets/{region_id}/history/` — This route expires daily at 11:05 @param region_id Return statistics in this region @param type_id Return statistics for this type @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @return [Array<GetMarketsRegionIdHistory200Ok>]
# File lib/ruby-esi/api/market_api.rb, line 520 def get_markets_region_id_history(region_id, type_id, opts = {}) data, _status_code, _headers = get_markets_region_id_history_with_http_info(region_id, type_id, opts) data end
List historical market statistics in a region Return a list of historical market statistics for the specified type in a region — Alternate route: `/dev/markets/{region_id}/history/` Alternate route: `/legacy/markets/{region_id}/history/` Alternate route: `/v1/markets/{region_id}/history/` — This route expires daily at 11:05 @param region_id Return statistics in this region @param type_id Return statistics for this type @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @return [Array<(Array<GetMarketsRegionIdHistory200Ok>, Fixnum, Hash)>] Array<GetMarketsRegionIdHistory200Ok> data, response status code and response headers
# File lib/ruby-esi/api/market_api.rb, line 533 def get_markets_region_id_history_with_http_info(region_id, type_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MarketApi.get_markets_region_id_history ...' end # verify the required parameter 'region_id' is set if @api_client.config.client_side_validation && region_id.nil? fail ArgumentError, "Missing the required parameter 'region_id' when calling MarketApi.get_markets_region_id_history" end # verify the required parameter 'type_id' is set if @api_client.config.client_side_validation && type_id.nil? fail ArgumentError, "Missing the required parameter 'type_id' when calling MarketApi.get_markets_region_id_history" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/markets/{region_id}/history/'.sub('{' + 'region_id' + '}', region_id.to_s) # query parameters query_params = {} query_params[:'type_id'] = type_id query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetMarketsRegionIdHistory200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: MarketApi#get_markets_region_id_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List orders in a region Return a list of orders in a region — Alternate route: `/dev/markets/{region_id}/orders/` Alternate route: `/legacy/markets/{region_id}/orders/` Alternate route: `/v1/markets/{region_id}/orders/` — This route is cached for up to 300 seconds @param order_type Filter buy/sell orders, return all orders by default. If you query without type_id, we always return both buy and sell orders @param region_id Return orders in this region @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return (default to 1) @option opts [Integer] :type_id Return orders only for this type @return [Array<GetMarketsRegionIdOrders200Ok>]
# File lib/ruby-esi/api/market_api.rb, line 592 def get_markets_region_id_orders(order_type, region_id, opts = {}) data, _status_code, _headers = get_markets_region_id_orders_with_http_info(order_type, region_id, opts) data end
List orders in a region Return a list of orders in a region — Alternate route: `/dev/markets/{region_id}/orders/` Alternate route: `/legacy/markets/{region_id}/orders/` Alternate route: `/v1/markets/{region_id}/orders/` — This route is cached for up to 300 seconds @param order_type Filter buy/sell orders, return all orders by default. If you query without type_id, we always return both buy and sell orders @param region_id Return orders in this region @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return @option opts [Integer] :type_id Return orders only for this type @return [Array<(Array<GetMarketsRegionIdOrders200Ok>, Fixnum, Hash)>] Array<GetMarketsRegionIdOrders200Ok> data, response status code and response headers
# File lib/ruby-esi/api/market_api.rb, line 607 def get_markets_region_id_orders_with_http_info(order_type, region_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MarketApi.get_markets_region_id_orders ...' end # verify the required parameter 'order_type' is set if @api_client.config.client_side_validation && order_type.nil? fail ArgumentError, "Missing the required parameter 'order_type' when calling MarketApi.get_markets_region_id_orders" end # verify enum value if @api_client.config.client_side_validation && !['buy', 'sell', 'all'].include?(order_type) fail ArgumentError, "invalid value for 'order_type', must be one of buy, sell, all" end # verify the required parameter 'region_id' is set if @api_client.config.client_side_validation && region_id.nil? fail ArgumentError, "Missing the required parameter 'region_id' when calling MarketApi.get_markets_region_id_orders" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1 fail ArgumentError, 'invalid value for "opts[:"page"]" when calling MarketApi.get_markets_region_id_orders, must be greater than or equal to 1.' end # resource path local_var_path = '/markets/{region_id}/orders/'.sub('{' + 'region_id' + '}', region_id.to_s) # query parameters query_params = {} query_params[:'order_type'] = order_type query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'type_id'] = opts[:'type_id'] if !opts[:'type_id'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetMarketsRegionIdOrders200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: MarketApi#get_markets_region_id_orders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List type IDs relevant to a market Return a list of type IDs that have active orders in the region, for efficient market indexing. — Alternate route: `/dev/markets/{region_id}/types/` Alternate route: `/legacy/markets/{region_id}/types/` Alternate route: `/v1/markets/{region_id}/types/` — This route is cached for up to 600 seconds @param region_id Return statistics in this region @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return (default to 1) @return [Array<Integer>]
# File lib/ruby-esi/api/market_api.rb, line 674 def get_markets_region_id_types(region_id, opts = {}) data, _status_code, _headers = get_markets_region_id_types_with_http_info(region_id, opts) data end
List type IDs relevant to a market Return a list of type IDs that have active orders in the region, for efficient market indexing. — Alternate route: `/dev/markets/{region_id}/types/` Alternate route: `/legacy/markets/{region_id}/types/` Alternate route: `/v1/markets/{region_id}/types/` — This route is cached for up to 600 seconds @param region_id Return statistics in this region @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return @return [Array<(Array<Integer>, Fixnum, Hash)>] Array<Integer> data, response status code and response headers
# File lib/ruby-esi/api/market_api.rb, line 687 def get_markets_region_id_types_with_http_info(region_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MarketApi.get_markets_region_id_types ...' end # verify the required parameter 'region_id' is set if @api_client.config.client_side_validation && region_id.nil? fail ArgumentError, "Missing the required parameter 'region_id' when calling MarketApi.get_markets_region_id_types" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1 fail ArgumentError, 'invalid value for "opts[:"page"]" when calling MarketApi.get_markets_region_id_types, must be greater than or equal to 1.' end # resource path local_var_path = '/markets/{region_id}/types/'.sub('{' + 'region_id' + '}', region_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<Integer>') if @api_client.config.debugging @api_client.config.logger.debug "API called: MarketApi#get_markets_region_id_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List orders in a structure Return all orders in a structure — Alternate route: `/dev/markets/structures/{structure_id}/` Alternate route: `/legacy/markets/structures/{structure_id}/` Alternate route: `/v1/markets/structures/{structure_id}/` — This route is cached for up to 300 seconds @param structure_id Return orders in this structure @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return (default to 1) @option opts [String] :token Access token to use if unable to set a header @return [Array<GetMarketsStructuresStructureId200Ok>]
# File lib/ruby-esi/api/market_api.rb, line 745 def get_markets_structures_structure_id(structure_id, opts = {}) data, _status_code, _headers = get_markets_structures_structure_id_with_http_info(structure_id, opts) data end
List orders in a structure Return all orders in a structure — Alternate route: `/dev/markets/structures/{structure_id}/` Alternate route: `/legacy/markets/structures/{structure_id}/` Alternate route: `/v1/markets/structures/{structure_id}/` — This route is cached for up to 300 seconds @param structure_id Return orders in this structure @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return @option opts [String] :token Access token to use if unable to set a header @return [Array<(Array<GetMarketsStructuresStructureId200Ok>, Fixnum, Hash)>] Array<GetMarketsStructuresStructureId200Ok> data, response status code and response headers
# File lib/ruby-esi/api/market_api.rb, line 759 def get_markets_structures_structure_id_with_http_info(structure_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MarketApi.get_markets_structures_structure_id ...' end # verify the required parameter 'structure_id' is set if @api_client.config.client_side_validation && structure_id.nil? fail ArgumentError, "Missing the required parameter 'structure_id' when calling MarketApi.get_markets_structures_structure_id" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1 fail ArgumentError, 'invalid value for "opts[:"page"]" when calling MarketApi.get_markets_structures_structure_id, must be greater than or equal to 1.' end # resource path local_var_path = '/markets/structures/{structure_id}/'.sub('{' + 'structure_id' + '}', structure_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetMarketsStructuresStructureId200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: MarketApi#get_markets_structures_structure_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end