class SnapTrade::ReferenceDataApi

def get_currency_exchange_rate_pair(currency_pair:, extra: {})

Parameters:
  • extra (Hash) -- additional parameters to pass along through :header_params, :query_params, or parameter name
  • currency_pair (String) -- A currency pair based on currency code for example, {CAD-USD}
def get_currency_exchange_rate_pair(currency_pair:, extra: {})
  data, _status_code, _headers = get_currency_exchange_rate_pair_with_http_info_impl(currency_pair, extra)
  data
end

def get_currency_exchange_rate_pair_impl(currency_pair, opts = {})

Returns:
  • (ExchangeRatePairs) -

Parameters:
  • opts (Hash) -- the optional parameters
  • currency_pair (String) -- A currency pair based on currency code for example, {CAD-USD}
def get_currency_exchange_rate_pair_impl(currency_pair, opts = {})
_status_code, _headers = get_currency_exchange_rate_pair_with_http_info(currency_pair, opts)

def get_currency_exchange_rate_pair_with_http_info(currency_pair:, extra: {})

Parameters:
  • extra (Hash) -- additional parameters to pass along through :header_params, :query_params, or parameter name
  • currency_pair (String) -- A currency pair based on currency code for example, {CAD-USD}
def get_currency_exchange_rate_pair_with_http_info(currency_pair:, extra: {})
  get_currency_exchange_rate_pair_with_http_info_impl(currency_pair, extra)
end

def get_currency_exchange_rate_pair_with_http_info_impl(currency_pair, opts = {})

Returns:
  • (Array<(ExchangeRatePairs, Integer, Hash)>) - ExchangeRatePairs data, response status code and response headers

Parameters:
  • opts (Hash) -- the optional parameters
  • currency_pair (String) -- A currency pair based on currency code for example, {CAD-USD}
def get_currency_exchange_rate_pair_with_http_info_impl(currency_pair, opts = {})
i_client.config.debugging
_client.config.logger.debug 'Calling API: ReferenceDataApi.get_currency_exchange_rate_pair ...'
fy the required parameter 'currency_pair' is set
i_client.config.client_side_validation && currency_pair.nil?
 ArgumentError, "Missing the required parameter 'currency_pair' when calling ReferenceDataApi.get_currency_exchange_rate_pair"
urce path
var_path = '/currencies/rates/{currencyPair}'.sub('{' + 'currencyPair' + '}', CGI.escape(currency_pair.to_s))
y parameters
params = opts[:query_params] || {}
er parameters
_params = opts[:header_params] || {}
 header 'Accept' (if needed)
_params['Accept'] = @api_client.select_header_accept(['application/json'])
 parameters
arams = opts[:form_params] || {}
 body (model)
