class IntegrationApi::MarketDataApi

Attributes

api_client[RW]

Public Class Methods

new(api_client = ApiClient.default) click to toggle source
# File lib/integration_api/api/market_data_api.rb, line 19
def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Public Instance Methods

create_market_data_historical_using_post(history_request, opts = {}) click to toggle source

Create historical market data @param history_request historyRequest @param [Hash] opts the optional parameters @return [MdHistoryResponseVO]

# File lib/integration_api/api/market_data_api.rb, line 26
def create_market_data_historical_using_post(history_request, opts = {})
  data, _status_code, _headers = create_market_data_historical_using_post_with_http_info(history_request, opts)
  data
end
create_market_data_historical_using_post_with_http_info(history_request, opts = {}) click to toggle source

Create historical market data @param history_request historyRequest @param [Hash] opts the optional parameters @return [Array<(MdHistoryResponseVO, Fixnum, Hash)>] MdHistoryResponseVO data, response status code and response headers

# File lib/integration_api/api/market_data_api.rb, line 35
def create_market_data_historical_using_post_with_http_info(history_request, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: MarketDataApi.create_market_data_historical_using_post ...'
  end
  # verify the required parameter 'history_request' is set
  if @api_client.config.client_side_validation && history_request.nil?
    fail ArgumentError, "Missing the required parameter 'history_request' when calling MarketDataApi.create_market_data_historical_using_post"
  end
  # resource path
  local_var_path = '/market_data/historical'

  # query parameters
  query_params = {}

  # 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'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(history_request)
  auth_names = ['oauth2']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'MdHistoryResponseVO')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: MarketDataApi#create_market_data_historical_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
create_market_data_quote_using_post(quote_request, opts = {}) click to toggle source

Create quote market data @param quote_request quoteRequest @param [Hash] opts the optional parameters @return [MdQuoteResponseVO]

# File lib/integration_api/api/market_data_api.rb, line 78
def create_market_data_quote_using_post(quote_request, opts = {})
  data, _status_code, _headers = create_market_data_quote_using_post_with_http_info(quote_request, opts)
  data
end
create_market_data_quote_using_post_with_http_info(quote_request, opts = {}) click to toggle source

Create quote market data @param quote_request quoteRequest @param [Hash] opts the optional parameters @return [Array<(MdQuoteResponseVO, Fixnum, Hash)>] MdQuoteResponseVO data, response status code and response headers

# File lib/integration_api/api/market_data_api.rb, line 87
def create_market_data_quote_using_post_with_http_info(quote_request, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: MarketDataApi.create_market_data_quote_using_post ...'
  end
  # verify the required parameter 'quote_request' is set
  if @api_client.config.client_side_validation && quote_request.nil?
    fail ArgumentError, "Missing the required parameter 'quote_request' when calling MarketDataApi.create_market_data_quote_using_post"
  end
  # resource path
  local_var_path = '/market_data/quote'

  # query parameters
  query_params = {}

  # 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'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(quote_request)
  auth_names = ['oauth2']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'MdQuoteResponseVO')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: MarketDataApi#create_market_data_quote_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end