Class: SnapTrade::Client
- Inherits:
-
Object
- Object
- SnapTrade::Client
- Defined in:
- lib/snaptrade.rb
Instance Attribute Summary collapse
-
#account_information ⇒ Object
readonly
Returns the value of attribute account_information.
-
#api_status ⇒ Object
readonly
Returns the value of attribute api_status.
-
#authentication ⇒ Object
readonly
Returns the value of attribute authentication.
-
#connections ⇒ Object
readonly
Returns the value of attribute connections.
-
#experimental_endpoints ⇒ Object
readonly
Returns the value of attribute experimental_endpoints.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#reference_data ⇒ Object
readonly
Returns the value of attribute reference_data.
-
#trading ⇒ Object
readonly
Returns the value of attribute trading.
-
#transactions_and_reporting ⇒ Object
readonly
Returns the value of attribute transactions_and_reporting.
Instance Method Summary collapse
-
#initialize(config = Configuration.default) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(config = Configuration.default) ⇒ Client
Returns a new instance of Client.
310 311 312 313 314 315 316 317 318 319 320 321 |
# File 'lib/snaptrade.rb', line 310 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_information ⇒ Object (readonly)
Returns the value of attribute account_information.
300 301 302 |
# File 'lib/snaptrade.rb', line 300 def account_information @account_information end |
#api_status ⇒ Object (readonly)
Returns the value of attribute api_status.
301 302 303 |
# File 'lib/snaptrade.rb', line 301 def api_status @api_status end |
#authentication ⇒ Object (readonly)
Returns the value of attribute authentication.
302 303 304 |
# File 'lib/snaptrade.rb', line 302 def authentication @authentication end |
#connections ⇒ Object (readonly)
Returns the value of attribute connections.
303 304 305 |
# File 'lib/snaptrade.rb', line 303 def connections @connections end |
#experimental_endpoints ⇒ Object (readonly)
Returns the value of attribute experimental_endpoints.
304 305 306 |
# File 'lib/snaptrade.rb', line 304 def experimental_endpoints @experimental_endpoints end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
305 306 307 |
# File 'lib/snaptrade.rb', line 305 def @options end |
#reference_data ⇒ Object (readonly)
Returns the value of attribute reference_data.
306 307 308 |
# File 'lib/snaptrade.rb', line 306 def reference_data @reference_data end |
#trading ⇒ Object (readonly)
Returns the value of attribute trading.
307 308 309 |
# File 'lib/snaptrade.rb', line 307 def trading @trading end |
#transactions_and_reporting ⇒ Object (readonly)
Returns the value of attribute transactions_and_reporting.
308 309 310 |
# File 'lib/snaptrade.rb', line 308 def transactions_and_reporting @transactions_and_reporting end |