snaptrade 1.17.1 → 1.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11e9f2aea1f755578213104aa1cc126b653d6292c05c7e3e6288bebcfc8da73b
4
- data.tar.gz: b0940810de615ff56c4ef53edb152743c36b48d7a9e1a6ba9f7d2d242322a80c
3
+ metadata.gz: 9cb2560186a962f93599e524293007f29c92ac375304bd228b20ee2d8d865ffe
4
+ data.tar.gz: 02fb0326a264c8e70dc8fde4b4928b836da876498ac29ead5851550c517ec2ca
5
5
  SHA512:
6
- metadata.gz: 88953372bdf7e1b38de4a9e3bfdffe2b3cebdd3967afc8f60292fc5ab451ab79429c16dbbbbdae0eb378acded553ffb3551149fa078416ed1cc128bb9a0dd1d8
7
- data.tar.gz: ea4851e753695c173cbb9a9779334d3137b38c676388358d82015961c4d7d2852c7debf02cf33f24c1b801b0c8e9230c7742c780c2e2c9785bb3652b96040cbe
6
+ metadata.gz: 9199a3e0a885f87e9e57433a89464d69ea5053182b1e789a7605b5523d9afe94503b1e0832ed279f5d1a5a923a6ba44d6bfc570ef7569274b6b8e0c5fef776fb
7
+ data.tar.gz: 3bf20e964ee5ed6b875f1be424c9a2b5293a7c74eceeb7c3443edd48fa0107003d46c7f2af9a1f63a969dd89fd0b11021301ccf7cfc61c1e1db89e469f69ab63
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (1.17.0)
4
+ snaptrade (1.17.1)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
data/README.md CHANGED
@@ -9,7 +9,7 @@ For more information, please visit [https://snaptrade.com/](https://snaptrade.co
9
9
  Add to Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'snaptrade', '~> 1.17.1'
12
+ gem 'snaptrade', '~> 1.17.2'
13
13
  ```
14
14
 
15
15
  ## Getting Started
@@ -137,7 +137,7 @@ end
137
137
  | ---- | ---- | ----------- | ----- |
138
138
  | **user_id** | **String** | | |
139
139
  | **user_secret** | **String** | | |
140
- | **account_id** | **String** | The ID of the account get positions. | |
140
+ | **account_id** | **String** | The ID of the account to get balances. | |
141
141
 
142
142
  ### Return type
143
143
 
@@ -271,7 +271,7 @@ end
271
271
  | ---- | ---- | ----------- | ----- |
272
272
  | **user_id** | **String** | | |
273
273
  | **user_secret** | **String** | | |
274
- | **account_id** | **String** | The ID of the account get positions. | |
274
+ | **account_id** | **String** | The ID of the account to get orders. | |
275
275
  | **state** | **String** | defaults value is set to \&quot;all\&quot; | [optional] |
276
276
 
277
277
  ### Return type
@@ -337,7 +337,7 @@ end
337
337
  | ---- | ---- | ----------- | ----- |
338
338
  | **user_id** | **String** | | |
339
339
  | **user_secret** | **String** | | |
340
- | **account_id** | **String** | The ID of the account get positions. | |
340
+ | **account_id** | **String** | The ID of the account to get positions. | |
341
341
 
342
342
  ### Return type
343
343
 
data/docs/OptionsApi.md CHANGED
@@ -93,7 +93,7 @@ end
93
93
  | ---- | ---- | ----------- | ----- |
94
94
  | **user_id** | **String** | | |
95
95
  | **user_secret** | **String** | | |
96
- | **account_id** | **String** | The ID of the account get positions. | |
96
+ | **account_id** | **String** | The ID of the account to create the option strategy object in. | |
97
97
  | **options_get_option_strategy_request** | [**OptionsGetOptionStrategyRequest**](OptionsGetOptionStrategyRequest.md) | | |
98
98
 
99
99
  ### Return type
@@ -163,7 +163,7 @@ end
163
163
  | ---- | ---- | ----------- | ----- |
164
164
  | **user_id** | **String** | | |
165
165
  | **user_secret** | **String** | | |
166
- | **account_id** | **String** | The ID of the account get positions. | |
166
+ | **account_id** | **String** | The ID of the account to get the options chain from. | |
167
167
  | **symbol** | **String** | Universal symbol ID if symbol | |
168
168
 
169
169
  ### Return type
@@ -233,7 +233,7 @@ end
233
233
  | ---- | ---- | ----------- | ----- |
234
234
  | **user_id** | **String** | | |
235
235
  | **user_secret** | **String** | | |
236
- | **account_id** | **String** | The ID of the account get positions. | |
236
+ | **account_id** | **String** | The ID of the account the strategy will be placed in. | |
237
237
  | **option_strategy_id** | **String** | Option strategy id obtained from response when creating option strategy object | |
238
238
 
239
239
  ### Return type
@@ -299,7 +299,7 @@ end
299
299
  | ---- | ---- | ----------- | ----- |
300
300
  | **user_id** | **String** | | |
301
301
  | **user_secret** | **String** | | |
302
- | **account_id** | **String** | The ID of the account get positions. | |
302
+ | **account_id** | **String** | The ID of the account to fetch options holdings for. | |
303
303
 
304
304
  ### Return type
305
305
 
@@ -380,7 +380,7 @@ end
380
380
  | ---- | ---- | ----------- | ----- |
381
381
  | **user_id** | **String** | | |
382
382
  | **user_secret** | **String** | | |
383
- | **account_id** | **String** | The ID of the account get positions. | |
383
+ | **account_id** | **String** | The ID of the account to execute the strategy in. | |
384
384
  | **option_strategy_id** | **String** | Option strategy id obtained from response when creating option strategy object | |
385
385
  | **options_place_option_strategy_request** | [**OptionsPlaceOptionStrategyRequest**](OptionsPlaceOptionStrategyRequest.md) | | |
386
386
 
@@ -9,8 +9,6 @@
9
9
  | **units** | **Float** | | [optional] |
10
10
  | **currency** | [**OptionsPositionCurrency**](OptionsPositionCurrency.md) | | [optional] |
11
11
  | **average_purchase_price** | **Float** | Average purchase price for this position | [optional] |
12
- | **open_pnl** | **Float** | | [optional] |
13
- | **fractional_units** | **Float** | Deprecated, use the units field for both fractional and integer units going forward | [optional] |
14
12
 
15
13
  ## Example
16
14
 
@@ -22,9 +20,7 @@ instance = SnapTrade::OptionsPosition.new(
22
20
  price: 31.33,
23
21
  units: 10,
24
22
  currency: null,
25
- average_purchase_price: 108.3353,
26
- open_pnl: 0.44,
27
- fractional_units: 1.44
23
+ average_purchase_price: 108.3353
28
24
  )
29
25
  ```
30
26
 
@@ -586,7 +586,7 @@ end
586
586
  | ---- | ---- | ----------- | ----- |
587
587
  | **user_id** | **String** | | |
588
588
  | **user_secret** | **String** | | |
589
- | **account_id** | **String** | The ID of the account get positions. | |
589
+ | **account_id** | **String** | The ID of the account to search for symbols within. | |
590
590
  | **symbol_query** | [**SymbolQuery**](SymbolQuery.md) | | [optional] |
591
591
 
592
592
  ### Return type
data/docs/TradingApi.md CHANGED
@@ -74,7 +74,7 @@ end
74
74
  | ---- | ---- | ----------- | ----- |
75
75
  | **user_id** | **String** | | |
76
76
  | **user_secret** | **String** | | |
77
- | **account_id** | **String** | The ID of the account get positions. | |
77
+ | **account_id** | **String** | The ID of the account to cancel the order in. | |
78
78
  | **trading_cancel_user_account_order_request** | [**TradingCancelUserAccountOrderRequest**](TradingCancelUserAccountOrderRequest.md) | The Order ID to be canceled | |
79
79
 
80
80
  ### Return type
@@ -115,7 +115,7 @@ module SnapTrade
115
115
  # List account balances
116
116
  # @param user_id [String]
117
117
  # @param user_secret [String]
118
- # @param account_id [String] The ID of the account get positions.
118
+ # @param account_id [String] The ID of the account to get balances.
119
119
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
120
120
  def get_user_account_balance(user_id:, user_secret:, account_id:, extra: {})
121
121
  data, _status_code, _headers = get_user_account_balance_with_http_info_impl(user_id, user_secret, account_id, extra)
@@ -125,7 +125,7 @@ module SnapTrade
125
125
  # List account balances
126
126
  # @param user_id [String]
127
127
  # @param user_secret [String]
128
- # @param account_id [String] The ID of the account get positions.
128
+ # @param account_id [String] The ID of the account to get balances.
129
129
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
130
130
  def get_user_account_balance_with_http_info(user_id:, user_secret:, account_id:, extra: {})
131
131
  get_user_account_balance_with_http_info_impl(user_id, user_secret, account_id, extra)
@@ -134,7 +134,7 @@ module SnapTrade
134
134
  # List account balances
135
135
  # @param user_id [String]
136
136
  # @param user_secret [String]
137
- # @param account_id [String] The ID of the account get positions.
137
+ # @param account_id [String] The ID of the account to get balances.
138
138
  # @param [Hash] opts the optional parameters
139
139
  # @return [Array<Balance>]
140
140
  def get_user_account_balance_impl(user_id, user_secret, account_id, opts = {})
@@ -145,7 +145,7 @@ module SnapTrade
145
145
  # List account balances
146
146
  # @param user_id [String]
147
147
  # @param user_secret [String]
148
- # @param account_id [String] The ID of the account get positions.
148
+ # @param account_id [String] The ID of the account to get balances.
149
149
  # @param [Hash] opts the optional parameters
150
150
  # @return [Array<(Array<Balance>, Integer, Hash)>] Array<Balance> data, response status code and response headers
151
151
  def get_user_account_balance_with_http_info_impl(user_id, user_secret, account_id, opts = {})
@@ -305,7 +305,7 @@ module SnapTrade
305
305
  # Get history of orders placed in account
306
306
  # @param user_id [String]
307
307
  # @param user_secret [String]
308
- # @param account_id [String] The ID of the account get positions.
308
+ # @param account_id [String] The ID of the account to get orders.
309
309
  # @param state [String] defaults value is set to \&quot;all\&quot;
310
310
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
311
311
  def get_user_account_orders(user_id:, user_secret:, account_id:, state: SENTINEL, extra: {})
@@ -317,7 +317,7 @@ module SnapTrade
317
317
  # Get history of orders placed in account
318
318
  # @param user_id [String]
319
319
  # @param user_secret [String]
320
- # @param account_id [String] The ID of the account get positions.
320
+ # @param account_id [String] The ID of the account to get orders.
321
321
  # @param state [String] defaults value is set to \&quot;all\&quot;
322
322
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
323
323
  def get_user_account_orders_with_http_info(user_id:, user_secret:, account_id:, state: SENTINEL, extra: {})
@@ -328,7 +328,7 @@ module SnapTrade
328
328
  # Get history of orders placed in account
329
329
  # @param user_id [String]
330
330
  # @param user_secret [String]
331
- # @param account_id [String] The ID of the account get positions.
331
+ # @param account_id [String] The ID of the account to get orders.
332
332
  # @param [Hash] opts the optional parameters
333
333
  # @option opts [String] :state defaults value is set to \&quot;all\&quot;
334
334
  # @return [Array<AccountOrderRecord>]
@@ -340,7 +340,7 @@ module SnapTrade
340
340
  # Get history of orders placed in account
341
341
  # @param user_id [String]
342
342
  # @param user_secret [String]
343
- # @param account_id [String] The ID of the account get positions.
343
+ # @param account_id [String] The ID of the account to get orders.
344
344
  # @param [Hash] opts the optional parameters
345
345
  # @option opts [String] :state defaults value is set to \&quot;all\&quot;
346
346
  # @return [Array<(Array<AccountOrderRecord>, Integer, Hash)>] Array<AccountOrderRecord> data, response status code and response headers
@@ -411,7 +411,7 @@ module SnapTrade
411
411
  # List account positions
412
412
  # @param user_id [String]
413
413
  # @param user_secret [String]
414
- # @param account_id [String] The ID of the account get positions.
414
+ # @param account_id [String] The ID of the account to get positions.
415
415
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
416
416
  def get_user_account_positions(user_id:, user_secret:, account_id:, extra: {})
417
417
  data, _status_code, _headers = get_user_account_positions_with_http_info_impl(user_id, user_secret, account_id, extra)
@@ -421,7 +421,7 @@ module SnapTrade
421
421
  # List account positions
422
422
  # @param user_id [String]
423
423
  # @param user_secret [String]
424
- # @param account_id [String] The ID of the account get positions.
424
+ # @param account_id [String] The ID of the account to get positions.
425
425
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
426
426
  def get_user_account_positions_with_http_info(user_id:, user_secret:, account_id:, extra: {})
427
427
  get_user_account_positions_with_http_info_impl(user_id, user_secret, account_id, extra)
@@ -430,7 +430,7 @@ module SnapTrade
430
430
  # List account positions
431
431
  # @param user_id [String]
432
432
  # @param user_secret [String]
433
- # @param account_id [String] The ID of the account get positions.
433
+ # @param account_id [String] The ID of the account to get positions.
434
434
  # @param [Hash] opts the optional parameters
435
435
  # @return [Array<Position>]
436
436
  def get_user_account_positions_impl(user_id, user_secret, account_id, opts = {})
@@ -441,7 +441,7 @@ module SnapTrade
441
441
  # List account positions
442
442
  # @param user_id [String]
443
443
  # @param user_secret [String]
444
- # @param account_id [String] The ID of the account get positions.
444
+ # @param account_id [String] The ID of the account to get positions.
445
445
  # @param [Hash] opts the optional parameters
446
446
  # @return [Array<(Array<Position>, Integer, Hash)>] Array<Position> data, response status code and response headers
447
447
  def get_user_account_positions_with_http_info_impl(user_id, user_secret, account_id, opts = {})
@@ -24,7 +24,7 @@ module SnapTrade
24
24
  # @param strategy_type [StrategyType]
25
25
  # @param user_id [String]
26
26
  # @param user_secret [String]
27
- # @param account_id [String] The ID of the account get positions.
27
+ # @param account_id [String] The ID of the account to create the option strategy object in.
28
28
  # @param body [OptionsGetOptionStrategyRequest]
29
29
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
30
30
  def get_option_strategy(underlying_symbol_id:, legs:, strategy_type:, user_id:, user_secret:, account_id:, extra: {})
@@ -43,7 +43,7 @@ module SnapTrade
43
43
  # @param strategy_type [StrategyType]
44
44
  # @param user_id [String]
45
45
  # @param user_secret [String]
46
- # @param account_id [String] The ID of the account get positions.
46
+ # @param account_id [String] The ID of the account to create the option strategy object in.
47
47
  # @param body [OptionsGetOptionStrategyRequest]
48
48
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
49
49
  def get_option_strategy_with_http_info(underlying_symbol_id:, legs:, strategy_type:, user_id:, user_secret:, account_id:, extra: {})
@@ -58,7 +58,7 @@ module SnapTrade
58
58
  # Creates an option strategy object that will be used to place an option strategy order
59
59
  # @param user_id [String]
60
60
  # @param user_secret [String]
61
- # @param account_id [String] The ID of the account get positions.
61
+ # @param account_id [String] The ID of the account to create the option strategy object in.
62
62
  # @param options_get_option_strategy_request [OptionsGetOptionStrategyRequest]
63
63
  # @param [Hash] opts the optional parameters
64
64
  # @return [StrategyQuotes]
@@ -70,7 +70,7 @@ module SnapTrade
70
70
  # Creates an option strategy object that will be used to place an option strategy order
71
71
  # @param user_id [String]
72
72
  # @param user_secret [String]
73
- # @param account_id [String] The ID of the account get positions.
73
+ # @param account_id [String] The ID of the account to create the option strategy object in.
74
74
  # @param options_get_option_strategy_request [OptionsGetOptionStrategyRequest]
75
75
  # @param [Hash] opts the optional parameters
76
76
  # @return [Array<(StrategyQuotes, Integer, Hash)>] StrategyQuotes data, response status code and response headers
@@ -145,7 +145,7 @@ module SnapTrade
145
145
  # Get the options chain
146
146
  # @param user_id [String]
147
147
  # @param user_secret [String]
148
- # @param account_id [String] The ID of the account get positions.
148
+ # @param account_id [String] The ID of the account to get the options chain from.
149
149
  # @param symbol [String] Universal symbol ID if symbol
150
150
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
151
151
  def get_options_chain(user_id:, user_secret:, account_id:, symbol:, extra: {})
@@ -156,7 +156,7 @@ module SnapTrade
156
156
  # Get the options chain
157
157
  # @param user_id [String]
158
158
  # @param user_secret [String]
159
- # @param account_id [String] The ID of the account get positions.
159
+ # @param account_id [String] The ID of the account to get the options chain from.
160
160
  # @param symbol [String] Universal symbol ID if symbol
161
161
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
162
162
  def get_options_chain_with_http_info(user_id:, user_secret:, account_id:, symbol:, extra: {})
@@ -166,7 +166,7 @@ module SnapTrade
166
166
  # Get the options chain
167
167
  # @param user_id [String]
168
168
  # @param user_secret [String]
169
- # @param account_id [String] The ID of the account get positions.
169
+ # @param account_id [String] The ID of the account to get the options chain from.
170
170
  # @param symbol [String] Universal symbol ID if symbol
171
171
  # @param [Hash] opts the optional parameters
172
172
  # @return [Array<OptionChainInner>]
@@ -178,7 +178,7 @@ module SnapTrade
178
178
  # Get the options chain
179
179
  # @param user_id [String]
180
180
  # @param user_secret [String]
181
- # @param account_id [String] The ID of the account get positions.
181
+ # @param account_id [String] The ID of the account to get the options chain from.
182
182
  # @param symbol [String] Universal symbol ID if symbol
183
183
  # @param [Hash] opts the optional parameters
184
184
  # @return [Array<(Array<OptionChainInner>, Integer, Hash)>] Array<OptionChainInner> data, response status code and response headers
@@ -249,7 +249,7 @@ module SnapTrade
249
249
  # Get latest market data of option strategy
250
250
  # @param user_id [String]
251
251
  # @param user_secret [String]
252
- # @param account_id [String] The ID of the account get positions.
252
+ # @param account_id [String] The ID of the account the strategy will be placed in.
253
253
  # @param option_strategy_id [String] Option strategy id obtained from response when creating option strategy object
254
254
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
255
255
  def get_options_strategy_quote(user_id:, user_secret:, account_id:, option_strategy_id:, extra: {})
@@ -260,7 +260,7 @@ module SnapTrade
260
260
  # Get latest market data of option strategy
261
261
  # @param user_id [String]
262
262
  # @param user_secret [String]
263
- # @param account_id [String] The ID of the account get positions.
263
+ # @param account_id [String] The ID of the account the strategy will be placed in.
264
264
  # @param option_strategy_id [String] Option strategy id obtained from response when creating option strategy object
265
265
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
266
266
  def get_options_strategy_quote_with_http_info(user_id:, user_secret:, account_id:, option_strategy_id:, extra: {})
@@ -270,7 +270,7 @@ module SnapTrade
270
270
  # Get latest market data of option strategy
271
271
  # @param user_id [String]
272
272
  # @param user_secret [String]
273
- # @param account_id [String] The ID of the account get positions.
273
+ # @param account_id [String] The ID of the account the strategy will be placed in.
274
274
  # @param option_strategy_id [String] Option strategy id obtained from response when creating option strategy object
275
275
  # @param [Hash] opts the optional parameters
276
276
  # @return [StrategyQuotes]
@@ -282,7 +282,7 @@ module SnapTrade
282
282
  # Get latest market data of option strategy
283
283
  # @param user_id [String]
284
284
  # @param user_secret [String]
285
- # @param account_id [String] The ID of the account get positions.
285
+ # @param account_id [String] The ID of the account the strategy will be placed in.
286
286
  # @param option_strategy_id [String] Option strategy id obtained from response when creating option strategy object
287
287
  # @param [Hash] opts the optional parameters
288
288
  # @return [Array<(StrategyQuotes, Integer, Hash)>] StrategyQuotes data, response status code and response headers
@@ -352,7 +352,7 @@ module SnapTrade
352
352
  # Get the options holdings in the account
353
353
  # @param user_id [String]
354
354
  # @param user_secret [String]
355
- # @param account_id [String] The ID of the account get positions.
355
+ # @param account_id [String] The ID of the account to fetch options holdings for.
356
356
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
357
357
  def list_option_holdings(user_id:, user_secret:, account_id:, extra: {})
358
358
  data, _status_code, _headers = list_option_holdings_with_http_info_impl(user_id, user_secret, account_id, extra)
@@ -362,7 +362,7 @@ module SnapTrade
362
362
  # Get the options holdings in the account
363
363
  # @param user_id [String]
364
364
  # @param user_secret [String]
365
- # @param account_id [String] The ID of the account get positions.
365
+ # @param account_id [String] The ID of the account to fetch options holdings for.
366
366
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
367
367
  def list_option_holdings_with_http_info(user_id:, user_secret:, account_id:, extra: {})
368
368
  list_option_holdings_with_http_info_impl(user_id, user_secret, account_id, extra)
@@ -371,7 +371,7 @@ module SnapTrade
371
371
  # Get the options holdings in the account
372
372
  # @param user_id [String]
373
373
  # @param user_secret [String]
374
- # @param account_id [String] The ID of the account get positions.
374
+ # @param account_id [String] The ID of the account to fetch options holdings for.
375
375
  # @param [Hash] opts the optional parameters
376
376
  # @return [Array<OptionsPosition>]
377
377
  def list_option_holdings_impl(user_id, user_secret, account_id, opts = {})
@@ -382,7 +382,7 @@ module SnapTrade
382
382
  # Get the options holdings in the account
383
383
  # @param user_id [String]
384
384
  # @param user_secret [String]
385
- # @param account_id [String] The ID of the account get positions.
385
+ # @param account_id [String] The ID of the account to fetch options holdings for.
386
386
  # @param [Hash] opts the optional parameters
387
387
  # @return [Array<(Array<OptionsPosition>, Integer, Hash)>] Array<OptionsPosition> data, response status code and response headers
388
388
  def list_option_holdings_with_http_info_impl(user_id, user_secret, account_id, opts = {})
@@ -450,7 +450,7 @@ module SnapTrade
450
450
  # @param price [Float] Trade Price if limit or stop limit order
451
451
  # @param user_id [String]
452
452
  # @param user_secret [String]
453
- # @param account_id [String] The ID of the account get positions.
453
+ # @param account_id [String] The ID of the account to execute the strategy in.
454
454
  # @param option_strategy_id [String] Option strategy id obtained from response when creating option strategy object
455
455
  # @param body [OptionsPlaceOptionStrategyRequest]
456
456
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
@@ -470,7 +470,7 @@ module SnapTrade
470
470
  # @param price [Float] Trade Price if limit or stop limit order
471
471
  # @param user_id [String]
472
472
  # @param user_secret [String]
473
- # @param account_id [String] The ID of the account get positions.
473
+ # @param account_id [String] The ID of the account to execute the strategy in.
474
474
  # @param option_strategy_id [String] Option strategy id obtained from response when creating option strategy object
475
475
  # @param body [OptionsPlaceOptionStrategyRequest]
476
476
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
@@ -486,7 +486,7 @@ module SnapTrade
486
486
  # Place an option strategy order on the brokerage
487
487
  # @param user_id [String]
488
488
  # @param user_secret [String]
489
- # @param account_id [String] The ID of the account get positions.
489
+ # @param account_id [String] The ID of the account to execute the strategy in.
490
490
  # @param option_strategy_id [String] Option strategy id obtained from response when creating option strategy object
491
491
  # @param options_place_option_strategy_request [OptionsPlaceOptionStrategyRequest]
492
492
  # @param [Hash] opts the optional parameters
@@ -499,7 +499,7 @@ module SnapTrade
499
499
  # Place an option strategy order on the brokerage
500
500
  # @param user_id [String]
501
501
  # @param user_secret [String]
502
- # @param account_id [String] The ID of the account get positions.
502
+ # @param account_id [String] The ID of the account to execute the strategy in.
503
503
  # @param option_strategy_id [String] Option strategy id obtained from response when creating option strategy object
504
504
  # @param options_place_option_strategy_request [OptionsPlaceOptionStrategyRequest]
505
505
  # @param [Hash] opts the optional parameters
@@ -758,7 +758,7 @@ module SnapTrade
758
758
  # Search for symbols available in an account
759
759
  # @param user_id [String]
760
760
  # @param user_secret [String]
761
- # @param account_id [String] The ID of the account get positions.
761
+ # @param account_id [String] The ID of the account to search for symbols within.
762
762
  # @param substring [String]
763
763
  # @param body [SymbolQuery]
764
764
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
@@ -773,7 +773,7 @@ module SnapTrade
773
773
  # Search for symbols available in an account
774
774
  # @param user_id [String]
775
775
  # @param user_secret [String]
776
- # @param account_id [String] The ID of the account get positions.
776
+ # @param account_id [String] The ID of the account to search for symbols within.
777
777
  # @param substring [String]
778
778
  # @param body [SymbolQuery]
779
779
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
@@ -787,7 +787,7 @@ module SnapTrade
787
787
  # Search for symbols available in an account
788
788
  # @param user_id [String]
789
789
  # @param user_secret [String]
790
- # @param account_id [String] The ID of the account get positions.
790
+ # @param account_id [String] The ID of the account to search for symbols within.
791
791
  # @param [Hash] opts the optional parameters
792
792
  # @option opts [SymbolQuery] :symbol_query
793
793
  # @return [Array<UniversalSymbol>]
@@ -799,7 +799,7 @@ module SnapTrade
799
799
  # Search for symbols available in an account
800
800
  # @param user_id [String]
801
801
  # @param user_secret [String]
802
- # @param account_id [String] The ID of the account get positions.
802
+ # @param account_id [String] The ID of the account to search for symbols within.
803
803
  # @param [Hash] opts the optional parameters
804
804
  # @option opts [SymbolQuery] :symbol_query
805
805
  # @return [Array<(Array<UniversalSymbol>, Integer, Hash)>] Array<UniversalSymbol> data, response status code and response headers
@@ -21,7 +21,7 @@ module SnapTrade
21
21
  # Cancel open order in account
22
22
  # @param user_id [String]
23
23
  # @param user_secret [String]
24
- # @param account_id [String] The ID of the account get positions.
24
+ # @param account_id [String] The ID of the account to cancel the order in.
25
25
  # @param brokerage_order_id [String]
26
26
  # @param body [TradingCancelUserAccountOrderRequest] The Order ID to be canceled
27
27
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
@@ -36,7 +36,7 @@ module SnapTrade
36
36
  # Cancel open order in account
37
37
  # @param user_id [String]
38
38
  # @param user_secret [String]
39
- # @param account_id [String] The ID of the account get positions.
39
+ # @param account_id [String] The ID of the account to cancel the order in.
40
40
  # @param brokerage_order_id [String]
41
41
  # @param body [TradingCancelUserAccountOrderRequest] The Order ID to be canceled
42
42
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
@@ -50,7 +50,7 @@ module SnapTrade
50
50
  # Cancel open order in account
51
51
  # @param user_id [String]
52
52
  # @param user_secret [String]
53
- # @param account_id [String] The ID of the account get positions.
53
+ # @param account_id [String] The ID of the account to cancel the order in.
54
54
  # @param trading_cancel_user_account_order_request [TradingCancelUserAccountOrderRequest] The Order ID to be canceled
55
55
  # @param [Hash] opts the optional parameters
56
56
  # @return [AccountOrderRecord]
@@ -62,7 +62,7 @@ module SnapTrade
62
62
  # Cancel open order in account
63
63
  # @param user_id [String]
64
64
  # @param user_secret [String]
65
- # @param account_id [String] The ID of the account get positions.
65
+ # @param account_id [String] The ID of the account to cancel the order in.
66
66
  # @param trading_cancel_user_account_order_request [TradingCancelUserAccountOrderRequest] The Order ID to be canceled
67
67
  # @param [Hash] opts the optional parameters
68
68
  # @return [Array<(AccountOrderRecord, Integer, Hash)>] AccountOrderRecord data, response status code and response headers
@@ -26,11 +26,6 @@ module SnapTrade
26
26
  # Average purchase price for this position
27
27
  attr_accessor :average_purchase_price
28
28
 
29
- attr_accessor :open_pnl
30
-
31
- # Deprecated, use the units field for both fractional and integer units going forward
32
- attr_accessor :fractional_units
33
-
34
29
  # Attribute mapping from ruby-style variable name to JSON key.
35
30
  def self.attribute_map
36
31
  {
@@ -38,9 +33,7 @@ module SnapTrade
38
33
  :'price' => :'price',
39
34
  :'units' => :'units',
40
35
  :'currency' => :'currency',
41
- :'average_purchase_price' => :'average_purchase_price',
42
- :'open_pnl' => :'open_pnl',
43
- :'fractional_units' => :'fractional_units'
36
+ :'average_purchase_price' => :'average_purchase_price'
44
37
  }
45
38
  end
46
39
 
@@ -56,9 +49,7 @@ module SnapTrade
56
49
  :'price' => :'Float',
57
50
  :'units' => :'Float',
58
51
  :'currency' => :'OptionsPositionCurrency',
59
- :'average_purchase_price' => :'Float',
60
- :'open_pnl' => :'Float',
61
- :'fractional_units' => :'Float'
52
+ :'average_purchase_price' => :'Float'
62
53
  }