ody = opts[:debug_body]
rn_type
_type = opts[:debug_return_type] || 'ExchangeRatePairs'
_names
ames = opts[:debug_auth_names] || ['PartnerClientId', 'PartnerSignature', 'PartnerTimestamp']
tions = opts.merge(
ration => :"ReferenceDataApi.get_currency_exchange_rate_pair",
der_params => header_params,
ry_params => query_params,
m_params => form_params,
y => post_body,
h_names => auth_names,
urn_type => return_type
status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
i_client.config.debugging
_client.config.logger.debug "API called: ReferenceDataApi#get_currency_exchange_rate_pair\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
 data, status_code, headers, response

def get_partner_info(extra: {})

Parameters:
  • extra (Hash) -- additional parameters to pass along through :header_params, :query_params, or parameter name
def get_partner_info(extra: {})
  data, _status_code, _headers = get_partner_info_with_http_info_impl(extra)
  data
end

def get_partner_info_impl(opts = {})

Returns:
  • (PartnerData) -

Parameters:
  • opts (Hash) -- the optional parameters
def get_partner_info_impl(opts = {})
_status_code, _headers = get_partner_info_with_http_info(opts)

def get_partner_info_with_http_info(extra: {})

Parameters:
  • extra (Hash) -- additional parameters to pass along through :header_params, :query_params, or parameter name
def get_partner_info_with_http_info(extra: {})
  get_partner_info_with_http_info_impl(extra)
end

def get_partner_info_with_http_info_impl(opts = {})

Returns:
  • (Array<(PartnerData, Integer, Hash)>) - PartnerData data, response status code and response headers

Parameters:
  • opts (Hash) -- the optional parameters
def get_partner_info_with_http_info_impl(opts = {})
i_client.config.debugging
_client.config.logger.debug 'Calling API: ReferenceDataApi.get_partner_info ...'
urce path
var_path = '/snapTrade/partners'
y parameters
params = opts[:query_params] || {}
er parameters
_params = opts[:header_params] || {}
 header 'Accept' (if needed)
_params['Accept'] = @api_client.select_header_accept(['application/json'])
 parameters
arams = opts[:form_params] || {}
 body (model)
ody = opts[:debug_body]
rn_type
_type = opts[:debug_return_type] || 'PartnerData'
_names
ames = opts[:debug_auth_names] || ['PartnerClientId', 'PartnerSignature', 'PartnerTimestamp']
tions = opts.merge(
ration => :"ReferenceDataApi.get_partner_info",
der_params => header_params,
ry_params => query_params,
m_params => form_params,
y => post_body,
h_names => auth_names,
urn_type => return_type
status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
i_client.config.debugging
_client.config.logger.debug "API called: ReferenceDataApi#get_partner_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
 data, status_code, headers, response

def get_security_types(extra: {})

Parameters:
  • extra (Hash) -- additional parameters to pass along through :header_params, :query_params, or parameter name
def get_security_types(extra: {})
  data, _status_code, _headers = get_security_types_with_http_info_impl(extra)
  data
end

def get_security_types_impl(opts = {})

Returns:
  • (Array) -

Parameters:
  • opts (Hash) -- the optional parameters
def get_security_types_impl(opts = {})
_status_code, _headers = get_security_types_with_http_info(opts)

def get_security_types_with_http_info(extra: {})

Parameters:
  • extra (Hash) -- additional parameters to pass along through :header_params, :query_params, or parameter name
def get_security_types_with_http_info(extra: {})
  get_security_types_with_http_info_impl(extra)
end

def get_security_types_with_http_info_impl(opts = {})

Returns:
  • (Array<(Array, Integer, Hash)>) - Array data, response status code and response headers

Parameters:
  • opts (Hash) -- the optional parameters
def get_security_types_with_http_info_impl(opts = {})
i_client.config.debugging
_client.config.logger.debug 'Calling API: ReferenceDataApi.get_security_types ...'
urce path
var_path = '/securityTypes'
y parameters
params = opts[:query_params] || {}
er parameters
_params = opts[:header_params] || {}
 header 'Accept' (if needed)
_params['Accept'] = @api_client.select_header_accept(['application/json'])
 parameters
arams = opts[:form_params] || {}
 body (model)
ody = opts[:debug_body]
rn_type
_type = opts[:debug_return_type] || 'Array<SecurityType>'
_names
ames = opts[:debug_auth_names] || ['PartnerClientId', 'PartnerSignature', 'PartnerTimestamp']
tions = opts.merge(
ration => :"ReferenceDataApi.get_security_types",
der_params => header_params,
ry_params => query_params,
m_params => form_params,
y => post_body,
h_names => auth_names,
urn_type => return_type
status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
i_client.config.debugging
_client.config.logger.debug "API called: ReferenceDataApi#get_security_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
 data, status_code, headers, response

def get_stock_exchanges(extra: {})

Parameters:
  • extra (Hash) -- additional parameters to pass along through :header_params, :query_params, or parameter name
def get_stock_exchanges(extra: {})
  data, _status_code, _headers = get_stock_exchanges_with_http_info_impl(extra)
  data
end

def get_stock_exchanges_impl(opts = {})

Returns:
  • (Array) -

Parameters:
  • opts (Hash) -- the optional parameters
def get_stock_exchanges_impl(opts = {})
_status_code, _headers = get_stock_exchanges_with_http_info(opts)

def get_stock_exchanges_with_http_info(extra: {})

Parameters:
  • extra (Hash) -- additional parameters to pass along through :header_params, :query_params, or parameter name
def get_stock_exchanges_with_http_info(extra: {})
  get_stock_exchanges_with_http_info_impl(extra)
end

def get_stock_exchanges_with_http_info_impl(opts = {})

Returns:
  • (Array<(Array, Integer, Hash)>) - Array data, response status code and response headers

Parameters:
  • opts (Hash) -- the optional parameters
def get_stock_exchanges_with_http_info_impl(opts = {})
i_client.config.debugging
_client.config.logger.debug 'Calling API: ReferenceDataApi.get_stock_exchanges ...'
urce path
var_path = '/exchanges'
y parameters
params = opts[:query_params] || {}
er parameters
_params = opts[:header_params] || {}
 header 'Accept' (if needed)
_params['Accept'] = @api_client.select_header_accept(['application/json'])
 parameters
arams = opts[:form_params] || {}
 body (model)
ody = opts[:debug_body]
rn_type
_type = opts[:debug_return_type] || 'Array<Exchange>'
_names
ames = opts[:debug_auth_names] || ['PartnerClientId', 'PartnerSignature', 'PartnerTimestamp']
tions = opts.merge(
ration => :"ReferenceDataApi.get_stock_exchanges",
der_params => header_params,
ry_params => query_params,
m_params => form_params,
y => post_body,
h_names => auth_names,
urn_type => return_type
status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
i_client.config.debugging
_client.config.logger.debug "API called: ReferenceDataApi#get_stock_exchanges\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
 data, status_code, headers, response

def get_symbols(substring: SENTINEL, extra: {})

Parameters:
  • extra (Hash) -- additional parameters to pass along through :header_params, :query_params, or parameter name
  • body (SymbolQuery) --
  • substring (String) -- The search query for symbols.
def get_symbols(substring: SENTINEL, extra: {})
  _body = {}
  _body[:substring] = substring if substring != SENTINEL
  extra[:symbol_query] = _body if !_body.empty?
  data, _status_code, _headers = get_symbols_with_http_info_impl(extra)
  data
end

def get_symbols_by_ticker(query:, extra: {})

Parameters:
  • extra (Hash) -- additional parameters to pass along through :header_params, :query_params, or parameter name
  • query (String) -- The ticker or Universal Symbol ID to look up the symbol with.
def get_symbols_by_ticker(query:, extra: {})
  data, _status_code, _headers = get_symbols_by_ticker_with_http_info_impl(query, extra)
  data
end

def get_symbols_by_ticker_impl(query, opts = {})

Returns:
  • (UniversalSymbol) -

Parameters:
  • opts (Hash) -- the optional parameters
  • query (String) -- The ticker or Universal Symbol ID to look up the symbol with.
def get_symbols_by_ticker_impl(query, opts = {})
_status_code, _headers = get_symbols_by_ticker_with_http_info(query, opts)

def get_symbols_by_ticker_with_http_info(query:, extra: {})

Parameters:
  • extra (Hash) -- additional parameters to pass along through :header_params, :query_params, or parameter name
  • query (String) -- The ticker or Universal Symbol ID to look up the symbol with.
def get_symbols_by_ticker_with_http_info(query:, extra: {})
  get_symbols_by_ticker_with_http_info_impl(query, extra)
end

def get_symbols_by_ticker_with_http_info_impl(query, opts = {})

Returns:
  • (Array<(UniversalSymbol, Integer, Hash)>) - UniversalSymbol data, response status code and response headers

Parameters:
  • opts (Hash) -- the optional parameters
  • query (String) -- The ticker or Universal Symbol ID to look up the symbol with.
def get_symbols_by_ticker_with_http_info_impl(query, opts = {})
i_client.config.debugging
_client.config.logger.debug 'Calling API: ReferenceDataApi.get_symbols_by_ticker ...'
fy the required parameter 'query' is set
i_client.config.client_side_validation && query.nil?
 ArgumentError, "Missing the required parameter 'query' when calling ReferenceDataApi.get_symbols_by_ticker"
urce path
var_path = '/symbols/{query}'.sub('{' + 'query' + '}', CGI.escape(query.to_s))
y parameters
params = opts[:query_params] || {}
er parameters
_params = opts[:header_params] || {}
 header 'Accept' (if needed)
_params['Accept'] = @api_client.select_header_accept(['application/json'])
 parameters
arams = opts[:form_params] || {}
 body (model)
ody = opts[:debug_body]
rn_type
_type = opts[:debug_return_type] || 'UniversalSymbol'
_names
ames = opts[:debug_auth_names] || ['PartnerClientId', 'PartnerSignature', 'PartnerTimestamp']
tions = opts.merge(
ration => :"ReferenceDataApi.get_symbols_by_ticker",
der_params => header_params,
ry_params => query_params,
m_params => form_params,
y => post_body,
h_names => auth_names,
urn_type => return_type
status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
i_client.config.debugging
_client.config.logger.debug "API called: ReferenceDataApi#get_symbols_by_ticker\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
 data, status_code, headers, response

def get_symbols_impl(opts = {})

Returns:
  • (Array) -

Options Hash: (**opts)
  • :symbol_query (SymbolQuery) --

Parameters:
  • opts (Hash) -- the optional parameters
def get_symbols_impl(opts = {})
_status_code, _headers = get_symbols_with_http_info(opts)

def get_symbols_with_http_info(substring: SENTINEL, extra: {})

Parameters:
  • extra (Hash) -- additional parameters to pass along through :header_params, :query_params, or parameter name
  • body (SymbolQuery) --
  • substring (String) -- The search query for symbols.
def get_symbols_with_http_info(substring: SENTINEL, extra: {})
  _body = {}
  _body[:substring] = substring if substring != SENTINEL
  extra[:symbol_query] = _body if !_body.empty?
  get_symbols_with_http_info_impl(extra)
end

def get_symbols_with_http_info_impl(opts = {})

Returns:
  • (Array<(Array, Integer, Hash)>) - Array data, response status code and response headers

Options Hash: (**opts)
  • :symbol_query (SymbolQuery) --

Parameters:
  • opts (Hash) -- the optional parameters
def get_symbols_with_http_info_impl(opts = {})
i_client.config.debugging
_client.config.logger.debug 'Calling API: ReferenceDataApi.get_symbols ...'
urce path
var_path = '/symbols'
y parameters
params = opts[:query_params] || {}
er parameters
_params = opts[:header_params] || {}
 header 'Accept' (if needed)
_params['Accept'] = @api_client.select_header_accept(['application/json'])
 header 'Content-Type'
t_type = @api_client.select_header_content_type(['application/json'])
ntent_type.nil?
er_params['Content-Type'] = content_type
 parameters
arams = opts[:form_params] || {}
 body (model)
ody = opts[:debug_body] || @api_client.object_to_http_body(opts[:'symbol_query'])
rn_type
_type = opts[:debug_return_type] || 'Array<UniversalSymbol>'
_names
ames = opts[:debug_auth_names] || ['PartnerClientId', 'PartnerSignature', 'PartnerTimestamp']
tions = opts.merge(
ration => :"ReferenceDataApi.get_symbols",
der_params => header_params,
ry_params => query_params,
m_params => form_params,
y => post_body,
h_names => auth_names,
urn_type => return_type
status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options)
i_client.config.debugging
_client.config.logger.debug "API called: ReferenceDataApi#get_symbols\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
 data, status_code, headers, response

def initialize(api_client = ApiClient.default)

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

def list_all_brokerage_authorization_type(brokerage: SENTINEL, extra: {})

Parameters:
  • extra (Hash) -- additional parameters to pass along through :header_params, :query_params, or parameter name
  • brokerage (String) -- Comma separated value of brokerage slugs
def list_all_brokerage_authorization_type(brokerage: SENTINEL, extra: {})
  extra[:brokerage] = brokerage if brokerage != SENTINEL
  data, _status_code, _headers = list_all_brokerage_authorization_type_with_http_info_impl(extra)
  data
end

def list_all_brokerage_authorization_type_impl(opts = {})

Returns:
  • (Array) -

Options Hash: (**opts)
  • :brokerage (String) -- Comma separated value of brokerage slugs

Parameters:
  • opts (Hash) -- the optional parameters
def list_all_brokerage_authorization_type_impl(opts = {})
_status_code, _headers = list_all_brokerage_authorization_type_with_http_info(opts)

def list_all_brokerage_authorization_type_with_http_info(brokerage: SENTINEL, extra: {})

Parameters:
  • extra (Hash) -- additional parameters to pass along through :header_params, :query_params, or parameter name
  • brokerage (String) -- Comma separated value of brokerage slugs
def list_all_brokerage_authorization_type_with_http_info(brokerage: SENTINEL, extra: {})
  extra[:brokerage] = brokerage if brokerage != SENTINEL
  list_all_brokerage_authorization_type_with_http_info_impl(extra)
end

def list_all_brokerage_authorization_type_with_http_info_impl(opts = {})

Returns:
  • (Array<(Array, Integer, Hash)>) - Array data, response status code and response headers

Options Hash: (**opts)
  • :brokerage (String) -- Comma separated value of brokerage slugs

Parameters:
  • opts (Hash) -- the optional parameters
def list_all_brokerage_authorization_type_with_http_info_impl(opts = {})
i_client.config.debugging
_client.config.logger.debug 'Calling API: ReferenceDataApi.list_all_brokerage_authorization_type ...'
urce path
var_path = '/brokerageAuthorizationTypes'
y parameters
params = opts[:query_params] || {}
params[:'brokerage'] = opts[:'brokerage'] if !opts[:'brokerage'].nil?
er parameters
_params = opts[:header_params] || {}
 header 'Accept' (if needed)
_params['Accept'] = @api_client.select_header_accept(['application/json'])
 parameters
arams = opts[:form_params] || {}
 body (model)
ody = opts[:debug_body]
rn_type
_type = opts[:debug_return_type] || 'Array<BrokerageAuthorizationTypeReadOnly>'
_names
ames = opts[:debug_auth_names] || ['PartnerClientId', 'PartnerSignature', 'PartnerTimestamp']
tions = opts.merge(
ration => :"ReferenceDataApi.list_all_brokerage_authorization_type",
der_params => header_params,
ry_params => query_params,
m_params => form_params,
y => post_body,
h_names => auth_names,
urn_type => return_type
status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
i_client.config.debugging
_client.config.logger.debug "API called: ReferenceDataApi#list_all_brokerage_authorization_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
 data, status_code, headers, response

def list_all_brokerages(extra: {})

Parameters:
  • extra (Hash) -- additional parameters to pass along through :header_params, :query_params, or parameter name
def list_all_brokerages(extra: {})
  data, _status_code, _headers = list_all_brokerages_with_http_info_impl(extra)
  data
end

def list_all_brokerages_impl(opts = {})

Returns:
  • (Array) -

Parameters:
  • opts (Hash) -- the optional parameters
def list_all_brokerages_impl(opts = {})
_status_code, _headers = list_all_brokerages_with_http_info(opts)

def list_all_brokerages_with_http_info(extra: {})

Parameters:
  • extra (Hash) -- additional parameters to pass along through :header_params, :query_params, or parameter name
def list_all_brokerages_with_http_info(extra: {})
  list_all_brokerages_with_http_info_impl(extra)
end

def list_all_brokerages_with_http_info_impl(opts = {})

Returns:
  • (Array<(Array, Integer, Hash)>) - Array data, response status code and response headers

Parameters:
  • opts (Hash) -- the optional parameters
def list_all_brokerages_with_http_info_impl(opts = {})
i_client.config.debugging
_client.config.logger.debug 'Calling API: ReferenceDataApi.list_all_brokerages ...'
urce path
var_path = '/brokerages'
y parameters
params = opts[:query_params] || {}
er parameters
_params = opts[:header_params] || {}
 header 'Accept' (if needed)
_params['Accept'] = @api_client.select_header_accept(['application/json'])
 parameters
arams = opts[:form_params] || {}
 body (model)
ody = opts[:debug_body]
rn_type
_type = opts[:debug_return_type] || 'Array<Brokerage>'
_names
ames = opts[:debug_auth_names] || ['PartnerClientId', 'PartnerSignature', 'PartnerTimestamp']
tions = opts.merge(
ration => :"ReferenceDataApi.list_all_brokerages",
der_params => header_params,
ry_params => query_params,
m_params => form_params,
y => post_body,
h_names => auth_names,
urn_type => return_type
status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
i_client.config.debugging
_client.config.logger.debug "API called: ReferenceDataApi#list_all_brokerages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
 data, status_code, headers, response

def list_all_currencies(extra: {})

Parameters:
  • extra (Hash) -- additional parameters to pass along through :header_params, :query_params, or parameter name
def list_all_currencies(extra: {})
  data, _status_code, _headers = list_all_currencies_with_http_info_impl(extra)
  data
end

def list_all_currencies_impl(opts = {})

Returns:
  • (Array) -

Parameters:
  • opts (Hash) -- the optional parameters
def list_all_currencies_impl(opts = {})
_status_code, _headers = list_all_currencies_with_http_info(opts)

def list_all_currencies_rates(extra: {})

Parameters:
  • extra (Hash) -- additional parameters to pass along through :header_params, :query_params, or parameter name
def list_all_currencies_rates(extra: {})
  data, _status_code, _headers = list_all_currencies_rates_with_http_info_impl(extra)
  data
end

def list_all_currencies_rates_impl(opts = {})

Returns:
  • (Array) -

Parameters:
  • opts (Hash) -- the optional parameters
def list_all_currencies_rates_impl(opts = {})
_status_code, _headers = list_all_currencies_rates_with_http_info(opts)

def list_all_currencies_rates_with_http_info(extra: {})

Parameters:
  • extra (Hash) -- additional parameters to pass along through :header_params, :query_params, or parameter name
def list_all_currencies_rates_with_http_info(extra: {})
  list_all_currencies_rates_with_http_info_impl(extra)
end

def list_all_currencies_rates_with_http_info_impl(opts = {})

Returns:
  • (Array<(Array, Integer, Hash)>) - Array data, response status code and response headers

Parameters:
  • opts (Hash) -- the optional parameters
def list_all_currencies_rates_with_http_info_impl(opts = {})
i_client.config.debugging
_client.config.logger.debug 'Calling API: ReferenceDataApi.list_all_currencies_rates ...'
urce path
var_path = '/currencies/rates'
y parameters
params = opts[:query_params] || {}
er parameters
_params = opts[:header_params] || {}
 header 'Accept' (if needed)
_params['Accept'] = @api_client.select_header_accept(['application/json'])
 parameters
arams = opts[:form_params] || {}
 body (model)
ody = opts[:debug_body]
rn_type
_type = opts[:debug_return_type] || 'Array<ExchangeRatePairs>'
_names
ames = opts[:debug_auth_names] || ['PartnerClientId', 'PartnerSignature', 'PartnerTimestamp']
tions = opts.merge(
ration => :"ReferenceDataApi.list_all_currencies_rates",
der_params => header_params,
ry_params => query_params,
m_params => form_params,
y => post_body,
h_names => auth_names,
urn_type => return_type
status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
i_client.config.debugging
_client.config.logger.debug "API called: ReferenceDataApi#list_all_currencies_rates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
 data, status_code, headers, response

def list_all_currencies_with_http_info(extra: {})

Parameters:
  • extra (Hash) -- additional parameters to pass along through :header_params, :query_params, or parameter name
def list_all_currencies_with_http_info(extra: {})
  list_all_currencies_with_http_info_impl(extra)
end

def list_all_currencies_with_http_info_impl(opts = {})

Returns:
  • (Array<(Array, Integer, Hash)>) - Array data, response status code and response headers

Parameters:
  • opts (Hash) -- the optional parameters
def list_all_currencies_with_http_info_impl(opts = {})
i_client.config.debugging
_client.config.logger.debug 'Calling API: ReferenceDataApi.list_all_currencies ...'
urce path
var_path = '/currencies'
y parameters
params = opts[:query_params] || {}
er parameters
_params = opts[:header_params] || {}
 header 'Accept' (if needed)
_params['Accept'] = @api_client.select_header_accept(['application/json'])
 parameters
arams = opts[:form_params] || {}
 body (model)
ody = opts[:debug_body]
rn_type
_type = opts[:debug_return_type] || 'Array<Currency>'
_names
ames = opts[:debug_auth_names] || ['PartnerClientId', 'PartnerSignature', 'PartnerTimestamp']
tions = opts.merge(
ration => :"ReferenceDataApi.list_all_currencies",
der_params => header_params,
ry_params => query_params,
m_params => form_params,
y => post_body,
h_names => auth_names,
urn_type => return_type
status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
i_client.config.debugging
_client.config.logger.debug "API called: ReferenceDataApi#list_all_currencies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
 data, status_code, headers, response

def symbol_search_user_account(user_id:, user_secret:, account_id:, substring: SENTINEL, extra: {})

Parameters:
  • extra (Hash) -- additional parameters to pass along through :header_params, :query_params, or parameter name
  • body (SymbolQuery) --
  • substring (String) -- The search query for symbols.
  • account_id (String) --
  • user_secret (String) --
  • user_id (String) --
def symbol_search_user_account(user_id:, user_secret:, account_id:, substring: SENTINEL, extra: {})
  _body = {}
  _body[:substring] = substring if substring != SENTINEL
  extra[:symbol_query] = _body if !_body.empty?
  data, _status_code, _headers = symbol_search_user_account_with_http_info_impl(user_id, user_secret, account_id, extra)
  data
end

def symbol_search_user_account_impl(user_id, user_secret, account_id, opts = {})

Returns:
  • (Array) -

Options Hash: (**opts)
  • :symbol_query (SymbolQuery) --

Parameters:
  • opts (Hash) -- the optional parameters
  • account_id (String) --
  • user_secret (String) --
  • user_id (String) --
def symbol_search_user_account_impl(user_id, user_secret, account_id, opts = {})
_status_code, _headers = symbol_search_user_account_with_http_info(user_id, user_secret, account_id, opts)

def symbol_search_user_account_with_http_info(user_id:, user_secret:, account_id:, substring: SENTINEL, extra: {})

Parameters:
  • extra (Hash) -- additional parameters to pass along through :header_params, :query_params, or parameter name
  • body (SymbolQuery) --
  • substring (String) -- The search query for symbols.
  • account_id (String) --
  • user_secret (String) --
  • user_id (String) --
def symbol_search_user_account_with_http_info(user_id:, user_secret:, account_id:, substring: SENTINEL, extra: {})
  _body = {}
  _body[:substring] = substring if substring != SENTINEL
  extra[:symbol_query] = _body if !_body.empty?
  symbol_search_user_account_with_http_info_impl(user_id, user_secret, account_id, extra)
end

def symbol_search_user_account_with_http_info_impl(user_id, user_secret, account_id, opts = {})

Returns:
  • (Array<(Array, Integer, Hash)>) - Array data, response status code and response headers

Options Hash: (**opts)
  • :symbol_query (SymbolQuery) --

Parameters:
  • opts (Hash) -- the optional parameters
  • account_id (String) --
  • user_secret (String) --
  • user_id (String) --
def symbol_search_user_account_with_http_info_impl(user_id, user_secret, account_id, opts = {})
i_client.config.debugging
_client.config.logger.debug 'Calling API: ReferenceDataApi.symbol_search_user_account ...'
fy the required parameter 'user_id' is set
i_client.config.client_side_validation && user_id.nil?
 ArgumentError, "Missing the required parameter 'user_id' when calling ReferenceDataApi.symbol_search_user_account"
fy the required parameter 'user_secret' is set
i_client.config.client_side_validation && user_secret.nil?
 ArgumentError, "Missing the required parameter 'user_secret' when calling ReferenceDataApi.symbol_search_user_account"
fy the required parameter 'account_id' is set
i_client.config.client_side_validation && account_id.nil?
 ArgumentError, "Missing the required parameter 'account_id' when calling ReferenceDataApi.symbol_search_user_account"
urce path
var_path = '/accounts/{accountId}/symbols'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
y parameters
params = opts[:query_params] || {}
params[:'userId'] = user_id
params[:'userSecret'] = user_secret
er parameters
_params = opts[:header_params] || {}
 header 'Accept' (if needed)
_params['Accept'] = @api_client.select_header_accept(['application/json'])
 header 'Content-Type'
t_type = @api_client.select_header_content_type(['application/json'])
ntent_type.nil?
er_params['Content-Type'] = content_type
 parameters
arams = opts[:form_params] || {}
 body (model)
ody = opts[:debug_body] || @api_client.object_to_http_body(opts[:'symbol_query'])
rn_type
_type = opts[:debug_return_type] || 'Array<UniversalSymbol>'
_names
ames = opts[:debug_auth_names] || ['PartnerClientId', 'PartnerSignature', 'PartnerTimestamp']
tions = opts.merge(
ration => :"ReferenceDataApi.symbol_search_user_account",
der_params => header_params,
ry_params => query_params,
m_params => form_params,
y => post_body,
h_names => auth_names,
urn_type => return_type
status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options)
i_client.config.debugging
_client.config.logger.debug "API called: ReferenceDataApi#symbol_search_user_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
 data, status_code, headers, response