snaptrade 1.16.3 → 1.17.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +5 -5
  4. data/docs/AccountHoldings.md +2 -2
  5. data/docs/AccountHoldingsAccount.md +2 -2
  6. data/docs/AccountInformationApi.md +64 -64
  7. data/docs/AccountOrderRecord.md +2 -2
  8. data/docs/AuthenticationApi.md +32 -32
  9. data/docs/Balance.md +1 -1
  10. data/docs/Brokerage.md +1 -1
  11. data/docs/BrokerageAuthorization.md +1 -1
  12. data/docs/BrokerageAuthorizationTypeReadOnly.md +1 -1
  13. data/docs/BrokerageSymbol.md +1 -1
  14. data/docs/BrokerageSymbolOptionSymbol.md +1 -1
  15. data/docs/BrokerageSymbolSymbol.md +7 -7
  16. data/docs/ConnectionsApi.md +30 -30
  17. data/docs/EncryptedResponse.md +1 -1
  18. data/docs/ErrorLogsApi.md +6 -6
  19. data/docs/ExchangeRatePairs.md +2 -2
  20. data/docs/ExcludedAsset.md +1 -1
  21. data/docs/ManualTrade.md +1 -1
  22. data/docs/ManualTradeAndImpact.md +2 -2
  23. data/docs/ManualTradeBalance.md +2 -2
  24. data/docs/ManualTradeSymbol.md +1 -1
  25. data/docs/ModelAssetClassDetails.md +1 -1
  26. data/docs/ModelAssetClassTarget.md +1 -1
  27. data/docs/ModelPortfolioAssetClass.md +1 -1
  28. data/docs/ModelPortfolioDetails.md +1 -1
  29. data/docs/ModelPortfolioSecurity.md +1 -1
  30. data/docs/NetDividend.md +1 -1
  31. data/docs/OptionStrategy.md +1 -1
  32. data/docs/OptionsApi.md +58 -58
  33. data/docs/OptionsHoldings.md +2 -2
  34. data/docs/OptionsPosition.md +1 -1
  35. data/docs/OptionsSymbol.md +1 -1
  36. data/docs/PerformanceCustom.md +1 -1
  37. data/docs/PortfolioGroupInfo.md +1 -1
  38. data/docs/PortfolioGroupPosition.md +1 -1
  39. data/docs/PortfolioGroupSettings.md +1 -1
  40. data/docs/Position.md +1 -1
  41. data/docs/PositionSymbol.md +1 -1
  42. data/docs/ReferenceDataApi.md +28 -28
  43. data/docs/SnapTradeHoldingsAccount.md +1 -1
  44. data/docs/StrategyOrderRecord.md +1 -1
  45. data/docs/StrategyQuotes.md +2 -2
  46. data/docs/Symbol.md +3 -3
  47. data/docs/SymbolsQuotesInner.md +1 -1
  48. data/docs/TargetAsset.md +1 -1
  49. data/docs/Trade.md +3 -3
  50. data/docs/TradeExecutionStatus.md +3 -3
  51. data/docs/TradeImpact.md +2 -2
  52. data/docs/TradingApi.md +84 -84
  53. data/docs/TransactionsAndReportingApi.md +32 -32
  54. data/docs/UnderlyingSymbol.md +3 -3
  55. data/docs/UniversalActivity.md +5 -5
  56. data/docs/UniversalSymbol.md +7 -7
  57. data/docs/UniversalSymbolTicker.md +3 -3
  58. data/docs/UserSettings.md +1 -1
  59. data/header.png +0 -0
  60. data/lib/snaptrade/api/account_information_api.rb +0 -16
  61. data/lib/snaptrade/api/api_status_api.rb +0 -2
  62. data/lib/snaptrade/api/authentication_api.rb +0 -10
  63. data/lib/snaptrade/api/connections_api.rb +0 -8
  64. data/lib/snaptrade/api/error_logs_api.rb +0 -2
  65. data/lib/snaptrade/api/options_api.rb +0 -10
  66. data/lib/snaptrade/api/reference_data_api.rb +0 -22
  67. data/lib/snaptrade/api/trading_api.rb +0 -12
  68. data/lib/snaptrade/api/transactions_and_reporting_api.rb +0 -4
  69. data/lib/snaptrade/api_client_custom.rb +1 -1
  70. data/lib/snaptrade/models/brokerage_symbol_symbol.rb +30 -0
  71. data/lib/snaptrade/models/universal_activity.rb +1 -1
  72. data/lib/snaptrade/models/universal_symbol.rb +30 -0
  73. data/lib/snaptrade/version.rb +1 -1
  74. metadata +3 -2
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **encrypted_shared_key** | **String** | | [optional] |
8
- | **encrypted_message_data** | [**EncryptedResponseEncryptedMessageData**](EncryptedResponseEncryptedMessageData.md) | | [optional] |
8
+ | **encrypted_message_data** | **EncryptedResponseEncryptedMessageData** | | [optional] |
9
9
 