63
54
  end
64
55
 
@@ -67,9 +58,7 @@ module SnapTrade
67
58
  Set.new([
68
59
  :'price',
69
60
  :'currency',
70
- :'average_purchase_price',
71
- :'open_pnl',
72
- :'fractional_units'
61
+ :'average_purchase_price'
73
62
  ])
74
63
  end
75
64
 
@@ -107,14 +96,6 @@ module SnapTrade
107
96
  if attributes.key?(:'average_purchase_price')
108
97
  self.average_purchase_price = attributes[:'average_purchase_price']
109
98
  end
110
-
111
- if attributes.key?(:'open_pnl')
112
- self.open_pnl = attributes[:'open_pnl']
113
- end
114
-
115
- if attributes.key?(:'fractional_units')
116
- self.fractional_units = attributes[:'fractional_units']
117
- end
118
99
  end
119
100
 
120
101
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -139,9 +120,7 @@ module SnapTrade
139
120
  price == o.price &&
140
121
  units == o.units &&
141
122
  currency == o.currency &&
142
- average_purchase_price == o.average_purchase_price &&
143
- open_pnl == o.open_pnl &&
144
- fractional_units == o.fractional_units
123
+ average_purchase_price == o.average_purchase_price
145
124
  end
146
125
 
147
126
  # @see the `==` method
