snaptrade 2.0.175 → 2.0.177
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 +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +45 -45
- data/lib/snaptrade/api/authentication_api.rb +2 -2
- data/lib/snaptrade/api/options_api.rb +0 -114
- data/lib/snaptrade/api/trading_api.rb +114 -0
- data/lib/snaptrade/models/account_order_record.rb +3 -3
- data/lib/snaptrade/models/account_universal_activity.rb +1 -1
- data/lib/snaptrade/models/order_updated_response_order.rb +3 -3
- data/lib/snaptrade/models/snap_trade_login_user_request_body.rb +1 -1
- data/lib/snaptrade/version.rb +1 -1
- data/spec/api/options_api_spec.rb +0 -15
- data/spec/api/trading_api_spec.rb +15 -0
- metadata +157 -157
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 145ae4518b7b0e44275a6b3c4525b6eb25444a9a10390a7633938a48a8e3e236
|
|
4
|
+
data.tar.gz: 8323daae72f0ed2a53766695e119b2c25f5b7138979e7f966345bef220ac5b22
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 259f0eedd0b13eec469c44b73a6b249aa688693bf9d87305ff4f6e4627f84d68d81e4b1d58f8915c9eedbc9148129531d89f44cdd236a45579c5fdec023c1c62
|
|
7
|
+
data.tar.gz: 5b6607cfe8915f092dc53a2decc56b543f40ca6c2ffeb7fe2c2ce870f0947ad2c6f78d9dbf1b82373d505441d27e8458979cd27d24d16975604aa87ec18945df
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
snaptrade (2.0.
|
|
4
|
+
snaptrade (2.0.177)
|
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
|
6
6
|
faraday-multipart (~> 1.0, >= 1.0.4)
|
|
7
7
|
|
|
@@ -28,7 +28,7 @@ GEM
|
|
|
28
28
|
reline (>= 0.3.0)
|
|
29
29
|
method_source (1.1.0)
|
|
30
30
|
multipart-post (2.4.1)
|
|
31
|
-
parallel (1.
|
|
31
|
+
parallel (1.28.0)
|
|
32
32
|
parser (3.3.11.1)
|
|
33
33
|
ast (~> 2.4.1)
|
|
34
34
|
racc
|
|
@@ -42,7 +42,7 @@ GEM
|
|
|
42
42
|
racc (1.8.1)
|
|
43
43
|
rainbow (3.1.1)
|
|
44
44
|
rake (13.0.6)
|
|
45
|
-
regexp_parser (2.
|
|
45
|
+
regexp_parser (2.12.0)
|
|
46
46
|
reline (0.6.3)
|
|
47
47
|
io-console (~> 0.5)
|
|
48
48
|
rexml (3.4.4)
|
data/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Connect brokerage accounts to your app for live positions and trading
|
|
8
8
|
|
|
9
|
-
[](https://rubygems.org/gems/snaptrade/versions/2.0.177)
|
|
10
10
|
[](https://snaptrade.com/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
@@ -49,7 +49,6 @@ Connect brokerage accounts to your app for live positions and trading
|
|
|
49
49
|
* [`snaptrade.experimental_endpoints.get_user_account_order_detail_v2`](#snaptradeexperimental_endpointsget_user_account_order_detail_v2)
|
|
50
50
|
* [`snaptrade.experimental_endpoints.get_user_account_orders_v2`](#snaptradeexperimental_endpointsget_user_account_orders_v2)
|
|
51
51
|
* [`snaptrade.experimental_endpoints.get_user_account_recent_orders_v2`](#snaptradeexperimental_endpointsget_user_account_recent_orders_v2)
|
|
52
|
-
* [`snaptrade.options.get_user_account_option_quotes`](#snaptradeoptionsget_user_account_option_quotes)
|
|
53
52
|
* [`snaptrade.options.list_option_holdings`](#snaptradeoptionslist_option_holdings)
|
|
54
53
|
* [`snaptrade.reference_data.get_currency_exchange_rate_pair`](#snaptradereference_dataget_currency_exchange_rate_pair)
|
|
55
54
|
* [`snaptrade.reference_data.get_partner_info`](#snaptradereference_dataget_partner_info)
|
|
@@ -68,6 +67,7 @@ Connect brokerage accounts to your app for live positions and trading
|
|
|
68
67
|
* [`snaptrade.trading.get_cryptocurrency_pair_quote`](#snaptradetradingget_cryptocurrency_pair_quote)
|
|
69
68
|
* [`snaptrade.trading.get_option_impact`](#snaptradetradingget_option_impact)
|
|
70
69
|
* [`snaptrade.trading.get_order_impact`](#snaptradetradingget_order_impact)
|
|
70
|
+
* [`snaptrade.trading.get_user_account_option_quotes`](#snaptradetradingget_user_account_option_quotes)
|
|
71
71
|
* [`snaptrade.trading.get_user_account_quotes`](#snaptradetradingget_user_account_quotes)
|
|
72
72
|
* [`snaptrade.trading.place_bracket_order`](#snaptradetradingplace_bracket_order)
|
|
73
73
|
* [`snaptrade.trading.place_crypto_order`](#snaptradetradingplace_crypto_order)
|
|
@@ -87,7 +87,7 @@ Connect brokerage accounts to your app for live positions and trading
|
|
|
87
87
|
Add to Gemfile:
|
|
88
88
|
|
|
89
89
|
```ruby
|
|
90
|
-
gem 'snaptrade', '~> 2.0.
|
|
90
|
+
gem 'snaptrade', '~> 2.0.177'
|
|
91
91
|
```
|
|
92
92
|
|
|
93
93
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -796,9 +796,9 @@ When false, you control closing behavior from your app. Defaults to true.
|
|
|
796
796
|
Enable dark mode for the connection portal. Defaults to false.
|
|
797
797
|
|
|
798
798
|
##### connectionPortalVersion: [`ConnectionPortalVersion`](./lib/snaptrade/models/connection_portal_version.rb)<a id="connectionportalversion-connectionportalversionlibsnaptrademodelsconnection_portal_versionrb"></a>
|
|
799
|
-
Sets the connection portal version to render. Currently only v4 is supported
|
|
800
|
-
is the default. All other versions are deprecated and will automatically be
|
|
801
|
-
to v4.
|
|
799
|
+
Sets the connection portal version to render. Currently only `v4` is supported
|
|
800
|
+
and is the default. All other versions are deprecated and will automatically be
|
|
801
|
+
set to v4.
|
|
802
802
|
|
|
803
803
|
#### 🔄 Return<a id="🔄-return"></a>
|
|
804
804
|
|
|
@@ -1334,45 +1334,6 @@ false to retrieve non executed orders as well
|
|
|
1334
1334
|
---
|
|
1335
1335
|
|
|
1336
1336
|
|
|
1337
|
-
### `snaptrade.options.get_user_account_option_quotes`<a id="snaptradeoptionsget_user_account_option_quotes"></a>
|
|
1338
|
-
|
|
1339
|
-
Returns a quote for a single option contract. The option contract is specified using in the 21 character OCC format. For example `AAPL 251114C00240000` represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format)
|
|
1340
|
-
**Note:** These are derived values and are not suitable for trading purposes.
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1344
|
-
|
|
1345
|
-
```ruby
|
|
1346
|
-
result = snaptrade.options.get_user_account_option_quotes(
|
|
1347
|
-
user_id: "snaptrade-user-123",
|
|
1348
|
-
user_secret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
1349
|
-
account_id: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
1350
|
-
symbol: "AAPL 251219C00150000",
|
|
1351
|
-
)
|
|
1352
|
-
p result
|
|
1353
|
-
```
|
|
1354
|
-
|
|
1355
|
-
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
|
1356
|
-
|
|
1357
|
-
##### user_id: `String`<a id="user_id-string"></a>
|
|
1358
|
-
##### user_secret: `String`<a id="user_secret-string"></a>
|
|
1359
|
-
##### account_id: `String`<a id="account_id-string"></a>
|
|
1360
|
-
##### symbol: `String`<a id="symbol-string"></a>
|
|
1361
|
-
The OCC-formatted option symbol.
|
|
1362
|
-
|
|
1363
|
-
#### 🔄 Return<a id="🔄-return"></a>
|
|
1364
|
-
|
|
1365
|
-
[OptionQuote](./lib/snaptrade/models/option_quote.rb)
|
|
1366
|
-
|
|
1367
|
-
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
|
1368
|
-
|
|
1369
|
-
`/accounts/{accountId}/quotes/options` `GET`
|
|
1370
|
-
|
|
1371
|
-
[🔙 **Back to Table of Contents**](#table-of-contents)
|
|
1372
|
-
|
|
1373
|
-
---
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
1337
|
### `snaptrade.options.list_option_holdings`<a id="snaptradeoptionslist_option_holdings"></a>
|
|
1377
1338
|
|
|
1378
1339
|
Returns a list of option positions in the specified account. For stock/ETF/crypto/mutual fund positions, please use the [positions endpoint](/reference/Account%20Information/AccountInformation_getUserAccountPositions).
|
|
@@ -2016,6 +1977,45 @@ The price at which a stop order is triggered for `Stop` and `StopLimit` orders.
|
|
|
2016
1977
|
---
|
|
2017
1978
|
|
|
2018
1979
|
|
|
1980
|
+
### `snaptrade.trading.get_user_account_option_quotes`<a id="snaptradetradingget_user_account_option_quotes"></a>
|
|
1981
|
+
|
|
1982
|
+
Returns a quote for a single option contract. The option contract is specified using in the 21 character OCC format. For example `AAPL 251114C00240000` represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format)
|
|
1983
|
+
**Note:** These are derived values and are not suitable for trading purposes.
|
|
1984
|
+
|
|
1985
|
+
|
|
1986
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1987
|
+
|
|
1988
|
+
```ruby
|
|
1989
|
+
result = snaptrade.trading.get_user_account_option_quotes(
|
|
1990
|
+
user_id: "snaptrade-user-123",
|
|
1991
|
+
user_secret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
1992
|
+
account_id: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
1993
|
+
symbol: "AAPL 251219C00150000",
|
|
1994
|
+
)
|
|
1995
|
+
p result
|
|
1996
|
+
```
|
|
1997
|
+
|
|
1998
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
|
1999
|
+
|
|
2000
|
+
##### user_id: `String`<a id="user_id-string"></a>
|
|
2001
|
+
##### user_secret: `String`<a id="user_secret-string"></a>
|
|
2002
|
+
##### account_id: `String`<a id="account_id-string"></a>
|
|
2003
|
+
##### symbol: `String`<a id="symbol-string"></a>
|
|
2004
|
+
The OCC-formatted option symbol.
|
|
2005
|
+
|
|
2006
|
+
#### 🔄 Return<a id="🔄-return"></a>
|
|
2007
|
+
|
|
2008
|
+
[OptionQuote](./lib/snaptrade/models/option_quote.rb)
|
|
2009
|
+
|
|
2010
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
|
2011
|
+
|
|
2012
|
+
`/accounts/{accountId}/quotes/options` `GET`
|
|
2013
|
+
|
|
2014
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
|
2015
|
+
|
|
2016
|
+
---
|
|
2017
|
+
|
|
2018
|
+
|
|
2019
2019
|
### `snaptrade.trading.get_user_account_quotes`<a id="snaptradetradingget_user_account_quotes"></a>
|
|
2020
2020
|
|
|
2021
2021
|
Returns quotes from the brokerage for the specified symbols and account.
|
|
@@ -195,7 +195,7 @@ module SnapTrade
|
|
|
195
195
|
# @param connection_type [ConnectionType] Determines connection permissions (default: read) - `read`: Data access only. - `trade`: Data and trading access. - `trade-if-available`: Attempts to establish a trading connection if the brokerage supports it, otherwise falls back to read-only access automatically.
|
|
196
196
|
# @param show_close_button [Boolean] Controls whether the close (X) button is displayed in the connection portal. When false, you control closing behavior from your app. Defaults to true.
|
|
197
197
|
# @param dark_mode [Boolean] Enable dark mode for the connection portal. Defaults to false.
|
|
198
|
-
# @param connection_portal_version [ConnectionPortalVersion] Sets the connection portal version to render. Currently only v4 is supported and is the default. All other versions are deprecated and will automatically be set to v4.
|
|
198
|
+
# @param connection_portal_version [ConnectionPortalVersion] Sets the connection portal version to render. Currently only `v4` is supported and is the default. All other versions are deprecated and will automatically be set to v4.
|
|
199
199
|
# @param body [SnapTradeLoginUserRequestBody]
|
|
200
200
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
201
201
|
def login_snap_trade_user(user_id:, user_secret:, broker: SENTINEL, immediate_redirect: SENTINEL, custom_redirect: SENTINEL, reconnect: SENTINEL, connection_type: 'read', show_close_button: SENTINEL, dark_mode: SENTINEL, connection_portal_version: 'v4', extra: {})
|
|
@@ -228,7 +228,7 @@ module SnapTrade
|
|
|
228
228
|
# @param connection_type [ConnectionType] Determines connection permissions (default: read) - `read`: Data access only. - `trade`: Data and trading access. - `trade-if-available`: Attempts to establish a trading connection if the brokerage supports it, otherwise falls back to read-only access automatically.
|
|
229
229
|
# @param show_close_button [Boolean] Controls whether the close (X) button is displayed in the connection portal. When false, you control closing behavior from your app. Defaults to true.
|
|
230
230
|
# @param dark_mode [Boolean] Enable dark mode for the connection portal. Defaults to false.
|
|
231
|
-
# @param connection_portal_version [ConnectionPortalVersion] Sets the connection portal version to render. Currently only v4 is supported and is the default. All other versions are deprecated and will automatically be set to v4.
|
|
231
|
+
# @param connection_portal_version [ConnectionPortalVersion] Sets the connection portal version to render. Currently only `v4` is supported and is the default. All other versions are deprecated and will automatically be set to v4.
|
|
232
232
|
# @param body [SnapTradeLoginUserRequestBody]
|
|
233
233
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
234
234
|
def login_snap_trade_user_with_http_info(user_id:, user_secret:, broker: SENTINEL, immediate_redirect: SENTINEL, custom_redirect: SENTINEL, reconnect: SENTINEL, connection_type: 'read', show_close_button: SENTINEL, dark_mode: SENTINEL, connection_portal_version: 'v4', extra: {})
|
|
@@ -17,120 +17,6 @@ module SnapTrade
|
|
|
17
17
|
@api_client = api_client
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
# Get option quote
|
|
21
|
-
#
|
|
22
|
-
# Returns a quote for a single option contract. The option contract is specified using in the 21 character OCC format. For example `AAPL 251114C00240000` represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format)
|
|
23
|
-
# **Note:** These are derived values and are not suitable for trading purposes.
|
|
24
|
-
#
|
|
25
|
-
# @param user_id [String]
|
|
26
|
-
# @param user_secret [String]
|
|
27
|
-
# @param account_id [String]
|
|
28
|
-
# @param symbol [String] The OCC-formatted option symbol.
|
|
29
|
-
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
30
|
-
def get_user_account_option_quotes(user_id:, user_secret:, account_id:, symbol:, extra: {})
|
|
31
|
-
data, _status_code, _headers = get_user_account_option_quotes_with_http_info_impl(user_id, user_secret, account_id, symbol, extra)
|
|
32
|
-
data
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
# Get option quote
|
|
36
|
-
#
|
|
37
|
-
# Returns a quote for a single option contract. The option contract is specified using in the 21 character OCC format. For example `AAPL 251114C00240000` represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format)
|
|
38
|
-
# **Note:** These are derived values and are not suitable for trading purposes.
|
|
39
|
-
#
|
|
40
|
-
# @param user_id [String]
|
|
41
|
-
# @param user_secret [String]
|
|
42
|
-
# @param account_id [String]
|
|
43
|
-
# @param symbol [String] The OCC-formatted option symbol.
|
|
44
|
-
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
45
|
-
def get_user_account_option_quotes_with_http_info(user_id:, user_secret:, account_id:, symbol:, extra: {})
|
|
46
|
-
get_user_account_option_quotes_with_http_info_impl(user_id, user_secret, account_id, symbol, extra)
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
# Get option quote
|
|
50
|
-
# Returns a quote for a single option contract. The option contract is specified using in the 21 character OCC format. For example `AAPL 251114C00240000` represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format) **Note:** These are derived values and are not suitable for trading purposes.
|
|
51
|
-
# @param user_id [String]
|
|
52
|
-
# @param user_secret [String]
|
|
53
|
-
# @param account_id [String]
|
|
54
|
-
# @param symbol [String] The OCC-formatted option symbol.
|
|
55
|
-
# @param [Hash] opts the optional parameters
|
|
56
|
-
# @return [OptionQuote]
|
|
57
|
-
private def get_user_account_option_quotes_impl(user_id, user_secret, account_id, symbol, opts = {})
|
|
58
|
-
data, _status_code, _headers = get_user_account_option_quotes_with_http_info(user_id, user_secret, account_id, symbol, opts)
|
|
59
|
-
data
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
# Get option quote
|
|
63
|
-
# Returns a quote for a single option contract. The option contract is specified using in the 21 character OCC format. For example `AAPL 251114C00240000` represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format) **Note:** These are derived values and are not suitable for trading purposes.
|
|
64
|
-
# @param user_id [String]
|
|
65
|
-
# @param user_secret [String]
|
|
66
|
-
# @param account_id [String]
|
|
67
|
-
# @param symbol [String] The OCC-formatted option symbol.
|
|
68
|
-
# @param [Hash] opts the optional parameters
|
|
69
|
-
# @return [Array<(OptionQuote, Integer, Hash)>] OptionQuote data, response status code and response headers
|
|
70
|
-
private def get_user_account_option_quotes_with_http_info_impl(user_id, user_secret, account_id, symbol, opts = {})
|
|
71
|
-
if @api_client.config.debugging
|
|
72
|
-
@api_client.config.logger.debug 'Calling API: OptionsApi.get_user_account_option_quotes ...'
|
|
73
|
-
end
|
|
74
|
-
# verify the required parameter 'user_id' is set
|
|
75
|
-
if @api_client.config.client_side_validation && user_id.nil?
|
|
76
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling OptionsApi.get_user_account_option_quotes"
|
|
77
|
-
end
|
|
78
|
-
# verify the required parameter 'user_secret' is set
|
|
79
|
-
if @api_client.config.client_side_validation && user_secret.nil?
|
|
80
|
-
fail ArgumentError, "Missing the required parameter 'user_secret' when calling OptionsApi.get_user_account_option_quotes"
|
|
81
|
-
end
|
|
82
|
-
# verify the required parameter 'account_id' is set
|
|
83
|
-
if @api_client.config.client_side_validation && account_id.nil?
|
|
84
|
-
fail ArgumentError, "Missing the required parameter 'account_id' when calling OptionsApi.get_user_account_option_quotes"
|
|
85
|
-
end
|
|
86
|
-
# verify the required parameter 'symbol' is set
|
|
87
|
-
if @api_client.config.client_side_validation && symbol.nil?
|
|
88
|
-
fail ArgumentError, "Missing the required parameter 'symbol' when calling OptionsApi.get_user_account_option_quotes"
|
|
89
|
-
end
|
|
90
|
-
# resource path
|
|
91
|
-
local_var_path = '/accounts/{accountId}/quotes/options'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
|
|
92
|
-
|
|
93
|
-
# query parameters
|
|
94
|
-
query_params = opts[:query_params] || {}
|
|
95
|
-
query_params[:'userId'] = user_id
|
|
96
|
-
query_params[:'userSecret'] = user_secret
|
|
97
|
-
query_params[:'symbol'] = symbol
|
|
98
|
-
|
|
99
|
-
# header parameters
|
|
100
|
-
header_params = opts[:header_params] || {}
|
|
101
|
-
# HTTP header 'Accept' (if needed)
|
|
102
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
103
|
-
|
|
104
|
-
# form parameters
|
|
105
|
-
form_params = opts[:form_params] || {}
|
|
106
|
-
|
|
107
|
-
# http body (model)
|
|
108
|
-
post_body = opts[:debug_body]
|
|
109
|
-
|
|
110
|
-
# return_type
|
|
111
|
-
return_type = opts[:debug_return_type] || 'OptionQuote'
|
|
112
|
-
|
|
113
|
-
# auth_names
|
|
114
|
-
auth_names = opts[:debug_auth_names] || ['PartnerClientId', 'PartnerSignature', 'PartnerTimestamp']
|
|
115
|
-
|
|
116
|
-
new_options = opts.merge(
|
|
117
|
-
:operation => :"OptionsApi.get_user_account_option_quotes",
|
|
118
|
-
:header_params => header_params,
|
|
119
|
-
:query_params => query_params,
|
|
120
|
-
:form_params => form_params,
|
|
121
|
-
:body => post_body,
|
|
122
|
-
:auth_names => auth_names,
|
|
123
|
-
:return_type => return_type
|
|
124
|
-
)
|
|
125
|
-
|
|
126
|
-
data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
|
|
127
|
-
if @api_client.config.debugging
|
|
128
|
-
@api_client.config.logger.debug "API called: OptionsApi#get_user_account_option_quotes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
129
|
-
end
|
|
130
|
-
return data, status_code, headers, response
|
|
131
|
-
end
|
|
132
|
-
|
|
133
|
-
|
|
134
20
|
# List account option positions
|
|
135
21
|
#
|
|
136
22
|
# Returns a list of option positions in the specified account. For stock/ETF/crypto/mutual fund positions, please use the [positions endpoint](/reference/Account%20Information/AccountInformation_getUserAccountPositions).
|
|
@@ -672,6 +672,120 @@ module SnapTrade
|
|
|
672
672
|
end
|
|
673
673
|
|
|
674
674
|
|
|
675
|
+
# Get option quote
|
|
676
|
+
#
|
|
677
|
+
# Returns a quote for a single option contract. The option contract is specified using in the 21 character OCC format. For example `AAPL 251114C00240000` represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format)
|
|
678
|
+
# **Note:** These are derived values and are not suitable for trading purposes.
|
|
679
|
+
#
|
|
680
|
+
# @param user_id [String]
|
|
681
|
+
# @param user_secret [String]
|
|
682
|
+
# @param account_id [String]
|
|
683
|
+
# @param symbol [String] The OCC-formatted option symbol.
|
|
684
|
+
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
685
|
+
def get_user_account_option_quotes(user_id:, user_secret:, account_id:, symbol:, extra: {})
|
|
686
|
+
data, _status_code, _headers = get_user_account_option_quotes_with_http_info_impl(user_id, user_secret, account_id, symbol, extra)
|
|
687
|
+
data
|
|
688
|
+
end
|
|
689
|
+
|
|
690
|
+
# Get option quote
|
|
691
|
+
#
|
|
692
|
+
# Returns a quote for a single option contract. The option contract is specified using in the 21 character OCC format. For example `AAPL 251114C00240000` represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format)
|
|
693
|
+
# **Note:** These are derived values and are not suitable for trading purposes.
|
|
694
|
+
#
|
|
695
|
+
# @param user_id [String]
|
|
696
|
+
# @param user_secret [String]
|
|
697
|
+
# @param account_id [String]
|
|
698
|
+
# @param symbol [String] The OCC-formatted option symbol.
|
|
699
|
+
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
700
|
+
def get_user_account_option_quotes_with_http_info(user_id:, user_secret:, account_id:, symbol:, extra: {})
|
|
701
|
+
get_user_account_option_quotes_with_http_info_impl(user_id, user_secret, account_id, symbol, extra)
|
|
702
|
+
end
|
|
703
|
+
|
|
704
|
+
# Get option quote
|
|
705
|
+
# Returns a quote for a single option contract. The option contract is specified using in the 21 character OCC format. For example `AAPL 251114C00240000` represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format) **Note:** These are derived values and are not suitable for trading purposes.
|
|
706
|
+
# @param user_id [String]
|
|
707
|
+
# @param user_secret [String]
|
|
708
|
+
# @param account_id [String]
|
|
709
|
+
# @param symbol [String] The OCC-formatted option symbol.
|
|
710
|
+
# @param [Hash] opts the optional parameters
|
|
711
|
+
# @return [OptionQuote]
|
|
712
|
+
private def get_user_account_option_quotes_impl(user_id, user_secret, account_id, symbol, opts = {})
|
|
713
|
+
data, _status_code, _headers = get_user_account_option_quotes_with_http_info(user_id, user_secret, account_id, symbol, opts)
|
|
714
|
+
data
|
|
715
|
+
end
|
|
716
|
+
|
|
717
|
+
# Get option quote
|
|
718
|
+
# Returns a quote for a single option contract. The option contract is specified using in the 21 character OCC format. For example `AAPL 251114C00240000` represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format) **Note:** These are derived values and are not suitable for trading purposes.
|
|
719
|
+
# @param user_id [String]
|
|
720
|
+
# @param user_secret [String]
|
|
721
|
+
# @param account_id [String]
|
|
722
|
+
# @param symbol [String] The OCC-formatted option symbol.
|
|
723
|
+
# @param [Hash] opts the optional parameters
|
|
724
|
+
# @return [Array<(OptionQuote, Integer, Hash)>] OptionQuote data, response status code and response headers
|
|
725
|
+
private def get_user_account_option_quotes_with_http_info_impl(user_id, user_secret, account_id, symbol, opts = {})
|
|
726
|
+
if @api_client.config.debugging
|
|
727
|
+
@api_client.config.logger.debug 'Calling API: TradingApi.get_user_account_option_quotes ...'
|
|
728
|
+
end
|
|
729
|
+
# verify the required parameter 'user_id' is set
|
|
730
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
|
731
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling TradingApi.get_user_account_option_quotes"
|
|
732
|
+
end
|
|
733
|
+
# verify the required parameter 'user_secret' is set
|
|
734
|
+
if @api_client.config.client_side_validation && user_secret.nil?
|
|
735
|
+
fail ArgumentError, "Missing the required parameter 'user_secret' when calling TradingApi.get_user_account_option_quotes"
|
|
736
|
+
end
|
|
737
|
+
# verify the required parameter 'account_id' is set
|
|
738
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
|
739
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling TradingApi.get_user_account_option_quotes"
|
|
740
|
+
end
|
|
741
|
+
# verify the required parameter 'symbol' is set
|
|
742
|
+
if @api_client.config.client_side_validation && symbol.nil?
|
|
743
|
+
fail ArgumentError, "Missing the required parameter 'symbol' when calling TradingApi.get_user_account_option_quotes"
|
|
744
|
+
end
|
|
745
|
+
# resource path
|
|
746
|
+
local_var_path = '/accounts/{accountId}/quotes/options'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
|
|
747
|
+
|
|
748
|
+
# query parameters
|
|
749
|
+
query_params = opts[:query_params] || {}
|
|
750
|
+
query_params[:'userId'] = user_id
|
|
751
|
+
query_params[:'userSecret'] = user_secret
|
|
752
|
+
query_params[:'symbol'] = symbol
|
|
753
|
+
|
|
754
|
+
# header parameters
|
|
755
|
+
header_params = opts[:header_params] || {}
|
|
756
|
+
# HTTP header 'Accept' (if needed)
|
|
757
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
758
|
+
|
|
759
|
+
# form parameters
|
|
760
|
+
form_params = opts[:form_params] || {}
|
|
761
|
+
|
|
762
|
+
# http body (model)
|
|
763
|
+
post_body = opts[:debug_body]
|
|
764
|
+
|
|
765
|
+
# return_type
|
|
766
|
+
return_type = opts[:debug_return_type] || 'OptionQuote'
|
|
767
|
+
|
|
768
|
+
# auth_names
|
|
769
|
+
auth_names = opts[:debug_auth_names] || ['PartnerClientId', 'PartnerSignature', 'PartnerTimestamp']
|
|
770
|
+
|
|
771
|
+
new_options = opts.merge(
|
|
772
|
+
:operation => :"TradingApi.get_user_account_option_quotes",
|
|
773
|
+
:header_params => header_params,
|
|
774
|
+
:query_params => query_params,
|
|
775
|
+
:form_params => form_params,
|
|
776
|
+
:body => post_body,
|
|
777
|
+
:auth_names => auth_names,
|
|
778
|
+
:return_type => return_type
|
|
779
|
+
)
|
|
780
|
+
|
|
781
|
+
data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
|
|
782
|
+
if @api_client.config.debugging
|
|
783
|
+
@api_client.config.logger.debug "API called: TradingApi#get_user_account_option_quotes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
784
|
+
end
|
|
785
|
+
return data, status_code, headers, response
|
|
786
|
+
end
|
|
787
|
+
|
|
788
|
+
|
|
675
789
|
# Get equity symbol quotes
|
|
676
790
|
#
|
|
677
791
|
# Returns quotes from the brokerage for the specified symbols and account.
|
|
@@ -42,13 +42,13 @@ module SnapTrade
|
|
|
42
42
|
# The number of shares or contracts that have been filled. Can be a decimal number for fractional shares.
|
|
43
43
|
attr_accessor :filled_quantity
|
|
44
44
|
|
|
45
|
-
# The price at which the order was executed.
|
|
45
|
+
# The price at which the order was executed. For option orders, this represents the price per share.
|
|
46
46
|
attr_accessor :execution_price
|
|
47
47
|
|
|
48
|
-
# The limit price is maximum price one is willing to pay for a buy order or the minimum price one is willing to accept for a sell order. Should only apply to `Limit` and `StopLimit` orders.
|
|
48
|
+
# The limit price is maximum price one is willing to pay for a buy order or the minimum price one is willing to accept for a sell order. Should only apply to `Limit` and `StopLimit` orders. For option orders, this represents the price per share.
|
|
49
49
|
attr_accessor :limit_price
|
|
50
50
|
|
|
51
|
-
# The stop price is the price at which a stop order is triggered. Should only apply to `Stop` and `StopLimit` orders.
|
|
51
|
+
# The stop price is the price at which a stop order is triggered. Should only apply to `Stop` and `StopLimit` orders. For option orders, this represents the price per share.
|
|
52
52
|
attr_accessor :stop_price
|
|
53
53
|
|
|
54
54
|
# The type of order placed. The most common values are `Market`, `Limit`, `Stop`, and `StopLimit`. We try our best to map brokerage order types to these values. When mapping fails, we will return the brokerage's order type value.
|
|
@@ -20,7 +20,7 @@ module SnapTrade
|
|
|
20
20
|
|
|
21
21
|
attr_accessor :option_symbol
|
|
22
22
|
|
|
23
|
-
# The price of the security for the transaction. This is mostly applicable to `BUY`, `SELL`, and `DIVIDEND` transactions.
|
|
23
|
+
# The price of the security for the transaction. This is mostly applicable to `BUY`, `SELL`, and `DIVIDEND` transactions. For option transactions, this represents the price per share of the option contract.
|
|
24
24
|
attr_accessor :price
|
|
25
25
|
|
|
26
26
|
# The number of units of the security for the transaction. This is mostly applicable to `BUY`, `SELL`, and `DIVIDEND` transactions.
|
|
@@ -41,13 +41,13 @@ module SnapTrade
|
|
|
41
41
|
# The number of shares or contracts that have been filled. Can be a decimal number for fractional shares.
|
|
42
42
|
attr_accessor :filled_quantity
|
|
43
43
|
|
|
44
|
-
# The price at which the order was executed.
|
|
44
|
+
# The price at which the order was executed. For option orders, this represents the price per share.
|
|
45
45
|
attr_accessor :execution_price
|
|
46
46
|
|
|
47
|
-
# The limit price is maximum price one is willing to pay for a buy order or the minimum price one is willing to accept for a sell order. Should only apply to `Limit` and `StopLimit` orders.
|
|
47
|
+
# The limit price is maximum price one is willing to pay for a buy order or the minimum price one is willing to accept for a sell order. Should only apply to `Limit` and `StopLimit` orders. For option orders, this represents the price per share.
|
|
48
48
|
attr_accessor :limit_price
|
|
49
49
|
|
|
50
|
-
# The stop price is the price at which a stop order is triggered. Should only apply to `Stop` and `StopLimit` orders.
|
|
50
|
+
# The stop price is the price at which a stop order is triggered. Should only apply to `Stop` and `StopLimit` orders. For option orders, this represents the price per share.
|
|
51
51
|
attr_accessor :stop_price
|
|
52
52
|
|
|
53
53
|
# The type of order placed. The most common values are `Market`, `Limit`, `Stop`, and `StopLimit`. We try our best to map brokerage order types to these values. When mapping fails, we will return the brokerage's order type value.
|
|
@@ -34,7 +34,7 @@ module SnapTrade
|
|
|
34
34
|
# Enable dark mode for the connection portal. Defaults to false.
|
|
35
35
|
attr_accessor :dark_mode
|
|
36
36
|
|
|
37
|
-
# Sets the connection portal version to render. Currently only v4 is supported and is the default. All other versions are deprecated and will automatically be set to v4.
|
|
37
|
+
# Sets the connection portal version to render. Currently only `v4` is supported and is the default. All other versions are deprecated and will automatically be set to v4.
|
|
38
38
|
attr_accessor :connection_portal_version
|
|
39
39
|
|
|
40
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
data/lib/snaptrade/version.rb
CHANGED
|
@@ -27,21 +27,6 @@ describe 'OptionsApi' do
|
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
# unit tests for get_user_account_option_quotes
|
|
31
|
-
# Get option quote
|
|
32
|
-
# Returns a quote for a single option contract. The option contract is specified using in the 21 character OCC format. For example `AAPL 251114C00240000` represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format) **Note:** These are derived values and are not suitable for trading purposes.
|
|
33
|
-
# @param user_id
|
|
34
|
-
# @param user_secret
|
|
35
|
-
# @param account_id
|
|
36
|
-
# @param symbol The OCC-formatted option symbol.
|
|
37
|
-
# @param [Hash] opts the optional parameters
|
|
38
|
-
# @return [OptionQuote]
|
|
39
|
-
describe 'get_user_account_option_quotes test' do
|
|
40
|
-
it 'should work' do
|
|
41
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
42
|
-
end
|
|
43
|
-
end
|
|
44
|
-
|
|
45
30
|
# unit tests for list_option_holdings
|
|
46
31
|
# List account option positions
|
|
47
32
|
# Returns a list of option positions in the specified account. For stock/ETF/crypto/mutual fund positions, please use the [positions endpoint](/reference/Account%20Information/AccountInformation_getUserAccountPositions). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access: - If you do, this endpoint returns real-time data. - If you don't, the data is cached and refreshed once a day. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://support.snaptrade.com/brokerages-table?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint.
|
|
@@ -101,6 +101,21 @@ describe 'TradingApi' do
|
|
|
101
101
|
end
|
|
102
102
|
end
|
|
103
103
|
|
|
104
|
+
# unit tests for get_user_account_option_quotes
|
|
105
|
+
# Get option quote
|
|
106
|
+
# Returns a quote for a single option contract. The option contract is specified using in the 21 character OCC format. For example `AAPL 251114C00240000` represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format) **Note:** These are derived values and are not suitable for trading purposes.
|
|
107
|
+
# @param user_id
|
|
108
|
+
# @param user_secret
|
|
109
|
+
# @param account_id
|
|
110
|
+
# @param symbol The OCC-formatted option symbol.
|
|
111
|
+
# @param [Hash] opts the optional parameters
|
|
112
|
+
# @return [OptionQuote]
|
|
113
|
+
describe 'get_user_account_option_quotes test' do
|
|
114
|
+
it 'should work' do
|
|
115
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
|
|
104
119
|
# unit tests for get_user_account_quotes
|
|
105
120
|
# Get equity symbol quotes
|
|
106
121
|
# Returns quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. **This endpoint is not a substitute for a market data provider. Frequent polling of this endpoint may result in the disabling of your keys** This endpoint does not work for options quotes. This endpoint is disabled for free plans by default. Please contact support to enable this endpoint if needed.
|
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: 2.0.
|
|
4
|
+
version: 2.0.177
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SnapTrade
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-04-
|
|
11
|
+
date: 2026-04-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -477,186 +477,186 @@ signing_key:
|
|
|
477
477
|
specification_version: 4
|
|
478
478
|
summary: SnapTrade Ruby Gem
|
|
479
479
|
test_files:
|
|
480
|
-
- spec/api/experimental_endpoints_api_spec.rb
|
|
481
|
-
- spec/api/connections_api_spec.rb
|
|
482
|
-
- spec/api/account_information_api_spec.rb
|
|
483
|
-
- spec/api/transactions_and_reporting_api_spec.rb
|
|
484
|
-
- spec/api/api_status_api_spec.rb
|
|
485
|
-
- spec/api/authentication_api_spec.rb
|
|
486
480
|
- spec/api/options_api_spec.rb
|
|
481
|
+
- spec/api/api_status_api_spec.rb
|
|
487
482
|
- spec/api/reference_data_api_spec.rb
|
|
488
483
|
- spec/api/trading_api_spec.rb
|
|
484
|
+
- spec/api/transactions_and_reporting_api_spec.rb
|
|
485
|
+
- spec/api/connections_api_spec.rb
|
|
486
|
+
- spec/api/authentication_api_spec.rb
|
|
487
|
+
- spec/api/experimental_endpoints_api_spec.rb
|
|
488
|
+
- spec/api/account_information_api_spec.rb
|
|
489
489
|
- spec/api_client_spec.rb
|
|
490
490
|
- spec/configuration_spec.rb
|
|
491
491
|
- spec/getting_started_spec.rb
|
|
492
|
-
- spec/models/option_leg_spec.rb
|
|
493
|
-
- spec/models/symbols_quotes_inner_spec.rb
|
|
494
|
-
- spec/models/partner_data_spec.rb
|
|
495
|
-
- spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
|
|
496
|
-
- spec/models/option_quote_spec.rb
|
|
497
|
-
- spec/models/delete_user_response_spec.rb
|
|
498
492
|
- spec/models/brokerage_authorization_refresh_confirmation_spec.rb
|
|
493
|
+
- spec/models/universal_activity_spec.rb
|
|
494
|
+
- spec/models/strategy_order_record_spec.rb
|
|
495
|
+
- spec/models/balance_spec.rb
|
|
496
|
+
- spec/models/mleg_trading_instrument_spec.rb
|
|
497
|
+
- spec/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner_spec.rb
|
|
498
|
+
- spec/models/net_dividend_spec.rb
|
|
499
|
+
- spec/models/account_order_record_universal_symbol_spec.rb
|
|
500
|
+
- spec/models/validated_trade_body_spec.rb
|
|
501
|
+
- spec/models/manual_trade_form_notional_value_spec.rb
|
|
502
|
+
- spec/models/crypto_order_preview_spec.rb
|
|
503
|
+
- spec/models/strategy_order_record_status_spec.rb
|
|
504
|
+
- spec/models/manual_trade_spec.rb
|
|
499
505
|
- spec/models/brokerage_spec.rb
|
|
500
|
-
- spec/models/
|
|
501
|
-
- spec/models/
|
|
502
|
-
- spec/models/
|
|
503
|
-
- spec/models/
|
|
504
|
-
- spec/models/
|
|
506
|
+
- spec/models/account_information_get_user_account_order_detail_request_spec.rb
|
|
507
|
+
- spec/models/option_chain_inner_spec.rb
|
|
508
|
+
- spec/models/session_event_spec.rb
|
|
509
|
+
- spec/models/rate_of_return_response_spec.rb
|
|
510
|
+
- spec/models/model400_failed_request_response_spec.rb
|
|
511
|
+
- spec/models/strategy_quotes_spec.rb
|
|
512
|
+
- spec/models/brokerage_authorization_disabled_confirmation_spec.rb
|
|
505
513
|
- spec/models/account_value_history_item_spec.rb
|
|
506
|
-
- spec/models/
|
|
507
|
-
- spec/models/
|
|
508
|
-
- spec/models/simple_order_form_time_in_force_spec.rb
|
|
509
|
-
- spec/models/position_symbol_spec.rb
|
|
510
|
-
- spec/models/figi_instrument_spec.rb
|
|
511
|
-
- spec/models/strategy_quotes_greek_spec.rb
|
|
512
|
-
- spec/models/underlying_symbol_exchange_spec.rb
|
|
513
|
-
- spec/models/account_order_record_option_symbol_spec.rb
|
|
514
|
-
- spec/models/account_status_spec.rb
|
|
515
|
-
- spec/models/account_universal_activity_option_symbol_spec.rb
|
|
516
|
-
- spec/models/manual_trade_and_impact_spec.rb
|
|
517
|
-
- spec/models/strategy_order_record_spec.rb
|
|
518
|
-
- spec/models/position_spec.rb
|
|
514
|
+
- spec/models/brokerage_type_spec.rb
|
|
515
|
+
- spec/models/action_strict_spec.rb
|
|
519
516
|
- spec/models/account_spec.rb
|
|
520
|
-
- spec/models/model500_unexpected_exception_response_spec.rb
|
|
521
|
-
- spec/models/account_order_record_spec.rb
|
|
522
|
-
- spec/models/security_type_spec.rb
|
|
523
|
-
- spec/models/connection_type_spec.rb
|
|
524
|
-
- spec/models/options_position_spec.rb
|
|
525
|
-
- spec/models/mleg_price_effect_strict_spec.rb
|
|
526
|
-
- spec/models/manual_trade_balance_spec.rb
|
|
527
|
-
- spec/models/session_event_type_spec.rb
|
|
528
|
-
- spec/models/authentication_login_snap_trade_user200_response_spec.rb
|
|
529
|
-
- spec/models/strategy_order_record_status_spec.rb
|
|
530
517
|
- spec/models/us_exchange_spec.rb
|
|
531
|
-
- spec/models/
|
|
532
|
-
- spec/models/
|
|
533
|
-
- spec/models/
|
|
534
|
-
- spec/models/
|
|
535
|
-
- spec/models/
|
|
536
|
-
- spec/models/
|
|
537
|
-
- spec/models/stop_loss_spec.rb
|
|
538
|
-
- spec/models/snap_trade_holdings_total_value_spec.rb
|
|
539
|
-
- spec/models/mleg_action_strict_spec.rb
|
|
518
|
+
- spec/models/account_order_record_leg_instrument_spec.rb
|
|
519
|
+
- spec/models/account_orders_v2_response_spec.rb
|
|
520
|
+
- spec/models/mleg_trade_form_spec.rb
|
|
521
|
+
- spec/models/account_sync_status_spec.rb
|
|
522
|
+
- spec/models/order_updated_response_order_spec.rb
|
|
523
|
+
- spec/models/trading_instrument_type_spec.rb
|
|
540
524
|
- spec/models/order_type_strict_spec.rb
|
|
541
|
-
- spec/models/
|
|
525
|
+
- spec/models/account_order_record_child_brokerage_order_ids_spec.rb
|
|
526
|
+
- spec/models/position_spec.rb
|
|
527
|
+
- spec/models/authentication_login_snap_trade_user200_response_spec.rb
|
|
528
|
+
- spec/models/currency_spec.rb
|
|
529
|
+
- spec/models/connections_session_events200_response_inner_spec.rb
|
|
530
|
+
- spec/models/account_order_record_quote_universal_symbol_spec.rb
|
|
531
|
+
- spec/models/position_symbol_spec.rb
|
|
532
|
+
- spec/models/connection_type_spec.rb
|
|
533
|
+
- spec/models/manual_trade_form_with_options_spec.rb
|
|
534
|
+
- spec/models/order_updated_response_spec.rb
|
|
535
|
+
- spec/models/manual_trade_and_impact_spec.rb
|
|
536
|
+
- spec/models/model403_feature_not_enabled_response_spec.rb
|
|
537
|
+
- spec/models/mleg_order_response_spec.rb
|
|
538
|
+
- spec/models/option_quote_greeks_spec.rb
|
|
539
|
+
- spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
|
|
542
540
|
- spec/models/take_profit_spec.rb
|
|
543
|
-
- spec/models/
|
|
544
|
-
- spec/models/
|
|
545
|
-
- spec/models/cancel_order_response_spec.rb
|
|
541
|
+
- spec/models/manual_trade_form_spec.rb
|
|
542
|
+
- spec/models/account_holdings_account_spec.rb
|
|
546
543
|
- spec/models/net_contributions_spec.rb
|
|
547
|
-
- spec/models/
|
|
548
|
-
- spec/models/brokerage_instrument_spec.rb
|
|
549
|
-
- spec/models/option_leg_action_spec.rb
|
|
550
|
-
- spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
|
|
551
|
-
- spec/models/snap_trade_register_user_request_body_spec.rb
|
|
552
|
-
- spec/models/option_impact_spec.rb
|
|
553
|
-
- spec/models/auth_type_spec.rb
|
|
554
|
-
- spec/models/brokerage_authorization_disabled_confirmation_spec.rb
|
|
555
|
-
- spec/models/mleg_trading_instrument_spec.rb
|
|
556
|
-
- spec/models/account_order_record_leg_instrument_spec.rb
|
|
557
|
-
- spec/models/mleg_order_type_strict_spec.rb
|
|
544
|
+
- spec/models/option_strategy_legs_inner_spec.rb
|
|
558
545
|
- spec/models/account_balance_total_spec.rb
|
|
559
|
-
- spec/models/
|
|
560
|
-
- spec/models/
|
|
561
|
-
- spec/models/
|
|
562
|
-
- spec/models/
|
|
563
|
-
- spec/models/
|
|
564
|
-
- spec/models/
|
|
565
|
-
- spec/models/trading_session_spec.rb
|
|
566
|
-
- spec/models/holdings_status_spec.rb
|
|
567
|
-
- spec/models/account_order_record_leg_spec.rb
|
|
568
|
-
- spec/models/net_dividend_spec.rb
|
|
569
|
-
- spec/models/manual_trade_symbol_spec.rb
|
|
546
|
+
- spec/models/account_order_record_status_v2_spec.rb
|
|
547
|
+
- spec/models/brokerage_authorization_spec.rb
|
|
548
|
+
- spec/models/encrypted_response_spec.rb
|
|
549
|
+
- spec/models/symbol_query_spec.rb
|
|
550
|
+
- spec/models/sub_period_return_rate_spec.rb
|
|
551
|
+
- spec/models/paginated_universal_activity_spec.rb
|
|
570
552
|
- spec/models/mleg_instrument_type_spec.rb
|
|
553
|
+
- spec/models/brokerage_authorization_type_read_only_spec.rb
|
|
554
|
+
- spec/models/snap_trade_login_user_request_body_spec.rb
|
|
555
|
+
- spec/models/security_type_spec.rb
|
|
556
|
+
- spec/models/cryptocurrency_pair_spec.rb
|
|
557
|
+
- spec/models/model500_unexpected_exception_response_spec.rb
|
|
558
|
+
- spec/models/snap_trade_holdings_account_spec.rb
|
|
559
|
+
- spec/models/encrypted_response_encrypted_message_data_spec.rb
|
|
560
|
+
- spec/models/mleg_order_type_strict_spec.rb
|
|
561
|
+
- spec/models/account_value_history_response_spec.rb
|
|
571
562
|
- spec/models/transactions_status_spec.rb
|
|
572
|
-
- spec/models/
|
|
573
|
-
- spec/models/
|
|
574
|
-
- spec/models/
|
|
575
|
-
- spec/models/model425_failed_request_response_spec.rb
|
|
576
|
-
- spec/models/strategy_quotes_spec.rb
|
|
577
|
-
- spec/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner_spec.rb
|
|
578
|
-
- spec/models/order_updated_response_spec.rb
|
|
579
|
-
- spec/models/notional_value_spec.rb
|
|
563
|
+
- spec/models/balance_currency_spec.rb
|
|
564
|
+
- spec/models/options_symbol_spec.rb
|
|
565
|
+
- spec/models/account_universal_activity_symbol_spec.rb
|
|
580
566
|
- spec/models/tax_lot_spec.rb
|
|
581
|
-
- spec/models/
|
|
567
|
+
- spec/models/crypto_order_form_type_spec.rb
|
|
582
568
|
- spec/models/strategy_type_spec.rb
|
|
583
|
-
- spec/models/
|
|
584
|
-
- spec/models/
|
|
585
|
-
- spec/models/
|
|
586
|
-
- spec/models/model403_failed_request_response_spec.rb
|
|
587
|
-
- spec/models/account_order_record_status_v2_spec.rb
|
|
588
|
-
- spec/models/login_redirect_uri_spec.rb
|
|
589
|
-
- spec/models/universal_symbol_spec.rb
|
|
569
|
+
- spec/models/mleg_action_strict_spec.rb
|
|
570
|
+
- spec/models/account_status_spec.rb
|
|
571
|
+
- spec/models/delete_user_response_spec.rb
|
|
590
572
|
- spec/models/option_brokerage_symbol_spec.rb
|
|
591
|
-
- spec/models/
|
|
592
|
-
- spec/models/
|
|
593
|
-
- spec/models/
|
|
594
|
-
- spec/models/account_universal_activity_symbol_spec.rb
|
|
595
|
-
- spec/models/mleg_trade_form_spec.rb
|
|
596
|
-
- spec/models/connections_session_events200_response_inner_spec.rb
|
|
597
|
-
- spec/models/cryptocurrency_pair_spec.rb
|
|
598
|
-
- spec/models/model403_feature_not_enabled_response_spec.rb
|
|
599
|
-
- spec/models/position_currency_spec.rb
|
|
600
|
-
- spec/models/option_strategy_spec.rb
|
|
601
|
-
- spec/models/universal_activity_spec.rb
|
|
602
|
-
- spec/models/rate_of_return_response_spec.rb
|
|
603
|
-
- spec/models/trading_instrument_type_spec.rb
|
|
573
|
+
- spec/models/account_universal_activity_option_symbol_spec.rb
|
|
574
|
+
- spec/models/underlying_symbol_spec.rb
|
|
575
|
+
- spec/models/auth_type_spec.rb
|
|
604
576
|
- spec/models/cash_change_direction_spec.rb
|
|
605
|
-
- spec/models/
|
|
606
|
-
- spec/models/
|
|
607
|
-
- spec/models/crypto_order_preview_spec.rb
|
|
608
|
-
- spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
|
|
609
|
-
- spec/models/account_order_record_child_brokerage_order_ids_spec.rb
|
|
610
|
-
- spec/models/option_quote_greeks_spec.rb
|
|
611
|
-
- spec/models/account_universal_activity_spec.rb
|
|
612
|
-
- spec/models/monthly_dividends_spec.rb
|
|
613
|
-
- spec/models/crypto_order_preview_estimated_fee_spec.rb
|
|
614
|
-
- spec/models/model402_brokerage_auth_disabled_response_spec.rb
|
|
615
|
-
- spec/models/crypto_trading_instrument_type_spec.rb
|
|
616
|
-
- spec/models/account_order_record_quote_universal_symbol_spec.rb
|
|
577
|
+
- spec/models/manual_trade_replace_form_spec.rb
|
|
578
|
+
- spec/models/login_redirect_uri_spec.rb
|
|
617
579
|
- spec/models/exchange_spec.rb
|
|
618
|
-
- spec/models/
|
|
619
|
-
- spec/models/
|
|
620
|
-
- spec/models/
|
|
621
|
-
- spec/models/
|
|
622
|
-
- spec/models/
|
|
623
|
-
- spec/models/
|
|
624
|
-
- spec/models/status_spec.rb
|
|
625
|
-
- spec/models/paginated_universal_activity_spec.rb
|
|
626
|
-
- spec/models/account_order_record_quote_currency_spec.rb
|
|
627
|
-
- spec/models/account_order_record_v2_spec.rb
|
|
628
|
-
- spec/models/account_order_record_status_spec.rb
|
|
629
|
-
- spec/models/mleg_order_response_spec.rb
|
|
630
|
-
- spec/models/brokerage_authorization_spec.rb
|
|
631
|
-
- spec/models/option_chain_inner_spec.rb
|
|
632
|
-
- spec/models/balance_spec.rb
|
|
633
|
-
- spec/models/account_orders_v2_response_spec.rb
|
|
634
|
-
- spec/models/encrypted_response_spec.rb
|
|
635
|
-
- spec/models/performance_custom_spec.rb
|
|
636
|
-
- spec/models/validated_trade_body_spec.rb
|
|
637
|
-
- spec/models/crypto_order_form_type_spec.rb
|
|
638
|
-
- spec/models/account_simple_spec.rb
|
|
639
|
-
- spec/models/pagination_details_spec.rb
|
|
580
|
+
- spec/models/account_holdings_spec.rb
|
|
581
|
+
- spec/models/action_strict_with_options_spec.rb
|
|
582
|
+
- spec/models/account_order_record_spec.rb
|
|
583
|
+
- spec/models/holdings_status_spec.rb
|
|
584
|
+
- spec/models/symbol_spec.rb
|
|
585
|
+
- spec/models/mleg_leg_spec.rb
|
|
640
586
|
- spec/models/child_brokerage_order_ids_spec.rb
|
|
641
|
-
- spec/models/
|
|
642
|
-
- spec/models/
|
|
643
|
-
- spec/models/
|
|
587
|
+
- spec/models/manual_trade_impact_spec.rb
|
|
588
|
+
- spec/models/cancel_order_response_spec.rb
|
|
589
|
+
- spec/models/account_order_record_quote_currency_spec.rb
|
|
590
|
+
- spec/models/account_universal_activity_currency_spec.rb
|
|
591
|
+
- spec/models/universal_symbol_spec.rb
|
|
592
|
+
- spec/models/simple_order_form_time_in_force_spec.rb
|
|
593
|
+
- spec/models/model403_failed_request_response_spec.rb
|
|
594
|
+
- spec/models/crypto_order_preview_estimated_fee_spec.rb
|
|
595
|
+
- spec/models/timeframe_spec.rb
|
|
644
596
|
- spec/models/crypto_trading_instrument_spec.rb
|
|
645
|
-
- spec/models/
|
|
646
|
-
- spec/models/
|
|
597
|
+
- spec/models/status_spec.rb
|
|
598
|
+
- spec/models/rate_of_return_object_spec.rb
|
|
599
|
+
- spec/models/performance_custom_spec.rb
|
|
600
|
+
- spec/models/option_leg_spec.rb
|
|
647
601
|
- spec/models/simple_order_form_spec.rb
|
|
648
|
-
- spec/models/
|
|
649
|
-
- spec/models/
|
|
650
|
-
- spec/models/
|
|
651
|
-
- spec/models/
|
|
652
|
-
- spec/models/
|
|
602
|
+
- spec/models/brokerage_instrument_spec.rb
|
|
603
|
+
- spec/models/session_event_type_spec.rb
|
|
604
|
+
- spec/models/position_currency_spec.rb
|
|
605
|
+
- spec/models/figi_instrument_spec.rb
|
|
606
|
+
- spec/models/notional_value_spec.rb
|
|
607
|
+
- spec/models/partner_data_spec.rb
|
|
608
|
+
- spec/models/account_simple_spec.rb
|
|
653
609
|
- spec/models/model404_failed_request_response_spec.rb
|
|
654
|
-
- spec/models/
|
|
655
|
-
- spec/models/
|
|
656
|
-
- spec/models/
|
|
657
|
-
- spec/models/
|
|
658
|
-
- spec/models/
|
|
659
|
-
- spec/models/
|
|
660
|
-
- spec/models/
|
|
610
|
+
- spec/models/account_order_record_leg_spec.rb
|
|
611
|
+
- spec/models/manual_trade_form_bracket_spec.rb
|
|
612
|
+
- spec/models/options_position_spec.rb
|
|
613
|
+
- spec/models/model425_failed_request_response_spec.rb
|
|
614
|
+
- spec/models/option_strategy_spec.rb
|
|
615
|
+
- spec/models/crypto_trading_instrument_type_spec.rb
|
|
616
|
+
- spec/models/mleg_price_effect_strict_spec.rb
|
|
617
|
+
- spec/models/option_leg_action_spec.rb
|
|
618
|
+
- spec/models/model402_brokerage_auth_disabled_response_spec.rb
|
|
619
|
+
- spec/models/delete_connection_confirmation_spec.rb
|
|
620
|
+
- spec/models/symbol_figi_instrument_spec.rb
|
|
621
|
+
- spec/models/account_order_record_v2_spec.rb
|
|
622
|
+
- spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
|
|
623
|
+
- spec/models/snap_trade_register_user_request_body_spec.rb
|
|
624
|
+
- spec/models/trading_session_spec.rb
|
|
661
625
|
- spec/models/recent_orders_response_spec.rb
|
|
626
|
+
- spec/models/strategy_quotes_greek_spec.rb
|
|
627
|
+
- spec/models/option_quote_spec.rb
|
|
628
|
+
- spec/models/underlying_symbol_type_spec.rb
|
|
629
|
+
- spec/models/crypto_order_form_time_in_force_spec.rb
|
|
630
|
+
- spec/models/time_in_force_strict_spec.rb
|
|
631
|
+
- spec/models/manual_trade_balance_spec.rb
|
|
632
|
+
- spec/models/pagination_details_spec.rb
|
|
633
|
+
- spec/models/options_position_currency_spec.rb
|
|
634
|
+
- spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
|
|
635
|
+
- spec/models/stop_loss_spec.rb
|
|
636
|
+
- spec/models/monthly_dividends_spec.rb
|
|
637
|
+
- spec/models/symbols_quotes_inner_spec.rb
|
|
638
|
+
- spec/models/past_value_spec.rb
|
|
639
|
+
- spec/models/user_i_dand_secret_spec.rb
|
|
640
|
+
- spec/models/crypto_order_form_spec.rb
|
|
641
|
+
- spec/models/account_balance_spec.rb
|
|
642
|
+
- spec/models/option_chain_inner_chain_per_root_inner_spec.rb
|
|
643
|
+
- spec/models/manual_trade_symbol_spec.rb
|
|
644
|
+
- spec/models/account_order_record_option_symbol_spec.rb
|
|
645
|
+
- spec/models/option_type_spec.rb
|
|
646
|
+
- spec/models/trading_instrument_spec.rb
|
|
647
|
+
- spec/models/type_spec.rb
|
|
648
|
+
- spec/models/symbol_exchange_spec.rb
|
|
649
|
+
- spec/models/brokerage_instruments_response_spec.rb
|
|
650
|
+
- spec/models/model401_failed_request_response_spec.rb
|
|
651
|
+
- spec/models/symbol_currency_spec.rb
|
|
652
|
+
- spec/models/account_order_record_status_spec.rb
|
|
653
|
+
- spec/models/exchange_rate_pairs_spec.rb
|
|
654
|
+
- spec/models/simple_order_form_type_spec.rb
|
|
655
|
+
- spec/models/option_impact_spec.rb
|
|
656
|
+
- spec/models/cryptocurrency_pair_quote_spec.rb
|
|
657
|
+
- spec/models/account_universal_activity_spec.rb
|
|
658
|
+
- spec/models/connection_portal_version_spec.rb
|
|
659
|
+
- spec/models/snap_trade_holdings_total_value_spec.rb
|
|
660
|
+
- spec/models/underlying_symbol_exchange_spec.rb
|
|
661
|
+
- spec/models/dividend_at_date_spec.rb
|
|
662
662
|
- spec/spec_helper.rb
|