10
10
  ## Example
11
11
 
data/docs/ErrorLogsApi.md CHANGED
@@ -24,9 +24,9 @@ user_secret = "USERSECRET123"
24
24
  begin
25
25
  # Retrieve error logs on behalf of your SnapTrade users
26
26
  result = SnapTrade::ErrorLogs.list_user_errors(
27
- user_id: user_id,
28
- user_secret: user_secret,
29
- )
27
+ user_id: user_id,
28
+ user_secret: user_secret,
29
+ )
30
30
  p result
31
31
  rescue SnapTrade::ApiError => e
32
32
  puts "Exception when calling SnapTrade::ErrorLogs.list_user_errors: #{e}"
@@ -44,9 +44,9 @@ user_secret = "USERSECRET123"
44
44
  begin
45
45
  # Retrieve error logs on behalf of your SnapTrade users
46
46
  data, status_code, headers, response = SnapTrade::ErrorLogs.list_user_errors_with_http_info(
47
- user_id: user_id,
48
- user_secret: user_secret,
49
- )
47
+ user_id: user_id,
48
+ user_secret: user_secret,
49
+ )
50
50
  p status_code # => 2xx
51
51
  p headers # => { ... }
52
52
  p data # => Array<UserErrorLog>
@@ -4,8 +4,8 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **src** | [**Currency**](Currency.md) | | [optional] |
8
- | **dst** | [**Currency**](Currency.md) | | [optional] |
7
+ | **src** | **Currency** | | [optional] |
8
+ | **dst** | **Currency** | | [optional] |
9
9
  | **exchange_rate** | **Float** | | [optional] |
10
10
 
11
11
  ## Example
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **symbol** | [**UniversalSymbol**](UniversalSymbol.md) | | [optional] |
7
+ | **symbol** | **UniversalSymbol** | | [optional] |
8
8
 
9
9
  ## Example
10
10
 
data/docs/ManualTrade.md CHANGED
@@ -8,7 +8,7 @@
8
8
  | **account** | **String** | | [optional] |
9
9
  | **order_type** | [**OrderType**](OrderType.md) | | [optional] |
10
10
  | **time_in_force** | [**TimeInForce**](TimeInForce.md) | | [optional] |
11
- | **symbol** | [**ManualTradeSymbol**](ManualTradeSymbol.md) | | [optional] |
11
+ | **symbol** | **ManualTradeSymbol** | | [optional] |
12
12
  | **action** | [**Action**](Action.md) | | [optional] |
13
13
  | **units** | **Float** | Trade Units | [optional] |
14
14
  | **price** | **Float** | Trade Price if limit or stop limit order | [optional] |
@@ -4,9 +4,9 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **trade** | [**ManualTrade**](ManualTrade.md) | | [optional] |
7
+ | **trade** | **ManualTrade** | | [optional] |
8
8
  | **trade_impacts** | [**Array&lt;ManualTrade&gt;**](ManualTrade.md) | | [optional] |
