snaptrade 1.16.3 → 1.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +12 -20
  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/MonthlyDividends.md +1 -1
  31. data/docs/NetContributions.md +1 -1
  32. data/docs/NetDividend.md +1 -1
  33. data/docs/OptionStrategy.md +1 -1
  34. data/docs/OptionsApi.md +58 -58
  35. data/docs/OptionsHoldings.md +2 -2
  36. data/docs/OptionsPosition.md +1 -1
  37. data/docs/OptionsSymbol.md +1 -1
  38. data/docs/PastValue.md +1 -1
  39. data/docs/PerformanceCustom.md +1 -1
  40. data/docs/PortfolioGroupInfo.md +1 -1
  41. data/docs/PortfolioGroupPosition.md +1 -1
  42. data/docs/PortfolioGroupSettings.md +1 -1
  43. data/docs/Position.md +1 -1
  44. data/docs/PositionSymbol.md +1 -1
  45. data/docs/ReferenceDataApi.md +28 -28
  46. data/docs/SnapTradeHoldingsAccount.md +1 -1
  47. data/docs/StrategyOrderRecord.md +1 -1
  48. data/docs/StrategyQuotes.md +2 -2
  49. data/docs/SubPeriodReturnRate.md +2 -2
  50. data/docs/Symbol.md +3 -3
  51. data/docs/SymbolsQuotesInner.md +1 -1
  52. data/docs/TargetAsset.md +1 -1
  53. data/docs/Trade.md +3 -3
  54. data/docs/TradeExecutionStatus.md +3 -3
  55. data/docs/TradeImpact.md +2 -2
  56. data/docs/TradingApi.md +84 -84
  57. data/docs/TransactionsAndReportingApi.md +32 -32
  58. data/docs/TransactionsStatus.md +1 -1
  59. data/docs/UnderlyingSymbol.md +3 -3
  60. data/docs/UniversalActivity.md +5 -5
  61. data/docs/UniversalSymbol.md +7 -7
  62. data/docs/UniversalSymbolTicker.md +3 -3
  63. data/docs/UserSettings.md +1 -1
  64. data/header.png +0 -0
  65. data/lib/snaptrade/api/account_information_api.rb +0 -16
  66. data/lib/snaptrade/api/api_status_api.rb +0 -2
  67. data/lib/snaptrade/api/authentication_api.rb +0 -10
  68. data/lib/snaptrade/api/connections_api.rb +0 -8
  69. data/lib/snaptrade/api/error_logs_api.rb +0 -2
  70. data/lib/snaptrade/api/options_api.rb +0 -10
  71. data/lib/snaptrade/api/reference_data_api.rb +0 -22
  72. data/lib/snaptrade/api/trading_api.rb +0 -12
  73. data/lib/snaptrade/api/transactions_and_reporting_api.rb +0 -4
  74. data/lib/snaptrade/models/brokerage_symbol_symbol.rb +30 -0
  75. data/lib/snaptrade/models/universal_activity.rb +1 -1
  76. data/lib/snaptrade/models/universal_symbol.rb +30 -0
  77. data/lib/snaptrade/version.rb +1 -1
  78. metadata +4 -3
@@ -28,10 +28,10 @@ user_secret = "USERSECRET123"
28
28
  begin
29
29
  # Get brokerage authorization details
30
30
  result = SnapTrade::Connections.detail_brokerage_authorization(
31
- authorization_id: authorization_id,
32
- user_id: user_id,
33
- user_secret: user_secret,
34
- )
31
+ authorization_id: authorization_id,
32
+ user_id: user_id,
33
+ user_secret: user_secret,
34
+ )
35
35
  p result
36
36
  rescue SnapTrade::ApiError => e
37
37
  puts "Exception when calling SnapTrade::Connections.detail_brokerage_authorization: #{e}"
@@ -50,10 +50,10 @@ user_secret = "USERSECRET123"
50
50
  begin
51
51
  # Get brokerage authorization details
52
52
  data, status_code, headers, response = SnapTrade::Connections.detail_brokerage_authorization_with_http_info(
53
- authorization_id: authorization_id,
54
- user_id: user_id,
55
- user_secret: user_secret,
56
- )
53
+ authorization_id: authorization_id,
54
+ user_id: user_id,
55
+ user_secret: user_secret,
56
+ )
57
57
  p status_code # => 2xx
58
58
  p headers # => { ... }
59
59
  p data # => BrokerageAuthorization
@@ -92,9 +92,9 @@ user_secret = "USERSECRET123"
92
92
  begin
93
93
  # List all brokerage authorizations for the user
94
94
  result = SnapTrade::Connections.list_brokerage_authorizations(
95
- user_id: user_id,
96
- user_secret: user_secret,
97
- )
95
+ user_id: user_id,
96
+ user_secret: user_secret,
97
+ )
98
98
  p result
