snaptrade 3.0.18 → 3.0.19

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: d3b7b8557292b530471e263244bf3c9835ff59de651efea9043362b1d37d2a37
4
- data.tar.gz: 6cdb0bd696a7b1da4816643efd5a7846d84cb72f0ad4690e907529be079ca470
3
+ metadata.gz: 83b50aa122906e3335ec87cea66fd578b1051d185cb443a3fa1d4547cc169ba4
4
+ data.tar.gz: e75959932405d8332e0ff0792b33a822803bde99884f4d88e3bf77f2a9f266e4
5
5
  SHA512:
6
- metadata.gz: 458a0b04f324e1af72378ac4e79a319b8e6bb18112fda20f3ce30197628100953c4f71f5c097936f521ffee3d09de70c62cdbecc1cb8c41805310dfe45bfb1f3
7
- data.tar.gz: bcb86916eb4cec245ee91bd16059355d16788a7dc9691bd1f752e07e7534e32f7b382d0b3bf21fb5618972f8989d6b221da66ab07168c572e2dd33f4b9b1fedf
6
+ metadata.gz: 8299becc77d8244f1d6f83f506af9cab8a03662c3b3ffd94d168dbff044cc6e9f39aa91826ab24e68c0b8f3f3a34c3a639fa3d12d3f6b03b35155bab21be5efd
7
+ data.tar.gz: 9ac79ae9f0c067be7822318d3a0093cafc0b06d951250165057bbe8a2e8fa7232ff96fef1ce31bfe5d710910cce62b4efe09bf5db4d4424bdd5218d4810f59f3
data/README.md CHANGED
@@ -63,7 +63,7 @@ backoff with jitter rather than from the headers.
63
63
  See https://docs.snaptrade.com/docs/ratelimiting.
64
64
 
65
65
 