9
- | **combined_remaining_balance** | [**ManualTradeBalance**](ManualTradeBalance.md) | | [optional] |
9
+ | **combined_remaining_balance** | **ManualTradeBalance** | | [optional] |
10
10
 
11
11
  ## Example
12
12
 
@@ -4,8 +4,8 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **account** | [**Account**](Account.md) | | [optional] |
8
- | **currency** | [**Currency**](Currency.md) | | [optional] |
7
+ | **account** | **Account** | | [optional] |
8
+ | **currency** | **Currency** | | [optional] |
9
9
  | **cash** | **Float** | Cash | [optional] |
10
10
 
11
11
  ## Example
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **brokerage_symbol_id** | **String** | | [optional] |
8
8
  | **universal_symbol_id** | **String** | | [optional] |
9
- | **currency** | [**Currency**](Currency.md) | | [optional] |
9
+ | **currency** | **Currency** | | [optional] |
10
10
  | **local_id** | **String** | | [optional] |
11
11
  | **description** | **String** | | [optional] |
12
12
  | **symbol** | **String** | | [optional] |
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **model_asset_class** | [**ModelAssetClass**](ModelAssetClass.md) | | [optional] |
7
+ | **model_asset_class** | **ModelAssetClass** | | [optional] |
8
8
  | **model_asset_class_target** | [**Array&lt;ModelAssetClassTarget&gt;**](ModelAssetClassTarget.md) | | [optional] |
9
9
 
10
10
  ## Example
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **symbol** | [**UniversalSymbol**](UniversalSymbol.md) | | [optional] |
7
+ | **symbol** | **UniversalSymbol** | | [optional] |
8
8
 
9
9
  ## Example
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **model_asset_class** | [**ModelAssetClass**](ModelAssetClass.md) | | [optional] |
7
+ | **model_asset_class** | **ModelAssetClass** | | [optional] |
8
8
  | **percent** | **Integer** | | [optional] |
9
9
 
10
10
  ## Example
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **model_portfolio** | [**ModelPortfolio**](ModelPortfolio.md) | | [optional] |
7
+ | **model_portfolio** | **ModelPortfolio** | | [optional] |
8
8
  | **model_portfolio_security** | [**Array&lt;ModelPortfolioSecurity&gt;**](ModelPortfolioSecurity.md) | | [optional] |
9
9
  | **model_portfolio_asset_class** | [**Array&lt;ModelPortfolioAssetClass&gt;**](ModelPortfolioAssetClass.md) | | [optional] |
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **symbol** | [**UniversalSymbol**](UniversalSymbol.md) | | [optional] |
7
+ | **symbol** | **UniversalSymbol** | | [optional] |
8
8
  | **percent** | **Integer** | | [optional] |
9
9
 
10
10
  ## Example
data/docs/NetDividend.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **symbol** | [**UniversalSymbol**](UniversalSymbol.md) | | [optional] |
7
+ | **symbol** | **UniversalSymbol** | | [optional] |
8
8
  | **amount** | **Float** | | [optional] |
9
9
  | **currency** | **String** | | [optional] |
10
10
 
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | | [optional] |
8
- | **underlying_symbol_id** | [**UniversalSymbol**](UniversalSymbol.md) | | [optional] |
8
+ | **underlying_symbol_id** | **UniversalSymbol** | | [optional] |
9
9
  | **strategy_type** | **String** | | [optional] |
10
10
  | **number_of_legs** | **Float** | | [optional] |
11
11
  | **legs** | [**Array&lt;OptionStrategyLegsInner&gt;**](OptionStrategyLegsInner.md) | | [optional] |
data/docs/OptionsApi.md CHANGED
@@ -38,13 +38,13 @@ account_id = "accountId_example"
38
38
  begin
39
39
  # Creates an option strategy object that will be used to place an option strategy order
40
40
  result = SnapTrade::Options.get_option_strategy(
41
- underlying_symbol_id: underlying_symbol_id,
42
- legs: legs,
43
- strategy_type: strategy_type,
44
- user_id: user_id,
45
- user_secret: user_secret,
46
- account_id: account_id,
47
- )
41
+ underlying_symbol_id: underlying_symbol_id,
42
+ legs: legs,
43
+ strategy_type: strategy_type,
44
+ user_id: user_id,
45
+ user_secret: user_secret,
46
+ account_id: account_id,
47
+ )
48
48
  p result
