snaptrade 3.0.28 → 3.0.29

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: 174419089f2cdd83be8a87fca34e072ba05b47762b758125e2ebfa90899f0501
4
- data.tar.gz: ea2dc82ed218be148f55b20494586f3e2e71b9397b4b61c56b72681c678b7b68
3
+ metadata.gz: cd3f1f77fd6f2a0ad4c138b6e710d2b2aae9b55e9d053d9ae3a59087cb5b12e9
4
+ data.tar.gz: cb5f00f3ad2c84d300c1d45e5f01abc2c956944139558199b7a12089fc3d5b39
5
5
  SHA512:
6
- metadata.gz: 36788c744dba274f8e2d7cf51f0058c47574fcac5a2a2eacb14d32f5261c55823a5c4206883606b45f6eca09ad28fe34a87a50e859eed498bd9464858f6af975
7
- data.tar.gz: 677d9353a437f1a341427c5b1a500b7bbc6885b848c16c23c90cbaa4985ca7334382643d8149ce8f21ecda58d28532769eba6c4c1f4ef550f5e5ff3ba41f2f9c
6
+ metadata.gz: 61b363e78db94766cff167a8c5cf0c8f3cd5156ddfafce6f12125dd52000ba6c1b216093c01407c38732ac70be67d92bd57d182cf8cb232f10eb2f268f642839
7
+ data.tar.gz: 9370318dc0b1953cd790a5b0f44053fbd3e3649d85ba270f82bad4bd65217094038bc7ef11b87ee4754ba7fe019996a89f96b3dd3d068b13ba74d8efc7458cc8
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.28-blue)](https://rubygems.org/gems/snaptrade/versions/3.0.28)
66
+ [![npm](https://img.shields.io/badge/gem-v3.0.29-blue)](https://rubygems.org/gems/snaptrade/versions/3.0.29)
67
67
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
68
68
 
69
69
  </div>
@@ -140,7 +140,7 @@ See https://docs.snaptrade.com/docs/ratelimiting.
140
140
  Add to Gemfile:
141
141
 
142
142
  ```ruby
143
- gem 'snaptrade', '~> 3.0.28'
143
+ gem 'snaptrade', '~> 3.0.29'
144
144
  ```
145
145
 
146
146
  ## Getting Started<a id="getting-started"></a>
@@ -2019,11 +2019,11 @@ The price at which a stop order is triggered for `Stop` and `StopLimit` orders.
2019
2019
  ### `snaptrade.trading.get_user_account_option_quotes`<a id="snaptradetradingget_user_account_option_quotes"></a>
2020
2020
  ![Deprecated](https://img.shields.io/badge/deprecated-yellow)
2021
2021
 
2022
+ **Deprecated.** This endpoint was sunset on October 1, 2026 and now always returns `410 Gone`.
2023
+
2022
2024
  Returns a quote for a single option contract. The option contract is specified using in the 21 character OCC format. For example `AAPL 251114C00240000` represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format)
2023
2025
  **Note:** These are derived values and are not suitable for trading purposes.
2024
2026
 
2025
- **This Endpoint is deprecated and will cease to return data as of October 1, 2026**
2026
-
2027
2027
 
2028
2028
  #### 🛠️ Usage<a id="🛠️-usage"></a>
2029
2029
 
@@ -548,10 +548,10 @@ module SnapTrade
548
548
 
549
549
  # Get option quote
550
550
  #
551
+ # **Deprecated.** This endpoint was sunset on October 1, 2026 and now always returns `410 Gone`.
552
+ #
551
553
  # Returns a quote for a single option contract. The option contract is specified using in the 21 character OCC format. For example `AAPL 251114C00240000` represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format)
552
554
  # **Note:** These are derived values and are not suitable for trading purposes.
553
- #
554
- # **This Endpoint is deprecated and will cease to return data as of October 1, 2026**
555
555
  #
556
556
  # @param user_id [String]
557
557
  # @param user_secret [String]
@@ -565,10 +565,10 @@ module SnapTrade
565
565
 
566
566
  # Get option quote
567
567
  #
568
+ # **Deprecated.** This endpoint was sunset on October 1, 2026 and now always returns `410 Gone`.
569
+ #
568
570
  # Returns a quote for a single option contract. The option contract is specified using in the 21 character OCC format. For example `AAPL 251114C00240000` represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format)
569
571
  # **Note:** These are derived values and are not suitable for trading purposes.
570
- #
571
- # **This Endpoint is deprecated and will cease to return data as of October 1, 2026**
572
572
  #
573
573
  # @param user_id [String]
574
574
  # @param user_secret [String]
@@ -580,7 +580,7 @@ module SnapTrade
580
580
  end
581
581
 
582
582
  # Get option quote
583
- # Returns a quote for a single option contract. The option contract is specified using in the 21 character OCC format. For example `AAPL 251114C00240000` represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format) **Note:** These are derived values and are not suitable for trading purposes. **This Endpoint is deprecated and will cease to return data as of October 1, 2026**
583
+ # **Deprecated.** This endpoint was sunset on October 1, 2026 and now always returns `410 Gone`. Returns a quote for a single option contract. The option contract is specified using in the 21 character OCC format. For example `AAPL 251114C00240000` represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format) **Note:** These are derived values and are not suitable for trading purposes.
584
584
  # @param user_id [String]
585
585
  # @param user_secret [String]
586
586
  # @param account_id [String]
@@ -593,7 +593,7 @@ module SnapTrade
593
593
  end
594
594
 
595
595
  # Get option quote
596
- # Returns a quote for a single option contract. The option contract is specified using in the 21 character OCC format. For example &#x60;AAPL 251114C00240000&#x60; represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format) **Note:** These are derived values and are not suitable for trading purposes. **This Endpoint is deprecated and will cease to return data as of October 1, 2026**
596
+ # **Deprecated.** This endpoint was sunset on October 1, 2026 and now always returns &#x60;410 Gone&#x60;. Returns a quote for a single option contract. The option contract is specified using in the 21 character OCC format. For example &#x60;AAPL 251114C00240000&#x60; represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format) **Note:** These are derived values and are not suitable for trading purposes.
597
597
  # @param user_id [String]
598
598
  # @param user_secret [String]
599
599
  # @param account_id [String]
@@ -0,0 +1,38 @@
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 AccountType
15
+ CASH = "cash".freeze
16
+ MARGIN = "margin".freeze
17
+ UNKNOWN = "unknown".freeze
18
+
19
+ def self.all_vars
20
+ @all_vars ||= [CASH, MARGIN, UNKNOWN].freeze
21
+ end
22
+
23
+ # Builds the enum from string
24
+ # @param [String] The enum value in the form of the string
25
+ # @return [String] The enum value
26
+ def self.build_from_hash(value)
27
+ new.build_from_hash(value)
28
+ end
29
+
30
+ # Builds the enum from string
31
+ # @param [String] The enum value in the form of the string
32
+ # @return [String] The enum value
33
+ def build_from_hash(value)
34
+ return value if AccountType.all_vars.include?(value)
35
+ raise "Invalid ENUM value #{value} for class #AccountType"
36
+ end
37
+ end
38
+ end
@@ -45,6 +45,9 @@ module SnapTrade
45
45
  # The account type as provided by the institution.
46
46
  attr_accessor :raw_type
47
47
 
48
+ # Whether the institution reports the account as a cash or margin account, normalized across institutions. - `cash`: A cash account. The account cannot borrow on margin. - `margin`: A margin account, including portfolio margin accounts. Some institutions also report retirement accounts with limited margin (for example, trading before funds settle) as margin accounts. - `unknown`: The institution does not report whether the account is cash or margin. **Beta:** only returned for some institutions and partners it has been enabled for. Omitted otherwise.
49
+ attr_accessor :account_type
50
+
48
51
  # Indicates whether the account is a paper (simulated) trading account.
49
52
  attr_accessor :is_paper
50
53
 
@@ -64,6 +67,7 @@ module SnapTrade
64
67
  :'funding_date' => :'funding_date',
65
68
  :'sync_status' => :'sync_status',
66
69
  :'raw_type' => :'raw_type',
70
+ :'account_type' => :'account_type',
67
71
  :'is_paper' => :'is_paper',
68
72
  :'net_value' => :'net_value'
69
73
  }
@@ -88,6 +92,7 @@ module SnapTrade
88
92
  :'funding_date' => :'Time',
89
93
  :'sync_status' => :'ConnectionAccountSyncStatus',
90
94
  :'raw_type' => :'String',
95
+ :'account_type' => :'AccountType',
91
96
  :'is_paper' => :'Boolean',
92
97
  :'net_value' => :'InvestmentAccountNetValue'
93
98
  }
@@ -164,6 +169,10 @@ module SnapTrade
164
169
  self.raw_type = attributes[:'raw_type']
165
170
  end
166
171
 
172
+ if attributes.key?(:'account_type')
173
+ self.account_type = attributes[:'account_type']
174
+ end
175
+
167
176
  if attributes.key?(:'is_paper')
168
177
  self.is_paper = attributes[:'is_paper']
169
178
  end
@@ -232,6 +241,7 @@ module SnapTrade
232
241
  funding_date == o.funding_date &&
233
242
  sync_status == o.sync_status &&
234
243
  raw_type == o.raw_type &&
244
+ account_type == o.account_type &&
235
245
  is_paper == o.is_paper &&
236
246
  net_value == o.net_value
237
247
  end
@@ -245,7 +255,7 @@ module SnapTrade
245
255
  # Calculates hash code according to all attributes.
246
256
  # @return [Integer] Hash code
247
257
  def hash
248
- [kind, id, connection_id, display_name, masked_account_number, institution_account_id, institution_id, opening_date, funding_date, sync_status, raw_type, is_paper, net_value].hash
258
+ [kind, id, connection_id, display_name, masked_account_number, institution_account_id, institution_id, opening_date, funding_date, sync_status, raw_type, account_type, is_paper, net_value].hash
249
259
  end
250
260
 
251
261
  # Builds the object from hash
@@ -0,0 +1,216 @@
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 TradingGetUserAccountOptionQuotes410Response
15
+ attr_accessor :detail
16
+
17
+ # Attribute mapping from ruby-style variable name to JSON key.
18
+ def self.attribute_map
19
+ {
20
+ :'detail' => :'detail'
21
+ }
22
+ end
23
+
24
+ # Returns all the JSON keys this model knows about
25
+ def self.acceptable_attributes
26
+ attribute_map.values
27
+ end
28
+
29
+ # Attribute type mapping.
30
+ def self.openapi_types
31
+ {
32
+ :'detail' => :'String'
33
+ }
34
+ end
35
+
36
+ # List of attributes with nullable: true
37
+ def self.openapi_nullable
38
+ Set.new([
39
+ ])
40
+ end
41
+
42
+ # Initializes the object
43
+ # @param [Hash] attributes Model attributes in the form of hash
44
+ def initialize(attributes = {})
45
+ if (!attributes.is_a?(Hash))
46
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SnapTrade::TradingGetUserAccountOptionQuotes410Response` initialize method"
47
+ end
48
+
49
+ # check to see if the attribute exists and convert string to symbol for hash key
50
+ attributes = attributes.each_with_object({}) { |(k, v), h|
51
+ if (!self.class.attribute_map.key?(k.to_sym))
52
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SnapTrade::TradingGetUserAccountOptionQuotes410Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
53
+ end
54
+ h[k.to_sym] = v
55
+ }
56
+
57
+ if attributes.key?(:'detail')
58
+ self.detail = attributes[:'detail']
59
+ end
60
+ end
61
+
62
+ # Show invalid properties with the reasons. Usually used together with valid?
63
+ # @return Array for valid properties with the reasons
64
+ def list_invalid_properties
65
+ invalid_properties = Array.new
66
+ invalid_properties
67
+ end
68
+
69
+ # Check to see if the all the properties in the model are valid
70
+ # @return true if the model is valid
71
+ def valid?
72
+ true
73
+ end
74
+
75
+ # Checks equality by comparing each attribute.
76
+ # @param [Object] Object to be compared
77
+ def ==(o)
78
+ return true if self.equal?(o)
79
+ self.class == o.class &&
80
+ detail == o.detail
81
+ end
82
+
83
+ # @see the `==` method
84
+ # @param [Object] Object to be compared
85
+ def eql?(o)
86
+ self == o
87
+ end
88
+
89
+ # Calculates hash code according to all attributes.
90
+ # @return [Integer] Hash code
91
+ def hash
92
+ [detail].hash
93
+ end
94
+
95
+ # Builds the object from hash
96
+ # @param [Hash] attributes Model attributes in the form of hash
97
+ # @return [Object] Returns the model itself
98
+ def self.build_from_hash(attributes)
99
+ new.build_from_hash(attributes)
100
+ end
101
+
102
+ # Builds the object from hash
103
+ # @param [Hash] attributes Model attributes in the form of hash
104
+ # @return [Object] Returns the model itself
105
+ def build_from_hash(attributes)
106
+ return nil unless attributes.is_a?(Hash)
107
+ attributes = attributes.transform_keys(&:to_sym)
108
+ self.class.openapi_types.each_pair do |key, type|
109
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
110
+ self.send("#{key}=", nil)
111
+ elsif type =~ /\AArray<(.*)>/i
112
+ # check to ensure the input is an array given that the attribute
113
+ # is documented as an array but the input is not
114
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
115
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
116
+ end
117
+ elsif !attributes[self.class.attribute_map[key]].nil?
118
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
119
+ end
120
+ end
121
+
122
+ self
123
+ end
124
+
125
+ # Deserializes the data based on type
126
+ # @param string type Data type
127
+ # @param string value Value to be deserialized
128
+ # @return [Object] Deserialized data
129
+ def _deserialize(type, value)
130
+ case type.to_sym
131
+ when :Time
132
+ Time.parse(value)
133
+ when :Date
134
+ Date.parse(value)
135
+ when :String
136
+ value.to_s
137
+ when :Integer
138
+ value.to_i
139
+ when :Float
140
+ value.to_f
141
+ when :Boolean
142
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
143
+ true
144
+ else
145
+ false
146
+ end
147
+ when :Object
148
+ # generic object (usually a Hash), return directly
149
+ value
150
+ when /\AArray<(?<inner_type>.+)>\z/
151
+ inner_type = Regexp.last_match[:inner_type]
152
+ value.map { |v| _deserialize(inner_type, v) }
153
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
154
+ k_type = Regexp.last_match[:k_type]
155
+ v_type = Regexp.last_match[:v_type]
156
+ {}.tap do |hash|
157
+ value.each do |k, v|
158
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
159
+ end
160
+ end
161
+ else # model
162
+ # models (e.g. Pet) or oneOf
163
+ klass = SnapTrade.const_get(type)
164
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
165
+ end
166
+ end
167
+
168
+ # Returns the string representation of the object
169
+ # @return [String] String presentation of the object
170
+ def to_s
171
+ to_hash.to_s
172
+ end
173
+
174
+ # to_body is an alias to to_hash (backward compatibility)
175
+ # @return [Hash] Returns the object in the form of hash
176
+ def to_body
177
+ to_hash
178
+ end
179
+
180
+ # Returns the object in the form of hash
181
+ # @return [Hash] Returns the object in the form of hash
182
+ def to_hash
183
+ hash = {}
184
+ self.class.attribute_map.each_pair do |attr, param|
185
+ value = self.send(attr)
186
+ if value.nil?
187
+ is_nullable = self.class.openapi_nullable.include?(attr)
188
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
189
+ end
190
+
191
+ hash[param] = _to_hash(value)
192
+ end
193
+ hash
194
+ end
195
+
196
+ # Outputs non-array value in the form of hash
197
+ # For object, use to_hash. Otherwise, just return the value
198
+ # @param [Object] value Any valid value
199
+ # @return [Hash] Returns the value in the form of hash
200
+ def _to_hash(value)
201
+ if value.is_a?(Array)
202
+ value.compact.map { |v| _to_hash(v) }
203
+ elsif value.is_a?(Hash)
204
+ {}.tap do |hash|
205
+ value.each { |k, v| hash[k] = _to_hash(v) }
206
+ end
207
+ elsif value.respond_to? :to_hash
208
+ value.to_hash
209
+ else
210
+ value
211
+ end
212
+ end
213
+
214
+ end
215
+
216
+ end
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '3.0.28'
11
+ VERSION = '3.0.29'
12
12
  end
data/lib/snaptrade.rb CHANGED
@@ -41,6 +41,7 @@ require 'snaptrade/models/account_position'
41
41
  require 'snaptrade/models/account_simple'
42
42
  require 'snaptrade/models/account_status'
43
43
  require 'snaptrade/models/account_sync_status'
44
+ require 'snaptrade/models/account_type'
44
45
  require 'snaptrade/models/account_universal_activity'
45
46
  require 'snaptrade/models/account_universal_activity_currency'
46
47
  require 'snaptrade/models/account_universal_activity_currency_universal_symbol'
@@ -247,6 +248,7 @@ require 'snaptrade/models/trade_detection_add_subscription_request'
247
248
  require 'snaptrade/models/trade_detection_cancel_subscription_request'
248
249
  require 'snaptrade/models/trade_detection_cancel_subscription_response'
249
250
  require 'snaptrade/models/trade_detection_subscription'
251
+ require 'snaptrade/models/trading_get_user_account_option_quotes410_response'
250
252
  require 'snaptrade/models/trading_instrument'
251
253
  require 'snaptrade/models/trading_instrument_type'
252
254
  require 'snaptrade/models/trading_search_cryptocurrency_pair_instruments200_response'
@@ -88,7 +88,7 @@ describe 'TradingApi' do
88
88
 
89
89
  # unit tests for get_user_account_option_quotes
90
90
  # Get option quote
91
- # Returns a quote for a single option contract. The option contract is specified using in the 21 character OCC format. For example &#x60;AAPL 251114C00240000&#x60; represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format) **Note:** These are derived values and are not suitable for trading purposes. **This Endpoint is deprecated and will cease to return data as of October 1, 2026**
91
+ # **Deprecated.** This endpoint was sunset on October 1, 2026 and now always returns &#x60;410 Gone&#x60;. Returns a quote for a single option contract. The option contract is specified using in the 21 character OCC format. For example &#x60;AAPL 251114C00240000&#x60; represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format) **Note:** These are derived values and are not suitable for trading purposes.
92
92
  # @param user_id
93
93
  # @param user_secret
94
94
  # @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::AccountType
15
+ describe SnapTrade::AccountType do
16
+ let(:instance) { SnapTrade::AccountType.new }
17
+
18
+ describe 'test an instance of AccountType' do
19
+ it 'should create an instance of AccountType' do
20
+ expect(instance).to be_instance_of(SnapTrade::AccountType)
21
+ end
22
+ end
23
+ end
@@ -86,6 +86,12 @@ describe SnapTrade::InvestmentAccount do
86
86
  end
87
87
  end
88
88
 
89
+ describe 'test attribute "account_type"' 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
+
89
95
  describe 'test attribute "is_paper"' do
90
96
  it 'should work' do
91
97
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -0,0 +1,29 @@
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::TradingGetUserAccountOptionQuotes410Response
15
+ describe SnapTrade::TradingGetUserAccountOptionQuotes410Response do
16
+ let(:instance) { SnapTrade::TradingGetUserAccountOptionQuotes410Response.new }
17
+
18
+ describe 'test an instance of TradingGetUserAccountOptionQuotes410Response' do
19
+ it 'should create an instance of TradingGetUserAccountOptionQuotes410Response' do
20
+ expect(instance).to be_instance_of(SnapTrade::TradingGetUserAccountOptionQuotes410Response)
21
+ end
22
+ end
23
+ describe 'test attribute "detail"' 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
+ 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.28
4
+ version: 3.0.29
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-30 00:00:00.000000000 Z
11
+ date: 2026-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -155,6 +155,7 @@ files:
155
155
  - lib/snaptrade/models/account_simple.rb
156
156
  - lib/snaptrade/models/account_status.rb
157
157
  - lib/snaptrade/models/account_sync_status.rb
158
+ - lib/snaptrade/models/account_type.rb
158
159
  - lib/snaptrade/models/account_universal_activity.rb
159
160
  - lib/snaptrade/models/account_universal_activity_currency.rb
160
161
  - lib/snaptrade/models/account_universal_activity_currency_universal_symbol.rb
@@ -361,6 +362,7 @@ files:
361
362
  - lib/snaptrade/models/trade_detection_cancel_subscription_request.rb
362
363
  - lib/snaptrade/models/trade_detection_cancel_subscription_response.rb
363
364
  - lib/snaptrade/models/trade_detection_subscription.rb
365
+ - lib/snaptrade/models/trading_get_user_account_option_quotes410_response.rb
364
366
  - lib/snaptrade/models/trading_instrument.rb
365
367
  - lib/snaptrade/models/trading_instrument_type.rb
366
368
  - lib/snaptrade/models/trading_search_cryptocurrency_pair_instruments200_response.rb
@@ -416,6 +418,7 @@ files:
416
418
  - spec/models/account_spec.rb
417
419
  - spec/models/account_status_spec.rb
418
420
  - spec/models/account_sync_status_spec.rb
421
+ - spec/models/account_type_spec.rb
419
422
  - spec/models/account_universal_activity_currency_spec.rb
420
423
  - spec/models/account_universal_activity_currency_universal_symbol_spec.rb
421
424
  - spec/models/account_universal_activity_option_symbol_spec.rb
@@ -622,6 +625,7 @@ files:
622
625
  - spec/models/trade_detection_cancel_subscription_request_spec.rb
623
626
  - spec/models/trade_detection_cancel_subscription_response_spec.rb
624
627
  - spec/models/trade_detection_subscription_spec.rb
628
+ - spec/models/trading_get_user_account_option_quotes410_response_spec.rb
625
629
  - spec/models/trading_instrument_spec.rb
626
630
  - spec/models/trading_instrument_type_spec.rb
627
631
  - spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
@@ -670,266 +674,268 @@ signing_key:
670
674
  specification_version: 4
671
675
  summary: SnapTrade Ruby Gem
672
676
  test_files:
673
- - spec/api/authentication_api_spec.rb
677
+ - spec/api/reference_data_api_spec.rb
678
+ - spec/api/experimental_endpoints_api_spec.rb
674
679
  - spec/api/trading_api_spec.rb
675
- - spec/api/connections_api_spec.rb
680
+ - spec/api/authentication_api_spec.rb
676
681
  - spec/api/account_information_api_spec.rb
677
- - spec/api/experimental_endpoints_api_spec.rb
678
- - spec/api/reference_data_api_spec.rb
682
+ - spec/api/connections_api_spec.rb
679
683
  - spec/api/api_status_api_spec.rb
680
684
  - spec/api_client_spec.rb
681
685
  - spec/configuration_spec.rb
682
686
  - spec/getting_started_spec.rb
683
- - spec/models/connection_account_spec.rb
684
- - spec/models/mleg_order_response_spec.rb
685
- - spec/models/stock_instrument_figi_instrument_spec.rb
686
687
  - spec/models/trailing_stop_spec.rb
687
- - spec/models/position_currency_spec.rb
688
- - spec/models/underlying_option_instrument_spec.rb
689
- - spec/models/timeframe_spec.rb
690
- - spec/models/account_simple_spec.rb
691
- - spec/models/line_of_credit_account_minimum_payment_amount_spec.rb
692
- - spec/models/status_spec.rb
693
- - spec/models/encrypted_response_spec.rb
694
- - spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
695
- - spec/models/line_of_credit_account_spec.rb
696
- - spec/models/connection_portal_version_spec.rb
688
+ - spec/models/option_brokerage_symbol_spec.rb
689
+ - spec/models/complex_order_response_type_spec.rb
690
+ - spec/models/order_type_strict_spec.rb
691
+ - spec/models/model500_unexpected_exception_response_spec.rb
692
+ - spec/models/model503_brokerage_request_response_spec.rb
693
+ - spec/models/balance_currency_spec.rb
694
+ - spec/models/simple_order_form_time_in_force_spec.rb
695
+ - spec/models/mutual_fund_instrument_kind_spec.rb
696
+ - spec/models/brokerage_authorization_transactions_sync_confirmation_spec.rb
697
+ - spec/models/manual_trade_symbol_spec.rb
698
+ - spec/models/account_category_spec.rb
699
+ - spec/models/mleg_instrument_type_spec.rb
700
+ - spec/models/option_quote_greeks_spec.rb
701
+ - spec/models/model400_failed_request_response_spec.rb
702
+ - spec/models/account_order_record_trailing_stop_spec.rb
703
+ - spec/models/institution_connection_spec.rb
704
+ - spec/models/o_auth_webhook_base_spec.rb
705
+ - spec/models/trade_detection_cancel_subscription_response_spec.rb
706
+ - spec/models/snaptrade_spec.rb
707
+ - spec/models/login_redirect_uri_spec.rb
708
+ - spec/models/option_chain_inner_spec.rb
697
709
  - spec/models/cfd_instrument_spec.rb
710
+ - spec/models/encrypted_response_encrypted_message_data_spec.rb
711
+ - spec/models/account_type_spec.rb
712
+ - spec/models/account_order_record_leg_instrument_spec.rb
698
713
  - spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
699
- - spec/models/account_position_spec.rb
700
- - spec/models/account_order_record_trailing_stop_spec.rb
701
- - spec/models/crypto_trading_instrument_spec.rb
702
- - spec/models/options_symbol_spec.rb
703
- - spec/models/model500_unexpected_exception_response_spec.rb
704
- - spec/models/manual_trade_form_complex_spec.rb
705
- - spec/models/other_instrument_spec.rb
706
- - spec/models/manual_trade_form_complex_type_spec.rb
714
+ - spec/models/cryptocurrency_pair_quote_spec.rb
715
+ - spec/models/action_strict_spec.rb
716
+ - spec/models/future_option_instrument_spec.rb
717
+ - spec/models/symbol_spec.rb
718
+ - spec/models/time_in_force_strict_spec.rb
719
+ - spec/models/underlying_tokenized_asset_instrument_spec.rb
720
+ - spec/models/mleg_trading_instrument_spec.rb
721
+ - spec/models/option_instrument_kind_spec.rb
707
722
  - spec/models/price_effect_spec.rb
708
- - spec/models/mleg_price_effect_strict_spec.rb
709
- - spec/models/us_exchange_spec.rb
710
- - spec/models/transactions_status_spec.rb
711
- - spec/models/account_order_record_child_brokerage_order_ids_spec.rb
712
- - spec/models/brokerage_instrument_spec.rb
713
- - spec/models/balance_currency_spec.rb
714
- - spec/models/option_strategy_legs_inner_spec.rb
715
- - spec/models/tokenized_asset_instrument_spec.rb
716
- - spec/models/past_value_spec.rb
723
+ - spec/models/account_sync_status_spec.rb
724
+ - spec/models/account_universal_activity_symbol_spec.rb
717
725
  - spec/models/mleg_trade_form_spec.rb
726
+ - spec/models/brokerage_type_spec.rb
727
+ - spec/models/auth_type_spec.rb
728
+ - spec/models/snap_trade_holdings_account_spec.rb
729
+ - spec/models/strategy_order_record_status_spec.rb
730
+ - spec/models/future_option_instrument_kind_spec.rb
731
+ - spec/models/options_symbol_spec.rb
732
+ - spec/models/snap_trade_login_user_request_body_spec.rb
733
+ - spec/models/crypto_order_form_type_spec.rb
734
+ - spec/models/order_updated_response_spec.rb
735
+ - spec/models/security_type_spec.rb
736
+ - spec/models/brokerage_authorization_disabled_confirmation_spec.rb
737
+ - spec/models/trading_instrument_type_spec.rb
738
+ - spec/models/trading_get_user_account_option_quotes410_response_spec.rb
739
+ - spec/models/account_value_history_item_spec.rb
740
+ - spec/models/trade_detection_subscription_spec.rb
741
+ - spec/models/cancel_order_response_spec.rb
742
+ - spec/models/line_of_credit_account_kind_spec.rb
743
+ - spec/models/cash_change_direction_spec.rb
744
+ - spec/models/manual_trade_and_impact_spec.rb
745
+ - spec/models/mleg_price_effect_strict_spec.rb
746
+ - spec/models/account_order_record_leg_spec.rb
747
+ - spec/models/crypto_order_preview_spec.rb
748
+ - spec/models/manual_trade_form_notional_value_spec.rb
749
+ - spec/models/universal_symbol_spec.rb
750
+ - spec/models/option_chain_inner_chain_per_root_inner_spec.rb
751
+ - spec/models/complex_order_leg_order_role_spec.rb
752
+ - spec/models/model425_failed_request_response_spec.rb
753
+ - spec/models/account_value_history_response_spec.rb
754
+ - spec/models/account_universal_activity_option_symbol_spec.rb
755
+ - spec/models/line_of_credit_account_sync_status_spec.rb
756
+ - spec/models/rate_of_return_response_spec.rb
757
+ - spec/models/all_account_positions_response_spec.rb
758
+ - spec/models/option_strategy_spec.rb
718
759
  - spec/models/account_order_record_quote_currency_spec.rb
719
- - spec/models/adr_instrument_spec.rb
720
- - spec/models/account_order_record_v2_order_role_spec.rb
721
- - spec/models/cryptocurrency_pair_quote_spec.rb
722
- - spec/models/model402_brokerage_auth_disabled_response_spec.rb
723
- - spec/models/complex_order_response_spec.rb
724
- - spec/models/stop_loss_spec.rb
725
- - spec/models/option_chain_inner_spec.rb
726
- - spec/models/options_symbol_option_type_spec.rb
727
- - spec/models/login_redirect_uri_spec.rb
728
- - spec/models/user_i_dand_secret_spec.rb
729
- - spec/models/net_contributions_spec.rb
730
- - spec/models/complex_order_leg_spec.rb
731
- - spec/models/brokerage_authorization_data_freshness_mode_spec.rb
732
- - spec/models/brokerage_authorization_transactions_sync_confirmation_spec.rb
733
- - spec/models/manual_trade_balance_spec.rb
734
- - spec/models/symbol_currency_spec.rb
735
- - spec/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner_spec.rb
736
- - spec/models/model400_failed_request_response_spec.rb
737
- - spec/models/schema_version_spec.rb
738
- - spec/models/manual_trade_impact_spec.rb
739
- - spec/models/crypto_instrument_kind_spec.rb
740
- - spec/models/other_instrument_kind_spec.rb
760
+ - spec/models/account_order_record_child_brokerage_order_ids_spec.rb
741
761
  - spec/models/brokerage_spec.rb
742
- - spec/models/position_symbol_spec.rb
762
+ - spec/models/options_position_currency_spec.rb
743
763
  - spec/models/take_profit_spec.rb
744
- - spec/models/position_spec.rb
745
- - spec/models/action_strict_spec.rb
746
- - spec/models/adr_instrument_kind_spec.rb
747
- - spec/models/o_auth_webhook_base_spec.rb
748
- - spec/models/underlying_symbol_exchange_spec.rb
749
- - spec/models/kind_spec.rb
750
- - spec/models/manual_trade_form_bracket_spec.rb
751
- - spec/models/deposit_account_kind_spec.rb
752
- - spec/models/connection_type_spec.rb
753
- - spec/models/manual_trade_form_with_options_spec.rb
754
- - spec/models/mleg_leg_spec.rb
755
- - spec/models/universal_symbol_spec.rb
764
+ - spec/models/past_value_spec.rb
765
+ - spec/models/manual_trade_replace_form_spec.rb
766
+ - spec/models/monthly_dividends_spec.rb
767
+ - spec/models/underlying_symbol_type_spec.rb
756
768
  - spec/models/exchange_spec.rb
757
- - spec/models/brokerage_authorization_spec.rb
758
- - spec/models/future_instrument_spec.rb
759
- - spec/models/sub_period_return_rate_spec.rb
760
- - spec/models/account_order_record_status_v2_spec.rb
761
- - spec/models/model403_feature_not_enabled_response_spec.rb
762
- - spec/models/account_spec.rb
763
- - spec/models/option_impact_spec.rb
769
+ - spec/models/symbol_query_spec.rb
770
+ - spec/models/other_instrument_spec.rb
771
+ - spec/models/other_instrument_kind_spec.rb
764
772
  - spec/models/manual_trade_place_time_in_force_strict_spec.rb
765
- - spec/models/symbols_quotes_inner_spec.rb
766
- - spec/models/etf_instrument_kind_spec.rb
767
- - spec/models/line_of_credit_account_kind_spec.rb
768
- - spec/models/trade_detection_cancel_subscription_request_spec.rb
769
- - spec/models/order_updated_response_spec.rb
770
- - spec/models/option_leg_action_spec.rb
771
- - spec/models/session_event_spec.rb
772
- - spec/models/cancel_order_response_spec.rb
773
- - spec/models/net_dividend_spec.rb
774
- - spec/models/brokerage_instruments_response_spec.rb
775
- - spec/models/line_of_credit_account_sync_status_spec.rb
776
- - spec/models/crypto_order_preview_estimated_fee_spec.rb
773
+ - spec/models/paginated_universal_activity_spec.rb
774
+ - spec/models/underlying_option_instrument_spec.rb
775
+ - spec/models/account_order_record_option_symbol_spec.rb
776
+ - spec/models/mleg_leg_spec.rb
777
777
  - spec/models/account_balance_total_spec.rb
778
- - spec/models/model403_failed_request_response_spec.rb
778
+ - spec/models/crypto_order_preview_estimated_fee_spec.rb
779
+ - spec/models/mleg_action_strict_spec.rb
780
+ - spec/models/connection_account_spec.rb
781
+ - spec/models/account_holdings_account_spec.rb
782
+ - spec/models/encrypted_response_spec.rb
783
+ - spec/models/brokerage_authorization_data_freshness_mode_spec.rb
784
+ - spec/models/account_order_record_status_spec.rb
785
+ - spec/models/transactions_status_spec.rb
786
+ - spec/models/tokenized_asset_instrument_spec.rb
787
+ - spec/models/stock_instrument_spec.rb
788
+ - spec/models/us_exchange_spec.rb
789
+ - spec/models/snap_trade_register_user_request_body_spec.rb
790
+ - spec/models/delete_connection_confirmation_spec.rb
791
+ - spec/models/timeframe_spec.rb
792
+ - spec/models/manual_trade_form_complex_spec.rb
793
+ - spec/models/delete_user_response_spec.rb
794
+ - spec/models/mleg_order_type_strict_spec.rb
795
+ - spec/models/user_i_dand_secret_spec.rb
779
796
  - spec/models/account_order_record_quote_universal_symbol_spec.rb
780
- - spec/models/order_updated_response_order_spec.rb
781
- - spec/models/account_universal_activity_currency_spec.rb
782
- - spec/models/symbol_spec.rb
783
- - spec/models/complex_order_response_type_spec.rb
784
- - spec/models/mutual_fund_instrument_spec.rb
785
- - spec/models/rate_of_return_object_spec.rb
786
- - spec/models/underlying_symbol_type_spec.rb
787
- - spec/models/strategy_order_record_spec.rb
788
- - spec/models/institution_spec.rb
789
- - spec/models/account_order_record_leg_spec.rb
797
+ - spec/models/symbol_currency_spec.rb
798
+ - spec/models/validated_trade_body_spec.rb
790
799
  - spec/models/authentication_login_snap_trade_user200_response_spec.rb
791
- - spec/models/account_order_record_spec.rb
792
- - spec/models/connection_accounts_response_spec.rb
800
+ - spec/models/dividend_at_date_spec.rb
801
+ - spec/models/position_spec.rb
802
+ - spec/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner_spec.rb
803
+ - spec/models/model429_too_many_requests_response_spec.rb
804
+ - spec/models/model403_feature_not_enabled_response_spec.rb
805
+ - spec/models/model404_failed_request_response_spec.rb
793
806
  - spec/models/investment_account_net_value_spec.rb
794
- - spec/models/rate_of_return_response_spec.rb
795
- - spec/models/crypto_order_form_type_spec.rb
796
- - spec/models/option_chain_inner_chain_per_root_inner_spec.rb
807
+ - spec/models/strategy_type_spec.rb
808
+ - spec/models/brokerage_instruments_response_spec.rb
809
+ - spec/models/universal_activity_spec.rb
810
+ - spec/models/stock_instrument_kind_spec.rb
811
+ - spec/models/cef_instrument_spec.rb
812
+ - spec/models/sub_period_return_rate_spec.rb
813
+ - spec/models/account_spec.rb
797
814
  - spec/models/trade_detection_add_subscription_request_spec.rb
798
- - spec/models/strategy_quotes_spec.rb
799
- - spec/models/type_spec.rb
800
- - spec/models/model404_failed_request_response_spec.rb
801
- - spec/models/partner_data_spec.rb
802
- - spec/models/symbol_query_spec.rb
803
- - spec/models/manual_trade_and_impact_spec.rb
804
- - spec/models/account_universal_activity_symbol_spec.rb
805
- - spec/models/delete_user_response_spec.rb
806
- - spec/models/crypto_order_form_spec.rb
815
+ - spec/models/status_spec.rb
807
816
  - spec/models/pagination_details_spec.rb
808
- - spec/models/time_in_force_strict_spec.rb
809
- - spec/models/model401_failed_request_response_spec.rb
810
- - spec/models/underlying_tokenized_asset_instrument_spec.rb
811
- - spec/models/paginated_universal_activity_spec.rb
812
- - spec/models/model503_brokerage_request_response_spec.rb
813
- - spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
814
- - spec/models/crypto_order_preview_spec.rb
815
- - spec/models/option_brokerage_symbol_spec.rb
816
- - spec/models/brokerage_type_spec.rb
817
- - spec/models/connection_account_sync_status_spec.rb
817
+ - spec/models/child_brokerage_order_ids_spec.rb
818
+ - spec/models/cryptocurrency_pair_spec.rb
818
819
  - spec/models/crypto_order_form_time_in_force_spec.rb
819
- - spec/models/account_universal_activity_option_symbol_spec.rb
820
- - spec/models/account_status_spec.rb
821
- - spec/models/account_information_get_user_account_order_detail_request_spec.rb
822
- - spec/models/option_quote_spec.rb
823
- - spec/models/order_type_strict_spec.rb
824
- - spec/models/manual_trade_spec.rb
825
- - spec/models/underlying_cfd_instrument_spec.rb
826
- - spec/models/account_value_history_response_spec.rb
827
- - spec/models/universal_activity_spec.rb
828
- - spec/models/exchange_rate_pairs_spec.rb
829
- - spec/models/cash_change_direction_spec.rb
830
820
  - spec/models/symbol_exchange_spec.rb
831
- - spec/models/account_category_spec.rb
832
- - spec/models/crypto_instrument_spec.rb
821
+ - spec/models/schema_version_spec.rb
822
+ - spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
823
+ - spec/models/manual_trade_form_with_options_spec.rb
824
+ - spec/models/account_holdings_spec.rb
825
+ - spec/models/line_of_credit_account_spec.rb
826
+ - spec/models/underlying_symbol_exchange_spec.rb
827
+ - spec/models/option_impact_spec.rb
828
+ - spec/models/adr_instrument_kind_spec.rb
829
+ - spec/models/holdings_status_spec.rb
830
+ - spec/models/deposit_account_net_value_spec.rb
831
+ - spec/models/account_order_record_v2_order_role_spec.rb
833
832
  - spec/models/balance_spec.rb
834
- - spec/models/account_sync_status_spec.rb
835
- - spec/models/trading_session_spec.rb
836
- - spec/models/manual_trade_replace_form_spec.rb
837
- - spec/models/model429_too_many_requests_response_spec.rb
838
- - spec/models/snaptrade_spec.rb
839
- - spec/models/cef_instrument_spec.rb
840
- - spec/models/trading_instrument_spec.rb
841
- - spec/models/manual_trade_symbol_spec.rb
842
- - spec/models/deposit_account_spec.rb
843
- - spec/models/manual_trade_form_spec.rb
844
- - spec/models/session_event_type_spec.rb
845
- - spec/models/tax_lot_spec.rb
846
- - spec/models/mleg_action_strict_spec.rb
847
- - spec/models/manual_trade_form_notional_value_spec.rb
848
- - spec/models/encrypted_response_encrypted_message_data_spec.rb
849
- - spec/models/auth_type_spec.rb
850
- - spec/models/snap_trade_register_user_request_body_spec.rb
851
- - spec/models/release_stage_spec.rb
852
- - spec/models/strategy_quotes_greek_spec.rb
853
- - spec/models/mleg_trading_instrument_spec.rb
854
- - spec/models/account_value_history_item_spec.rb
855
- - spec/models/trade_detection_subscription_spec.rb
856
- - spec/models/stock_instrument_spec.rb
857
- - spec/models/figi_instrument_spec.rb
858
- - spec/models/trading_instrument_type_spec.rb
859
- - spec/models/security_type_spec.rb
833
+ - spec/models/order_updated_response_order_spec.rb
834
+ - spec/models/instrument_spec.rb
835
+ - spec/models/action_strict_with_options_spec.rb
836
+ - spec/models/etf_instrument_spec.rb
837
+ - spec/models/type_spec.rb
838
+ - spec/models/deposit_account_sync_status_spec.rb
839
+ - spec/models/all_account_positions_response_data_freshness_spec.rb
840
+ - spec/models/connection_type_spec.rb
841
+ - spec/models/model501_not_implemented_response_spec.rb
842
+ - spec/models/account_order_record_universal_symbol_spec.rb
843
+ - spec/models/account_simple_spec.rb
844
+ - spec/models/account_position_spec.rb
860
845
  - spec/models/account_balance_spec.rb
861
- - spec/models/cryptocurrency_pair_spec.rb
862
- - spec/models/brokerage_authorization_type_read_only_type_spec.rb
863
- - spec/models/account_universal_activity_spec.rb
864
- - spec/models/snap_trade_login_user_request_body_spec.rb
846
+ - spec/models/crypto_trading_instrument_type_spec.rb
847
+ - spec/models/account_order_record_status_v2_spec.rb
848
+ - spec/models/tax_lot_spec.rb
849
+ - spec/models/trading_session_spec.rb
850
+ - spec/models/crypto_order_form_spec.rb
851
+ - spec/models/recent_orders_response_spec.rb
852
+ - spec/models/symbols_quotes_inner_spec.rb
853
+ - spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
854
+ - spec/models/option_leg_action_spec.rb
855
+ - spec/models/model403_failed_request_response_spec.rb
865
856
  - spec/models/brokerage_authorization_refresh_confirmation_spec.rb
857
+ - spec/models/model401_failed_request_response_spec.rb
858
+ - spec/models/etf_instrument_kind_spec.rb
859
+ - spec/models/adr_instrument_spec.rb
860
+ - spec/models/strategy_order_record_spec.rb
861
+ - spec/models/currency_spec.rb
866
862
  - spec/models/future_instrument_kind_spec.rb
867
- - spec/models/account_holdings_account_spec.rb
868
- - spec/models/option_strategy_spec.rb
869
- - spec/models/recent_orders_response_spec.rb
870
- - spec/models/simple_order_form_type_spec.rb
863
+ - spec/models/model402_brokerage_auth_disabled_response_spec.rb
864
+ - spec/models/account_orders_v2_response_spec.rb
865
+ - spec/models/connection_accounts_response_spec.rb
866
+ - spec/models/release_stage_spec.rb
867
+ - spec/models/options_symbol_option_type_spec.rb
868
+ - spec/models/crypto_instrument_spec.rb
869
+ - spec/models/manual_trade_impact_spec.rb
870
+ - spec/models/rate_of_return_object_spec.rb
871
+ - spec/models/manual_trade_form_complex_type_spec.rb
872
+ - spec/models/complex_order_response_spec.rb
873
+ - spec/models/brokerage_authorization_type_read_only_type_spec.rb
871
874
  - spec/models/underlying_symbol_spec.rb
872
- - spec/models/options_position_spec.rb
873
- - spec/models/simple_order_form_time_in_force_spec.rb
874
- - spec/models/trade_detection_cancel_subscription_response_spec.rb
875
- - spec/models/investment_account_spec.rb
876
- - spec/models/account_order_record_leg_instrument_spec.rb
877
- - spec/models/etf_instrument_spec.rb
878
- - spec/models/option_instrument_kind_spec.rb
879
- - spec/models/strategy_type_spec.rb
880
- - spec/models/account_order_record_status_spec.rb
881
- - spec/models/instrument_spec.rb
875
+ - spec/models/crypto_instrument_kind_spec.rb
882
876
  - spec/models/tokenized_asset_instrument_kind_spec.rb
883
- - spec/models/notional_value_spec.rb
884
- - spec/models/institution_connection_spec.rb
885
- - spec/models/option_type_spec.rb
886
- - spec/models/option_leg_spec.rb
887
- - spec/models/account_order_record_universal_symbol_spec.rb
888
- - spec/models/monthly_dividends_spec.rb
889
- - spec/models/account_orders_v2_response_spec.rb
890
- - spec/models/line_of_credit_account_net_value_spec.rb
891
- - spec/models/crypto_trading_instrument_type_spec.rb
892
- - spec/models/all_account_positions_response_spec.rb
893
- - spec/models/performance_custom_spec.rb
894
- - spec/models/validated_trade_body_spec.rb
895
- - spec/models/strategy_order_record_status_spec.rb
896
- - spec/models/cfd_instrument_kind_spec.rb
897
- - spec/models/delete_connection_confirmation_spec.rb
898
- - spec/models/order_role_spec.rb
899
- - spec/models/model425_failed_request_response_spec.rb
877
+ - spec/models/manual_trade_balance_spec.rb
900
878
  - spec/models/option_instrument_spec.rb
901
- - spec/models/snap_trade_holdings_account_spec.rb
902
- - spec/models/brokerage_authorization_disabled_confirmation_spec.rb
903
- - spec/models/snap_trade_holdings_total_value_spec.rb
904
- - spec/models/brokerage_authorization_institution_spec.rb
905
- - spec/models/account_holdings_spec.rb
906
- - spec/models/stock_instrument_kind_spec.rb
907
- - spec/models/option_quote_greeks_spec.rb
908
- - spec/models/model501_not_implemented_response_spec.rb
909
- - spec/models/complex_order_leg_order_role_spec.rb
910
- - spec/models/deposit_account_net_value_spec.rb
911
- - spec/models/dividend_at_date_spec.rb
912
- - spec/models/options_position_currency_spec.rb
913
- - spec/models/mleg_order_type_strict_spec.rb
914
- - spec/models/all_account_positions_response_data_freshness_spec.rb
879
+ - spec/models/net_contributions_spec.rb
880
+ - spec/models/complex_order_leg_spec.rb
881
+ - spec/models/option_strategy_legs_inner_spec.rb
882
+ - spec/models/position_currency_spec.rb
883
+ - spec/models/strategy_quotes_greek_spec.rb
884
+ - spec/models/stock_instrument_figi_instrument_spec.rb
885
+ - spec/models/performance_custom_spec.rb
886
+ - spec/models/manual_trade_form_spec.rb
887
+ - spec/models/session_event_spec.rb
888
+ - spec/models/mleg_order_response_spec.rb
889
+ - spec/models/connection_account_sync_status_spec.rb
890
+ - spec/models/exchange_rate_pairs_spec.rb
891
+ - spec/models/line_of_credit_account_net_value_spec.rb
892
+ - spec/models/account_information_get_user_account_order_detail_request_spec.rb
893
+ - spec/models/simple_order_form_spec.rb
894
+ - spec/models/options_position_spec.rb
915
895
  - spec/models/brokerage_authorization_type_read_only_spec.rb
916
- - spec/models/mutual_fund_instrument_kind_spec.rb
917
- - spec/models/line_of_credit_account_available_credit_spec.rb
896
+ - spec/models/brokerage_authorization_institution_spec.rb
897
+ - spec/models/trading_instrument_spec.rb
898
+ - spec/models/institution_spec.rb
899
+ - spec/models/simple_order_form_type_spec.rb
900
+ - spec/models/option_quote_spec.rb
901
+ - spec/models/figi_instrument_spec.rb
902
+ - spec/models/kind_spec.rb
903
+ - spec/models/line_of_credit_account_minimum_payment_amount_spec.rb
904
+ - spec/models/manual_trade_spec.rb
905
+ - spec/models/investment_account_spec.rb
906
+ - spec/models/account_order_record_v2_spec.rb
907
+ - spec/models/brokerage_instrument_spec.rb
908
+ - spec/models/net_dividend_spec.rb
909
+ - spec/models/snap_trade_holdings_total_value_spec.rb
910
+ - spec/models/trade_detection_cancel_subscription_request_spec.rb
911
+ - spec/models/order_role_spec.rb
918
912
  - spec/models/account_universal_activity_currency_universal_symbol_spec.rb
919
- - spec/models/mleg_instrument_type_spec.rb
920
- - spec/models/currency_spec.rb
921
- - spec/models/account_order_record_option_symbol_spec.rb
922
- - spec/models/future_option_instrument_kind_spec.rb
923
- - spec/models/holdings_status_spec.rb
924
- - spec/models/deposit_account_sync_status_spec.rb
925
- - spec/models/cef_instrument_kind_spec.rb
913
+ - spec/models/deposit_account_spec.rb
914
+ - spec/models/underlying_cfd_instrument_spec.rb
926
915
  - spec/models/option_instrument_option_type_spec.rb
927
- - spec/models/future_option_instrument_spec.rb
928
- - spec/models/account_order_record_v2_spec.rb
929
- - spec/models/simple_order_form_spec.rb
930
- - spec/models/action_strict_with_options_spec.rb
931
- - spec/models/child_brokerage_order_ids_spec.rb
932
- - spec/regression/request_signing_spec.rb
916
+ - spec/models/cef_instrument_kind_spec.rb
917
+ - spec/models/position_symbol_spec.rb
918
+ - spec/models/connection_portal_version_spec.rb
919
+ - spec/models/crypto_trading_instrument_spec.rb
920
+ - spec/models/line_of_credit_account_available_credit_spec.rb
921
+ - spec/models/account_status_spec.rb
922
+ - spec/models/future_instrument_spec.rb
923
+ - spec/models/stop_loss_spec.rb
924
+ - spec/models/account_universal_activity_currency_spec.rb
925
+ - spec/models/brokerage_authorization_spec.rb
926
+ - spec/models/option_type_spec.rb
927
+ - spec/models/strategy_quotes_spec.rb
928
+ - spec/models/deposit_account_kind_spec.rb
929
+ - spec/models/cfd_instrument_kind_spec.rb
930
+ - spec/models/account_universal_activity_spec.rb
931
+ - spec/models/partner_data_spec.rb
932
+ - spec/models/account_order_record_spec.rb
933
+ - spec/models/manual_trade_form_bracket_spec.rb
934
+ - spec/models/notional_value_spec.rb
935
+ - spec/models/mutual_fund_instrument_spec.rb
936
+ - spec/models/option_leg_spec.rb
937
+ - spec/models/session_event_type_spec.rb
933
938
  - spec/regression/all_account_positions_spec.rb
934
939
  - spec/regression/fixtures/all_account_positions.json
940
+ - spec/regression/request_signing_spec.rb
935
941
  - spec/spec_helper.rb