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.



267
268
269
270
271
272
273
274
275
276
277
278
# File 'lib/snaptrade.rb', line 267

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.



257
258
259
# File 'lib/snaptrade.rb', line 257

def 
  @account_information
end

#api_statusObject (readonly)

Returns the value of attribute api_status.



258
259
260
# File 'lib/snaptrade.rb', line 258

def api_status
  @api_status
end

#authenticationObject (readonly)

Returns the value of attribute authentication.



259
260
261
# File 'lib/snaptrade.rb', line 259

def authentication
  @authentication
end

#connectionsObject (readonly)

Returns the value of attribute connections.



260
261
262
# File 'lib/snaptrade.rb', line 260

def connections
  @connections
end

#experimental_endpointsObject (readonly)

Returns the value of attribute experimental_endpoints.



261
262
263
# File 'lib/snaptrade.rb', line 261

def experimental_endpoints
  @experimental_endpoints
end

#optionsObject (readonly)

Returns the value of attribute options.



262
263
264
# File 'lib/snaptrade.rb', line 262

def options
  @options
end

#reference_dataObject (readonly)

Returns the value of attribute reference_data.



263
264
265
# File 'lib/snaptrade.rb', line 263

def reference_data
  @reference_data
end

#tradingObject (readonly)

Returns the value of attribute trading.



264
265
266
# File 'lib/snaptrade.rb', line 264

def trading
  @trading
end

#transactions_and_reportingObject (readonly)

Returns the value of attribute transactions_and_reporting.



265
266
267
# File 'lib/snaptrade.rb', line 265

def transactions_and_reporting
  @transactions_and_reporting
end