49
49
  rescue SnapTrade::ApiError => e
50
50
  puts "Exception when calling SnapTrade::Options.get_option_strategy: #{e}"
@@ -72,13 +72,13 @@ account_id = "accountId_example"
72
72
  begin
73
73
  # Creates an option strategy object that will be used to place an option strategy order
74
74
  data, status_code, headers, response = SnapTrade::Options.get_option_strategy_with_http_info(
75
- underlying_symbol_id: underlying_symbol_id,
76
- legs: legs,
77
- strategy_type: strategy_type,
78
- user_id: user_id,
79
- user_secret: user_secret,
80
- account_id: account_id,
81
- )
75
+ underlying_symbol_id: underlying_symbol_id,
76
+ legs: legs,
77
+ strategy_type: strategy_type,
78
+ user_id: user_id,
79
+ user_secret: user_secret,
80
+ account_id: account_id,
81
+ )
82
82
  p status_code # => 2xx
83
83
  p headers # => { ... }
84
84
  p data # => StrategyQuotes
@@ -120,11 +120,11 @@ symbol = "symbol_example"
120
120
  begin
121
121
  # Get the options chain
122
122
  result = SnapTrade::Options.get_options_chain(
123
- user_id: user_id,
124
- user_secret: user_secret,
125
- account_id: account_id,
126
- symbol: symbol,
127
- )
123
+ user_id: user_id,
124
+ user_secret: user_secret,
125
+ account_id: account_id,
126
+ symbol: symbol,
127
+ )
128
128
  p result
129
129
  rescue SnapTrade::ApiError => e
130
130
  puts "Exception when calling SnapTrade::Options.get_options_chain: #{e}"
@@ -144,11 +144,11 @@ symbol = "symbol_example"
144
144
  begin
145
145
  # Get the options chain
146
146
  data, status_code, headers, response = SnapTrade::Options.get_options_chain_with_http_info(
147
- user_id: user_id,
148
- user_secret: user_secret,
149
- account_id: account_id,
150
- symbol: symbol,
151
- )
147
+ user_id: user_id,
148
+ user_secret: user_secret,
149
+ account_id: account_id,
150
+ symbol: symbol,
151
+ )
152
152
  p status_code # => 2xx
153
153
  p headers # => { ... }
154
154
  p data # => Array<OptionChainInner>
@@ -190,11 +190,11 @@ option_strategy_id = "2bcd7cc3-e922-4976-bce1-9858296801c3"
190
190
  begin
191
191
  # Get latest market data of option strategy
192
192
  result = SnapTrade::Options.get_options_strategy_quote(
193
- user_id: user_id,
194
- user_secret: user_secret,
195
- account_id: account_id,
196
- option_strategy_id: option_strategy_id,
197
- )
193
+ user_id: user_id,
194
+ user_secret: user_secret,
195
+ account_id: account_id,
196
+ option_strategy_id: option_strategy_id,
197
+ )
198
198
  p result
199
199
  rescue SnapTrade::ApiError => e
200
200
  puts "Exception when calling SnapTrade::Options.get_options_strategy_quote: #{e}"
@@ -214,11 +214,11 @@ option_strategy_id = "2bcd7cc3-e922-4976-bce1-9858296801c3"
214
214
  begin
215
215
  # Get latest market data of option strategy
216
216
  data, status_code, headers, response = SnapTrade::Options.get_options_strategy_quote_with_http_info(
217
- user_id: user_id,
218
- user_secret: user_secret,
219
- account_id: account_id,
220
- option_strategy_id: option_strategy_id,
221
- )
217
+ user_id: user_id,
218
+ user_secret: user_secret,
219
+ account_id: account_id,
220
+ option_strategy_id: option_strategy_id,
221
+ )
222
222
  p status_code # => 2xx
