Class: SnapTrade::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/snaptrade.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config = Configuration.default) ⇒ Client

Returns a new instance of Client.



303
304
305
306
307
308
309
310
311
312
313
314
# File 'lib/snaptrade.rb', line 303

def initialize(config = Configuration.default)
  @api_client = ApiClient::new(config)
  @account_information = SnapTrade::AccountInformationApi.new(@api_client)
  @api_status = SnapTrade::APIStatusApi.new(@api_client)
  @authentication = SnapTrade::AuthenticationApi.new(@api_client)
  @connections = SnapTrade::ConnectionsApi.new(@api_client)
  @experimental_endpoints = SnapTrade::ExperimentalEndpointsApi.new(@api_client)
  @options = SnapTrade::OptionsApi.new(@api_client)
  @reference_data = SnapTrade::ReferenceDataApi.new(@api_client)
  @trading = SnapTrade::TradingApi.new(@api_client)
  @transactions_and_reporting = SnapTrade::TransactionsAndReportingApi.new(@api_client)
end

Instance Attribute Details

#account_informationObject (readonly)

Returns the value of attribute account_information.



293
294
295
# File 'lib/snaptrade.rb', line 293

def 
  @account_information
end

#api_statusObject (readonly)

Returns the value of attribute api_status.



294
295
296
# File 'lib/snaptrade.rb', line 294

def api_status
  @api_status
end

#authenticationObject (readonly)

Returns the value of attribute authentication.



295
296
297
# File 'lib/snaptrade.rb', line 295

def authentication
  @authentication
end

#connectionsObject (readonly)

Returns the value of attribute connections.



296
297
298
# File 'lib/snaptrade.rb', line 296

def connections
  @connections
end

#experimental_endpointsObject (readonly)

Returns the value of attribute experimental_endpoints.



297
298
299
# File 'lib/snaptrade.rb', line 297

def experimental_endpoints
  @experimental_endpoints
end

#optionsObject (readonly)

Returns the value of attribute options.



298
299
300
# File 'lib/snaptrade.rb', line 298

def options
  @options
end

#reference_dataObject (readonly)

Returns the value of attribute reference_data.



299
300
301
# File 'lib/snaptrade.rb', line 299

def reference_data
  @reference_data
end

#tradingObject (readonly)

Returns the value of attribute trading.



300
301
302
# File 'lib/snaptrade.rb', line 300

def trading
  @trading
end

#transactions_and_reportingObject (readonly)

Returns the value of attribute transactions_and_reporting.



301
302
303
# File 'lib/snaptrade.rb', line 301

def transactions_and_reporting
  @transactions_and_reporting
end