@@ -153,7 +132,7 @@ module SnapTrade
153
132
  # Calculates hash code according to all attributes.
154
133
  # @return [Integer] Hash code
155
134
  def hash
156
- [symbol, price, units, currency, average_purchase_price, open_pnl, fractional_units].hash
135
+ [symbol, price, units, currency, average_purchase_price].hash
157
136
  end
158
137
 
159
138
  # Builds the object from hash
@@ -9,5 +9,5 @@ Contact: api@snaptrade.com
9
9
  =end
10
10
 
11
11
  module SnapTrade
12
- VERSION = '1.17.1'
12
+ VERSION = '1.17.2'
13
13
  end
@@ -45,7 +45,7 @@ describe 'AccountInformationApi' do
45
45
  # List account balances
46
46
  # @param user_id
47
47
  # @param user_secret
48
- # @param account_id The ID of the account get positions.
48
+ # @param account_id The ID of the account to get balances.
49
49
  # @param [Hash] opts the optional parameters
50
50
  # @return [Array<Balance>]
51
51
  describe 'get_user_account_balance test' do
@@ -71,7 +71,7 @@ describe 'AccountInformationApi' do
71
71
  # Get history of orders placed in account
72
72
  # @param user_id
73
73
  # @param user_secret
74
- # @param account_id The ID of the account get positions.
74
+ # @param account_id The ID of the account to get orders.
75
75
  # @param [Hash] opts the optional parameters