223
223
  p headers # => { ... }
224
224
  p data # => StrategyQuotes
@@ -259,10 +259,10 @@ account_id = "accountId_example"
259
259
  begin
260
260
  # Get the options holdings in the account
261
261
  result = SnapTrade::Options.list_option_holdings(
262
- user_id: user_id,
263
- user_secret: user_secret,
264
- account_id: account_id,
265
- )
262
+ user_id: user_id,
263
+ user_secret: user_secret,
264
+ account_id: account_id,
265
+ )
266
266
  p result
267
267
  rescue SnapTrade::ApiError => e
268
268
  puts "Exception when calling SnapTrade::Options.list_option_holdings: #{e}"
@@ -281,10 +281,10 @@ account_id = "accountId_example"
281
281
  begin
282
282
  # Get the options holdings in the account
283
283
  data, status_code, headers, response = SnapTrade::Options.list_option_holdings_with_http_info(
284
- user_id: user_id,
285
- user_secret: user_secret,
286
- account_id: account_id,
287
- )
284
+ user_id: user_id,
285
+ user_secret: user_secret,
286
+ account_id: account_id,
287
+ )
288
288
  p status_code # => 2xx
289
289
  p headers # => { ... }
290
290
  p data # => Array<OptionsPosition>
@@ -328,14 +328,14 @@ option_strategy_id = "2bcd7cc3-e922-4976-bce1-9858296801c3"
328
328
  begin
329
329
  # Place an option strategy order on the brokerage
330
330
  result = SnapTrade::Options.place_option_strategy(
331
- order_type: order_type,
332
- time_in_force: time_in_force,
333
- price: price,
334
- user_id: user_id,
335
- user_secret: user_secret,
336
- account_id: account_id,
337
- option_strategy_id: option_strategy_id,
338
- )
331
+ order_type: order_type,
332
+ time_in_force: time_in_force,
333
+ price: price,
334
+ user_id: user_id,
335
+ user_secret: user_secret,
336
+ account_id: account_id,
337
+ option_strategy_id: option_strategy_id,
338
+ )
339
339
  p result
340
340
  rescue SnapTrade::ApiError => e
341
341
  puts "Exception when calling SnapTrade::Options.place_option_strategy: #{e}"
@@ -358,14 +358,14 @@ option_strategy_id = "2bcd7cc3-e922-4976-bce1-9858296801c3"
358
358
  begin
359
359
  # Place an option strategy order on the brokerage
360
360
  data, status_code, headers, response = SnapTrade::Options.place_option_strategy_with_http_info(
361
- order_type: order_type,
362
- time_in_force: time_in_force,
363
- price: price,
364
- user_id: user_id,
365
- user_secret: user_secret,
366
- account_id: account_id,
367
- option_strategy_id: option_strategy_id,
368
- )
361
+ order_type: order_type,
362
+ time_in_force: time_in_force,
363
+ price: price,
364
+ user_id: user_id,
365
+ user_secret: user_secret,
366
+ account_id: account_id,
367
+ option_strategy_id: option_strategy_id,
368
+ )
369
369
  p status_code # => 2xx
370
370
  p headers # => { ... }
371
371
  p data # => StrategyOrderRecord
@@ -6,9 +6,9 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | Options information | [optional] |
8
8
  | **symbol** | **String** | | [optional] |
9
- | **option_symbol** | [**OptionsSymbol**](OptionsSymbol.md) | | [optional] |
9
+ | **option_symbol** | **OptionsSymbol** | | [optional] |
10
10
  | **price** | **Float** | Trade Price if limit or stop limit order | [optional] |
11
- | **currency** | [**Currency**](Currency.md) | | [optional] |
11
+ | **currency** | **Currency** | | [optional] |
12
12
  | **average_purchase_price** | **Float** | Average purchase price for this position | [optional] |
13
13
 
14
14
  ## Example
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **symbol** | [**BrokerageSymbol**](BrokerageSymbol.md) | | [optional] |
7
+ | **symbol** | **BrokerageSymbol** | | [optional] |
8
8
  | **price** | **Float** | Trade Price if limit or stop limit order | [optional] |
