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.



278
279
280
281
282
283
284
285
286
287
288
289
# File 'lib/snaptrade.rb', line 278

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.



268
269
270
# File 'lib/snaptrade.rb', line 268

def 
  @account_information
end

#api_statusObject (readonly)

Returns the value of attribute api_status.



269
270
271
# File 'lib/snaptrade.rb', line 269

def api_status
  @api_status
end

#authenticationObject (readonly)

Returns the value of attribute authentication.



270
271
272
# File 'lib/snaptrade.rb', line 270

def authentication
  @authentication
end

#connectionsObject (readonly)

Returns the value of attribute connections.



271
272
273
# File 'lib/snaptrade.rb', line 271

def connections
  @connections
end

#experimental_endpointsObject (readonly)

Returns the value of attribute experimental_endpoints.



272
273
274
# File 'lib/snaptrade.rb', line 272

def experimental_endpoints
  @experimental_endpoints
end

#optionsObject (readonly)

Returns the value of attribute options.



273
274
275
# File 'lib/snaptrade.rb', line 273

def options
  @options
end

#reference_dataObject (readonly)

Returns the value of attribute reference_data.



274
275
276
# File 'lib/snaptrade.rb', line 274

def reference_data
  @reference_data
end

#tradingObject (readonly)

Returns the value of attribute trading.



275
276
277
# File 'lib/snaptrade.rb', line 275

def trading
  @trading
end

#transactions_and_reportingObject (readonly)

Returns the value of attribute transactions_and_reporting.



276
277
278
# File 'lib/snaptrade.rb', line 276

def transactions_and_reporting
  @transactions_and_reporting
end