snaptrade 2.0.163 → 2.0.165

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: b0d0339193f49eb4054b1acc4117f5d3908eeac1216d70285623c61902b7d8c5
4
- data.tar.gz: 518944dd0e7fe9ab5f1aad96792e7a502cba9bcbb8588371f361f7249cfa85de
3
+ metadata.gz: c43da3d7462a69a3748073633401c27d86966de0a9ad26d08df6a0d9e6a67629
4
+ data.tar.gz: f53b10e5602aff84b922f3d037a164a10dd2a626a97429cb02038886bf69c4f3
5
5
  SHA512:
6
- metadata.gz: 27aff07e9e57db3b29bdd26e695b7ac801959edf7b1df0af3a8aa06962746d321bbe42c65f3dad38c0ca8225d4331820812aa987185a64df3b1331939512eae7
7
- data.tar.gz: ca89c95353f8a4f9ab22910539a4a048e516e3c47360b75d4bcee4c53bd15bbc7509928397263abc33347e9a38e28ed539aec590cc22c22f6dac112136aec3fb
6
+ metadata.gz: efcc1995284cbb50446a316a393cb0ec3fd080326ff25a0a07dd3eea5e88c0ab83cac919f4e80dc2e7b5c805d2bc839e6ea8a83d35e7c8daeae7843a5e24ed69
7
+ data.tar.gz: e7c8cfe1df4d635bfc5839cc37044a8ff61199d4b69828a9758c8a9ed29ff4151fa80e9fcc5093162b66e7c00d5b3960e67d3504581c16b7e1fca8f149115a1e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.163)
4
+ snaptrade (2.0.165)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
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
- [![npm](https://img.shields.io/badge/gem-v2.0.163-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.163)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.165-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.165)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -47,6 +47,7 @@ Connect brokerage accounts to your app for live positions and trading
47
47
  * [`snaptrade.experimental_endpoints.get_user_account_order_detail_v2`](#snaptradeexperimental_endpointsget_user_account_order_detail_v2)
48
48
  * [`snaptrade.experimental_endpoints.get_user_account_orders_v2`](#snaptradeexperimental_endpointsget_user_account_orders_v2)
49
49
  * [`snaptrade.experimental_endpoints.get_user_account_recent_orders_v2`](#snaptradeexperimental_endpointsget_user_account_recent_orders_v2)
50
+ * [`snaptrade.options.get_option_quote`](#snaptradeoptionsget_option_quote)
50
51
  * [`snaptrade.options.get_options_chain`](#snaptradeoptionsget_options_chain)
51
52
  * [`snaptrade.options.list_option_holdings`](#snaptradeoptionslist_option_holdings)
52
53
  * [`snaptrade.reference_data.get_currency_exchange_rate_pair`](#snaptradereference_dataget_currency_exchange_rate_pair)
@@ -85,7 +86,7 @@ Connect brokerage accounts to your app for live positions and trading
85
86
  Add to Gemfile:
86
87
 
87
88
  ```ruby
88
- gem 'snaptrade', '~> 2.0.163'
89
+ gem 'snaptrade', '~> 2.0.165'
89
90
  ```
90
91
 
91
92
  ## Getting Started<a id="getting-started"></a>
@@ -587,9 +588,11 @@ p result
587
588
 
588
589
  Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user.
589
590
 
591
+ Please note that this data is cached and only refreshed once a day.
592
+
590
593
  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:
591
- - If you do, this endpoint returns real-time data.
592
- - If you don't, the data is cached and refreshed once a day. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint.
594
+ - If you do, real-time data can be fetched using the [update account details endpoint](/reference/Account%20Information/AccountInformation_getUserAccountDetails).
595
+ - If you don't, the data is cached and refreshed once a day. If you need real-time, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
593
596
 
594
597
 
595
598
  #### 🛠️ Usage<a id="🛠️-usage"></a>
@@ -1263,6 +1266,44 @@ false to retrieve non executed orders as well
1263
1266
  ---
1264
1267
 
1265
1268
 
1269
+ ### `snaptrade.options.get_option_quote`<a id="snaptradeoptionsget_option_quote"></a>
1270
+
1271
+ Returns a real-time quote for a single option contract. The option contract is specified using an OCC-formatted symbol.
1272
+
1273
+ OCC format: `AAPL 251219C00150000` (underlying padded to 6 characters with spaces, followed by date, put/call, and strike).
1274
+
1275
+
1276
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1277
+
1278
+ ```ruby
1279
+ result = snaptrade.options.get_option_quote(
1280
+ user_id: "snaptrade-user-123",
1281
+ user_secret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
1282
+ symbol: "AAPL 251219C00150000",
1283
+ )
1284
+ p result
1285
+ ```
1286
+
1287
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1288
+
1289
+ ##### user_id: `String`<a id="user_id-string"></a>
1290
+ ##### user_secret: `String`<a id="user_secret-string"></a>
1291
+ ##### symbol: `String`<a id="symbol-string"></a>
1292
+ The OCC-formatted option symbol.
1293
+
1294
+ #### 🔄 Return<a id="🔄-return"></a>
1295
+
1296
+ [OptionQuote](./lib/snaptrade/models/option_quote.rb)
1297
+
1298
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1299
+
1300
+ `/marketData/options/quotes` `GET`
1301
+
1302
+ [🔙 **Back to Table of Contents**](#table-of-contents)
1303
+
1304
+ ---
1305
+
1306
+
1266
1307
  ### `snaptrade.options.get_options_chain`<a id="snaptradeoptionsget_options_chain"></a>
1267
1308
 
1268
1309
  Returns the option chain for the specified symbol in the specified account.
@@ -1243,9 +1243,11 @@ module SnapTrade
1243
1243
  #
1244
1244
  # Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user.
1245
1245
  #
1246
+ # Please note that this data is cached and only refreshed once a day.
1247
+ #
1246
1248
  # 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:
1247
- # - If you do, this endpoint returns real-time data.
1248
- # - If you don't, the data is cached and refreshed once a day. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint.
1249
+ # - If you do, real-time data can be fetched using the [update account details endpoint](/reference/Account%20Information/AccountInformation_getUserAccountDetails).
1250
+ # - If you don't, the data is cached and refreshed once a day. If you need real-time, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
1249
1251
  #
1250
1252
  # @param user_id [String]
1251
1253
  # @param user_secret [String]
@@ -1259,9 +1261,11 @@ module SnapTrade
1259
1261
  #
1260
1262
  # Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user.
1261
1263
  #
1264
+ # Please note that this data is cached and only refreshed once a day.
1265
+ #
1262
1266
  # 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:
1263
- # - If you do, this endpoint returns real-time data.
1264
- # - If you don't, the data is cached and refreshed once a day. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint.
1267
+ # - If you do, real-time data can be fetched using the [update account details endpoint](/reference/Account%20Information/AccountInformation_getUserAccountDetails).
1268
+ # - If you don't, the data is cached and refreshed once a day. If you need real-time, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
1265
1269
  #
1266
1270
  # @param user_id [String]
1267
1271
  # @param user_secret [String]
@@ -1271,7 +1275,7 @@ module SnapTrade
1271
1275
  end
1272
1276
 
1273
1277
  # List accounts
1274
- # Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user. 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. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint.
1278
+ # Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user. Please note that this data is cached and only refreshed once a day. 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, real-time data can be fetched using the [update account details endpoint](/reference/Account%20Information/AccountInformation_getUserAccountDetails). - If you don't, the data is cached and refreshed once a day. If you need real-time, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
1275
1279
  # @param user_id [String]
1276
1280
  # @param user_secret [String]
1277
1281
  # @param [Hash] opts the optional parameters
@@ -1282,7 +1286,7 @@ module SnapTrade
1282
1286
  end
1283
1287
 
1284
1288
  # List accounts
1285
- # Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user. 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&#39;t, the data is cached and refreshed once a day. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint.
1289
+ # Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user. Please note that this data is cached and only refreshed once a day. 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, real-time data can be fetched using the [update account details endpoint](/reference/Account%20Information/AccountInformation_getUserAccountDetails). - If you don&#39;t, the data is cached and refreshed once a day. If you need real-time, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
1286
1290
  # @param user_id [String]
1287
1291
  # @param user_secret [String]
1288
1292
  # @param [Hash] opts the optional parameters
@@ -17,6 +17,114 @@ module SnapTrade
17
17
  @api_client = api_client
18
18
  end
19
19
 
20
+ # Get option quote
21
+ #
22
+ # Returns a real-time quote for a single option contract. The option contract is specified using an OCC-formatted symbol.
23
+ #
24
+ # OCC format: `AAPL 251219C00150000` (underlying padded to 6 characters with spaces, followed by date, put/call, and strike).
25
+ #
26
+ # @param user_id [String]
27
+ # @param user_secret [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_option_quote(user_id:, user_secret:, symbol:, extra: {})
31
+ data, _status_code, _headers = get_option_quote_with_http_info_impl(user_id, user_secret, symbol, extra)
32
+ data
33
+ end
34
+
35
+ # Get option quote
36
+ #
37
+ # Returns a real-time quote for a single option contract. The option contract is specified using an OCC-formatted symbol.
38
+ #
39
+ # OCC format: `AAPL 251219C00150000` (underlying padded to 6 characters with spaces, followed by date, put/call, and strike).
40
+ #
41
+ # @param user_id [String]
42
+ # @param user_secret [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_option_quote_with_http_info(user_id:, user_secret:, symbol:, extra: {})
46
+ get_option_quote_with_http_info_impl(user_id, user_secret, symbol, extra)
47
+ end
48
+
49
+ # Get option quote
50
+ # Returns a real-time quote for a single option contract. The option contract is specified using an OCC-formatted symbol. OCC format: `AAPL 251219C00150000` (underlying padded to 6 characters with spaces, followed by date, put/call, and strike).
51
+ # @param user_id [String]
52
+ # @param user_secret [String]
53
+ # @param symbol [String] The OCC-formatted option symbol.
54
+ # @param [Hash] opts the optional parameters
55
+ # @return [OptionQuote]
56
+ private def get_option_quote_impl(user_id, user_secret, symbol, opts = {})
57
+ data, _status_code, _headers = get_option_quote_with_http_info(user_id, user_secret, symbol, opts)
58
+ data
59
+ end
60
+
61
+ # Get option quote
62
+ # Returns a real-time quote for a single option contract. The option contract is specified using an OCC-formatted symbol. OCC format: &#x60;AAPL 251219C00150000&#x60; (underlying padded to 6 characters with spaces, followed by date, put/call, and strike).
63
+ # @param user_id [String]
64
+ # @param user_secret [String]
65
+ # @param symbol [String] The OCC-formatted option symbol.
66
+ # @param [Hash] opts the optional parameters
67
+ # @return [Array<(OptionQuote, Integer, Hash)>] OptionQuote data, response status code and response headers
68
+ private def get_option_quote_with_http_info_impl(user_id, user_secret, symbol, opts = {})
69
+ if @api_client.config.debugging
70
+ @api_client.config.logger.debug 'Calling API: OptionsApi.get_option_quote ...'
71
+ end
72
+ # verify the required parameter 'user_id' is set
73
+ if @api_client.config.client_side_validation && user_id.nil?
74
+ fail ArgumentError, "Missing the required parameter 'user_id' when calling OptionsApi.get_option_quote"
75
+ end
76
+ # verify the required parameter 'user_secret' is set
77
+ if @api_client.config.client_side_validation && user_secret.nil?
78
+ fail ArgumentError, "Missing the required parameter 'user_secret' when calling OptionsApi.get_option_quote"
79
+ end
80
+ # verify the required parameter 'symbol' is set
81
+ if @api_client.config.client_side_validation && symbol.nil?
82
+ fail ArgumentError, "Missing the required parameter 'symbol' when calling OptionsApi.get_option_quote"
83
+ end
84
+ # resource path
85
+ local_var_path = '/marketData/options/quotes'
86
+
87
+ # query parameters
88
+ query_params = opts[:query_params] || {}
89
+ query_params[:'userId'] = user_id
90
+ query_params[:'userSecret'] = user_secret
91
+ query_params[:'symbol'] = symbol
92
+
93
+ # header parameters
94
+ header_params = opts[:header_params] || {}
95
+ # HTTP header 'Accept' (if needed)
96
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
97
+
98
+ # form parameters
99
+ form_params = opts[:form_params] || {}
100
+
101
+ # http body (model)
102
+ post_body = opts[:debug_body]
103
+
104
+ # return_type
105
+ return_type = opts[:debug_return_type] || 'OptionQuote'
106
+
107
+ # auth_names
108
+ auth_names = opts[:debug_auth_names] || ['PartnerClientId', 'PartnerSignature', 'PartnerTimestamp']
109
+
110
+ new_options = opts.merge(
111
+ :operation => :"OptionsApi.get_option_quote",
112
+ :header_params => header_params,
113
+ :query_params => query_params,
114
+ :form_params => form_params,
115
+ :body => post_body,
116
+ :auth_names => auth_names,
117
+ :return_type => return_type
118
+ )
119
+
120
+ data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
121
+ if @api_client.config.debugging
122
+ @api_client.config.logger.debug "API called: OptionsApi#get_option_quote\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
123
+ end
124
+ return data, status_code, headers, response
125
+ end
126
+
127
+
20
128
  # Get the options chain for a symbol
21
129
  #
22
130
  # Returns the option chain for the specified symbol in the specified account.
@@ -25,6 +25,9 @@ module SnapTrade
25
25
  # The account number assigned by the brokerage. For some brokerages, this field may be masked for security reasons.
26
26
  attr_accessor :number
27
27
 
28
+ # A stable and unique account identifier provided by the institution. Will be set to null if not provided. When present, can be used to check if a user has connected the same brokerage account across multiple connections.
29
+ attr_accessor :institution_account_id
30
+
28
31
  # The name of the brokerage that holds the account.
29
32
  attr_accessor :institution_name
30
33
 
@@ -66,6 +69,7 @@ module SnapTrade
66
69
  :'brokerage_authorization' => :'brokerage_authorization',
67
70
  :'name' => :'name',
68
71
  :'number' => :'number',
72
+ :'institution_account_id' => :'institution_account_id',
69
73
  :'institution_name' => :'institution_name',
70
74
  :'created_date' => :'created_date',
71
75
  :'funding_date' => :'funding_date',
@@ -93,6 +97,7 @@ module SnapTrade
93
97
  :'brokerage_authorization' => :'String',
94
98
  :'name' => :'String',
95
99
  :'number' => :'String',
100
+ :'institution_account_id' => :'String',
96
101
  :'institution_name' => :'String',
97
102
  :'created_date' => :'Time',
98
103
  :'funding_date' => :'Time',
@@ -112,6 +117,7 @@ module SnapTrade
112
117
  def self.openapi_nullable
113
118
  Set.new([
114
119
  :'name',
120
+ :'institution_account_id',
115
121
  :'funding_date',
116
122
  :'opening_date',
117
123
  :'status',
@@ -150,6 +156,10 @@ module SnapTrade
150
156
  self.number = attributes[:'number']
151
157
  end
152
158
 
159
+ if attributes.key?(:'institution_account_id')
160
+ self.institution_account_id = attributes[:'institution_account_id']
161
+ end
162
+
153
163
  if attributes.key?(:'institution_name')
154
164
  self.institution_name = attributes[:'institution_name']
155
165
  end
@@ -265,6 +275,7 @@ module SnapTrade
265
275
  brokerage_authorization == o.brokerage_authorization &&
266
276
  name == o.name &&
267
277
  number == o.number &&
278
+ institution_account_id == o.institution_account_id &&
268
279
  institution_name == o.institution_name &&
269
280
  created_date == o.created_date &&
270
281
  funding_date == o.funding_date &&
@@ -288,7 +299,7 @@ module SnapTrade
288
299
  # Calculates hash code according to all attributes.
289
300
  # @return [Integer] Hash code
290
301
  def hash
291
- [id, brokerage_authorization, name, number, institution_name, created_date, funding_date, opening_date, sync_status, balance, status, raw_type, meta, portfolio_group, cash_restrictions, is_paper].hash
302
+ [id, brokerage_authorization, name, number, institution_account_id, institution_name, created_date, funding_date, opening_date, sync_status, balance, status, raw_type, meta, portfolio_group, cash_restrictions, is_paper].hash
292
303
  end
293
304
 
294
305
  # Builds the object from hash
@@ -22,6 +22,9 @@ module SnapTrade
22
22
  # The account number assigned by the brokerage. For some brokerages, this field may be masked for security reasons.
23
23
  attr_accessor :number
24
24
 
25
+ # A stable and unique account identifier provided by the institution. Will be set to null if not provided. When present, can be used to check if a user has connected the same brokerage account across multiple connections.
26
+ attr_accessor :institution_account_id
27
+
25
28
  attr_accessor :sync_status
26
29
 
27
30
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -30,6 +33,7 @@ module SnapTrade
30
33
  :'id' => :'id',
31
34
  :'name' => :'name',
32
35
  :'number' => :'number',
36
+ :'institution_account_id' => :'institution_account_id',
33
37
  :'sync_status' => :'sync_status'
34
38
  }
35
39
  end
@@ -45,6 +49,7 @@ module SnapTrade
45
49
  :'id' => :'String',
46
50
  :'name' => :'String',
47
51
  :'number' => :'String',
52
+ :'institution_account_id' => :'String',
48
53
  :'sync_status' => :'AccountSyncStatus'
49
54
  }
50
55
  end
@@ -52,6 +57,7 @@ module SnapTrade
52
57
  # List of attributes with nullable: true
53
58
  def self.openapi_nullable
54
59
  Set.new([
60
+ :'institution_account_id',
55
61
  ])
56
62
  end
57
63
 
@@ -82,6 +88,10 @@ module SnapTrade
82
88
  self.number = attributes[:'number']
83
89
  end
84
90
 
91
+ if attributes.key?(:'institution_account_id')
92
+ self.institution_account_id = attributes[:'institution_account_id']
93
+ end
94
+
85
95
  if attributes.key?(:'sync_status')
86
96
  self.sync_status = attributes[:'sync_status']
87
97
  end
@@ -108,6 +118,7 @@ module SnapTrade
108
118
  id == o.id &&
109
119
  name == o.name &&
110
120
  number == o.number &&
121
+ institution_account_id == o.institution_account_id &&
111
122
  sync_status == o.sync_status
112
123
  end
113
124
 
@@ -120,7 +131,7 @@ module SnapTrade
120
131
  # Calculates hash code according to all attributes.
121
132
  # @return [Integer] Hash code
122
133
  def hash
123
- [id, name, number, sync_status].hash
134
+ [id, name, number, institution_account_id, sync_status].hash
124
135
  end
125
136
 
126
137
  # Builds the object from hash
@@ -0,0 +1,329 @@
1
+ =begin
2
+ #SnapTrade
3
+
4
+ #Connect brokerage accounts to your app for live positions and trading
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: api@snaptrade.com
8
+ =end
9
+
10
+ require 'date'
11
+ require 'time'
12
+
13
+ module SnapTrade
14
+ # Real-time quote for a single option contract.
15
+ class OptionQuote
16
+ # The OCC-formatted option symbol.
17
+ attr_accessor :symbol
18
+
19
+ # The best bid price for the option contract.
20
+ attr_accessor :bid_price
21
+
22
+ # The number of contracts available at the bid price.
23
+ attr_accessor :bid_size
24
+
25
+ # The best ask price for the option contract.
26
+ attr_accessor :ask_price
27
+
28
+ # The number of contracts available at the ask price.
29
+ attr_accessor :ask_size
30
+
31
+ # The price of the last trade for the option contract.
32
+ attr_accessor :last_price
33
+
34
+ # The number of contracts in the last trade.
35
+ attr_accessor :last_size
36
+
37
+ # The total number of outstanding contracts.
38
+ attr_accessor :open_interest
39
+
40
+ # The total number of contracts traded during the current session.
41
+ attr_accessor :volume
42
+
43
+ # The implied volatility of the option contract.
44
+ attr_accessor :implied_volatility
45
+
46
+ # The current price of the underlying security.
47
+ attr_accessor :underlying_price
48
+
49
+ # The timestamp of the quote.
50
+ attr_accessor :timestamp
51
+
52
+ # Attribute mapping from ruby-style variable name to JSON key.
53
+ def self.attribute_map
54
+ {
55
+ :'symbol' => :'symbol',
56
+ :'bid_price' => :'bid_price',
57
+ :'bid_size' => :'bid_size',
58
+ :'ask_price' => :'ask_price',
59
+ :'ask_size' => :'ask_size',
60
+ :'last_price' => :'last_price',
61
+ :'last_size' => :'last_size',
62
+ :'open_interest' => :'open_interest',
63
+ :'volume' => :'volume',
64
+ :'implied_volatility' => :'implied_volatility',
65
+ :'underlying_price' => :'underlying_price',
66
+ :'timestamp' => :'timestamp'
67
+ }
68
+ end
69
+
70
+ # Returns all the JSON keys this model knows about
71
+ def self.acceptable_attributes
72
+ attribute_map.values
73
+ end
74
+
75
+ # Attribute type mapping.
76
+ def self.openapi_types
77
+ {
78
+ :'symbol' => :'String',
79
+ :'bid_price' => :'Float',
80
+ :'bid_size' => :'Integer',
81
+ :'ask_price' => :'Float',
82
+ :'ask_size' => :'Integer',
83
+ :'last_price' => :'Float',
84
+ :'last_size' => :'Integer',
85
+ :'open_interest' => :'Integer',
86
+ :'volume' => :'Integer',
87
+ :'implied_volatility' => :'Float',
88
+ :'underlying_price' => :'Float',
89
+ :'timestamp' => :'Time'
90
+ }
91
+ end
92
+
93
+ # List of attributes with nullable: true
94
+ def self.openapi_nullable
95
+ Set.new([
96
+ :'timestamp'
97
+ ])
98
+ end
99
+
100
+ # Initializes the object
101
+ # @param [Hash] attributes Model attributes in the form of hash
102
+ def initialize(attributes = {})
103
+ if (!attributes.is_a?(Hash))
104
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SnapTrade::OptionQuote` initialize method"
105
+ end
106
+
107
+ # check to see if the attribute exists and convert string to symbol for hash key
108
+ attributes = attributes.each_with_object({}) { |(k, v), h|
109
+ if (!self.class.attribute_map.key?(k.to_sym))
110
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SnapTrade::OptionQuote`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
111
+ end
112
+ h[k.to_sym] = v
113
+ }
114
+
115
+ if attributes.key?(:'symbol')
116
+ self.symbol = attributes[:'symbol']
117
+ end
118
+
119
+ if attributes.key?(:'bid_price')
120
+ self.bid_price = attributes[:'bid_price']
121
+ end
122
+
123
+ if attributes.key?(:'bid_size')
124
+ self.bid_size = attributes[:'bid_size']
125
+ end
126
+
127
+ if attributes.key?(:'ask_price')
128
+ self.ask_price = attributes[:'ask_price']
129
+ end
130
+
131
+ if attributes.key?(:'ask_size')
132
+ self.ask_size = attributes[:'ask_size']
133
+ end
134
+
135
+ if attributes.key?(:'last_price')
136
+ self.last_price = attributes[:'last_price']
137
+ end
138
+
139
+ if attributes.key?(:'last_size')
140
+ self.last_size = attributes[:'last_size']
141
+ end
142
+
143
+ if attributes.key?(:'open_interest')
144
+ self.open_interest = attributes[:'open_interest']
145
+ end
146
+
147
+ if attributes.key?(:'volume')
148
+ self.volume = attributes[:'volume']
149
+ end
150
+
151
+ if attributes.key?(:'implied_volatility')
152
+ self.implied_volatility = attributes[:'implied_volatility']
153
+ end
154
+
155
+ if attributes.key?(:'underlying_price')
156
+ self.underlying_price = attributes[:'underlying_price']
157
+ end
158
+
159
+ if attributes.key?(:'timestamp')
160
+ self.timestamp = attributes[:'timestamp']
161
+ end
162
+ end
163
+
164
+ # Show invalid properties with the reasons. Usually used together with valid?
165
+ # @return Array for valid properties with the reasons
166
+ def list_invalid_properties
167
+ invalid_properties = Array.new
168
+ invalid_properties
169
+ end
170
+
171
+ # Check to see if the all the properties in the model are valid
172
+ # @return true if the model is valid
173
+ def valid?
174
+ true
175
+ end
176
+
177
+ # Checks equality by comparing each attribute.
178
+ # @param [Object] Object to be compared
179
+ def ==(o)
180
+ return true if self.equal?(o)
181
+ self.class == o.class &&
182
+ symbol == o.symbol &&
183
+ bid_price == o.bid_price &&
184
+ bid_size == o.bid_size &&
185
+ ask_price == o.ask_price &&
186
+ ask_size == o.ask_size &&
187
+ last_price == o.last_price &&
188
+ last_size == o.last_size &&
189
+ open_interest == o.open_interest &&
190
+ volume == o.volume &&
191
+ implied_volatility == o.implied_volatility &&
192
+ underlying_price == o.underlying_price &&
193
+ timestamp == o.timestamp
194
+ end
195
+
196
+ # @see the `==` method
197
+ # @param [Object] Object to be compared
198
+ def eql?(o)
199
+ self == o
200
+ end
201
+
202
+ # Calculates hash code according to all attributes.
203
+ # @return [Integer] Hash code
204
+ def hash
205
+ [symbol, bid_price, bid_size, ask_price, ask_size, last_price, last_size, open_interest, volume, implied_volatility, underlying_price, timestamp].hash
206
+ end
207
+
208
+ # Builds the object from hash
209
+ # @param [Hash] attributes Model attributes in the form of hash
210
+ # @return [Object] Returns the model itself
211
+ def self.build_from_hash(attributes)
212
+ new.build_from_hash(attributes)
213
+ end
214
+
215
+ # Builds the object from hash
216
+ # @param [Hash] attributes Model attributes in the form of hash
217
+ # @return [Object] Returns the model itself
218
+ def build_from_hash(attributes)
219
+ return nil unless attributes.is_a?(Hash)
220
+ attributes = attributes.transform_keys(&:to_sym)
221
+ self.class.openapi_types.each_pair do |key, type|
222
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
223
+ self.send("#{key}=", nil)
224
+ elsif type =~ /\AArray<(.*)>/i
225
+ # check to ensure the input is an array given that the attribute
226
+ # is documented as an array but the input is not
227
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
228
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
229
+ end
230
+ elsif !attributes[self.class.attribute_map[key]].nil?
231
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
232
+ end
233
+ end
234
+
235
+ self
236
+ end
237
+
238
+ # Deserializes the data based on type
239
+ # @param string type Data type
240
+ # @param string value Value to be deserialized
241
+ # @return [Object] Deserialized data
242
+ def _deserialize(type, value)
243
+ case type.to_sym
244
+ when :Time
245
+ Time.parse(value)
246
+ when :Date
247
+ Date.parse(value)
248
+ when :String
249
+ value.to_s
250
+ when :Integer
251
+ value.to_i
252
+ when :Float
253
+ value.to_f
254
+ when :Boolean
255
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
256
+ true
257
+ else
258
+ false
259
+ end
260
+ when :Object
261
+ # generic object (usually a Hash), return directly
262
+ value
263
+ when /\AArray<(?<inner_type>.+)>\z/
264
+ inner_type = Regexp.last_match[:inner_type]
265
+ value.map { |v| _deserialize(inner_type, v) }
266
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
267
+ k_type = Regexp.last_match[:k_type]
268
+ v_type = Regexp.last_match[:v_type]
269
+ {}.tap do |hash|
270
+ value.each do |k, v|
271
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
272
+ end
273
+ end
274
+ else # model
275
+ # models (e.g. Pet) or oneOf
276
+ klass = SnapTrade.const_get(type)
277
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
278
+ end
279
+ end
280
+
281
+ # Returns the string representation of the object
282
+ # @return [String] String presentation of the object
283
+ def to_s
284
+ to_hash.to_s
285
+ end
286
+
287
+ # to_body is an alias to to_hash (backward compatibility)
288
+ # @return [Hash] Returns the object in the form of hash
289
+ def to_body
290
+ to_hash
291
+ end
292
+
293
+ # Returns the object in the form of hash
294
+ # @return [Hash] Returns the object in the form of hash
295
+ def to_hash
296
+ hash = {}
297
+ self.class.attribute_map.each_pair do |attr, param|
298
+ value = self.send(attr)
299
+ if value.nil?
300
+ is_nullable = self.class.openapi_nullable.include?(attr)
301
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
302
+ end
303
+
304
+ hash[param] = _to_hash(value)
305
+ end
306
+ hash
307
+ end
308
+
309
+ # Outputs non-array value in the form of hash
310
+ # For object, use to_hash. Otherwise, just return the value
311
+ # @param [Object] value Any valid value
312
+ # @return [Hash] Returns the value in the form of hash
313
+ def _to_hash(value)
314
+ if value.is_a?(Array)
315
+ value.compact.map { |v| _to_hash(v) }
316
+ elsif value.is_a?(Hash)
317
+ {}.tap do |hash|
318
+ value.each { |k, v| hash[k] = _to_hash(v) }
319
+ end
320
+ elsif value.respond_to? :to_hash
321
+ value.to_hash
322
+ else
323
+ value
324
+ end
325
+ end
326
+
327
+ end
328
+
329
+ end
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '2.0.163'
11
+ VERSION = '2.0.165'
12
12
  end
data/lib/snaptrade.rb CHANGED
@@ -118,6 +118,7 @@ require 'snaptrade/models/option_chain_inner_chain_per_root_inner_chain_per_stri
118
118
  require 'snaptrade/models/option_impact'
119
119
  require 'snaptrade/models/option_leg'
120
120
  require 'snaptrade/models/option_leg_action'
121
+ require 'snaptrade/models/option_quote'
121
122
  require 'snaptrade/models/option_strategy'
122
123
  require 'snaptrade/models/option_strategy_legs_inner'
123
124
  require 'snaptrade/models/option_type'
@@ -178,7 +178,7 @@ describe 'AccountInformationApi' do
178
178
 
179
179
  # unit tests for list_user_accounts
180
180
  # List accounts
181
- # Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user. 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&#39;t, the data is cached and refreshed once a day. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint.
181
+ # Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user. Please note that this data is cached and only refreshed once a day. 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, real-time data can be fetched using the [update account details endpoint](/reference/Account%20Information/AccountInformation_getUserAccountDetails). - If you don&#39;t, the data is cached and refreshed once a day. If you need real-time, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
182
182
  # @param user_id
183
183
  # @param user_secret
184
184
  # @param [Hash] opts the optional parameters
@@ -27,6 +27,20 @@ describe 'OptionsApi' do
27
27
  end
28
28
  end
29
29
 
30
+ # unit tests for get_option_quote
31
+ # Get option quote
32
+ # Returns a real-time quote for a single option contract. The option contract is specified using an OCC-formatted symbol. OCC format: &#x60;AAPL 251219C00150000&#x60; (underlying padded to 6 characters with spaces, followed by date, put/call, and strike).
33
+ # @param user_id
34
+ # @param user_secret
35
+ # @param symbol The OCC-formatted option symbol.
36
+ # @param [Hash] opts the optional parameters
37
+ # @return [OptionQuote]
38
+ describe 'get_option_quote test' do
39
+ it 'should work' do
40
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
+ end
42
+ end
43
+
30
44
  # unit tests for get_options_chain
31
45
  # Get the options chain for a symbol
32
46
  # Returns the option chain for the specified symbol in the specified account.
@@ -38,6 +38,12 @@ describe SnapTrade::AccountSimple do
38
38
  end
39
39
  end
40
40
 
41
+ describe 'test attribute "institution_account_id"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
41
47
  describe 'test attribute "sync_status"' do
42
48
  it 'should work' do
43
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -44,6 +44,12 @@ describe SnapTrade::Account do
44
44
  end
45
45
  end
46
46
 
47
+ describe 'test attribute "institution_account_id"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
47
53
  describe 'test attribute "institution_name"' do
48
54
  it 'should work' do
49
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -0,0 +1,95 @@
1
+ =begin
2
+ #SnapTrade
3
+
4
+ #Connect brokerage accounts to your app for live positions and trading
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: api@snaptrade.com
8
+ =end
9
+
10
+ require 'spec_helper'
11
+ require 'json'
12
+ require 'date'
13
+
14
+ # Unit tests for SnapTrade::OptionQuote
15
+ describe SnapTrade::OptionQuote do
16
+ let(:instance) { SnapTrade::OptionQuote.new }
17
+
18
+ describe 'test an instance of OptionQuote' do
19
+ it 'should create an instance of OptionQuote' do
20
+ expect(instance).to be_instance_of(SnapTrade::OptionQuote)
21
+ end
22
+ end
23
+ describe 'test attribute "symbol"' do
24
+ it 'should work' do
25
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
26
+ end
27
+ end
28
+
29
+ describe 'test attribute "bid_price"' do
30
+ it 'should work' do
31
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ end
33
+ end
34
+
35
+ describe 'test attribute "bid_size"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "ask_price"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "ask_size"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "last_price"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ describe 'test attribute "last_size"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ describe 'test attribute "open_interest"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ describe 'test attribute "volume"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
77
+ describe 'test attribute "implied_volatility"' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ describe 'test attribute "underlying_price"' do
84
+ it 'should work' do
85
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
+ end
87
+ end
88
+
89
+ describe 'test attribute "timestamp"' do
90
+ it 'should work' do
91
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
+ end
93
+ end
94
+
95
+ 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: 2.0.163
4
+ version: 2.0.165
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-02-21 00:00:00.000000000 Z
11
+ date: 2026-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -198,6 +198,7 @@ files:
198
198
  - lib/snaptrade/models/option_impact.rb
199
199
  - lib/snaptrade/models/option_leg.rb
200
200
  - lib/snaptrade/models/option_leg_action.rb
201
+ - lib/snaptrade/models/option_quote.rb
201
202
  - lib/snaptrade/models/option_strategy.rb
202
203
  - lib/snaptrade/models/option_strategy_legs_inner.rb
203
204
  - lib/snaptrade/models/option_type.rb
@@ -375,6 +376,7 @@ files:
375
376
  - spec/models/option_impact_spec.rb
376
377
  - spec/models/option_leg_action_spec.rb
377
378
  - spec/models/option_leg_spec.rb
379
+ - spec/models/option_quote_spec.rb
378
380
  - spec/models/option_strategy_legs_inner_spec.rb
379
381
  - spec/models/option_strategy_spec.rb
380
382
  - spec/models/option_type_spec.rb
@@ -464,178 +466,179 @@ specification_version: 4
464
466
  summary: SnapTrade Ruby Gem
465
467
  test_files:
466
468
  - spec/api/trading_api_spec.rb
467
- - spec/api/options_api_spec.rb
468
469
  - spec/api/api_status_api_spec.rb
470
+ - spec/api/reference_data_api_spec.rb
471
+ - spec/api/options_api_spec.rb
472
+ - spec/api/authentication_api_spec.rb
469
473
  - spec/api/experimental_endpoints_api_spec.rb
474
+ - spec/api/account_information_api_spec.rb
470
475
  - spec/api/connections_api_spec.rb
471
476
  - spec/api/transactions_and_reporting_api_spec.rb
472
- - spec/api/account_information_api_spec.rb
473
- - spec/api/reference_data_api_spec.rb
474
- - spec/api/authentication_api_spec.rb
475
477
  - spec/api_client_spec.rb
476
478
  - spec/configuration_spec.rb
477
479
  - spec/getting_started_spec.rb
478
- - spec/models/options_symbol_spec.rb
479
- - spec/models/crypto_order_preview_estimated_fee_spec.rb
480
- - spec/models/net_dividend_spec.rb
481
- - spec/models/validated_trade_body_spec.rb
482
- - spec/models/strategy_quotes_greek_spec.rb
483
- - spec/models/connection_portal_version_spec.rb
484
- - spec/models/underlying_symbol_spec.rb
485
- - spec/models/monthly_dividends_spec.rb
486
- - spec/models/option_type_spec.rb
487
- - spec/models/account_balance_spec.rb
488
- - spec/models/underlying_symbol_exchange_spec.rb
489
- - spec/models/connection_type_spec.rb
490
- - spec/models/snap_trade_login_user_request_body_spec.rb
491
- - spec/models/rate_of_return_object_spec.rb
492
- - spec/models/performance_custom_spec.rb
493
- - spec/models/account_order_record_quote_currency_spec.rb
494
- - spec/models/option_leg_action_spec.rb
480
+ - spec/models/balance_spec.rb
481
+ - spec/models/symbol_currency_spec.rb
482
+ - spec/models/snap_trade_holdings_account_spec.rb
483
+ - spec/models/login_redirect_uri_spec.rb
484
+ - spec/models/snap_trade_holdings_total_value_spec.rb
485
+ - spec/models/universal_activity_spec.rb
486
+ - spec/models/symbol_spec.rb
487
+ - spec/models/manual_trade_balance_spec.rb
488
+ - spec/models/encrypted_response_encrypted_message_data_spec.rb
489
+ - spec/models/model500_unexpected_exception_response_spec.rb
490
+ - spec/models/take_profit_spec.rb
491
+ - spec/models/account_holdings_spec.rb
492
+ - spec/models/holdings_status_spec.rb
493
+ - spec/models/trading_instrument_type_spec.rb
494
+ - spec/models/mleg_order_type_strict_spec.rb
495
+ - spec/models/account_simple_spec.rb
496
+ - spec/models/brokerage_spec.rb
497
+ - spec/models/account_order_record_quote_universal_symbol_spec.rb
495
498
  - spec/models/simple_order_form_spec.rb
496
- - spec/models/us_exchange_spec.rb
497
- - spec/models/balance_currency_spec.rb
498
- - spec/models/account_universal_activity_spec.rb
499
+ - spec/models/partner_data_spec.rb
500
+ - spec/models/manual_trade_symbol_spec.rb
499
501
  - spec/models/mleg_price_effect_strict_spec.rb
500
- - spec/models/crypto_order_preview_spec.rb
501
- - spec/models/manual_trade_form_with_options_spec.rb
502
- - spec/models/take_profit_spec.rb
503
- - spec/models/crypto_trading_instrument_spec.rb
502
+ - spec/models/strategy_order_record_status_spec.rb
503
+ - spec/models/balance_currency_spec.rb
504
+ - spec/models/cancel_order_response_spec.rb
505
+ - spec/models/symbol_figi_instrument_spec.rb
506
+ - spec/models/account_orders_v2_response_spec.rb
507
+ - spec/models/model401_failed_request_response_spec.rb
508
+ - spec/models/rate_of_return_object_spec.rb
509
+ - spec/models/manual_trade_spec.rb
510
+ - spec/models/timeframe_spec.rb
511
+ - spec/models/brokerage_authorization_spec.rb
512
+ - spec/models/snap_trade_register_user_request_body_spec.rb
513
+ - spec/models/action_strict_with_options_spec.rb
504
514
  - spec/models/transactions_status_spec.rb
505
- - spec/models/manual_trade_and_impact_spec.rb
506
- - spec/models/underlying_symbol_type_spec.rb
515
+ - spec/models/account_order_record_leg_spec.rb
516
+ - spec/models/encrypted_response_spec.rb
507
517
  - spec/models/symbols_quotes_inner_spec.rb
508
- - spec/models/symbol_exchange_spec.rb
509
- - spec/models/manual_trade_form_bracket_spec.rb
510
- - spec/models/snap_trade_holdings_total_value_spec.rb
511
- - spec/models/model402_brokerage_auth_disabled_response_spec.rb
512
- - spec/models/brokerage_authorization_disabled_confirmation_spec.rb
513
- - spec/models/brokerage_spec.rb
514
- - spec/models/manual_trade_symbol_spec.rb
518
+ - spec/models/manual_trade_form_spec.rb
519
+ - spec/models/option_leg_action_spec.rb
520
+ - spec/models/cryptocurrency_pair_quote_spec.rb
521
+ - spec/models/model404_failed_request_response_spec.rb
522
+ - spec/models/mleg_trading_instrument_spec.rb
523
+ - spec/models/options_position_spec.rb
524
+ - spec/models/child_brokerage_order_ids_spec.rb
525
+ - spec/models/manual_trade_replace_form_spec.rb
515
526
  - spec/models/manual_trade_impact_spec.rb
516
- - spec/models/position_spec.rb
517
- - spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
518
- - spec/models/dividend_at_date_spec.rb
519
- - spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
527
+ - spec/models/net_dividend_spec.rb
528
+ - spec/models/account_balance_spec.rb
529
+ - spec/models/option_chain_inner_spec.rb
530
+ - spec/models/monthly_dividends_spec.rb
531
+ - spec/models/account_order_record_option_symbol_spec.rb
532
+ - spec/models/model402_brokerage_auth_disabled_response_spec.rb
533
+ - spec/models/position_symbol_spec.rb
534
+ - spec/models/account_universal_activity_spec.rb
535
+ - spec/models/brokerage_instruments_response_spec.rb
536
+ - spec/models/manual_trade_and_impact_spec.rb
537
+ - spec/models/brokerage_authorization_type_read_only_spec.rb
538
+ - spec/models/validated_trade_body_spec.rb
539
+ - spec/models/account_order_record_leg_instrument_spec.rb
540
+ - spec/models/universal_symbol_spec.rb
541
+ - spec/models/account_order_record_quote_currency_spec.rb
520
542
  - spec/models/strategy_type_spec.rb
521
- - spec/models/stop_loss_spec.rb
522
- - spec/models/timeframe_spec.rb
523
- - spec/models/crypto_trading_instrument_type_spec.rb
524
- - spec/models/trading_instrument_spec.rb
525
- - spec/models/account_orders_v2_response_spec.rb
526
- - spec/models/order_updated_response_spec.rb
527
- - spec/models/partner_data_spec.rb
543
+ - spec/models/options_position_currency_spec.rb
544
+ - spec/models/currency_spec.rb
528
545
  - spec/models/sub_period_return_rate_spec.rb
529
- - spec/models/mleg_trading_instrument_spec.rb
530
- - spec/models/brokerage_authorization_refresh_confirmation_spec.rb
531
- - spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
532
- - spec/models/account_balance_total_spec.rb
533
- - spec/models/model400_failed_request_response_spec.rb
534
- - spec/models/figi_instrument_spec.rb
535
- - spec/models/manual_trade_replace_form_spec.rb
536
- - spec/models/recent_orders_response_spec.rb
537
- - spec/models/holdings_status_spec.rb
538
- - spec/models/account_spec.rb
539
- - spec/models/option_chain_inner_chain_per_root_inner_spec.rb
540
- - spec/models/manual_trade_form_spec.rb
541
546
  - spec/models/connections_session_events200_response_inner_spec.rb
542
- - spec/models/model425_failed_request_response_spec.rb
543
- - spec/models/symbol_spec.rb
544
- - spec/models/strategy_order_record_status_spec.rb
545
- - spec/models/currency_spec.rb
546
- - spec/models/strategy_quotes_spec.rb
547
- - spec/models/snap_trade_holdings_account_spec.rb
548
- - spec/models/option_chain_inner_spec.rb
549
- - spec/models/exchange_spec.rb
550
- - spec/models/model404_failed_request_response_spec.rb
551
- - spec/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner_spec.rb
547
+ - spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
548
+ - spec/models/position_currency_spec.rb
549
+ - spec/models/brokerage_authorization_refresh_confirmation_spec.rb
550
+ - spec/models/account_order_record_spec.rb
551
+ - spec/models/strategy_quotes_greek_spec.rb
552
+ - spec/models/net_contributions_spec.rb
553
+ - spec/models/mleg_order_response_spec.rb
554
+ - spec/models/manual_trade_form_notional_value_spec.rb
555
+ - spec/models/account_universal_activity_option_symbol_spec.rb
556
+ - spec/models/account_sync_status_spec.rb
557
+ - spec/models/exchange_rate_pairs_spec.rb
558
+ - spec/models/crypto_order_preview_estimated_fee_spec.rb
559
+ - spec/models/account_order_record_status_v2_spec.rb
560
+ - spec/models/crypto_order_preview_spec.rb
561
+ - spec/models/snap_trade_login_user_request_body_spec.rb
562
+ - spec/models/action_strict_spec.rb
563
+ - spec/models/security_type_spec.rb
564
+ - spec/models/cryptocurrency_pair_spec.rb
565
+ - spec/models/account_order_record_universal_symbol_spec.rb
566
+ - spec/models/trading_session_spec.rb
567
+ - spec/models/order_type_strict_spec.rb
568
+ - spec/models/brokerage_authorization_disabled_confirmation_spec.rb
569
+ - spec/models/auth_type_spec.rb
552
570
  - spec/models/notional_value_spec.rb
553
571
  - spec/models/status_spec.rb
554
- - spec/models/universal_activity_spec.rb
555
- - spec/models/session_event_type_spec.rb
556
- - spec/models/mleg_leg_spec.rb
557
- - spec/models/account_order_record_status_v2_spec.rb
558
- - spec/models/brokerage_instrument_spec.rb
559
- - spec/models/account_sync_status_spec.rb
560
- - spec/models/simple_order_form_type_spec.rb
561
- - spec/models/past_value_spec.rb
562
- - spec/models/time_in_force_strict_spec.rb
563
- - spec/models/account_order_record_leg_spec.rb
564
- - spec/models/authentication_login_snap_trade_user200_response_spec.rb
565
- - spec/models/account_order_record_quote_universal_symbol_spec.rb
566
- - spec/models/symbol_figi_instrument_spec.rb
572
+ - spec/models/option_type_spec.rb
567
573
  - spec/models/brokerage_type_spec.rb
568
- - spec/models/mleg_order_type_strict_spec.rb
569
- - spec/models/manual_trade_balance_spec.rb
570
- - spec/models/account_order_record_universal_symbol_spec.rb
571
- - spec/models/account_holdings_account_spec.rb
572
- - spec/models/manual_trade_spec.rb
573
- - spec/models/brokerage_instruments_response_spec.rb
574
- - spec/models/options_position_spec.rb
575
- - spec/models/tax_lot_spec.rb
576
- - spec/models/account_order_record_option_symbol_spec.rb
574
+ - spec/models/dividend_at_date_spec.rb
575
+ - spec/models/brokerage_instrument_spec.rb
577
576
  - spec/models/mleg_action_strict_spec.rb
578
- - spec/models/trading_instrument_type_spec.rb
579
- - spec/models/model401_failed_request_response_spec.rb
580
- - spec/models/mleg_order_response_spec.rb
581
- - spec/models/options_position_currency_spec.rb
582
- - spec/models/universal_symbol_spec.rb
583
577
  - spec/models/crypto_order_form_spec.rb
584
- - spec/models/snap_trade_register_user_request_body_spec.rb
585
- - spec/models/auth_type_spec.rb
586
- - spec/models/mleg_trade_form_spec.rb
587
- - spec/models/option_leg_spec.rb
588
- - spec/models/exchange_rate_pairs_spec.rb
589
- - spec/models/cancel_order_response_spec.rb
590
- - spec/models/login_redirect_uri_spec.rb
591
- - spec/models/account_universal_activity_currency_spec.rb
592
- - spec/models/account_information_get_user_account_order_detail_request_spec.rb
593
- - spec/models/type_spec.rb
594
- - spec/models/order_type_strict_spec.rb
595
- - spec/models/net_contributions_spec.rb
596
- - spec/models/account_status_spec.rb
597
- - spec/models/position_currency_spec.rb
598
- - spec/models/cryptocurrency_pair_spec.rb
599
- - spec/models/cryptocurrency_pair_quote_spec.rb
600
- - spec/models/user_i_dand_secret_spec.rb
601
- - spec/models/brokerage_authorization_type_read_only_spec.rb
602
- - spec/models/security_type_spec.rb
603
- - spec/models/option_brokerage_symbol_spec.rb
604
- - spec/models/model500_unexpected_exception_response_spec.rb
605
- - spec/models/account_universal_activity_option_symbol_spec.rb
606
- - spec/models/account_simple_spec.rb
607
- - spec/models/option_strategy_spec.rb
608
- - spec/models/symbol_query_spec.rb
609
- - spec/models/strategy_order_record_spec.rb
610
- - spec/models/option_impact_spec.rb
611
- - spec/models/model403_feature_not_enabled_response_spec.rb
612
- - spec/models/trading_session_spec.rb
613
- - spec/models/action_strict_spec.rb
614
- - spec/models/crypto_order_form_type_spec.rb
578
+ - spec/models/figi_instrument_spec.rb
615
579
  - spec/models/pagination_details_spec.rb
616
- - spec/models/session_event_spec.rb
617
- - spec/models/account_holdings_spec.rb
618
- - spec/models/account_order_record_leg_instrument_spec.rb
619
- - spec/models/manual_trade_form_notional_value_spec.rb
620
- - spec/models/option_strategy_legs_inner_spec.rb
621
- - spec/models/brokerage_authorization_spec.rb
622
- - spec/models/crypto_order_form_time_in_force_spec.rb
623
- - spec/models/encrypted_response_encrypted_message_data_spec.rb
624
- - spec/models/account_universal_activity_symbol_spec.rb
625
- - spec/models/paginated_universal_activity_spec.rb
626
- - spec/models/rate_of_return_response_spec.rb
627
- - spec/models/balance_spec.rb
580
+ - spec/models/simple_order_form_time_in_force_spec.rb
581
+ - spec/models/trading_instrument_spec.rb
582
+ - spec/models/strategy_order_record_spec.rb
583
+ - spec/models/performance_custom_spec.rb
584
+ - spec/models/account_status_spec.rb
585
+ - spec/models/manual_trade_form_bracket_spec.rb
628
586
  - spec/models/delete_user_response_spec.rb
629
587
  - spec/models/mleg_instrument_type_spec.rb
630
- - spec/models/account_order_record_spec.rb
631
- - spec/models/action_strict_with_options_spec.rb
632
- - spec/models/simple_order_form_time_in_force_spec.rb
633
- - spec/models/account_order_record_v2_spec.rb
634
- - spec/models/child_brokerage_order_ids_spec.rb
635
- - spec/models/encrypted_response_spec.rb
636
- - spec/models/position_symbol_spec.rb
588
+ - spec/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner_spec.rb
589
+ - spec/models/account_universal_activity_symbol_spec.rb
590
+ - spec/models/symbol_exchange_spec.rb
591
+ - spec/models/past_value_spec.rb
592
+ - spec/models/user_i_dand_secret_spec.rb
593
+ - spec/models/exchange_spec.rb
594
+ - spec/models/account_information_get_user_account_order_detail_request_spec.rb
595
+ - spec/models/underlying_symbol_exchange_spec.rb
596
+ - spec/models/rate_of_return_response_spec.rb
597
+ - spec/models/option_leg_spec.rb
598
+ - spec/models/position_spec.rb
599
+ - spec/models/option_strategy_legs_inner_spec.rb
637
600
  - spec/models/account_order_record_child_brokerage_order_ids_spec.rb
601
+ - spec/models/recent_orders_response_spec.rb
602
+ - spec/models/account_order_record_v2_spec.rb
603
+ - spec/models/option_quote_spec.rb
604
+ - spec/models/model425_failed_request_response_spec.rb
605
+ - spec/models/connection_portal_version_spec.rb
638
606
  - spec/models/model403_failed_request_response_spec.rb
607
+ - spec/models/time_in_force_strict_spec.rb
608
+ - spec/models/option_strategy_spec.rb
609
+ - spec/models/strategy_quotes_spec.rb
610
+ - spec/models/mleg_leg_spec.rb
611
+ - spec/models/option_brokerage_symbol_spec.rb
612
+ - spec/models/type_spec.rb
613
+ - spec/models/us_exchange_spec.rb
614
+ - spec/models/mleg_trade_form_spec.rb
615
+ - spec/models/underlying_symbol_type_spec.rb
616
+ - spec/models/underlying_symbol_spec.rb
617
+ - spec/models/stop_loss_spec.rb
618
+ - spec/models/authentication_login_snap_trade_user200_response_spec.rb
619
+ - spec/models/paginated_universal_activity_spec.rb
620
+ - spec/models/crypto_order_form_time_in_force_spec.rb
621
+ - spec/models/account_universal_activity_currency_spec.rb
622
+ - spec/models/option_impact_spec.rb
623
+ - spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
624
+ - spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
625
+ - spec/models/manual_trade_form_with_options_spec.rb
626
+ - spec/models/account_balance_total_spec.rb
627
+ - spec/models/options_symbol_spec.rb
628
+ - spec/models/session_event_spec.rb
629
+ - spec/models/account_holdings_account_spec.rb
630
+ - spec/models/crypto_trading_instrument_spec.rb
631
+ - spec/models/symbol_query_spec.rb
639
632
  - spec/models/account_order_record_status_spec.rb
640
- - spec/models/symbol_currency_spec.rb
633
+ - spec/models/account_spec.rb
634
+ - spec/models/crypto_trading_instrument_type_spec.rb
635
+ - spec/models/session_event_type_spec.rb
636
+ - spec/models/model400_failed_request_response_spec.rb
637
+ - spec/models/tax_lot_spec.rb
638
+ - spec/models/simple_order_form_type_spec.rb
639
+ - spec/models/model403_feature_not_enabled_response_spec.rb
640
+ - spec/models/option_chain_inner_chain_per_root_inner_spec.rb
641
+ - spec/models/connection_type_spec.rb
642
+ - spec/models/order_updated_response_spec.rb
643
+ - spec/models/crypto_order_form_type_spec.rb
641
644
  - spec/spec_helper.rb