9
9
  | **units** | **Float** | | [optional] |
10
10
  | **currency** | [**OptionsPositionCurrency**](OptionsPositionCurrency.md) | | [optional] |
@@ -10,7 +10,7 @@
10
10
  | **strike_price** | **Float** | | |
11
11
  | **expiration_date** | **String** | | |
12
12
  | **is_mini_option** | **Boolean** | | [optional] |
13
- | **underlying_symbol** | [**UnderlyingSymbol**](UnderlyingSymbol.md) | | |
13
+ | **underlying_symbol** | **UnderlyingSymbol** | | |
14
14
  | **local_id** | **String** | | [optional] |
15
15
  | **exchange_id** | **String** | | [optional] |
16
16
 
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **total_equity_timeframe** | [**Array&lt;PastValue&gt;**](PastValue.md) | | [optional] |
8
- | **contributions** | [**NetContributions**](NetContributions.md) | | [optional] |
8
+ | **contributions** | **NetContributions** | | [optional] |
9
9
  | **contribution_timeframe** | [**Array&lt;PastValue&gt;**](PastValue.md) | | [optional] |
10
10
  | **contribution_timeframe_cumulative** | [**Array&lt;PastValue&gt;**](PastValue.md) | | [optional] |
11
11
  | **withdrawal_timeframe** | [**Array&lt;PastValue&gt;**](PastValue.md) | | [optional] |
@@ -14,7 +14,7 @@
14
14
  | **calculated_trades** | [**Array&lt;CalculatedTrade&gt;**](CalculatedTrade.md) | | [optional] |
15
15
  | **brokerage_authorizations** | [**Array&lt;BrokerageAuthorization&gt;**](BrokerageAuthorization.md) | | [optional] |
16
16
  | **accuracy** | **Float** | | [optional] |
17
- | **settings** | [**PortfolioGroupSettings**](PortfolioGroupSettings.md) | | [optional] |
17
+ | **settings** | **PortfolioGroupSettings** | | [optional] |
18
18
 
19
19
  ## Example
20
20
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **symbol** | [**UniversalSymbol**](UniversalSymbol.md) | | [optional] |
7
+ | **symbol** | **UniversalSymbol** | | [optional] |
8
8
  | **price** | **Float** | Last known market price for the symbol | [optional] |
9
9
  | **units** | **Integer** | | [optional] |
10
10
 
@@ -8,7 +8,7 @@
8
8
  | **cash_optimizer** | **Boolean** | | [optional] |
9
9
  | **notify_frequency** | **String** | | [optional] |
10
10
  | **drift_threshold** | **Float** | | [optional] |
11
- | **preferred_currency** | [**Currency**](Currency.md) | | [optional] |
11
+ | **preferred_currency** | **Currency** | | [optional] |
12
12
 
13
13
  ## Example
14
14
 
data/docs/Position.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **symbol** | [**PositionSymbol**](PositionSymbol.md) | | [optional] |
7
+ | **symbol** | **PositionSymbol** | | [optional] |
8
8
  | **units** | **Float** | | [optional] |
9
9
  | **price** | **Float** | Last known market price for the symbol | [optional] |
10
10
  | **open_pnl** | **Float** | | [optional] |
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | | [optional] |
8
8
  | **description** | **String** | | [optional] |
9
- | **symbol** | [**UniversalSymbol**](UniversalSymbol.md) | | [optional] |
9
+ | **symbol** | **UniversalSymbol** | | [optional] |
10
10
  | **local_id** | **String** | | [optional] |
11
11
  | **is_quotable** | **Boolean** | | [optional] |
12
12
  | **is_tradable** | **Boolean** | | [optional] |
@@ -33,8 +33,8 @@ currency_pair = "currencyPair_example"
33
33
  begin
34
34
  # Return the exchange rate of a currency pair