66
- [![npm](https://img.shields.io/badge/gem-v3.0.18-blue)](https://rubygems.org/gems/snaptrade/versions/3.0.18)
66
+ [![npm](https://img.shields.io/badge/gem-v3.0.19-blue)](https://rubygems.org/gems/snaptrade/versions/3.0.19)
67
67
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
68
68
 
69
69
  </div>
@@ -139,7 +139,7 @@ See https://docs.snaptrade.com/docs/ratelimiting.
139
139
  Add to Gemfile:
140
140
 
141
141
  ```ruby
142
- gem 'snaptrade', '~> 3.0.18'
142
+ gem 'snaptrade', '~> 3.0.19'
143
143
  ```
144
144
 
145
145
  ## Getting Started<a id="getting-started"></a>
@@ -307,7 +307,9 @@ p result
307
307
 
308
308
  Returns a list of all positions in the specified account.
309
309
 
310
- The `results` list can contain multiple instrument types in the same response, including stocks, ADRs, ETFs, mutual funds, closed-end funds, bonds, crypto, futures, option positions, and CFD positions. Use the `instrument.kind` discriminator to determine the schema for each position's `instrument`.
310
+ The `results` list can contain multiple instrument types in the same response, including stocks, ADRs, ETFs, mutual funds, closed-end funds, bonds, crypto, futures, option positions, future option positions, and CFD positions. Use the `instrument.kind` discriminator to determine the schema for each position's `instrument`.
311
+
312
+ **Beta:** future option positions (`instrument.kind: future_option`) are in beta. They are currently returned only for tastytrade and Interactive Brokers connections, and only for partners they have been enabled for — please contact the SnapTrade team to enable them. The `FutureOptionInstrument` schema may change.
311
313
 
312
314
  Positions counted in account cash balance or buying power include `cash_equivalent: true`. `stock`, `adr`, `etf`, `mutualfund`, and `crypto` positions may include `tax_lots` when tax lot data is enabled for the account. To see which institutions support tax lot data, please see our [supported institutions doc](https://support.snaptrade.com/brokerages).
313
315
 
@@ -290,7 +290,9 @@ module SnapTrade
290
290
  #
291
291
  # Returns a list of all positions in the specified account.
292
292
  #
293
- # The `results` list can contain multiple instrument types in the same response, including stocks, ADRs, ETFs, mutual funds, closed-end funds, bonds, crypto, futures, option positions, and CFD positions. Use the `instrument.kind` discriminator to determine the schema for each position's `instrument`.
293
+ # The `results` list can contain multiple instrument types in the same response, including stocks, ADRs, ETFs, mutual funds, closed-end funds, bonds, crypto, futures, option positions, future option positions, and CFD positions. Use the `instrument.kind` discriminator to determine the schema for each position's `instrument`.
294
+ #
295
+ # **Beta:** future option positions (`instrument.kind: future_option`) are in beta. They are currently returned only for tastytrade and Interactive Brokers connections, and only for partners they have been enabled for — please contact the SnapTrade team to enable them. The `FutureOptionInstrument` schema may change.
294
296
  #
295
297
  # Positions counted in account cash balance or buying power include `cash_equivalent: true`. `stock`, `adr`, `etf`, `mutualfund`, and `crypto` positions may include `tax_lots` when tax lot data is enabled for the account. To see which institutions support tax lot data, please see our [supported institutions doc](https://support.snaptrade.com/brokerages).
296
298
  #
@@ -309,7 +311,9 @@ module SnapTrade
309
311
  #
310
312
  # Returns a list of all positions in the specified account.
311
313
  #
312
- # The `results` list can contain multiple instrument types in the same response, including stocks, ADRs, ETFs, mutual funds, closed-end funds, bonds, crypto, futures, option positions, and CFD positions. Use the `instrument.kind` discriminator to determine the schema for each position's `instrument`.
314
+ # The `results` list can contain multiple instrument types in the same response, including stocks, ADRs, ETFs, mutual funds, closed-end funds, bonds, crypto, futures, option positions, future option positions, and CFD positions. Use the `instrument.kind` discriminator to determine the schema for each position's `instrument`.
315
+ #
316
+ # **Beta:** future option positions (`instrument.kind: future_option`) are in beta. They are currently returned only for tastytrade and Interactive Brokers connections, and only for partners they have been enabled for — please contact the SnapTrade team to enable them. The `FutureOptionInstrument` schema may change.
313
317
  #
314
318
  # Positions counted in account cash balance or buying power include `cash_equivalent: true`. `stock`, `adr`, `etf`, `mutualfund`, and `crypto` positions may include `tax_lots` when tax lot data is enabled for the account. To see which institutions support tax lot data, please see our [supported institutions doc](https://support.snaptrade.com/brokerages).
315
319
  #
@@ -324,7 +328,7 @@ module SnapTrade
324
328
  end
325
329
 
326
330
  # List all account positions
327
- # Returns a list of all positions in the specified account. The `results` list can contain multiple instrument types in the same response, including stocks, ADRs, ETFs, mutual funds, closed-end funds, bonds, crypto, futures, option positions, and CFD positions. Use the `instrument.kind` discriminator to determine the schema for each position's `instrument`. Positions counted in account cash balance or buying power include `cash_equivalent: true`. `stock`, `adr`, `etf`, `mutualfund`, and `crypto` positions may include `tax_lots` when tax lot data is enabled for the account. To see which institutions support tax lot data, please see our [supported institutions doc](https://support.snaptrade.com/brokerages). If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
331
+ # Returns a list of all positions in the specified account. The `results` list can contain multiple instrument types in the same response, including stocks, ADRs, ETFs, mutual funds, closed-end funds, bonds, crypto, futures, option positions, future option positions, and CFD positions. Use the `instrument.kind` discriminator to determine the schema for each position's `instrument`. **Beta:** future option positions (`instrument.kind: future_option`) are in beta. They are currently returned only for tastytrade and Interactive Brokers connections, and only for partners they have been enabled for — please contact the SnapTrade team to enable them. The `FutureOptionInstrument` schema may change. Positions counted in account cash balance or buying power include `cash_equivalent: true`. `stock`, `adr`, `etf`, `mutualfund`, and `crypto` positions may include `tax_lots` when tax lot data is enabled for the account. To see which institutions support tax lot data, please see our [supported institutions doc](https://support.snaptrade.com/brokerages). If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
328
332
  # @param user_id [String]
329
333
  # @param user_secret [String]
330
334
  # @param account_id [String]
@@ -336,7 +340,7 @@ module SnapTrade
336
340
  end
337
341
 
338
342
  # List all account positions
339
- # Returns a list of all positions in the specified account. The &#x60;results&#x60; list can contain multiple instrument types in the same response, including stocks, ADRs, ETFs, mutual funds, closed-end funds, bonds, crypto, futures, option positions, and CFD positions. Use the &#x60;instrument.kind&#x60; discriminator to determine the schema for each position&#39;s &#x60;instrument&#x60;. Positions counted in account cash balance or buying power include &#x60;cash_equivalent: true&#x60;. &#x60;stock&#x60;, &#x60;adr&#x60;, &#x60;etf&#x60;, &#x60;mutualfund&#x60;, and &#x60;crypto&#x60; positions may include &#x60;tax_lots&#x60; when tax lot data is enabled for the account. To see which institutions support tax lot data, please see our [supported institutions doc](https://support.snaptrade.com/brokerages). If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
343
+ # Returns a list of all positions in the specified account. The &#x60;results&#x60; list can contain multiple instrument types in the same response, including stocks, ADRs, ETFs, mutual funds, closed-end funds, bonds, crypto, futures, option positions, future option positions, and CFD positions. Use the &#x60;instrument.kind&#x60; discriminator to determine the schema for each position&#39;s &#x60;instrument&#x60;. **Beta:** future option positions (&#x60;instrument.kind: future_option&#x60;) are in beta. They are currently returned only for tastytrade and Interactive Brokers connections, and only for partners they have been enabled for — please contact the SnapTrade team to enable them. The &#x60;FutureOptionInstrument&#x60; schema may change. Positions counted in account cash balance or buying power include &#x60;cash_equivalent: true&#x60;. &#x60;stock&#x60;, &#x60;adr&#x60;, &#x60;etf&#x60;, &#x60;mutualfund&#x60;, and &#x60;crypto&#x60; positions may include &#x60;tax_lots&#x60; when tax lot data is enabled for the account. To see which institutions support tax lot data, please see our [supported institutions doc](https://support.snaptrade.com/brokerages). If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
340
344
  # @param user_id [String]
341
345
  # @param user_secret [String]
342
346
  # @param account_id [String]
@@ -0,0 +1,356 @@
1
+ =begin
2
+ #SnapTrade
3
+
4
+ #Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
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
+ # Future option (option on a futures contract) instrument metadata for a V2 position. **Beta:** currently returned only for tastytrade and Interactive Brokers connections, and only for partners it has been enabled for. This schema may change.
15
+ class FutureOptionInstrument
16
+ # Type of security instrument.
17
+ attr_accessor :kind
18
+
19
+ # Unique identifier for the future option instrument.
20
+ attr_accessor :id
21
+
22
+ # Display symbol for the future option contract.
23
+ attr_accessor :symbol
24
+
25
+ # Whether the contract is a call or put.
26
+ attr_accessor :option_type
27
+
28
+ # Strike price for the option contract.
29
+ attr_accessor :strike_price
30
+
31
+ # Expiration date of the option contract.
32
+ attr_accessor :expiration_date
33
+
34
+ # Notional multiplier for the option contract.
35
+ attr_accessor :multiplier
36
+
37
+ # Human-readable description of the option contract.
38
+ attr_accessor :description
39
+
40
+ # ISO-4217 currency code for the contract.
41
+ attr_accessor :currency
42
+
43
+ # Exchange MIC code or exchange code for the contract.
44
+ attr_accessor :exchange
45
+
46
+ attr_accessor :underlying
47
+
48
+ # Attribute mapping from ruby-style variable name to JSON key.
49
+ def self.attribute_map
50
+ {
51
+ :'kind' => :'kind',
52
+ :'id' => :'id',
53
+ :'symbol' => :'symbol',
54
+ :'option_type' => :'option_type',
55
+ :'strike_price' => :'strike_price',
56
+ :'expiration_date' => :'expiration_date',
57
+ :'multiplier' => :'multiplier',
58
+ :'description' => :'description',
59
+ :'currency' => :'currency',
60
+ :'exchange' => :'exchange',
61
+ :'underlying' => :'underlying'
62
+ }
63
+ end
64
+
65
+ # Returns all the JSON keys this model knows about
66
+ def self.acceptable_attributes
67
+ attribute_map.values
68
+ end
69
+
70
+ # Attribute type mapping.
71
+ def self.openapi_types
72
+ {
73
+ :'kind' => :'FutureOptionInstrumentKind',
74
+ :'id' => :'String',
75
+ :'symbol' => :'String',
76
+ :'option_type' => :'OptionType',
77
+ :'strike_price' => :'Float',
78
+ :'expiration_date' => :'Date',
79
+ :'multiplier' => :'Float',
80
+ :'description' => :'String',
81
+ :'currency' => :'String',
82
+ :'exchange' => :'String',
83
+ :'underlying' => :'FutureInstrument'
84
+ }
85
+ end
86
+
87
+ # List of attributes with nullable: true
88
+ def self.openapi_nullable
89
+ Set.new([
90
+ :'multiplier',
91
+ :'description',
92
+ :'currency',
93
+ :'exchange',
94
+ ])
95
+ end
96
+
97
+ # Initializes the object
98
+ # @param [Hash] attributes Model attributes in the form of hash
99
+ def initialize(attributes = {})
100
+ if (!attributes.is_a?(Hash))
101
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SnapTrade::FutureOptionInstrument` initialize method"
102
+ end
103
+
104
+ # check to see if the attribute exists and convert string to symbol for hash key
105
+ attributes = attributes.each_with_object({}) { |(k, v), h|
106
+ if (!self.class.attribute_map.key?(k.to_sym))
107
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SnapTrade::FutureOptionInstrument`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
108
+ end
109
+ h[k.to_sym] = v
110
+ }
111
+
112
+ if attributes.key?(:'kind')
113
+ self.kind = attributes[:'kind']
114
+ end
115
+
116
+ if attributes.key?(:'id')
117
+ self.id = attributes[:'id']
118
+ end
119
+
120
+ if attributes.key?(:'symbol')
121
+ self.symbol = attributes[:'symbol']
122
+ end
123
+
124
+ if attributes.key?(:'option_type')
125
+ self.option_type = attributes[:'option_type']
126
+ end
127
+
128
+ if attributes.key?(:'strike_price')
129
+ self.strike_price = attributes[:'strike_price']
130
+ end
131
+
132
+ if attributes.key?(:'expiration_date')
133
+ self.expiration_date = attributes[:'expiration_date']
134
+ end
135
+
136
+ if attributes.key?(:'multiplier')
137
+ self.multiplier = attributes[:'multiplier']
138
+ end
139
+
140
+ if attributes.key?(:'description')
141
+ self.description = attributes[:'description']
142
+ end
143
+
144
+ if attributes.key?(:'currency')
145
+ self.currency = attributes[:'currency']
146
+ end
147
+
148
+ if attributes.key?(:'exchange')
149
+ self.exchange = attributes[:'exchange']
150
+ end
151
+
152
+ if attributes.key?(:'underlying')
153
+ self.underlying = attributes[:'underlying']
154
+ end
155
+ end
156
+
157
+ # Show invalid properties with the reasons. Usually used together with valid?
158
+ # @return Array for valid properties with the reasons
159
+ def list_invalid_properties
160
+ invalid_properties = Array.new
161
+ if @kind.nil?
162
+ invalid_properties.push('invalid value for "kind", kind cannot be nil.')
163
+ end
164
+
165
+ if @id.nil?
166
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
167
+ end
168
+
169
+ if @symbol.nil?
170
+ invalid_properties.push('invalid value for "symbol", symbol cannot be nil.')
171
+ end
172
+
173
+ if @option_type.nil?
174
+ invalid_properties.push('invalid value for "option_type", option_type cannot be nil.')
175
+ end
176
+
177
+ if @strike_price.nil?
178
+ invalid_properties.push('invalid value for "strike_price", strike_price cannot be nil.')
179
+ end
180
+
181
+ if @expiration_date.nil?
182
+ invalid_properties.push('invalid value for "expiration_date", expiration_date cannot be nil.')
183
+ end
184
+
185
+ if @underlying.nil?
186
+ invalid_properties.push('invalid value for "underlying", underlying cannot be nil.')
187
+ end
188
+
189
+ invalid_properties
190
+ end
191
+
192
+ # Check to see if the all the properties in the model are valid
193
+ # @return true if the model is valid
194
+ def valid?
195
+ return false if @kind.nil?
196
+ return false if @id.nil?
197
+ return false if @symbol.nil?
198
+ return false if @option_type.nil?
199
+ return false if @strike_price.nil?
200
+ return false if @expiration_date.nil?
201
+ return false if @underlying.nil?
202
+ true
203
+ end
204
+
205
+ # Checks equality by comparing each attribute.
206
+ # @param [Object] Object to be compared
207
+ def ==(o)
208
+ return true if self.equal?(o)
209
+ self.class == o.class &&
210
+ kind == o.kind &&
211
+ id == o.id &&
212
+ symbol == o.symbol &&
213
+ option_type == o.option_type &&
214
+ strike_price == o.strike_price &&
215
+ expiration_date == o.expiration_date &&
216
+ multiplier == o.multiplier &&
217
+ description == o.description &&
218
+ currency == o.currency &&
219
+ exchange == o.exchange &&
220
+ underlying == o.underlying
221
+ end
222
+
223
+ # @see the `==` method
224
+ # @param [Object] Object to be compared
225
+ def eql?(o)
226
+ self == o
227
+ end
228
+
229
+ # Calculates hash code according to all attributes.
230
+ # @return [Integer] Hash code
231
+ def hash
232
+ [kind, id, symbol, option_type, strike_price, expiration_date, multiplier, description, currency, exchange, underlying].hash
233
+ end
234
+
235
+ # Builds the object from hash
236
+ # @param [Hash] attributes Model attributes in the form of hash
237
+ # @return [Object] Returns the model itself
238
+ def self.build_from_hash(attributes)
239
+ new.build_from_hash(attributes)
240
+ end
241
+
242
+ # Builds the object from hash
243
+ # @param [Hash] attributes Model attributes in the form of hash
244
+ # @return [Object] Returns the model itself
245
+ def build_from_hash(attributes)
246
+ return nil unless attributes.is_a?(Hash)
247
+ attributes = attributes.transform_keys(&:to_sym)
248
+ self.class.openapi_types.each_pair do |key, type|
249
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
250
+ self.send("#{key}=", nil)
251
+ elsif type =~ /\AArray<(.*)>/i
252
+ # check to ensure the input is an array given that the attribute
253
+ # is documented as an array but the input is not
254
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
255
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
256
+ end
257
+ elsif !attributes[self.class.attribute_map[key]].nil?
258
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
259
+ end
260
+ end
261
+
262
+ self
263
+ end
264
+
265
+ # Deserializes the data based on type
266
+ # @param string type Data type
267
+ # @param string value Value to be deserialized
268
+ # @return [Object] Deserialized data
269
+ def _deserialize(type, value)
270
+ case type.to_sym
271
+ when :Time
272
+ Time.parse(value)
273
+ when :Date
274
+ Date.parse(value)
275
+ when :String
276
+ value.to_s
277
+ when :Integer
278
+ value.to_i
279
+ when :Float
280
+ value.to_f
281
+ when :Boolean
282
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
283
+ true
284
+ else
285
+ false
286
+ end
287
+ when :Object
288
+ # generic object (usually a Hash), return directly
289
+ value
290
+ when /\AArray<(?<inner_type>.+)>\z/
291
+ inner_type = Regexp.last_match[:inner_type]
292
+ value.map { |v| _deserialize(inner_type, v) }
293
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
294
+ k_type = Regexp.last_match[:k_type]
295
+ v_type = Regexp.last_match[:v_type]
296
+ {}.tap do |hash|
297
+ value.each do |k, v|
298
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
299
+ end
300
+ end
301
+ else # model
302
+ # models (e.g. Pet) or oneOf
303
+ klass = SnapTrade.const_get(type)
304
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
305
+ end
306
+ end
307
+
308
+ # Returns the string representation of the object
309
+ # @return [String] String presentation of the object
310
+ def to_s
311
+ to_hash.to_s
312
+ end
313
+
314
+ # to_body is an alias to to_hash (backward compatibility)
315
+ # @return [Hash] Returns the object in the form of hash
316
+ def to_body
317
+ to_hash
318
+ end
319
+
320
+ # Returns the object in the form of hash
321
+ # @return [Hash] Returns the object in the form of hash
322
+ def to_hash
323
+ hash = {}
324
+ self.class.attribute_map.each_pair do |attr, param|
325
+ value = self.send(attr)
326
+ if value.nil?
327
+ is_nullable = self.class.openapi_nullable.include?(attr)
328
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
329
+ end
330
+
331
+ hash[param] = _to_hash(value)
332
+ end
333
+ hash
334
+ end
335
+
336
+ # Outputs non-array value in the form of hash
337
+ # For object, use to_hash. Otherwise, just return the value
338
+ # @param [Object] value Any valid value
339
+ # @return [Hash] Returns the value in the form of hash
340
+ def _to_hash(value)
341
+ if value.is_a?(Array)
342
+ value.compact.map { |v| _to_hash(v) }
343
+ elsif value.is_a?(Hash)
344
+ {}.tap do |hash|
345
+ value.each { |k, v| hash[k] = _to_hash(v) }
346
+ end
347
+ elsif value.respond_to? :to_hash
348
+ value.to_hash
349
+ else
350
+ value
351
+ end
352
+ end
353
+
354
+ end
355
+
356
+ end
@@ -0,0 +1,36 @@
1
+ =begin
2
+ #SnapTrade
3
+
4
+ #Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
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
+ class FutureOptionInstrumentKind
15
+ FUTURE_OPTION = "future_option".freeze
16
+
17
+ def self.all_vars
18
+ @all_vars ||= [FUTURE_OPTION].freeze
19
+ end
20
+
21
+ # Builds the enum from string
22
+ # @param [String] The enum value in the form of the string
23
+ # @return [String] The enum value
24
+ def self.build_from_hash(value)
25
+ new.build_from_hash(value)
26
+ end
27
+
28
+ # Builds the enum from string
29
+ # @param [String] The enum value in the form of the string
30
+ # @return [String] The enum value
31
+ def build_from_hash(value)
32
+ return value if FutureOptionInstrumentKind.all_vars.include?(value)
33
+ raise "Invalid ENUM value #{value} for class #FutureOptionInstrumentKind"
34
+ end
35
+ end
36
+ end
@@ -23,6 +23,7 @@ module SnapTrade
23
23
  :'CryptoInstrument',
24
24
  :'EtfInstrument',
25
25
  :'FutureInstrument',
26
+ :'FutureOptionInstrument',
26
27
  :'MutualFundInstrument',
27
28
  :'OptionInstrument',
28
29
  :'OtherInstrument',
@@ -45,6 +46,7 @@ module SnapTrade
45
46
  :'crypto' => :'CryptoInstrument',
46
47
  :'etf' => :'EtfInstrument',
47
48
  :'future' => :'FutureInstrument',
49
+ :'future_option' => :'FutureOptionInstrument',
48
50
  :'mutualfund' => :'MutualFundInstrument',
49
51
  :'option' => :'OptionInstrument',
50
52
  :'other' => :'OtherInstrument',
@@ -65,7 +65,7 @@ module SnapTrade
65
65
  :'kind' => :'OptionInstrumentKind',
66
66
  :'id' => :'String',
67
67
  :'symbol' => :'String',
68
- :'option_type' => :'OptionType',
68
+ :'option_type' => :'OptionInstrumentOptionType',
69
69
  :'strike_price' => :'Float',
70
70
  :'expiration_date' => :'Date',
71
71
  :'multiplier' => :'Float',
@@ -0,0 +1,37 @@
1
+ =begin
2
+ #SnapTrade
3
+
4
+ #Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
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
+ class OptionInstrumentOptionType
15
+ CALL = "CALL".freeze
16
+ PUT = "PUT".freeze
17
+
18
+ def self.all_vars
19
+ @all_vars ||= [CALL, PUT].freeze
20
+ end
21
+
22
+ # Builds the enum from string
23
+ # @param [String] The enum value in the form of the string
24
+ # @return [String] The enum value
25
+ def self.build_from_hash(value)
26
+ new.build_from_hash(value)
27
+ end
28
+
29
+ # Builds the enum from string
30
+ # @param [String] The enum value in the form of the string
31
+ # @return [String] The enum value
32
+ def build_from_hash(value)
33
+ return value if OptionInstrumentOptionType.all_vars.include?(value)
34
+ raise "Invalid ENUM value #{value} for class #OptionInstrumentOptionType"
35
+ end
36
+ end
37
+ end
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '3.0.18'
11
+ VERSION = '3.0.19'
12
12
  end
data/lib/snaptrade.rb CHANGED
@@ -113,6 +113,8 @@ require 'snaptrade/models/exchange_rate_pairs'
113
113
  require 'snaptrade/models/figi_instrument'
114
114
  require 'snaptrade/models/future_instrument'
115
115
  require 'snaptrade/models/future_instrument_kind'
116
+ require 'snaptrade/models/future_option_instrument'
117
+ require 'snaptrade/models/future_option_instrument_kind'
116
118
  require 'snaptrade/models/holdings_status'
117
119
  require 'snaptrade/models/institution'
118
120
  require 'snaptrade/models/instrument'
@@ -173,6 +175,7 @@ require 'snaptrade/models/option_chain_inner_chain_per_root_inner_chain_per_stri
173
175
  require 'snaptrade/models/option_impact'
174
176
  require 'snaptrade/models/option_instrument'
175
177
  require 'snaptrade/models/option_instrument_kind'
178
+ require 'snaptrade/models/option_instrument_option_type'
176
179
  require 'snaptrade/models/option_leg'
177
180
  require 'snaptrade/models/option_leg_action'
178
181
  require 'snaptrade/models/option_quote'
@@ -62,7 +62,7 @@ describe 'AccountInformationApi' do
62
62
 
63
63
  # unit tests for get_all_account_positions
64
64
  # List all account positions
65
- # Returns a list of all positions in the specified account. The &#x60;results&#x60; list can contain multiple instrument types in the same response, including stocks, ADRs, ETFs, mutual funds, closed-end funds, bonds, crypto, futures, option positions, and CFD positions. Use the &#x60;instrument.kind&#x60; discriminator to determine the schema for each position&#39;s &#x60;instrument&#x60;. Positions counted in account cash balance or buying power include &#x60;cash_equivalent: true&#x60;. &#x60;stock&#x60;, &#x60;adr&#x60;, &#x60;etf&#x60;, &#x60;mutualfund&#x60;, and &#x60;crypto&#x60; positions may include &#x60;tax_lots&#x60; when tax lot data is enabled for the account. To see which institutions support tax lot data, please see our [supported institutions doc](https://support.snaptrade.com/brokerages). If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
65
+ # Returns a list of all positions in the specified account. The &#x60;results&#x60; list can contain multiple instrument types in the same response, including stocks, ADRs, ETFs, mutual funds, closed-end funds, bonds, crypto, futures, option positions, future option positions, and CFD positions. Use the &#x60;instrument.kind&#x60; discriminator to determine the schema for each position&#39;s &#x60;instrument&#x60;. **Beta:** future option positions (&#x60;instrument.kind: future_option&#x60;) are in beta. They are currently returned only for tastytrade and Interactive Brokers connections, and only for partners they have been enabled for — please contact the SnapTrade team to enable them. The &#x60;FutureOptionInstrument&#x60; schema may change. Positions counted in account cash balance or buying power include &#x60;cash_equivalent: true&#x60;. &#x60;stock&#x60;, &#x60;adr&#x60;, &#x60;etf&#x60;, &#x60;mutualfund&#x60;, and &#x60;crypto&#x60; positions may include &#x60;tax_lots&#x60; when tax lot data is enabled for the account. To see which institutions support tax lot data, please see our [supported institutions doc](https://support.snaptrade.com/brokerages). If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
66
66
  # @param user_id
67
67
  # @param user_secret
68
68
  # @param account_id
@@ -0,0 +1,23 @@
1
+ =begin
2
+ #SnapTrade
3
+
4
+ #Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
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::FutureOptionInstrumentKind
15
+ describe SnapTrade::FutureOptionInstrumentKind do
16
+ let(:instance) { SnapTrade::FutureOptionInstrumentKind.new }
17
+
18
+ describe 'test an instance of FutureOptionInstrumentKind' do
19
+ it 'should create an instance of FutureOptionInstrumentKind' do
20
+ expect(instance).to be_instance_of(SnapTrade::FutureOptionInstrumentKind)
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,89 @@
1
+ =begin
2
+ #SnapTrade
3
+
4
+ #Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
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::FutureOptionInstrument
15
+ describe SnapTrade::FutureOptionInstrument do
16
+ let(:instance) { SnapTrade::FutureOptionInstrument.new }
17
+
18
+ describe 'test an instance of FutureOptionInstrument' do
19
+ it 'should create an instance of FutureOptionInstrument' do
20
+ expect(instance).to be_instance_of(SnapTrade::FutureOptionInstrument)
21
+ end
22
+ end
23
+ describe 'test attribute "kind"' 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 "id"' 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 "symbol"' 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 "option_type"' 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 "strike_price"' 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 "expiration_date"' 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 "multiplier"' 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 "description"' 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 "currency"' 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 "exchange"' 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"' 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
+ end
@@ -0,0 +1,23 @@
1
+ =begin
2
+ #SnapTrade
3
+
4
+ #Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
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::OptionInstrumentOptionType
15
+ describe SnapTrade::OptionInstrumentOptionType do
16
+ let(:instance) { SnapTrade::OptionInstrumentOptionType.new }
17
+
18
+ describe 'test an instance of OptionInstrumentOptionType' do
19
+ it 'should create an instance of OptionInstrumentOptionType' do
20
+ expect(instance).to be_instance_of(SnapTrade::OptionInstrumentOptionType)
21
+ end
22
+ end
23
+ 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: 3.0.18
4
+ version: 3.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-09-10 00:00:00.000000000 Z
11
+ date: 2026-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -227,6 +227,8 @@ files:
227
227
  - lib/snaptrade/models/figi_instrument.rb
228
228
  - lib/snaptrade/models/future_instrument.rb
229
229
  - lib/snaptrade/models/future_instrument_kind.rb
230
+ - lib/snaptrade/models/future_option_instrument.rb
231
+ - lib/snaptrade/models/future_option_instrument_kind.rb
230
232
  - lib/snaptrade/models/holdings_status.rb
231
233
  - lib/snaptrade/models/institution.rb
232
234
  - lib/snaptrade/models/instrument.rb
@@ -287,6 +289,7 @@ files:
287
289
  - lib/snaptrade/models/option_impact.rb
288
290
  - lib/snaptrade/models/option_instrument.rb
289
291
  - lib/snaptrade/models/option_instrument_kind.rb
292
+ - lib/snaptrade/models/option_instrument_option_type.rb
290
293
  - lib/snaptrade/models/option_leg.rb
291
294
  - lib/snaptrade/models/option_leg_action.rb
292
295
  - lib/snaptrade/models/option_quote.rb
@@ -478,6 +481,8 @@ files:
478
481
  - spec/models/figi_instrument_spec.rb
479
482
  - spec/models/future_instrument_kind_spec.rb
480
483
  - spec/models/future_instrument_spec.rb
484
+ - spec/models/future_option_instrument_kind_spec.rb
485
+ - spec/models/future_option_instrument_spec.rb
481
486
  - spec/models/holdings_status_spec.rb
482
487
  - spec/models/institution_spec.rb
483
488
  - spec/models/instrument_spec.rb
@@ -537,6 +542,7 @@ files:
537
542
  - spec/models/option_chain_inner_spec.rb
538
543
  - spec/models/option_impact_spec.rb
539
544
  - spec/models/option_instrument_kind_spec.rb
545
+ - spec/models/option_instrument_option_type_spec.rb
540
546
  - spec/models/option_instrument_spec.rb
541
547
  - spec/models/option_leg_action_spec.rb
542
548
  - spec/models/option_leg_spec.rb
@@ -650,256 +656,259 @@ signing_key:
650
656
  specification_version: 4
651
657
  summary: SnapTrade Ruby Gem
652
658
  test_files:
653
- - spec/api/connections_api_spec.rb
654
- - spec/api/account_information_api_spec.rb
659
+ - spec/api/api_status_api_spec.rb
655
660
  - spec/api/experimental_endpoints_api_spec.rb
661
+ - spec/api/connections_api_spec.rb
656
662
  - spec/api/trading_api_spec.rb
657
- - spec/api/api_status_api_spec.rb
658
- - spec/api/authentication_api_spec.rb
659
663
  - spec/api/reference_data_api_spec.rb
664
+ - spec/api/account_information_api_spec.rb
665
+ - spec/api/authentication_api_spec.rb
660
666
  - spec/api_client_spec.rb
661
667
  - spec/configuration_spec.rb
662
668
  - spec/getting_started_spec.rb
663
- - spec/models/crypto_instrument_kind_spec.rb
669
+ - spec/models/simple_order_form_type_spec.rb
670
+ - spec/models/future_instrument_kind_spec.rb
671
+ - spec/models/future_option_instrument_spec.rb
672
+ - spec/models/cash_change_direction_spec.rb
673
+ - spec/models/manual_trade_replace_form_spec.rb
674
+ - spec/models/manual_trade_and_impact_spec.rb
675
+ - spec/models/exchange_rate_pairs_spec.rb
676
+ - spec/models/underlying_symbol_type_spec.rb
677
+ - spec/models/user_i_dand_secret_spec.rb
678
+ - spec/models/connection_account_sync_status_spec.rb
679
+ - spec/models/complex_order_leg_order_role_spec.rb
680
+ - spec/models/options_symbol_option_type_spec.rb
681
+ - spec/models/strategy_quotes_spec.rb
682
+ - spec/models/institution_spec.rb
683
+ - spec/models/security_type_spec.rb
684
+ - spec/models/connection_portal_version_spec.rb
685
+ - spec/models/line_of_credit_account_available_credit_spec.rb
686
+ - spec/models/crypto_trading_instrument_type_spec.rb
687
+ - spec/models/option_chain_inner_spec.rb
688
+ - spec/models/brokerage_authorization_type_read_only_type_spec.rb
689
+ - spec/models/symbol_exchange_spec.rb
690
+ - spec/models/snap_trade_login_user_request_body_spec.rb
691
+ - spec/models/complex_order_leg_spec.rb
692
+ - spec/models/deposit_account_kind_spec.rb
693
+ - spec/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner_spec.rb
694
+ - spec/models/balance_spec.rb
695
+ - spec/models/snap_trade_register_user_request_body_spec.rb
696
+ - spec/models/manual_trade_place_time_in_force_strict_spec.rb
697
+ - spec/models/options_symbol_spec.rb
698
+ - spec/models/manual_trade_form_complex_type_spec.rb
699
+ - spec/models/take_profit_spec.rb
700
+ - spec/models/option_strategy_legs_inner_spec.rb
701
+ - spec/models/option_instrument_kind_spec.rb
702
+ - spec/models/adr_instrument_kind_spec.rb
703
+ - spec/models/account_order_record_status_v2_spec.rb
704
+ - spec/models/position_symbol_spec.rb
705
+ - spec/models/trailing_stop_spec.rb
706
+ - spec/models/option_leg_spec.rb
707
+ - spec/models/symbol_spec.rb
708
+ - spec/models/login_redirect_uri_spec.rb
709
+ - spec/models/net_contributions_spec.rb
710
+ - spec/models/etf_instrument_kind_spec.rb
711
+ - spec/models/adr_instrument_spec.rb
712
+ - spec/models/brokerage_instrument_spec.rb
713
+ - spec/models/option_brokerage_symbol_spec.rb
714
+ - spec/models/manual_trade_form_bracket_spec.rb
715
+ - spec/models/instrument_spec.rb
716
+ - spec/models/deposit_account_sync_status_spec.rb
717
+ - spec/models/snap_trade_holdings_total_value_spec.rb
718
+ - spec/models/crypto_order_preview_estimated_fee_spec.rb
719
+ - spec/models/model501_not_implemented_response_spec.rb
720
+ - spec/models/future_instrument_spec.rb
721
+ - spec/models/simple_order_form_time_in_force_spec.rb
722
+ - spec/models/mleg_instrument_type_spec.rb
723
+ - spec/models/manual_trade_form_spec.rb
724
+ - spec/models/symbol_currency_spec.rb
725
+ - spec/models/crypto_order_form_type_spec.rb
726
+ - spec/models/strategy_order_record_status_spec.rb
727
+ - spec/models/deposit_account_net_value_spec.rb
728
+ - spec/models/manual_trade_balance_spec.rb
729
+ - spec/models/session_event_spec.rb
730
+ - spec/models/order_updated_response_order_spec.rb
731
+ - spec/models/balance_currency_spec.rb
732
+ - spec/models/model403_feature_not_enabled_response_spec.rb
733
+ - spec/models/brokerage_authorization_disabled_confirmation_spec.rb
734
+ - spec/models/complex_order_response_type_spec.rb
735
+ - spec/models/underlying_symbol_exchange_spec.rb
736
+ - spec/models/option_quote_spec.rb
737
+ - spec/models/manual_trade_form_complex_spec.rb
738
+ - spec/models/account_order_record_universal_symbol_spec.rb
739
+ - spec/models/timeframe_spec.rb
740
+ - spec/models/underlying_symbol_spec.rb
741
+ - spec/models/mutual_fund_instrument_kind_spec.rb
742
+ - spec/models/brokerage_type_spec.rb
743
+ - spec/models/encrypted_response_spec.rb
744
+ - spec/models/cef_instrument_kind_spec.rb
745
+ - spec/models/trading_instrument_spec.rb
664
746
  - spec/models/account_order_record_spec.rb
747
+ - spec/models/manual_trade_form_notional_value_spec.rb
748
+ - spec/models/account_order_record_option_symbol_spec.rb
749
+ - spec/models/mleg_trading_instrument_spec.rb
665
750
  - spec/models/trading_instrument_type_spec.rb
666
- - spec/models/option_chain_inner_chain_per_root_inner_spec.rb
667
- - spec/models/brokerage_authorization_type_read_only_type_spec.rb
668
- - spec/models/position_spec.rb
669
- - spec/models/currency_spec.rb
751
+ - spec/models/paginated_universal_activity_spec.rb
752
+ - spec/models/line_of_credit_account_net_value_spec.rb
753
+ - spec/models/other_instrument_kind_spec.rb
754
+ - spec/models/tax_lot_spec.rb
755
+ - spec/models/mleg_order_response_spec.rb
756
+ - spec/models/account_sync_status_spec.rb
757
+ - spec/models/authentication_login_snap_trade_user200_response_spec.rb
758
+ - spec/models/auth_type_spec.rb
759
+ - spec/models/status_spec.rb
760
+ - spec/models/line_of_credit_account_minimum_payment_amount_spec.rb
761
+ - spec/models/stock_instrument_kind_spec.rb
670
762
  - spec/models/action_strict_with_options_spec.rb
763
+ - spec/models/manual_trade_form_with_options_spec.rb
764
+ - spec/models/transactions_status_spec.rb
765
+ - spec/models/account_status_spec.rb
766
+ - spec/models/model400_failed_request_response_spec.rb
767
+ - spec/models/crypto_instrument_spec.rb
768
+ - spec/models/brokerage_authorization_data_freshness_mode_spec.rb
671
769
  - spec/models/account_order_record_status_spec.rb
672
- - spec/models/take_profit_spec.rb
673
- - spec/models/trade_detection_cancel_subscription_response_spec.rb
674
- - spec/models/brokerage_authorization_spec.rb
675
- - spec/models/crypto_order_form_type_spec.rb
676
- - spec/models/order_role_spec.rb
770
+ - spec/models/brokerage_authorization_refresh_confirmation_spec.rb
677
771
  - spec/models/model503_brokerage_request_response_spec.rb
678
- - spec/models/account_balance_total_spec.rb
679
- - spec/models/trading_session_spec.rb
772
+ - spec/models/mleg_action_strict_spec.rb
773
+ - spec/models/universal_symbol_spec.rb
774
+ - spec/models/account_order_record_quote_currency_spec.rb
775
+ - spec/models/stop_loss_spec.rb
776
+ - spec/models/trade_detection_subscription_spec.rb
777
+ - spec/models/account_holdings_spec.rb
778
+ - spec/models/stock_instrument_figi_instrument_spec.rb
779
+ - spec/models/rate_of_return_response_spec.rb
780
+ - spec/models/mleg_order_type_strict_spec.rb
781
+ - spec/models/o_auth_webhook_base_spec.rb
782
+ - spec/models/brokerage_authorization_spec.rb
783
+ - spec/models/performance_custom_spec.rb
784
+ - spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
785
+ - spec/models/dividend_at_date_spec.rb
786
+ - spec/models/schema_version_spec.rb
787
+ - spec/models/option_quote_greeks_spec.rb
788
+ - spec/models/account_universal_activity_currency_spec.rb
680
789
  - spec/models/model429_too_many_requests_response_spec.rb
681
- - spec/models/net_dividend_spec.rb
682
- - spec/models/cancel_order_response_spec.rb
683
- - spec/models/model404_failed_request_response_spec.rb
684
- - spec/models/account_order_record_leg_spec.rb
685
- - spec/models/account_spec.rb
686
- - spec/models/authentication_login_snap_trade_user200_response_spec.rb
687
- - spec/models/option_strategy_spec.rb
688
- - spec/models/cfd_instrument_kind_spec.rb
689
- - spec/models/manual_trade_form_spec.rb
790
+ - spec/models/trading_session_spec.rb
791
+ - spec/models/account_value_history_response_spec.rb
792
+ - spec/models/account_universal_activity_spec.rb
793
+ - spec/models/account_orders_v2_response_spec.rb
794
+ - spec/models/option_instrument_option_type_spec.rb
690
795
  - spec/models/crypto_order_form_time_in_force_spec.rb
691
- - spec/models/universal_symbol_spec.rb
692
- - spec/models/notional_value_spec.rb
693
- - spec/models/etf_instrument_kind_spec.rb
694
- - spec/models/other_instrument_spec.rb
695
- - spec/models/line_of_credit_account_net_value_spec.rb
696
- - spec/models/mleg_action_strict_spec.rb
697
- - spec/models/session_event_type_spec.rb
698
- - spec/models/underlying_symbol_type_spec.rb
699
- - spec/models/account_order_record_status_v2_spec.rb
700
- - spec/models/crypto_instrument_spec.rb
701
- - spec/models/investment_account_spec.rb
702
- - spec/models/account_order_record_option_symbol_spec.rb
703
- - spec/models/account_order_record_universal_symbol_spec.rb
704
- - spec/models/option_quote_spec.rb
705
- - spec/models/line_of_credit_account_spec.rb
706
- - spec/models/action_strict_spec.rb
796
+ - spec/models/sub_period_return_rate_spec.rb
797
+ - spec/models/option_strategy_spec.rb
798
+ - spec/models/model402_brokerage_auth_disabled_response_spec.rb
799
+ - spec/models/account_holdings_account_spec.rb
800
+ - spec/models/net_dividend_spec.rb
707
801
  - spec/models/option_impact_spec.rb
708
- - spec/models/mutual_fund_instrument_spec.rb
709
- - spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
710
- - spec/models/paginated_universal_activity_spec.rb
711
- - spec/models/trading_instrument_spec.rb
712
802
  - spec/models/encrypted_response_encrypted_message_data_spec.rb
713
- - spec/models/symbol_query_spec.rb
714
- - spec/models/option_instrument_kind_spec.rb
803
+ - spec/models/crypto_trading_instrument_spec.rb
804
+ - spec/models/cfd_instrument_kind_spec.rb
805
+ - spec/models/account_order_record_leg_spec.rb
806
+ - spec/models/mleg_price_effect_strict_spec.rb
807
+ - spec/models/position_currency_spec.rb
808
+ - spec/models/account_information_get_user_account_order_detail_request_spec.rb
809
+ - spec/models/pagination_details_spec.rb
810
+ - spec/models/brokerage_instruments_response_spec.rb
811
+ - spec/models/account_value_history_item_spec.rb
812
+ - spec/models/crypto_instrument_kind_spec.rb
715
813
  - spec/models/account_universal_activity_currency_universal_symbol_spec.rb
716
- - spec/models/model403_feature_not_enabled_response_spec.rb
717
- - spec/models/account_holdings_account_spec.rb
718
- - spec/models/type_spec.rb
719
- - spec/models/mleg_order_response_spec.rb
720
- - spec/models/session_event_spec.rb
721
- - spec/models/trade_detection_subscription_spec.rb
722
- - spec/models/instrument_spec.rb
723
- - spec/models/us_exchange_spec.rb
724
- - spec/models/manual_trade_replace_form_spec.rb
725
- - spec/models/user_i_dand_secret_spec.rb
726
- - spec/models/stock_instrument_spec.rb
727
- - spec/models/mleg_instrument_type_spec.rb
728
- - spec/models/strategy_quotes_spec.rb
729
- - spec/models/options_position_spec.rb
730
- - spec/models/mleg_trade_form_spec.rb
731
- - spec/models/mleg_order_type_strict_spec.rb
732
- - spec/models/snap_trade_holdings_account_spec.rb
733
- - spec/models/crypto_order_preview_spec.rb
814
+ - spec/models/partner_data_spec.rb
815
+ - spec/models/model403_failed_request_response_spec.rb
816
+ - spec/models/future_option_instrument_kind_spec.rb
817
+ - spec/models/account_universal_activity_option_symbol_spec.rb
734
818
  - spec/models/connection_type_spec.rb
735
- - spec/models/model500_unexpected_exception_response_spec.rb
736
- - spec/models/line_of_credit_account_minimum_payment_amount_spec.rb
737
819
  - spec/models/symbols_quotes_inner_spec.rb
738
- - spec/models/options_symbol_spec.rb
820
+ - spec/models/model425_failed_request_response_spec.rb
821
+ - spec/models/investment_account_net_value_spec.rb
822
+ - spec/models/order_role_spec.rb
823
+ - spec/models/mutual_fund_instrument_spec.rb
824
+ - spec/models/monthly_dividends_spec.rb
825
+ - spec/models/account_balance_spec.rb
826
+ - spec/models/options_position_spec.rb
739
827
  - spec/models/strategy_quotes_greek_spec.rb
740
- - spec/models/model400_failed_request_response_spec.rb
741
- - spec/models/manual_trade_place_time_in_force_strict_spec.rb
742
- - spec/models/exchange_rate_pairs_spec.rb
743
- - spec/models/cryptocurrency_pair_spec.rb
744
- - spec/models/validated_trade_body_spec.rb
745
- - spec/models/child_brokerage_order_ids_spec.rb
746
- - spec/models/universal_activity_spec.rb
747
- - spec/models/model402_brokerage_auth_disabled_response_spec.rb
748
- - spec/models/price_effect_spec.rb
749
- - spec/models/o_auth_webhook_base_spec.rb
750
- - spec/models/manual_trade_form_with_options_spec.rb
751
- - spec/models/tax_lot_spec.rb
752
- - spec/models/brokerage_authorization_refresh_confirmation_spec.rb
828
+ - spec/models/account_position_spec.rb
829
+ - spec/models/brokerage_authorization_transactions_sync_confirmation_spec.rb
830
+ - spec/models/option_type_spec.rb
831
+ - spec/models/action_strict_spec.rb
832
+ - spec/models/underlying_option_instrument_spec.rb
833
+ - spec/models/all_account_positions_response_data_freshness_spec.rb
834
+ - spec/models/line_of_credit_account_spec.rb
835
+ - spec/models/underlying_cfd_instrument_spec.rb
836
+ - spec/models/option_chain_inner_chain_per_root_inner_spec.rb
837
+ - spec/models/figi_instrument_spec.rb
838
+ - spec/models/all_account_positions_response_spec.rb
839
+ - spec/models/brokerage_spec.rb
840
+ - spec/models/deposit_account_spec.rb
753
841
  - spec/models/etf_instrument_spec.rb
754
- - spec/models/complex_order_response_type_spec.rb
755
- - spec/models/future_instrument_spec.rb
756
- - spec/models/rate_of_return_object_spec.rb
757
- - spec/models/account_universal_activity_option_symbol_spec.rb
758
- - spec/models/mleg_trading_instrument_spec.rb
759
- - spec/models/status_spec.rb
760
- - spec/models/crypto_order_form_spec.rb
761
- - spec/models/institution_spec.rb
762
- - spec/models/balance_currency_spec.rb
763
- - spec/models/crypto_trading_instrument_type_spec.rb
764
- - spec/models/complex_order_response_spec.rb
765
- - spec/models/deposit_account_kind_spec.rb
766
- - spec/models/order_updated_response_spec.rb
767
- - spec/models/crypto_order_preview_estimated_fee_spec.rb
768
- - spec/models/strategy_type_spec.rb
769
- - spec/models/partner_data_spec.rb
770
- - spec/models/delete_connection_confirmation_spec.rb
771
- - spec/models/brokerage_authorization_type_read_only_spec.rb
772
- - spec/models/option_quote_greeks_spec.rb
842
+ - spec/models/snaptrade_spec.rb
773
843
  - spec/models/manual_trade_impact_spec.rb
774
- - spec/models/manual_trade_form_notional_value_spec.rb
775
- - spec/models/stock_instrument_kind_spec.rb
776
- - spec/models/adr_instrument_kind_spec.rb
777
- - spec/models/brokerage_instrument_spec.rb
778
- - spec/models/simple_order_form_spec.rb
844
+ - spec/models/holdings_status_spec.rb
845
+ - spec/models/price_effect_spec.rb
846
+ - spec/models/strategy_type_spec.rb
847
+ - spec/models/stock_instrument_spec.rb
848
+ - spec/models/delete_user_response_spec.rb
849
+ - spec/models/position_spec.rb
850
+ - spec/models/model500_unexpected_exception_response_spec.rb
851
+ - spec/models/strategy_order_record_spec.rb
852
+ - spec/models/model404_failed_request_response_spec.rb
853
+ - spec/models/order_type_strict_spec.rb
779
854
  - spec/models/trade_detection_add_subscription_request_spec.rb
780
- - spec/models/account_balance_spec.rb
781
- - spec/models/line_of_credit_account_sync_status_spec.rb
782
- - spec/models/model501_not_implemented_response_spec.rb
783
- - spec/models/manual_trade_form_complex_type_spec.rb
855
+ - spec/models/account_order_record_quote_universal_symbol_spec.rb
856
+ - spec/models/notional_value_spec.rb
857
+ - spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
858
+ - spec/models/type_spec.rb
859
+ - spec/models/account_spec.rb
860
+ - spec/models/symbol_query_spec.rb
784
861
  - spec/models/option_instrument_spec.rb
785
- - spec/models/snap_trade_holdings_total_value_spec.rb
786
- - spec/models/pagination_details_spec.rb
787
- - spec/models/line_of_credit_account_available_credit_spec.rb
788
- - spec/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner_spec.rb
789
- - spec/models/order_type_strict_spec.rb
790
- - spec/models/position_currency_spec.rb
862
+ - spec/models/time_in_force_strict_spec.rb
863
+ - spec/models/past_value_spec.rb
791
864
  - spec/models/option_leg_action_spec.rb
792
- - spec/models/stock_instrument_figi_instrument_spec.rb
793
- - spec/models/investment_account_net_value_spec.rb
794
- - spec/models/cfd_instrument_spec.rb
865
+ - spec/models/recent_orders_response_spec.rb
866
+ - spec/models/options_position_currency_spec.rb
867
+ - spec/models/mleg_trade_form_spec.rb
868
+ - spec/models/order_updated_response_spec.rb
795
869
  - spec/models/account_simple_spec.rb
796
- - spec/models/symbol_spec.rb
797
- - spec/models/mutual_fund_instrument_kind_spec.rb
798
- - spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
799
- - spec/models/line_of_credit_account_kind_spec.rb
870
+ - spec/models/line_of_credit_account_sync_status_spec.rb
871
+ - spec/models/cfd_instrument_spec.rb
872
+ - spec/models/us_exchange_spec.rb
873
+ - spec/models/brokerage_authorization_type_read_only_spec.rb
874
+ - spec/models/account_order_record_v2_order_role_spec.rb
875
+ - spec/models/rate_of_return_object_spec.rb
876
+ - spec/models/simple_order_form_spec.rb
877
+ - spec/models/account_order_record_v2_spec.rb
878
+ - spec/models/trade_detection_cancel_subscription_request_spec.rb
800
879
  - spec/models/connection_account_spec.rb
801
- - spec/models/options_position_currency_spec.rb
802
- - spec/models/option_brokerage_symbol_spec.rb
803
- - spec/models/snap_trade_login_user_request_body_spec.rb
804
- - spec/models/future_instrument_kind_spec.rb
805
- - spec/models/transactions_status_spec.rb
806
- - spec/models/position_symbol_spec.rb
807
- - spec/models/account_orders_v2_response_spec.rb
808
- - spec/models/account_order_record_quote_universal_symbol_spec.rb
809
- - spec/models/cef_instrument_kind_spec.rb
810
- - spec/models/login_redirect_uri_spec.rb
811
- - spec/models/option_strategy_legs_inner_spec.rb
812
- - spec/models/strategy_order_record_status_spec.rb
813
- - spec/models/manual_trade_form_bracket_spec.rb
814
- - spec/models/brokerage_instruments_response_spec.rb
815
- - spec/models/account_position_spec.rb
816
- - spec/models/net_contributions_spec.rb
817
- - spec/models/cash_change_direction_spec.rb
880
+ - spec/models/trade_detection_cancel_subscription_response_spec.rb
818
881
  - spec/models/account_universal_activity_symbol_spec.rb
819
- - spec/models/option_leg_spec.rb
820
- - spec/models/holdings_status_spec.rb
821
- - spec/models/connection_portal_version_spec.rb
822
- - spec/models/account_order_record_v2_spec.rb
823
- - spec/models/trailing_stop_spec.rb
824
- - spec/models/all_account_positions_response_data_freshness_spec.rb
825
- - spec/models/past_value_spec.rb
826
- - spec/models/balance_spec.rb
827
- - spec/models/sub_period_return_rate_spec.rb
828
- - spec/models/account_universal_activity_currency_spec.rb
829
- - spec/models/strategy_order_record_spec.rb
830
- - spec/models/account_order_record_trailing_stop_spec.rb
831
- - spec/models/snap_trade_register_user_request_body_spec.rb
832
- - spec/models/underlying_option_instrument_spec.rb
833
- - spec/models/complex_order_leg_order_role_spec.rb
882
+ - spec/models/exchange_spec.rb
883
+ - spec/models/investment_account_spec.rb
884
+ - spec/models/other_instrument_spec.rb
885
+ - spec/models/account_order_record_leg_instrument_spec.rb
886
+ - spec/models/validated_trade_body_spec.rb
887
+ - spec/models/account_balance_total_spec.rb
888
+ - spec/models/account_category_spec.rb
834
889
  - spec/models/mleg_leg_spec.rb
835
- - spec/models/complex_order_leg_spec.rb
836
- - spec/models/account_sync_status_spec.rb
837
- - spec/models/account_universal_activity_spec.rb
838
- - spec/models/account_status_spec.rb
839
- - spec/models/brokerage_type_spec.rb
840
- - spec/models/dividend_at_date_spec.rb
890
+ - spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
841
891
  - spec/models/manual_trade_symbol_spec.rb
842
892
  - spec/models/manual_trade_spec.rb
843
- - spec/models/simple_order_form_time_in_force_spec.rb
844
- - spec/models/option_chain_inner_spec.rb
845
- - spec/models/brokerage_authorization_data_freshness_mode_spec.rb
846
- - spec/models/exchange_spec.rb
847
- - spec/models/underlying_symbol_spec.rb
848
- - spec/models/manual_trade_balance_spec.rb
849
- - spec/models/cryptocurrency_pair_quote_spec.rb
850
- - spec/models/order_updated_response_order_spec.rb
851
- - spec/models/symbol_currency_spec.rb
852
- - spec/models/account_order_record_v2_order_role_spec.rb
853
- - spec/models/adr_instrument_spec.rb
854
- - spec/models/model403_failed_request_response_spec.rb
855
- - spec/models/recent_orders_response_spec.rb
856
- - spec/models/simple_order_form_type_spec.rb
857
- - spec/models/other_instrument_kind_spec.rb
858
- - spec/models/timeframe_spec.rb
859
- - spec/models/schema_version_spec.rb
860
- - spec/models/rate_of_return_response_spec.rb
861
- - spec/models/deposit_account_spec.rb
862
- - spec/models/stop_loss_spec.rb
863
- - spec/models/account_information_get_user_account_order_detail_request_spec.rb
864
- - spec/models/underlying_cfd_instrument_spec.rb
893
+ - spec/models/account_order_record_trailing_stop_spec.rb
894
+ - spec/models/session_event_type_spec.rb
895
+ - spec/models/cancel_order_response_spec.rb
896
+ - spec/models/child_brokerage_order_ids_spec.rb
897
+ - spec/models/delete_connection_confirmation_spec.rb
898
+ - spec/models/line_of_credit_account_kind_spec.rb
865
899
  - spec/models/account_order_record_child_brokerage_order_ids_spec.rb
866
- - spec/models/all_account_positions_response_spec.rb
867
- - spec/models/manual_trade_form_complex_spec.rb
868
- - spec/models/snaptrade_spec.rb
869
- - spec/models/brokerage_spec.rb
870
- - spec/models/underlying_symbol_exchange_spec.rb
871
- - spec/models/auth_type_spec.rb
872
- - spec/models/connection_account_sync_status_spec.rb
873
- - spec/models/kind_spec.rb
874
- - spec/models/deposit_account_net_value_spec.rb
875
- - spec/models/deposit_account_sync_status_spec.rb
876
- - spec/models/account_order_record_leg_instrument_spec.rb
877
- - spec/models/model425_failed_request_response_spec.rb
878
- - spec/models/account_value_history_item_spec.rb
879
- - spec/models/monthly_dividends_spec.rb
880
- - spec/models/performance_custom_spec.rb
881
- - spec/models/account_order_record_quote_currency_spec.rb
882
- - spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
883
- - spec/models/brokerage_authorization_transactions_sync_confirmation_spec.rb
884
- - spec/models/account_category_spec.rb
885
- - spec/models/figi_instrument_spec.rb
886
- - spec/models/mleg_price_effect_strict_spec.rb
887
- - spec/models/brokerage_authorization_disabled_confirmation_spec.rb
888
- - spec/models/option_type_spec.rb
889
- - spec/models/crypto_trading_instrument_spec.rb
890
- - spec/models/time_in_force_strict_spec.rb
891
- - spec/models/symbol_exchange_spec.rb
892
- - spec/models/account_value_history_response_spec.rb
893
- - spec/models/manual_trade_and_impact_spec.rb
894
- - spec/models/security_type_spec.rb
895
- - spec/models/options_symbol_option_type_spec.rb
896
- - spec/models/account_holdings_spec.rb
897
- - spec/models/delete_user_response_spec.rb
898
- - spec/models/encrypted_response_spec.rb
899
- - spec/models/trade_detection_cancel_subscription_request_spec.rb
900
- - spec/models/model401_failed_request_response_spec.rb
900
+ - spec/models/currency_spec.rb
901
901
  - spec/models/cef_instrument_spec.rb
902
- - spec/regression/fixtures/all_account_positions.json
902
+ - spec/models/snap_trade_holdings_account_spec.rb
903
+ - spec/models/cryptocurrency_pair_spec.rb
904
+ - spec/models/cryptocurrency_pair_quote_spec.rb
905
+ - spec/models/crypto_order_preview_spec.rb
906
+ - spec/models/crypto_order_form_spec.rb
907
+ - spec/models/model401_failed_request_response_spec.rb
908
+ - spec/models/complex_order_response_spec.rb
909
+ - spec/models/kind_spec.rb
910
+ - spec/models/universal_activity_spec.rb
903
911
  - spec/regression/request_signing_spec.rb
904
912
  - spec/regression/all_account_positions_spec.rb
913
+ - spec/regression/fixtures/all_account_positions.json
905
914
  - spec/spec_helper.rb