76
76
  # @option opts [String] :state defaults value is set to \&quot;all\&quot;
77
77
  # @return [Array<AccountOrderRecord>]
@@ -85,7 +85,7 @@ describe 'AccountInformationApi' do
85
85
  # List account positions
86
86
  # @param user_id
87
87
  # @param user_secret
88
- # @param account_id The ID of the account get positions.
88
+ # @param account_id The ID of the account to get positions.
89
89
  # @param [Hash] opts the optional parameters
90
90
  # @return [Array<Position>]
91
91
  describe 'get_user_account_positions test' do
@@ -32,7 +32,7 @@ describe 'OptionsApi' do
32
32
  # Creates an option strategy object that will be used to place an option strategy order
33
33
  # @param user_id
34
34
  # @param user_secret
35
- # @param account_id The ID of the account get positions.
35
+ # @param account_id The ID of the account to create the option strategy object in.
36
36
  # @param options_get_option_strategy_request
37
37
  # @param [Hash] opts the optional parameters
38
38
  # @return [StrategyQuotes]
@@ -46,7 +46,7 @@ describe 'OptionsApi' do
46
46
  # Get the options chain
47
47
  # @param user_id
48
48
  # @param user_secret
49
- # @param account_id The ID of the account get positions.
49
+ # @param account_id The ID of the account to get the options chain from.
50
50
  # @param symbol Universal symbol ID if symbol