35
35
  result = SnapTrade::ReferenceData.get_currency_exchange_rate_pair(
36
- currency_pair: currency_pair,
37
- )
36
+ currency_pair: currency_pair,
37
+ )
38
38
  p result
39
39
  rescue SnapTrade::ApiError => e
40
40
  puts "Exception when calling SnapTrade::ReferenceData.get_currency_exchange_rate_pair: #{e}"
@@ -51,8 +51,8 @@ currency_pair = "currencyPair_example"
51
51
  begin
52
52
  # Return the exchange rate of a currency pair
53
53
  data, status_code, headers, response = SnapTrade::ReferenceData.get_currency_exchange_rate_pair_with_http_info(
54
- currency_pair: currency_pair,
55
- )
54
+ currency_pair: currency_pair,
55
+ )
56
56
  p status_code # => 2xx
57
57
  p headers # => { ... }
58
58
  p data # => ExchangeRatePairs
@@ -229,8 +229,8 @@ substring = "apple"
229
229
  begin
230
230
  # Search for symbols
231
231
  result = SnapTrade::ReferenceData.get_symbols(
232
- substring: substring,
233
- )
232
+ substring: substring,
233
+ )
234
234
  p result
235
235
  rescue SnapTrade::ApiError => e
236
236
  puts "Exception when calling SnapTrade::ReferenceData.get_symbols: #{e}"
@@ -247,8 +247,8 @@ substring = "apple"
247
247
  begin
248
248
  # Search for symbols
249
249
  data, status_code, headers, response = SnapTrade::ReferenceData.get_symbols_with_http_info(
250
- substring: substring,
251
- )
250
+ substring: substring,
251
+ )
252
252
  p status_code # => 2xx
253
253
  p headers # => { ... }
254
254
  p data # => Array<UniversalSymbol>
@@ -285,9 +285,9 @@ symbol_id = "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
285
285
  begin
286
286
  # Get details of a symbol by the ticker
287
287
  result = SnapTrade::ReferenceData.get_symbols_by_ticker(
288
- ticker: ticker,
289
- symbol_id: symbol_id,
290
- )
288
+ ticker: ticker,
289
+ symbol_id: symbol_id,
290
+ )
291
291
  p result
292
292
  rescue SnapTrade::ApiError => e
293
293
  puts "Exception when calling SnapTrade::ReferenceData.get_symbols_by_ticker: #{e}"
@@ -305,9 +305,9 @@ symbol_id = "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
305
305
  begin
306
306
  # Get details of a symbol by the ticker
307
307
  data, status_code, headers, response = SnapTrade::ReferenceData.get_symbols_by_ticker_with_http_info(
308
- ticker: ticker,
309
- symbol_id: symbol_id,
310
- )
308
+ ticker: ticker,
309
+ symbol_id: symbol_id,
310
+ )
311
311
  p status_code # => 2xx
312
312
  p headers # => { ... }
313
313
  p data # => UniversalSymbol
@@ -344,8 +344,8 @@ brokerage = "QUESTRADE,ALPACA"
344
344
  begin
345
345
  # List of all brokerage authorization types
346
346
  result = SnapTrade::ReferenceData.list_all_brokerage_authorization_type(
347
- brokerage: brokerage,
348
- )
347
+ brokerage: brokerage,
348
+ )
349
349
  p result
350
350
  rescue SnapTrade::ApiError => e
351
351
  puts "Exception when calling SnapTrade::ReferenceData.list_all_brokerage_authorization_type: #{e}"
@@ -362,8 +362,8 @@ brokerage = "QUESTRADE,ALPACA"
362
362
  begin
363
363
  # List of all brokerage authorization types
364
364
  data, status_code, headers, response = SnapTrade::ReferenceData.list_all_brokerage_authorization_type_with_http_info(
365
- brokerage: brokerage,
366
- )
365
+ brokerage: brokerage,
366
+ )
367
367
  p status_code # => 2xx
368
368
  p headers # => { ... }
369
369
  p data # => Array<BrokerageAuthorizationTypeReadOnly>
