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.



335
336
337
338
339
340
341
342
343
344
# File 'lib/snaptrade.rb', line 335

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)
  @reference_data = SnapTrade::ReferenceDataApi.new(@api_client)
  @trading = SnapTrade::TradingApi.new(@api_client)
end

Instance Attribute Details

#account_informationObject (readonly)

Returns the value of attribute account_information.



327
328
329
# File 'lib/snaptrade.rb', line 327

def 
  @account_information
end

#api_statusObject (readonly)

Returns the value of attribute api_status.



328
329
330
# File 'lib/snaptrade.rb', line 328

def api_status
  @api_status
end

#authenticationObject (readonly)

Returns the value of attribute authentication.



329
330
331
# File 'lib/snaptrade.rb', line 329

def authentication
  @authentication
end

#connectionsObject (readonly)

Returns the value of attribute connections.



330
331
332
# File 'lib/snaptrade.rb', line 330

def connections
  @connections
end

#experimental_endpointsObject (readonly)

Returns the value of attribute experimental_endpoints.



331
332
333
# File 'lib/snaptrade.rb', line 331

def experimental_endpoints
  @experimental_endpoints
end

#reference_dataObject (readonly)

Returns the value of attribute reference_data.



332
333
334
# File 'lib/snaptrade.rb', line 332

def reference_data
  @reference_data
end

#tradingObject (readonly)

Returns the value of attribute trading.



333
334
335
# File 'lib/snaptrade.rb', line 333

def trading
  @trading
end