51
51
  # @param [Hash] opts the optional parameters
52
52
  # @return [Array<OptionChainInner>]
@@ -60,7 +60,7 @@ describe 'OptionsApi' do
60
60
  # Get latest market data of option strategy
61
61
  # @param user_id
62
62
  # @param user_secret
63
- # @param account_id The ID of the account get positions.
63
+ # @param account_id The ID of the account the strategy will be placed in.
64
64
  # @param option_strategy_id Option strategy id obtained from response when creating option strategy object
65
65
  # @param [Hash] opts the optional parameters
66
66
  # @return [StrategyQuotes]
@@ -74,7 +74,7 @@ describe 'OptionsApi' do
74
74
  # Get the options holdings in the account
75
75
  # @param user_id
76
76
  # @param user_secret
77
- # @param account_id The ID of the account get positions.
77
+ # @param account_id The ID of the account to fetch options holdings for.
78
78
  # @param [Hash] opts the optional parameters
79
79
  # @return [Array<OptionsPosition>]
80
80
  describe 'list_option_holdings test' do
@@ -87,7 +87,7 @@ describe 'OptionsApi' do
87
87
  # Place an option strategy order on the brokerage
88
88
  # @param user_id
89
89
  # @param user_secret
90
- # @param account_id The ID of the account get positions.
90
+ # @param account_id The ID of the account to execute the strategy in.
91
91
  # @param option_strategy_id Option strategy id obtained from response when creating option strategy object