99
99
  rescue SnapTrade::ApiError => e
100
100
  puts "Exception when calling SnapTrade::Connections.list_brokerage_authorizations: #{e}"
@@ -112,9 +112,9 @@ user_secret = "USERSECRET123"
112
112
  begin
113
113
  # List all brokerage authorizations for the user
114
114
  data, status_code, headers, response = SnapTrade::Connections.list_brokerage_authorizations_with_http_info(
115
- user_id: user_id,
116
- user_secret: user_secret,
117
- )
115
+ user_id: user_id,
116
+ user_secret: user_secret,
117
+ )
118
118
  p status_code # => 2xx
119
119
  p headers # => { ... }
120
120
  p data # => Array<BrokerageAuthorization>
@@ -153,10 +153,10 @@ user_secret = "USERSECRET123"
153
153
  begin
154
154
  # Delete brokerage authorization
155
155
  SnapTrade::Connections.remove_brokerage_authorization(
156
- authorization_id: authorization_id,
157
- user_id: user_id,
158
- user_secret: user_secret,
159
- )
156
+ authorization_id: authorization_id,
157
+ user_id: user_id,
158
+ user_secret: user_secret,
159
+ )
160
160
  rescue SnapTrade::ApiError => e
161
161
  puts "Exception when calling SnapTrade::Connections.remove_brokerage_authorization: #{e}"
162
162
  end
@@ -174,10 +174,10 @@ user_secret = "USERSECRET123"
174
174
  begin
175
175
  # Delete brokerage authorization
176
176
  data, status_code, headers, response = SnapTrade::Connections.remove_brokerage_authorization_with_http_info(
177
- authorization_id: authorization_id,
178
- user_id: user_id,
179
- user_secret: user_secret,
180
- )
177
+ authorization_id: authorization_id,
178
+ user_id: user_id,
179
+ user_secret: user_secret,
180
+ )
181
181
  p status_code # => 2xx
182
182
  p headers # => { ... }
183
183
  p data # => nil
@@ -217,10 +217,10 @@ session_id = "917c8734-8470-4a3e-a18f-57c3f2ee6631,65e839a3-9103-4cfb-9b72-2071e
217
217
  begin
218
218
  # List all session events for the partner
219
219
  result = SnapTrade::Connections.session_events(
220
- partner_client_id: partner_client_id,
221
- user_id: user_id,
222
- session_id: session_id,
223
- )
220
+ partner_client_id: partner_client_id,
221
+ user_id: user_id,
222
+ session_id: session_id,
223
+ )
224
224
  p result
225
225
  rescue SnapTrade::ApiError => e
226
226
  puts "Exception when calling SnapTrade::Connections.session_events: #{e}"
@@ -239,10 +239,10 @@ session_id = "917c8734-8470-4a3e-a18f-57c3f2ee6631,65e839a3-9103-4cfb-9b72-2071e
239
239
  begin
240
240
  # List all session events for the partner
241
241
  data, status_code, headers, response = SnapTrade::Connections.session_events_with_http_info(
242
- partner_client_id: partner_client_id,
243
- user_id: user_id,
244
- session_id: session_id,
245
- )
242
+ partner_client_id: partner_client_id,
243
+ user_id: user_id,
244
+ session_id: session_id,
245
+ )
246
246
  p status_code # => 2xx
247
247
  p headers # => { ... }
248
248
  p data # => Array<ConnectionsSessionEvents200ResponseInner>
@@ -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
@@ -13,7 +13,7 @@
13
13
  require 'snaptrade'
14
14
 
15
15
  instance = SnapTrade::MonthlyDividends.new(
16
- date: Mon Jan 24 00:00:00 UTC 2022,
16
+ date: Sun Jan 23 16:00:00 PST 2022,
17
17
  dividends: null
18
18
  )
19
19
  ```
@@ -14,7 +14,7 @@
14
14
  require 'snaptrade'
15
15
 
16
16
  instance = SnapTrade::NetContributions.new(
17
- date: Mon Jan 24 00:00:00 UTC 2022,
17
+ date: Sun Jan 23 16:00:00 PST 2022,
18
18
  contributions: 524.74,
19
19
  currency: CAD
20
20
  )
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
 
data/docs/PastValue.md CHANGED
@@ -14,7 +14,7 @@
14
14
  require 'snaptrade'
15
15
 
16
16
  instance = SnapTrade::PastValue.new(
17
- date: Mon Jan 24 00:00:00 UTC 2022,
17
+ date: Sun Jan 23 16:00:00 PST 2022,
18
18
  value: 52.74,
19
19
  currency: CAD
20
20
  )
@@ -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] |