snaptrade 3.0.21 → 3.0.22

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: 936cdb3999900c28fb41c81c9c4c9d16e4bb490e2ac530616aca9f80e3cf4147
4
- data.tar.gz: d9f11553550a3229eb0d2deded2718000bbf1a145ea828920ce414ebc4e4d7c6
3
+ metadata.gz: 8ea4a188a836ffb09d74896c3b47d03fe7a883011f31d727568a05800b847b50
4
+ data.tar.gz: 8384a6c1779c522e0c03ad68eebf31b978eef5895aa674aadac94aaef54e96c0
5
5
  SHA512:
6
- metadata.gz: 66c0bc306aa3131e29c1c14d25c94afd8d04558f230525c1c557bad06a4f834c2643139ac773fed4e0e3af9b3d123e99d215379d17202b775aa1b3b7edd64fb6
7
- data.tar.gz: 211caf483706c12c938c6ba348c572b0b9ccdf9d16537007ba8dd86a23dbb018658b4446580a9396871134096a58f37485d428ae49ec05810c42d77c983889ea
6
+ metadata.gz: e4ab7495d8e52810b53fdfeaf37f2a1dd8c2c6aa2658b7233e8508734693cef8b67372efa948ce93ce1de13dd13bbfba1f98acea69d6c3a14a4d7f085c347d08
7
+ data.tar.gz: 9ba48c10beab2f15b4737834c8621af66a8672f5d82d60c6f6724ff931818d75a1845137aeb328013d7ac62cb35cc6b8dc01e932e0b2e4263b55674489195820
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.21-blue)](https://rubygems.org/gems/snaptrade/versions/3.0.21)
66
+ [![npm](https://img.shields.io/badge/gem-v3.0.22-blue)](https://rubygems.org/gems/snaptrade/versions/3.0.22)
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.21'
142
+ gem 'snaptrade', '~> 3.0.22'
143
143
  ```
144
144
 
145
145
  ## Getting Started<a id="getting-started"></a>
@@ -1139,9 +1139,9 @@ p result
1139
1139
 
1140
1140
  ### `snaptrade.connections.list_connection_accounts`<a id="snaptradeconnectionslist_connection_accounts"></a>
1141
1141
 
1142
- Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape.
1142
+ Returns all accounts that belong to the specified connection for the authenticated user.
1143
1143
 
1144
- Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema.
1144
+ The `results` list can contain multiple account kinds in the same response, including investment, deposit, and line of credit accounts. Use the `kind` discriminator to determine the shape for each account.
1145
1145
 
1146
1146
  On Pay as you Go / Real-time, this endpoint refreshes each account's opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts.
1147
1147
 
@@ -1168,7 +1168,7 @@ p result
1168
1168
  ##### user_secret: `String`<a id="user_secret-string"></a>
1169
1169
  #### 🔄 Return<a id="🔄-return"></a>
1170
1170
 
1171
- [ConnectionAccount](./lib/snaptrade/models/connection_account.rb)
1171
+ [ConnectionAccountsResponse](./lib/snaptrade/models/connection_accounts_response.rb)
1172
1172
 
1173
1173
  #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1174
1174
 
@@ -1261,7 +1261,7 @@ module SnapTrade
1261
1261
  end
1262
1262
 
1263
1263
 
1264
- # List accounts
1264
+ # List user accounts
1265
1265
  #
1266
1266
  # Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user.
1267
1267
  #
@@ -1275,7 +1275,7 @@ module SnapTrade
1275
1275
  data
1276
1276
  end
1277
1277
 
1278
- # List accounts
1278
+ # List user accounts
1279
1279
  #
1280
1280
  # Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user.
1281
1281
  #
@@ -1288,7 +1288,7 @@ module SnapTrade
1288
1288
  list_user_accounts_with_http_info_impl(user_id, user_secret, extra)
1289
1289
  end
1290
1290
 
1291
- # List accounts
1291
+ # List user accounts
1292
1292
  # Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user. This endpoint returns Daily data regardless of the customer's plan. Daily data is cached and refreshed once a day, which makes this endpoint fast and well-suited to listing accounts across all of a user's connections in a single call. Exact refresh timing may vary by brokerage. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listBrokerageAuthorizationAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
1293
1293
  # @param user_id [String]
1294
1294
  # @param user_secret [String]
@@ -1299,7 +1299,7 @@ module SnapTrade
1299
1299
  data
1300
1300
  end
1301
1301
 
1302
- # List accounts
1302
+ # List user accounts
1303
1303
  # Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user. This endpoint returns Daily data regardless of the customer&#39;s plan. Daily data is cached and refreshed once a day, which makes this endpoint fast and well-suited to listing accounts across all of a user&#39;s connections in a single call. Exact refresh timing may vary by brokerage. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listBrokerageAuthorizationAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
1304
1304
  # @param user_id [String]
1305
1305
  # @param user_secret [String]
@@ -550,11 +550,11 @@ module SnapTrade
550
550
  end
551
551
 
552
552
 
553
- # List accounts for a connection (discriminated union)
553
+ # List accounts
554
554
  #
555
- # Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape.
555
+ # Returns all accounts that belong to the specified connection for the authenticated user.
556
556
  #
557
- # Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema.
557
+ # The `results` list can contain multiple account kinds in the same response, including investment, deposit, and line of credit accounts. Use the `kind` discriminator to determine the shape for each account.
558
558
  #
559
559
  # On Pay as you Go / Real-time, this endpoint refreshes each account's opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts.
560
560
  #
@@ -571,11 +571,11 @@ module SnapTrade
571
571
  data
572
572
  end
573
573
 
574
- # List accounts for a connection (discriminated union)
574
+ # List accounts
575
575
  #
576
- # Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape.
576
+ # Returns all accounts that belong to the specified connection for the authenticated user.
577
577
  #
578
- # Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema.
578
+ # The `results` list can contain multiple account kinds in the same response, including investment, deposit, and line of credit accounts. Use the `kind` discriminator to determine the shape for each account.
579
579
  #
580
580
  # On Pay as you Go / Real-time, this endpoint refreshes each account's opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts.
581
581
  #
@@ -591,25 +591,25 @@ module SnapTrade
591
591
  list_connection_accounts_with_http_info_impl(connection_id, user_id, user_secret, extra)
592
592
  end
593
593
 
594
- # List accounts for a connection (discriminated union)
595
- # Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape. Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema. On Pay as you Go / Real-time, this endpoint refreshes each account's opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
594
+ # List accounts
595
+ # Returns all accounts that belong to the specified connection for the authenticated user. The `results` list can contain multiple account kinds in the same response, including investment, deposit, and line of credit accounts. Use the `kind` discriminator to determine the shape for each account. On Pay as you Go / Real-time, this endpoint refreshes each account's opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
596
596
  # @param connection_id [String]
597
597
  # @param user_id [String]
598
598
  # @param user_secret [String]
599
599
  # @param [Hash] opts the optional parameters
600
- # @return [Array<ConnectionAccount>]
600
+ # @return [ConnectionAccountsResponse]
601
601
  private def list_connection_accounts_impl(connection_id, user_id, user_secret, opts = {})
602
602
  data, _status_code, _headers = list_connection_accounts_with_http_info(connection_id, user_id, user_secret, opts)
603
603
  data
604
604
  end
605
605
 
606
- # List accounts for a connection (discriminated union)
607
- # Returns the accounts that belong to the specified connection for the authenticated user, using the &#x60;kind&#x60;-discriminated account shape. Each item in the response carries a &#x60;kind&#x60; field (&#x60;investment&#x60;, &#x60;deposit&#x60;, and &#x60;line_of_credit&#x60; are implemented) that determines which additional fields are present -- see the &#x60;ConnectionAccount&#x60; schema. On Pay as you Go / Real-time, this endpoint refreshes each account&#39;s opening date and total net value (&#x60;net_value&#x60;) live from the institution on each call, along with funding date for &#x60;investment&#x60; accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
606
+ # List accounts
607
+ # Returns all accounts that belong to the specified connection for the authenticated user. The &#x60;results&#x60; list can contain multiple account kinds in the same response, including investment, deposit, and line of credit accounts. Use the &#x60;kind&#x60; discriminator to determine the shape for each account. On Pay as you Go / Real-time, this endpoint refreshes each account&#39;s opening date and total net value (&#x60;net_value&#x60;) live from the institution on each call, along with funding date for &#x60;investment&#x60; accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
608
608
  # @param connection_id [String]
609
609
  # @param user_id [String]
610
610
  # @param user_secret [String]
611
611
  # @param [Hash] opts the optional parameters
612
- # @return [Array<(Array<ConnectionAccount>, Integer, Hash)>] Array<ConnectionAccount> data, response status code and response headers
612
+ # @return [Array<(ConnectionAccountsResponse, Integer, Hash)>] ConnectionAccountsResponse data, response status code and response headers
613
613
  private def list_connection_accounts_with_http_info_impl(connection_id, user_id, user_secret, opts = {})
614
614
  if @api_client.config.debugging
615
615
  @api_client.config.logger.debug 'Calling API: ConnectionsApi.list_connection_accounts ...'
@@ -646,7 +646,7 @@ module SnapTrade
646
646
  post_body = opts[:debug_body]
647
647
 
648
648
  # return_type
649
- return_type = opts[:debug_return_type] || 'Array<ConnectionAccount>'
649
+ return_type = opts[:debug_return_type] || 'ConnectionAccountsResponse'
650
650
 
651
651
  # auth_names
652
652
  auth_names = opts[:debug_auth_names] || ['PartnerClientId', 'PartnerSignature', 'PartnerTimestamp']
@@ -0,0 +1,225 @@
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
+ # Accounts under the specified connection.
15
+ class ConnectionAccountsResponse
16
+ # Accounts returned for the request.
17
+ attr_accessor :results
18
+
19
+ # Attribute mapping from ruby-style variable name to JSON key.
20
+ def self.attribute_map
21
+ {
22
+ :'results' => :'results'
23
+ }
24
+ end
25
+
26
+ # Returns all the JSON keys this model knows about
27
+ def self.acceptable_attributes
28
+ attribute_map.values
29
+ end
30
+
31
+ # Attribute type mapping.
32
+ def self.openapi_types
33
+ {
34
+ :'results' => :'Array<ConnectionAccount>'
35
+ }
36
+ end
37
+
38
+ # List of attributes with nullable: true
39
+ def self.openapi_nullable
40
+ Set.new([
41
+ ])
42
+ end
43
+
44
+ # Initializes the object
45
+ # @param [Hash] attributes Model attributes in the form of hash
46
+ def initialize(attributes = {})
47
+ if (!attributes.is_a?(Hash))
48
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SnapTrade::ConnectionAccountsResponse` initialize method"
49
+ end
50
+
51
+ # check to see if the attribute exists and convert string to symbol for hash key
52
+ attributes = attributes.each_with_object({}) { |(k, v), h|
53
+ if (!self.class.attribute_map.key?(k.to_sym))
54
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SnapTrade::ConnectionAccountsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ end
56
+ h[k.to_sym] = v
57
+ }
58
+
59
+ if attributes.key?(:'results')
60
+ if (value = attributes[:'results']).is_a?(Array)
61
+ self.results = value
62
+ end
63
+ end
64
+ end
65
+
66
+ # Show invalid properties with the reasons. Usually used together with valid?
67
+ # @return Array for valid properties with the reasons
68
+ def list_invalid_properties
69
+ invalid_properties = Array.new
70
+ if @results.nil?
71
+ invalid_properties.push('invalid value for "results", results cannot be nil.')
72
+ end
73
+
74
+ invalid_properties
75
+ end
76
+
77
+ # Check to see if the all the properties in the model are valid
78
+ # @return true if the model is valid
79
+ def valid?
80
+ return false if @results.nil?
81
+ true
82
+ end
83
+
84
+ # Checks equality by comparing each attribute.
85
+ # @param [Object] Object to be compared
86
+ def ==(o)
87
+ return true if self.equal?(o)
88
+ self.class == o.class &&
89
+ results == o.results
90
+ end
91
+
92
+ # @see the `==` method
93
+ # @param [Object] Object to be compared
94
+ def eql?(o)
95
+ self == o
96
+ end
97
+
98
+ # Calculates hash code according to all attributes.
99
+ # @return [Integer] Hash code
100
+ def hash
101
+ [results].hash
102
+ end
103
+
104
+ # Builds the object from hash
105
+ # @param [Hash] attributes Model attributes in the form of hash
106
+ # @return [Object] Returns the model itself
107
+ def self.build_from_hash(attributes)
108
+ new.build_from_hash(attributes)
109
+ end
110
+
111
+ # Builds the object from hash
112
+ # @param [Hash] attributes Model attributes in the form of hash
113
+ # @return [Object] Returns the model itself
114
+ def build_from_hash(attributes)
115
+ return nil unless attributes.is_a?(Hash)
116
+ attributes = attributes.transform_keys(&:to_sym)
117
+ self.class.openapi_types.each_pair do |key, type|
118
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
119
+ self.send("#{key}=", nil)
120
+ elsif type =~ /\AArray<(.*)>/i
121
+ # check to ensure the input is an array given that the attribute
122
+ # is documented as an array but the input is not
123
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
124
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
125
+ end
126
+ elsif !attributes[self.class.attribute_map[key]].nil?
127
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
128
+ end
129
+ end
130
+
131
+ self
132
+ end
133
+
134
+ # Deserializes the data based on type
135
+ # @param string type Data type
136
+ # @param string value Value to be deserialized
137
+ # @return [Object] Deserialized data
138
+ def _deserialize(type, value)
139
+ case type.to_sym
140
+ when :Time
141
+ Time.parse(value)
142
+ when :Date
143
+ Date.parse(value)
144
+ when :String
145
+ value.to_s
146
+ when :Integer
147
+ value.to_i
148
+ when :Float
149
+ value.to_f
150
+ when :Boolean
151
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
152
+ true
153
+ else
154
+ false
155
+ end
156
+ when :Object
157
+ # generic object (usually a Hash), return directly
158
+ value
159
+ when /\AArray<(?<inner_type>.+)>\z/
160
+ inner_type = Regexp.last_match[:inner_type]
161
+ value.map { |v| _deserialize(inner_type, v) }
162
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
163
+ k_type = Regexp.last_match[:k_type]
164
+ v_type = Regexp.last_match[:v_type]
165
+ {}.tap do |hash|
166
+ value.each do |k, v|
167
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
168
+ end
169
+ end
170
+ else # model
171
+ # models (e.g. Pet) or oneOf
172
+ klass = SnapTrade.const_get(type)
173
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
174
+ end
175
+ end
176
+
177
+ # Returns the string representation of the object
178
+ # @return [String] String presentation of the object
179
+ def to_s
180
+ to_hash.to_s
181
+ end
182
+
183
+ # to_body is an alias to to_hash (backward compatibility)
184
+ # @return [Hash] Returns the object in the form of hash
185
+ def to_body
186
+ to_hash
187
+ end
188
+
189
+ # Returns the object in the form of hash
190
+ # @return [Hash] Returns the object in the form of hash
191
+ def to_hash
192
+ hash = {}
193
+ self.class.attribute_map.each_pair do |attr, param|
194
+ value = self.send(attr)
195
+ if value.nil?
196
+ is_nullable = self.class.openapi_nullable.include?(attr)
197
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
198
+ end
199
+
200
+ hash[param] = _to_hash(value)
201
+ end
202
+ hash
203
+ end
204
+
205
+ # Outputs non-array value in the form of hash
206
+ # For object, use to_hash. Otherwise, just return the value
207
+ # @param [Object] value Any valid value
208
+ # @return [Hash] Returns the value in the form of hash
209
+ def _to_hash(value)
210
+ if value.is_a?(Array)
211
+ value.compact.map { |v| _to_hash(v) }
212
+ elsif value.is_a?(Hash)
213
+ {}.tap do |hash|
214
+ value.each { |k, v| hash[k] = _to_hash(v) }
215
+ end
216
+ elsif value.respond_to? :to_hash
217
+ value.to_hash
218
+ else
219
+ value
220
+ end
221
+ end
222
+
223
+ end
224
+
225
+ end
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '3.0.21'
11
+ VERSION = '3.0.22'
12
12
  end
data/lib/snaptrade.rb CHANGED
@@ -83,6 +83,7 @@ require 'snaptrade/models/complex_order_response'
83
83
  require 'snaptrade/models/complex_order_response_type'
84
84
  require 'snaptrade/models/connection_account'
85
85
  require 'snaptrade/models/connection_account_sync_status'
86
+ require 'snaptrade/models/connection_accounts_response'
86
87
  require 'snaptrade/models/connection_portal_version'
87
88
  require 'snaptrade/models/connection_type'
88
89
  require 'snaptrade/models/crypto_instrument'
@@ -178,7 +178,7 @@ describe 'AccountInformationApi' do
178
178
  end
179
179
 
180
180
  # unit tests for list_user_accounts
181
- # List accounts
181
+ # List user accounts
182
182
  # Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user. This endpoint returns Daily data regardless of the customer&#39;s plan. Daily data is cached and refreshed once a day, which makes this endpoint fast and well-suited to listing accounts across all of a user&#39;s connections in a single call. Exact refresh timing may vary by brokerage. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listBrokerageAuthorizationAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
183
183
  # @param user_id
184
184
  # @param user_secret
@@ -97,13 +97,13 @@ describe 'ConnectionsApi' do
97
97
  end
98
98
 
99
99
  # unit tests for list_connection_accounts
100
- # List accounts for a connection (discriminated union)
101
- # Returns the accounts that belong to the specified connection for the authenticated user, using the &#x60;kind&#x60;-discriminated account shape. Each item in the response carries a &#x60;kind&#x60; field (&#x60;investment&#x60;, &#x60;deposit&#x60;, and &#x60;line_of_credit&#x60; are implemented) that determines which additional fields are present -- see the &#x60;ConnectionAccount&#x60; schema. On Pay as you Go / Real-time, this endpoint refreshes each account&#39;s opening date and total net value (&#x60;net_value&#x60;) live from the institution on each call, along with funding date for &#x60;investment&#x60; accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
100
+ # List accounts
101
+ # Returns all accounts that belong to the specified connection for the authenticated user. The &#x60;results&#x60; list can contain multiple account kinds in the same response, including investment, deposit, and line of credit accounts. Use the &#x60;kind&#x60; discriminator to determine the shape for each account. On Pay as you Go / Real-time, this endpoint refreshes each account&#39;s opening date and total net value (&#x60;net_value&#x60;) live from the institution on each call, along with funding date for &#x60;investment&#x60; accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
102
102
  # @param connection_id
103
103
  # @param user_id
104
104
  # @param user_secret
105
105
  # @param [Hash] opts the optional parameters
106
- # @return [Array<ConnectionAccount>]
106
+ # @return [ConnectionAccountsResponse]
107
107
  describe 'list_connection_accounts test' do
108
108
  it 'should work' do
109
109
  # 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::ConnectionAccountsResponse
15
+ describe SnapTrade::ConnectionAccountsResponse do
16
+ let(:instance) { SnapTrade::ConnectionAccountsResponse.new }
17
+
18
+ describe 'test an instance of ConnectionAccountsResponse' do
19
+ it 'should create an instance of ConnectionAccountsResponse' do
20
+ expect(instance).to be_instance_of(SnapTrade::ConnectionAccountsResponse)
21
+ end
22
+ end
23
+ describe 'test attribute "results"' 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.21
4
+ version: 3.0.22
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-15 00:00:00.000000000 Z
11
+ date: 2026-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -197,6 +197,7 @@ files:
197
197
  - lib/snaptrade/models/complex_order_response_type.rb
198
198
  - lib/snaptrade/models/connection_account.rb
199
199
  - lib/snaptrade/models/connection_account_sync_status.rb
200
+ - lib/snaptrade/models/connection_accounts_response.rb
200
201
  - lib/snaptrade/models/connection_portal_version.rb
201
202
  - lib/snaptrade/models/connection_type.rb
202
203
  - lib/snaptrade/models/crypto_instrument.rb
@@ -451,6 +452,7 @@ files:
451
452
  - spec/models/complex_order_response_type_spec.rb
452
453
  - spec/models/connection_account_spec.rb
453
454
  - spec/models/connection_account_sync_status_spec.rb
455
+ - spec/models/connection_accounts_response_spec.rb
454
456
  - spec/models/connection_portal_version_spec.rb
455
457
  - spec/models/connection_type_spec.rb
456
458
  - spec/models/crypto_instrument_kind_spec.rb
@@ -656,259 +658,260 @@ signing_key:
656
658
  specification_version: 4
657
659
  summary: SnapTrade Ruby Gem
658
660
  test_files:
659
- - spec/api/trading_api_spec.rb
660
- - spec/api/account_information_api_spec.rb
661
661
  - spec/api/experimental_endpoints_api_spec.rb
662
+ - spec/api/reference_data_api_spec.rb
662
663
  - spec/api/api_status_api_spec.rb
663
664
  - spec/api/connections_api_spec.rb
664
- - spec/api/reference_data_api_spec.rb
665
+ - spec/api/account_information_api_spec.rb
665
666
  - spec/api/authentication_api_spec.rb
667
+ - spec/api/trading_api_spec.rb
666
668
  - spec/api_client_spec.rb
667
669
  - spec/configuration_spec.rb
668
670
  - spec/getting_started_spec.rb
669
- - spec/models/underlying_option_instrument_spec.rb
670
- - spec/models/kind_spec.rb
671
- - spec/models/rate_of_return_response_spec.rb
672
- - spec/models/manual_trade_spec.rb
671
+ - spec/models/connection_accounts_response_spec.rb
672
+ - spec/models/holdings_status_spec.rb
673
+ - spec/models/all_account_positions_response_data_freshness_spec.rb
674
+ - spec/models/connection_type_spec.rb
675
+ - spec/models/option_leg_action_spec.rb
676
+ - spec/models/mleg_trading_instrument_spec.rb
673
677
  - spec/models/option_brokerage_symbol_spec.rb
678
+ - spec/models/take_profit_spec.rb
679
+ - spec/models/underlying_symbol_spec.rb
680
+ - spec/models/cef_instrument_spec.rb
681
+ - spec/models/type_spec.rb
682
+ - spec/models/line_of_credit_account_available_credit_spec.rb
683
+ - spec/models/brokerage_spec.rb
684
+ - spec/models/all_account_positions_response_spec.rb
685
+ - spec/models/account_order_record_quote_universal_symbol_spec.rb
686
+ - spec/models/brokerage_authorization_spec.rb
687
+ - spec/models/account_value_history_response_spec.rb
688
+ - spec/models/transactions_status_spec.rb
689
+ - spec/models/option_instrument_option_type_spec.rb
690
+ - spec/models/crypto_instrument_spec.rb
691
+ - spec/models/manual_trade_form_bracket_spec.rb
692
+ - spec/models/option_leg_spec.rb
693
+ - spec/models/simple_order_form_spec.rb
694
+ - spec/models/session_event_spec.rb
695
+ - spec/models/universal_activity_spec.rb
696
+ - spec/models/option_quote_spec.rb
697
+ - spec/models/position_spec.rb
698
+ - spec/models/order_role_spec.rb
699
+ - spec/models/trade_detection_add_subscription_request_spec.rb
700
+ - spec/models/model403_failed_request_response_spec.rb
701
+ - spec/models/mleg_instrument_type_spec.rb
702
+ - spec/models/net_contributions_spec.rb
703
+ - spec/models/model500_unexpected_exception_response_spec.rb
704
+ - spec/models/instrument_spec.rb
705
+ - spec/models/trading_instrument_type_spec.rb
706
+ - spec/models/crypto_trading_instrument_type_spec.rb
707
+ - spec/models/account_holdings_account_spec.rb
708
+ - spec/models/connection_portal_version_spec.rb
709
+ - spec/models/o_auth_webhook_base_spec.rb
674
710
  - spec/models/brokerage_authorization_type_read_only_spec.rb
675
- - spec/models/underlying_cfd_instrument_spec.rb
676
- - spec/models/line_of_credit_account_sync_status_spec.rb
711
+ - spec/models/brokerage_authorization_disabled_confirmation_spec.rb
712
+ - spec/models/cancel_order_response_spec.rb
677
713
  - spec/models/deposit_account_sync_status_spec.rb
678
- - spec/models/account_order_record_v2_order_role_spec.rb
679
- - spec/models/timeframe_spec.rb
680
- - spec/models/mleg_order_type_strict_spec.rb
681
- - spec/models/line_of_credit_account_minimum_payment_amount_spec.rb
714
+ - spec/models/price_effect_spec.rb
715
+ - spec/models/brokerage_authorization_type_read_only_type_spec.rb
716
+ - spec/models/option_quote_greeks_spec.rb
717
+ - spec/models/account_order_record_leg_instrument_spec.rb
718
+ - spec/models/position_currency_spec.rb
719
+ - spec/models/complex_order_leg_spec.rb
720
+ - spec/models/currency_spec.rb
721
+ - spec/models/brokerage_type_spec.rb
682
722
  - spec/models/trade_detection_cancel_subscription_response_spec.rb
723
+ - spec/models/manual_trade_symbol_spec.rb
724
+ - spec/models/account_order_record_status_spec.rb
683
725
  - spec/models/strategy_quotes_greek_spec.rb
684
- - spec/models/cryptocurrency_pair_quote_spec.rb
685
- - spec/models/model425_failed_request_response_spec.rb
686
- - spec/models/rate_of_return_object_spec.rb
687
- - spec/models/adr_instrument_spec.rb
688
- - spec/models/line_of_credit_account_kind_spec.rb
689
- - spec/models/cef_instrument_spec.rb
690
- - spec/models/model404_failed_request_response_spec.rb
691
- - spec/models/snap_trade_login_user_request_body_spec.rb
692
- - spec/models/investment_account_spec.rb
693
- - spec/models/take_profit_spec.rb
694
- - spec/models/account_status_spec.rb
695
- - spec/models/snap_trade_holdings_total_value_spec.rb
696
- - spec/models/stop_loss_spec.rb
697
- - spec/models/brokerage_authorization_disabled_confirmation_spec.rb
698
- - spec/models/brokerage_authorization_transactions_sync_confirmation_spec.rb
699
- - spec/models/strategy_quotes_spec.rb
700
- - spec/models/mutual_fund_instrument_kind_spec.rb
701
- - spec/models/manual_trade_form_complex_spec.rb
702
- - spec/models/option_instrument_option_type_spec.rb
703
- - spec/models/underlying_symbol_spec.rb
726
+ - spec/models/connection_account_sync_status_spec.rb
727
+ - spec/models/deposit_account_net_value_spec.rb
728
+ - spec/models/account_order_record_quote_currency_spec.rb
729
+ - spec/models/model402_brokerage_auth_disabled_response_spec.rb
730
+ - spec/models/cfd_instrument_kind_spec.rb
731
+ - spec/models/crypto_order_form_spec.rb
732
+ - spec/models/authentication_login_snap_trade_user200_response_spec.rb
733
+ - spec/models/account_spec.rb
734
+ - spec/models/line_of_credit_account_net_value_spec.rb
704
735
  - spec/models/cash_change_direction_spec.rb
705
- - spec/models/option_instrument_spec.rb
706
- - spec/models/model403_feature_not_enabled_response_spec.rb
707
- - spec/models/complex_order_response_spec.rb
708
- - spec/models/encrypted_response_encrypted_message_data_spec.rb
709
- - spec/models/manual_trade_form_with_options_spec.rb
736
+ - spec/models/trade_detection_cancel_subscription_request_spec.rb
737
+ - spec/models/institution_spec.rb
738
+ - spec/models/account_order_record_trailing_stop_spec.rb
739
+ - spec/models/etf_instrument_spec.rb
740
+ - spec/models/connection_account_spec.rb
741
+ - spec/models/security_type_spec.rb
742
+ - spec/models/encrypted_response_spec.rb
710
743
  - spec/models/symbol_spec.rb
711
- - spec/models/brokerage_instrument_spec.rb
712
- - spec/models/brokerage_authorization_data_freshness_mode_spec.rb
713
- - spec/models/option_quote_greeks_spec.rb
714
- - spec/models/manual_trade_form_spec.rb
744
+ - spec/models/manual_trade_place_time_in_force_strict_spec.rb
745
+ - spec/models/option_instrument_kind_spec.rb
746
+ - spec/models/underlying_option_instrument_spec.rb
747
+ - spec/models/trading_instrument_spec.rb
748
+ - spec/models/account_order_record_v2_spec.rb
749
+ - spec/models/deposit_account_spec.rb
750
+ - spec/models/account_order_record_child_brokerage_order_ids_spec.rb
751
+ - spec/models/us_exchange_spec.rb
752
+ - spec/models/mutual_fund_instrument_kind_spec.rb
753
+ - spec/models/exchange_spec.rb
754
+ - spec/models/mleg_order_response_spec.rb
755
+ - spec/models/stop_loss_spec.rb
756
+ - spec/models/notional_value_spec.rb
757
+ - spec/models/delete_connection_confirmation_spec.rb
758
+ - spec/models/adr_instrument_kind_spec.rb
759
+ - spec/models/figi_instrument_spec.rb
760
+ - spec/models/manual_trade_form_complex_type_spec.rb
761
+ - spec/models/other_instrument_kind_spec.rb
762
+ - spec/models/crypto_order_form_type_spec.rb
763
+ - spec/models/simple_order_form_type_spec.rb
764
+ - spec/models/delete_user_response_spec.rb
765
+ - spec/models/rate_of_return_response_spec.rb
766
+ - spec/models/account_position_spec.rb
767
+ - spec/models/model400_failed_request_response_spec.rb
768
+ - spec/models/model503_brokerage_request_response_spec.rb
769
+ - spec/models/account_order_record_status_v2_spec.rb
770
+ - spec/models/crypto_order_preview_estimated_fee_spec.rb
771
+ - spec/models/tax_lot_spec.rb
772
+ - spec/models/complex_order_response_spec.rb
773
+ - spec/models/dividend_at_date_spec.rb
774
+ - spec/models/pagination_details_spec.rb
775
+ - spec/models/options_symbol_option_type_spec.rb
776
+ - spec/models/mleg_price_effect_strict_spec.rb
777
+ - spec/models/sub_period_return_rate_spec.rb
778
+ - spec/models/strategy_order_record_status_spec.rb
779
+ - spec/models/model404_failed_request_response_spec.rb
780
+ - spec/models/option_instrument_spec.rb
715
781
  - spec/models/partner_data_spec.rb
716
- - spec/models/stock_instrument_spec.rb
717
- - spec/models/mutual_fund_instrument_spec.rb
718
- - spec/models/brokerage_authorization_refresh_confirmation_spec.rb
719
- - spec/models/performance_custom_spec.rb
720
- - spec/models/past_value_spec.rb
721
- - spec/models/user_i_dand_secret_spec.rb
722
- - spec/models/exchange_rate_pairs_spec.rb
723
- - spec/models/account_simple_spec.rb
724
- - spec/models/account_order_record_spec.rb
725
- - spec/models/order_updated_response_spec.rb
726
- - spec/models/mleg_trade_form_spec.rb
782
+ - spec/models/model403_feature_not_enabled_response_spec.rb
783
+ - spec/models/account_order_record_option_symbol_spec.rb
784
+ - spec/models/future_option_instrument_spec.rb
785
+ - spec/models/account_category_spec.rb
727
786
  - spec/models/crypto_order_preview_spec.rb
787
+ - spec/models/account_order_record_spec.rb
788
+ - spec/models/account_universal_activity_spec.rb
789
+ - spec/models/symbol_exchange_spec.rb
728
790
  - spec/models/options_position_spec.rb
729
- - spec/models/simple_order_form_type_spec.rb
730
- - spec/models/option_quote_spec.rb
731
- - spec/models/monthly_dividends_spec.rb
732
- - spec/models/model503_brokerage_request_response_spec.rb
791
+ - spec/models/account_universal_activity_currency_spec.rb
733
792
  - spec/models/option_type_spec.rb
734
- - spec/models/encrypted_response_spec.rb
735
- - spec/models/deposit_account_kind_spec.rb
736
- - spec/models/account_order_record_leg_instrument_spec.rb
737
- - spec/models/strategy_type_spec.rb
738
- - spec/models/manual_trade_form_bracket_spec.rb
739
- - spec/models/option_impact_spec.rb
740
- - spec/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner_spec.rb
741
- - spec/models/us_exchange_spec.rb
742
- - spec/models/holdings_status_spec.rb
793
+ - spec/models/balance_spec.rb
794
+ - spec/models/future_option_instrument_kind_spec.rb
795
+ - spec/models/rate_of_return_object_spec.rb
796
+ - spec/models/model429_too_many_requests_response_spec.rb
797
+ - spec/models/symbols_quotes_inner_spec.rb
798
+ - spec/models/child_brokerage_order_ids_spec.rb
799
+ - spec/models/strategy_quotes_spec.rb
800
+ - spec/models/option_strategy_spec.rb
801
+ - spec/models/model401_failed_request_response_spec.rb
802
+ - spec/models/account_sync_status_spec.rb
743
803
  - spec/models/account_universal_activity_currency_universal_symbol_spec.rb
744
- - spec/models/other_instrument_kind_spec.rb
745
- - spec/models/crypto_order_form_time_in_force_spec.rb
746
- - spec/models/option_chain_inner_spec.rb
747
- - spec/models/strategy_order_record_status_spec.rb
804
+ - spec/models/schema_version_spec.rb
805
+ - spec/models/complex_order_response_type_spec.rb
806
+ - spec/models/session_event_type_spec.rb
748
807
  - spec/models/manual_trade_form_notional_value_spec.rb
749
- - spec/models/authentication_login_snap_trade_user200_response_spec.rb
750
- - spec/models/account_universal_activity_symbol_spec.rb
751
- - spec/models/manual_trade_and_impact_spec.rb
752
- - spec/models/account_balance_spec.rb
753
- - spec/models/account_universal_activity_option_symbol_spec.rb
754
- - spec/models/cryptocurrency_pair_spec.rb
755
- - spec/models/model402_brokerage_auth_disabled_response_spec.rb
756
- - spec/models/account_order_record_quote_universal_symbol_spec.rb
757
- - spec/models/type_spec.rb
758
- - spec/models/snaptrade_spec.rb
759
- - spec/models/account_information_get_user_account_order_detail_request_spec.rb
760
- - spec/models/notional_value_spec.rb
761
- - spec/models/position_spec.rb
762
- - spec/models/option_strategy_spec.rb
763
- - spec/models/action_strict_spec.rb
764
- - spec/models/connection_portal_version_spec.rb
765
- - spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
808
+ - spec/models/account_status_spec.rb
809
+ - spec/models/recent_orders_response_spec.rb
810
+ - spec/models/cryptocurrency_pair_quote_spec.rb
811
+ - spec/models/login_redirect_uri_spec.rb
812
+ - spec/models/exchange_rate_pairs_spec.rb
813
+ - spec/models/universal_symbol_spec.rb
814
+ - spec/models/adr_instrument_spec.rb
815
+ - spec/models/cef_instrument_kind_spec.rb
816
+ - spec/models/line_of_credit_account_minimum_payment_amount_spec.rb
817
+ - spec/models/account_orders_v2_response_spec.rb
818
+ - spec/models/etf_instrument_kind_spec.rb
819
+ - spec/models/symbol_query_spec.rb
820
+ - spec/models/line_of_credit_account_spec.rb
821
+ - spec/models/monthly_dividends_spec.rb
822
+ - spec/models/underlying_cfd_instrument_spec.rb
823
+ - spec/models/brokerage_instruments_response_spec.rb
824
+ - spec/models/brokerage_instrument_spec.rb
825
+ - spec/models/options_position_currency_spec.rb
826
+ - spec/models/manual_trade_form_complex_spec.rb
766
827
  - spec/models/account_order_record_leg_spec.rb
767
- - spec/models/position_currency_spec.rb
768
- - spec/models/net_contributions_spec.rb
769
- - spec/models/option_chain_inner_chain_per_root_inner_spec.rb
770
- - spec/models/institution_spec.rb
771
- - spec/models/future_option_instrument_spec.rb
772
- - spec/models/deposit_account_spec.rb
773
- - spec/models/account_order_record_v2_spec.rb
774
- - spec/models/account_holdings_account_spec.rb
775
- - spec/models/simple_order_form_time_in_force_spec.rb
776
- - spec/models/complex_order_leg_order_role_spec.rb
777
- - spec/models/mleg_trading_instrument_spec.rb
778
- - spec/models/mleg_leg_spec.rb
779
828
  - spec/models/validated_trade_body_spec.rb
780
- - spec/models/delete_user_response_spec.rb
781
- - spec/models/option_leg_action_spec.rb
782
- - spec/models/crypto_trading_instrument_spec.rb
783
- - spec/models/recent_orders_response_spec.rb
784
- - spec/models/tax_lot_spec.rb
785
- - spec/models/balance_currency_spec.rb
829
+ - spec/models/mleg_leg_spec.rb
786
830
  - spec/models/order_type_strict_spec.rb
787
- - spec/models/underlying_symbol_exchange_spec.rb
788
- - spec/models/brokerage_instruments_response_spec.rb
789
- - spec/models/symbol_query_spec.rb
790
- - spec/models/account_order_record_status_spec.rb
791
- - spec/models/line_of_credit_account_available_credit_spec.rb
831
+ - spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
832
+ - spec/models/deposit_account_kind_spec.rb
833
+ - spec/models/balance_currency_spec.rb
834
+ - spec/models/encrypted_response_encrypted_message_data_spec.rb
835
+ - spec/models/brokerage_authorization_data_freshness_mode_spec.rb
836
+ - spec/models/line_of_credit_account_kind_spec.rb
837
+ - spec/models/account_balance_total_spec.rb
792
838
  - spec/models/manual_trade_replace_form_spec.rb
793
- - spec/models/crypto_order_form_type_spec.rb
794
- - spec/models/manual_trade_place_time_in_force_strict_spec.rb
795
- - spec/models/cef_instrument_kind_spec.rb
796
- - spec/models/model403_failed_request_response_spec.rb
797
- - spec/models/model501_not_implemented_response_spec.rb
798
- - spec/models/session_event_type_spec.rb
799
- - spec/models/investment_account_net_value_spec.rb
800
- - spec/models/trade_detection_add_subscription_request_spec.rb
839
+ - spec/models/account_order_record_v2_order_role_spec.rb
840
+ - spec/models/auth_type_spec.rb
801
841
  - spec/models/other_instrument_spec.rb
802
- - spec/models/mleg_order_response_spec.rb
803
- - spec/models/balance_spec.rb
804
- - spec/models/manual_trade_balance_spec.rb
805
- - spec/models/account_universal_activity_currency_spec.rb
806
- - spec/models/time_in_force_strict_spec.rb
807
- - spec/models/mleg_instrument_type_spec.rb
808
- - spec/models/deposit_account_net_value_spec.rb
809
- - spec/models/session_event_spec.rb
810
- - spec/models/simple_order_form_spec.rb
811
- - spec/models/security_type_spec.rb
812
- - spec/models/crypto_order_preview_estimated_fee_spec.rb
813
- - spec/models/trading_session_spec.rb
814
- - spec/models/all_account_positions_response_data_freshness_spec.rb
815
- - spec/models/trade_detection_subscription_spec.rb
816
- - spec/models/account_sync_status_spec.rb
817
- - spec/models/etf_instrument_spec.rb
818
- - spec/models/connection_account_spec.rb
819
- - spec/models/manual_trade_impact_spec.rb
820
- - spec/models/line_of_credit_account_net_value_spec.rb
821
- - spec/models/strategy_order_record_spec.rb
822
- - spec/models/delete_connection_confirmation_spec.rb
823
- - spec/models/crypto_instrument_spec.rb
824
842
  - spec/models/account_value_history_item_spec.rb
825
- - spec/models/login_redirect_uri_spec.rb
826
- - spec/models/account_universal_activity_spec.rb
827
- - spec/models/symbols_quotes_inner_spec.rb
828
- - spec/models/account_order_record_trailing_stop_spec.rb
843
+ - spec/models/trailing_stop_spec.rb
844
+ - spec/models/strategy_order_record_spec.rb
845
+ - spec/models/option_chain_inner_spec.rb
846
+ - spec/models/crypto_order_form_time_in_force_spec.rb
847
+ - spec/models/snap_trade_login_user_request_body_spec.rb
848
+ - spec/models/option_impact_spec.rb
849
+ - spec/models/simple_order_form_time_in_force_spec.rb
850
+ - spec/models/manual_trade_impact_spec.rb
851
+ - spec/models/net_dividend_spec.rb
852
+ - spec/models/underlying_symbol_exchange_spec.rb
853
+ - spec/models/brokerage_authorization_transactions_sync_confirmation_spec.rb
854
+ - spec/models/snap_trade_holdings_total_value_spec.rb
829
855
  - spec/models/cfd_instrument_spec.rb
830
- - spec/models/option_strategy_legs_inner_spec.rb
856
+ - spec/models/position_symbol_spec.rb
831
857
  - spec/models/paginated_universal_activity_spec.rb
832
- - spec/models/connection_account_sync_status_spec.rb
833
- - spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
834
- - spec/models/complex_order_response_type_spec.rb
835
- - spec/models/account_order_record_child_brokerage_order_ids_spec.rb
836
- - spec/models/account_order_record_quote_currency_spec.rb
837
- - spec/models/net_dividend_spec.rb
838
- - spec/models/etf_instrument_kind_spec.rb
858
+ - spec/models/kind_spec.rb
859
+ - spec/models/account_balance_spec.rb
839
860
  - spec/models/account_holdings_spec.rb
840
- - spec/models/price_effect_spec.rb
841
- - spec/models/all_account_positions_response_spec.rb
842
- - spec/models/account_position_spec.rb
861
+ - spec/models/cryptocurrency_pair_spec.rb
862
+ - spec/models/order_updated_response_spec.rb
863
+ - spec/models/underlying_symbol_type_spec.rb
864
+ - spec/models/brokerage_authorization_refresh_confirmation_spec.rb
865
+ - spec/models/mleg_order_type_strict_spec.rb
866
+ - spec/models/manual_trade_spec.rb
867
+ - spec/models/account_universal_activity_symbol_spec.rb
868
+ - spec/models/snap_trade_register_user_request_body_spec.rb
869
+ - spec/models/action_strict_spec.rb
870
+ - spec/models/trading_session_spec.rb
871
+ - spec/models/strategy_type_spec.rb
872
+ - spec/models/stock_instrument_spec.rb
873
+ - spec/models/model425_failed_request_response_spec.rb
874
+ - spec/models/user_i_dand_secret_spec.rb
875
+ - spec/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner_spec.rb
876
+ - spec/models/mutual_fund_instrument_spec.rb
877
+ - spec/models/manual_trade_balance_spec.rb
878
+ - spec/models/past_value_spec.rb
879
+ - spec/models/line_of_credit_account_sync_status_spec.rb
843
880
  - spec/models/symbol_currency_spec.rb
844
- - spec/models/future_instrument_kind_spec.rb
845
- - spec/models/account_order_record_option_symbol_spec.rb
846
- - spec/models/o_auth_webhook_base_spec.rb
847
- - spec/models/child_brokerage_order_ids_spec.rb
848
- - spec/models/model401_failed_request_response_spec.rb
849
- - spec/models/instrument_spec.rb
850
- - spec/models/line_of_credit_account_spec.rb
851
- - spec/models/trading_instrument_spec.rb
881
+ - spec/models/option_chain_inner_chain_per_root_inner_spec.rb
882
+ - spec/models/manual_trade_form_with_options_spec.rb
883
+ - spec/models/performance_custom_spec.rb
884
+ - spec/models/account_information_get_user_account_order_detail_request_spec.rb
885
+ - spec/models/trade_detection_subscription_spec.rb
886
+ - spec/models/complex_order_leg_order_role_spec.rb
887
+ - spec/models/investment_account_net_value_spec.rb
888
+ - spec/models/manual_trade_and_impact_spec.rb
889
+ - spec/models/timeframe_spec.rb
890
+ - spec/models/options_symbol_spec.rb
891
+ - spec/models/status_spec.rb
892
+ - spec/models/mleg_trade_form_spec.rb
852
893
  - spec/models/action_strict_with_options_spec.rb
853
- - spec/models/sub_period_return_rate_spec.rb
854
- - spec/models/account_value_history_response_spec.rb
855
- - spec/models/account_category_spec.rb
856
- - spec/models/cancel_order_response_spec.rb
857
- - spec/models/figi_instrument_spec.rb
858
- - spec/models/dividend_at_date_spec.rb
859
- - spec/models/account_spec.rb
860
- - spec/models/cfd_instrument_kind_spec.rb
861
- - spec/models/model429_too_many_requests_response_spec.rb
862
- - spec/models/order_role_spec.rb
863
- - spec/models/auth_type_spec.rb
864
- - spec/models/trade_detection_cancel_subscription_request_spec.rb
865
- - spec/models/currency_spec.rb
866
- - spec/models/order_updated_response_order_spec.rb
867
- - spec/models/exchange_spec.rb
868
- - spec/models/account_order_record_status_v2_spec.rb
894
+ - spec/models/snaptrade_spec.rb
895
+ - spec/models/stock_instrument_figi_instrument_spec.rb
869
896
  - spec/models/future_instrument_spec.rb
870
- - spec/models/symbol_exchange_spec.rb
871
- - spec/models/underlying_symbol_type_spec.rb
872
- - spec/models/option_leg_spec.rb
873
- - spec/models/pagination_details_spec.rb
874
- - spec/models/brokerage_spec.rb
875
- - spec/models/manual_trade_form_complex_type_spec.rb
876
- - spec/models/options_symbol_option_type_spec.rb
877
- - spec/models/future_option_instrument_kind_spec.rb
878
- - spec/models/model400_failed_request_response_spec.rb
879
- - spec/models/stock_instrument_kind_spec.rb
880
- - spec/models/position_symbol_spec.rb
881
- - spec/models/mleg_price_effect_strict_spec.rb
882
- - spec/models/connection_type_spec.rb
883
- - spec/models/model500_unexpected_exception_response_spec.rb
884
- - spec/models/manual_trade_symbol_spec.rb
885
- - spec/models/account_orders_v2_response_spec.rb
886
- - spec/models/status_spec.rb
887
- - spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
888
- - spec/models/account_balance_total_spec.rb
889
- - spec/models/crypto_instrument_kind_spec.rb
890
- - spec/models/brokerage_authorization_spec.rb
891
- - spec/models/account_order_record_universal_symbol_spec.rb
892
- - spec/models/option_instrument_kind_spec.rb
897
+ - spec/models/account_universal_activity_option_symbol_spec.rb
898
+ - spec/models/option_strategy_legs_inner_spec.rb
899
+ - spec/models/manual_trade_form_spec.rb
900
+ - spec/models/future_instrument_kind_spec.rb
901
+ - spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
893
902
  - spec/models/snap_trade_holdings_account_spec.rb
894
- - spec/models/options_position_currency_spec.rb
895
- - spec/models/snap_trade_register_user_request_body_spec.rb
896
- - spec/models/stock_instrument_figi_instrument_spec.rb
897
- - spec/models/schema_version_spec.rb
898
- - spec/models/adr_instrument_kind_spec.rb
899
- - spec/models/brokerage_authorization_type_read_only_type_spec.rb
900
- - spec/models/trailing_stop_spec.rb
903
+ - spec/models/order_updated_response_order_spec.rb
901
904
  - spec/models/mleg_action_strict_spec.rb
902
- - spec/models/crypto_order_form_spec.rb
903
- - spec/models/trading_instrument_type_spec.rb
904
- - spec/models/brokerage_type_spec.rb
905
- - spec/models/complex_order_leg_spec.rb
906
- - spec/models/universal_activity_spec.rb
907
- - spec/models/universal_symbol_spec.rb
908
- - spec/models/transactions_status_spec.rb
909
- - spec/models/options_symbol_spec.rb
910
- - spec/models/crypto_trading_instrument_type_spec.rb
911
- - spec/regression/fixtures/all_account_positions.json
912
- - spec/regression/request_signing_spec.rb
905
+ - spec/models/account_order_record_universal_symbol_spec.rb
906
+ - spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
907
+ - spec/models/stock_instrument_kind_spec.rb
908
+ - spec/models/crypto_trading_instrument_spec.rb
909
+ - spec/models/account_simple_spec.rb
910
+ - spec/models/investment_account_spec.rb
911
+ - spec/models/crypto_instrument_kind_spec.rb
912
+ - spec/models/model501_not_implemented_response_spec.rb
913
+ - spec/models/time_in_force_strict_spec.rb
913
914
  - spec/regression/all_account_positions_spec.rb
915
+ - spec/regression/request_signing_spec.rb
916
+ - spec/regression/fixtures/all_account_positions.json
914
917
  - spec/spec_helper.rb