@@ -543,11 +543,11 @@ substring = "apple"
543
543
  begin
544
544
  # Search for symbols available in an account
545
545
  result = SnapTrade::ReferenceData.symbol_search_user_account(
546
- user_id: user_id,
547
- user_secret: user_secret,
548
- account_id: account_id,
549
- substring: substring,
550
- )
546
+ user_id: user_id,
547
+ user_secret: user_secret,
548
+ account_id: account_id,
549
+ substring: substring,
550
+ )
551
551
  p result
552
552
  rescue SnapTrade::ApiError => e
553
553
  puts "Exception when calling SnapTrade::ReferenceData.symbol_search_user_account: #{e}"
@@ -567,11 +567,11 @@ substring = "apple"
567
567
  begin
568
568
  # Search for symbols available in an account
569
569
  data, status_code, headers, response = SnapTrade::ReferenceData.symbol_search_user_account_with_http_info(
570
- user_id: user_id,
571
- user_secret: user_secret,
572
- account_id: account_id,
573
- substring: substring,
574
- )
570
+ user_id: user_id,
571
+ user_secret: user_secret,
572
+ account_id: account_id,
573
+ substring: substring,
574
+ )
575
575
  p status_code # => 2xx
576
576
  p headers # => { ... }
577
577
  p data # => Array<UniversalSymbol>
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | | [optional] |
8
- | **brokerage_authorization** | [**BrokerageAuthorization**](BrokerageAuthorization.md) | | [optional] |
8
+ | **brokerage_authorization** | **BrokerageAuthorization** | | [optional] |
9
9
  | **portfolio_group** | **String** | | [optional] |
10
10
  | **name** | **String** | | [optional] |
11
11
  | **number** | **String** | | [optional] |
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **strategy** | [**OptionStrategy**](OptionStrategy.md) | | [optional] |
7
+ | **strategy** | **OptionStrategy** | | [optional] |
8
8
  | **status** | [**StrategyOrderRecordStatus**](StrategyOrderRecordStatus.md) | | [optional] |
9
9
  | **filled_quantity** | **Float** | | [optional] |
10
10
  | **open_quantity** | **Float** | | [optional] |
@@ -4,12 +4,12 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **strategy** | [**OptionStrategy**](OptionStrategy.md) | | [optional] |
7
+ | **strategy** | **OptionStrategy** | | [optional] |
8
8
  | **open_price** | **Float** | Trade Price if limit or stop limit order | [optional] |
9
9
  | **bid_price** | **Float** | Trade Price if limit or stop limit order | [optional] |
10
10
  | **ask_price** | **Float** | Trade Price if limit or stop limit order | [optional] |
11
11
  | **volatility** | **Float** | | [optional] |
12
- | **greek** | [**StrategyQuotesGreek**](StrategyQuotesGreek.md) | | [optional] |
12
+ | **greek** | **StrategyQuotesGreek** | | [optional] |
13
13
 
14
14
  ## Example
15
15
 
data/docs/Symbol.md CHANGED
@@ -8,9 +8,9 @@
8
8
  | **symbol** | **String** | | [optional] |
9
9
  | **raw_symbol** | **String** | | [optional] |
10
10
  | **name** | **String** | | [optional] |
11
- | **currency** | [**Currency**](Currency.md) | | [optional] |
12
- | **exchange** | [**Exchange**](Exchange.md) | | [optional] |
13
- | **type** | [**SecurityType**](SecurityType.md) | | [optional] |
11
+ | **currency** | **Currency** | | [optional] |
12
+ | **exchange** | **Exchange** | | [optional] |
13
+ | **type** | **SecurityType** | | [optional] |
14
14
 
15
15
  ## Example
16
16
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **symbol** | [**UniversalSymbol**](UniversalSymbol.md) | | [optional] |
7
+ | **symbol** | **UniversalSymbol** | | [optional] |
8
8
  | **bid_price** | **Float** | | [optional] |
9
9
  | **ask_price** | **Float** | | [optional] |
10
10
  | **last_trade_price** | **Float** | | [optional] |