92
92
  # @param options_place_option_strategy_request
93
93
  # @param [Hash] opts the optional parameters
@@ -137,7 +137,7 @@ describe 'ReferenceDataApi' do
137
137
  # Search for symbols available in an account
138
138
  # @param user_id
139
139
  # @param user_secret
140
- # @param account_id The ID of the account get positions.
140
+ # @param account_id The ID of the account to search for symbols within.
141
141
  # @param [Hash] opts the optional parameters
142
142
  # @option opts [SymbolQuery] :symbol_query
143
143
  # @return [Array<UniversalSymbol>]
@@ -32,7 +32,7 @@ describe 'TradingApi' do
32
32
  # Cancel open order in account
33
33
  # @param user_id
34
34
  # @param user_secret
35
- # @param account_id The ID of the account get positions.
35
+ # @param account_id The ID of the account to cancel the order in.
36
36
  # @param trading_cancel_user_account_order_request The Order ID to be canceled
37
37
  # @param [Hash] opts the optional parameters
38
38
  # @return [AccountOrderRecord]
@@ -51,16 +51,4 @@ describe SnapTrade::OptionsPosition do
51
51
  end
52
52
  end
53
53
 
54
- describe 'test attribute "open_pnl"' do
55
- it 'should work' do
56
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
57
- end
58
- end
59
-
60
- describe 'test attribute "fractional_units"' do
61
- it 'should work' do
62
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
63
- end
64
- end
65
-
66
54
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snaptrade
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.17.1
4
+ version: 1.17.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-11 00:00:00.000000000 Z
11
+ date: 2023-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday