snaptrade 3.0.49 → 3.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/snaptrade/models/annuity_account.rb +11 -1
- data/lib/snaptrade/models/connection_account_status.rb +39 -0
- data/lib/snaptrade/models/deposit_account.rb +11 -1
- data/lib/snaptrade/models/investment_account.rb +11 -1
- data/lib/snaptrade/models/line_of_credit_account.rb +11 -1
- data/lib/snaptrade/version.rb +1 -1
- data/lib/snaptrade.rb +1 -0
- data/spec/models/annuity_account_spec.rb +6 -0
- data/spec/models/connection_account_status_spec.rb +23 -0
- data/spec/models/deposit_account_spec.rb +6 -0
- data/spec/models/investment_account_spec.rb +6 -0
- data/spec/models/line_of_credit_account_spec.rb +6 -0
- metadata +283 -280
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4b5109788e9e31a37c04e7202c7f7889ab9db9ee36d76538f18a69638224869e
|
|
4
|
+
data.tar.gz: 1436b4c3401205d388b0781cd934ebf8dbf69a115afbf9a9944624393a3f396d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 031c6bc9bc6ab4f6d507a265c25808401ccf70da8bf8e5ec95d96f3da1cd633d3429b5f2745174c68c10f83376cd9a955849962e63426baf92e587d232953c79
|
|
7
|
+
data.tar.gz: e407d8115941865131e54b074fd29d446c811b0d1f77868a38885a0dae951fedcdda6400182f946db0c856187c6fc8fed2f977bb9fe7413a04a21530dc4f0a3f
|
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
|
-
[](https://rubygems.org/gems/snaptrade/versions/3.0.50)
|
|
67
67
|
[](https://snaptrade.com/)
|
|
68
68
|
|
|
69
69
|
</div>
|
|
@@ -147,7 +147,7 @@ See https://docs.snaptrade.com/docs/ratelimiting.
|
|
|
147
147
|
Add to Gemfile:
|
|
148
148
|
|
|
149
149
|
```ruby
|
|
150
|
-
gem 'snaptrade', '~> 3.0.
|
|
150
|
+
gem 'snaptrade', '~> 3.0.50'
|
|
151
151
|
```
|
|
152
152
|
|
|
153
153
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -22,6 +22,9 @@ module SnapTrade
|
|
|
22
22
|
# Unique identifier for the connection (brokerage_authorization_id). This is the UUID used to reference the connection in SnapTrade.
|
|
23
23
|
attr_accessor :connection_id
|
|
24
24
|
|
|
25
|
+
# The current status of the account. Omitted when the status is unknown or not provided by the institution. - `open`: The account is open. - `closed`: The account is closed. - `archived`: The account is archived. - `unavailable`: The account is no longer available through the institution's API. Accounts with this status are excluded from account list responses.
|
|
26
|
+
attr_accessor :status
|
|
27
|
+
|
|
25
28
|
# A display name for the account. Either assigned by the user or by the institution itself.
|
|
26
29
|
attr_accessor :display_name
|
|
27
30
|
|
|
@@ -50,6 +53,7 @@ module SnapTrade
|
|
|
50
53
|
:'kind' => :'kind',
|
|
51
54
|
:'id' => :'id',
|
|
52
55
|
:'connection_id' => :'connection_id',
|
|
56
|
+
:'status' => :'status',
|
|
53
57
|
:'display_name' => :'display_name',
|
|
54
58
|
:'masked_account_number' => :'masked_account_number',
|
|
55
59
|
:'institution_account_id' => :'institution_account_id',
|
|
@@ -72,6 +76,7 @@ module SnapTrade
|
|
|
72
76
|
:'kind' => :'AnnuityAccountKind',
|
|
73
77
|
:'id' => :'String',
|
|
74
78
|
:'connection_id' => :'String',
|
|
79
|
+
:'status' => :'ConnectionAccountStatus',
|
|
75
80
|
:'display_name' => :'String',
|
|
76
81
|
:'masked_account_number' => :'String',
|
|
77
82
|
:'institution_account_id' => :'String',
|
|
@@ -121,6 +126,10 @@ module SnapTrade
|
|
|
121
126
|
self.connection_id = attributes[:'connection_id']
|
|
122
127
|
end
|
|
123
128
|
|
|
129
|
+
if attributes.key?(:'status')
|
|
130
|
+
self.status = attributes[:'status']
|
|
131
|
+
end
|
|
132
|
+
|
|
124
133
|
if attributes.key?(:'display_name')
|
|
125
134
|
self.display_name = attributes[:'display_name']
|
|
126
135
|
end
|
|
@@ -200,6 +209,7 @@ module SnapTrade
|
|
|
200
209
|
kind == o.kind &&
|
|
201
210
|
id == o.id &&
|
|
202
211
|
connection_id == o.connection_id &&
|
|
212
|
+
status == o.status &&
|
|
203
213
|
display_name == o.display_name &&
|
|
204
214
|
masked_account_number == o.masked_account_number &&
|
|
205
215
|
institution_account_id == o.institution_account_id &&
|
|
@@ -219,7 +229,7 @@ module SnapTrade
|
|
|
219
229
|
# Calculates hash code according to all attributes.
|
|
220
230
|
# @return [Integer] Hash code
|
|
221
231
|
def hash
|
|
222
|
-
[kind, id, connection_id, display_name, masked_account_number, institution_account_id, institution_id, opening_date, sync_status, raw_type, net_value].hash
|
|
232
|
+
[kind, id, connection_id, status, display_name, masked_account_number, institution_account_id, institution_id, opening_date, sync_status, raw_type, net_value].hash
|
|
223
233
|
end
|
|
224
234
|
|
|
225
235
|
# Builds the object from hash
|
|
@@ -0,0 +1,39 @@
|
|
|
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 ConnectionAccountStatus
|
|
15
|
+
OPEN = "open".freeze
|
|
16
|
+
CLOSED = "closed".freeze
|
|
17
|
+
ARCHIVED = "archived".freeze
|
|
18
|
+
UNAVAILABLE = "unavailable".freeze
|
|
19
|
+
|
|
20
|
+
def self.all_vars
|
|
21
|
+
@all_vars ||= [OPEN, CLOSED, ARCHIVED, UNAVAILABLE].freeze
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# Builds the enum from string
|
|
25
|
+
# @param [String] The enum value in the form of the string
|
|
26
|
+
# @return [String] The enum value
|
|
27
|
+
def self.build_from_hash(value)
|
|
28
|
+
new.build_from_hash(value)
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Builds the enum from string
|
|
32
|
+
# @param [String] The enum value in the form of the string
|
|
33
|
+
# @return [String] The enum value
|
|
34
|
+
def build_from_hash(value)
|
|
35
|
+
return value if ConnectionAccountStatus.all_vars.include?(value)
|
|
36
|
+
raise "Invalid ENUM value #{value} for class #ConnectionAccountStatus"
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -22,6 +22,9 @@ module SnapTrade
|
|
|
22
22
|
# Unique identifier for the connection (brokerage_authorization_id). This is the UUID used to reference the connection in SnapTrade.
|
|
23
23
|
attr_accessor :connection_id
|
|
24
24
|
|
|
25
|
+
# The current status of the account. Omitted when the status is unknown or not provided by the institution. - `open`: The account is open. - `closed`: The account is closed. - `archived`: The account is archived. - `unavailable`: The account is no longer available through the institution's API. Accounts with this status are excluded from account list responses.
|
|
26
|
+
attr_accessor :status
|
|
27
|
+
|
|
25
28
|
# A display name for the account. Either assigned by the user or by the institution itself.
|
|
26
29
|
attr_accessor :display_name
|
|
27
30
|
|
|
@@ -50,6 +53,7 @@ module SnapTrade
|
|
|
50
53
|
:'kind' => :'kind',
|
|
51
54
|
:'id' => :'id',
|
|
52
55
|
:'connection_id' => :'connection_id',
|
|
56
|
+
:'status' => :'status',
|
|
53
57
|
:'display_name' => :'display_name',
|
|
54
58
|
:'masked_account_number' => :'masked_account_number',
|
|
55
59
|
:'institution_account_id' => :'institution_account_id',
|
|
@@ -72,6 +76,7 @@ module SnapTrade
|
|
|
72
76
|
:'kind' => :'DepositAccountKind',
|
|
73
77
|
:'id' => :'String',
|
|
74
78
|
:'connection_id' => :'String',
|
|
79
|
+
:'status' => :'ConnectionAccountStatus',
|
|
75
80
|
:'display_name' => :'String',
|
|
76
81
|
:'masked_account_number' => :'String',
|
|
77
82
|
:'institution_account_id' => :'String',
|
|
@@ -121,6 +126,10 @@ module SnapTrade
|
|
|
121
126
|
self.connection_id = attributes[:'connection_id']
|
|
122
127
|
end
|
|
123
128
|
|
|
129
|
+
if attributes.key?(:'status')
|
|
130
|
+
self.status = attributes[:'status']
|
|
131
|
+
end
|
|
132
|
+
|
|
124
133
|
if attributes.key?(:'display_name')
|
|
125
134
|
self.display_name = attributes[:'display_name']
|
|
126
135
|
end
|
|
@@ -200,6 +209,7 @@ module SnapTrade
|
|
|
200
209
|
kind == o.kind &&
|
|
201
210
|
id == o.id &&
|
|
202
211
|
connection_id == o.connection_id &&
|
|
212
|
+
status == o.status &&
|
|
203
213
|
display_name == o.display_name &&
|
|
204
214
|
masked_account_number == o.masked_account_number &&
|
|
205
215
|
institution_account_id == o.institution_account_id &&
|
|
@@ -219,7 +229,7 @@ module SnapTrade
|
|
|
219
229
|
# Calculates hash code according to all attributes.
|
|
220
230
|
# @return [Integer] Hash code
|
|
221
231
|
def hash
|
|
222
|
-
[kind, id, connection_id, display_name, masked_account_number, institution_account_id, institution_id, opening_date, sync_status, raw_type, net_value].hash
|
|
232
|
+
[kind, id, connection_id, status, display_name, masked_account_number, institution_account_id, institution_id, opening_date, sync_status, raw_type, net_value].hash
|
|
223
233
|
end
|
|
224
234
|
|
|
225
235
|
# Builds the object from hash
|
|
@@ -22,6 +22,9 @@ module SnapTrade
|
|
|
22
22
|
# Unique identifier for the connection (brokerage_authorization_id). This is the UUID used to reference the connection in SnapTrade.
|
|
23
23
|
attr_accessor :connection_id
|
|
24
24
|
|
|
25
|
+
# The current status of the account. Omitted when the status is unknown or not provided by the institution. - `open`: The account is open. - `closed`: The account is closed. - `archived`: The account is archived. - `unavailable`: The account is no longer available through the institution's API. Accounts with this status are excluded from account list responses.
|
|
26
|
+
attr_accessor :status
|
|
27
|
+
|
|
25
28
|
# A display name for the account. Either assigned by the user or by the institution itself.
|
|
26
29
|
attr_accessor :display_name
|
|
27
30
|
|
|
@@ -59,6 +62,7 @@ module SnapTrade
|
|
|
59
62
|
:'kind' => :'kind',
|
|
60
63
|
:'id' => :'id',
|
|
61
64
|
:'connection_id' => :'connection_id',
|
|
65
|
+
:'status' => :'status',
|
|
62
66
|
:'display_name' => :'display_name',
|
|
63
67
|
:'masked_account_number' => :'masked_account_number',
|
|
64
68
|
:'institution_account_id' => :'institution_account_id',
|
|
@@ -84,6 +88,7 @@ module SnapTrade
|
|
|
84
88
|
:'kind' => :'Kind',
|
|
85
89
|
:'id' => :'String',
|
|
86
90
|
:'connection_id' => :'String',
|
|
91
|
+
:'status' => :'ConnectionAccountStatus',
|
|
87
92
|
:'display_name' => :'String',
|
|
88
93
|
:'masked_account_number' => :'String',
|
|
89
94
|
:'institution_account_id' => :'String',
|
|
@@ -137,6 +142,10 @@ module SnapTrade
|
|
|
137
142
|
self.connection_id = attributes[:'connection_id']
|
|
138
143
|
end
|
|
139
144
|
|
|
145
|
+
if attributes.key?(:'status')
|
|
146
|
+
self.status = attributes[:'status']
|
|
147
|
+
end
|
|
148
|
+
|
|
140
149
|
if attributes.key?(:'display_name')
|
|
141
150
|
self.display_name = attributes[:'display_name']
|
|
142
151
|
end
|
|
@@ -233,6 +242,7 @@ module SnapTrade
|
|
|
233
242
|
kind == o.kind &&
|
|
234
243
|
id == o.id &&
|
|
235
244
|
connection_id == o.connection_id &&
|
|
245
|
+
status == o.status &&
|
|
236
246
|
display_name == o.display_name &&
|
|
237
247
|
masked_account_number == o.masked_account_number &&
|
|
238
248
|
institution_account_id == o.institution_account_id &&
|
|
@@ -255,7 +265,7 @@ module SnapTrade
|
|
|
255
265
|
# Calculates hash code according to all attributes.
|
|
256
266
|
# @return [Integer] Hash code
|
|
257
267
|
def hash
|
|
258
|
-
[kind, id, connection_id, display_name, masked_account_number, institution_account_id, institution_id, opening_date, funding_date, sync_status, raw_type, cash_or_margin, is_paper, net_value].hash
|
|
268
|
+
[kind, id, connection_id, status, display_name, masked_account_number, institution_account_id, institution_id, opening_date, funding_date, sync_status, raw_type, cash_or_margin, is_paper, net_value].hash
|
|
259
269
|
end
|
|
260
270
|
|
|
261
271
|
# Builds the object from hash
|
|
@@ -22,6 +22,9 @@ module SnapTrade
|
|
|
22
22
|
# Unique identifier for the connection (brokerage_authorization_id). This is the UUID used to reference the connection in SnapTrade.
|
|
23
23
|
attr_accessor :connection_id
|
|
24
24
|
|
|
25
|
+
# The current status of the account. Omitted when the status is unknown or not provided by the institution. - `open`: The account is open. - `closed`: The account is closed. - `archived`: The account is archived. - `unavailable`: The account is no longer available through the institution's API. Accounts with this status are excluded from account list responses.
|
|
26
|
+
attr_accessor :status
|
|
27
|
+
|
|
25
28
|
# A display name for the account. Either assigned by the user or by the institution itself.
|
|
26
29
|
attr_accessor :display_name
|
|
27
30
|
|
|
@@ -57,6 +60,7 @@ module SnapTrade
|
|
|
57
60
|
:'kind' => :'kind',
|
|
58
61
|
:'id' => :'id',
|
|
59
62
|
:'connection_id' => :'connection_id',
|
|
63
|
+
:'status' => :'status',
|
|
60
64
|
:'display_name' => :'display_name',
|
|
61
65
|
:'masked_account_number' => :'masked_account_number',
|
|
62
66
|
:'institution_account_id' => :'institution_account_id',
|
|
@@ -82,6 +86,7 @@ module SnapTrade
|
|
|
82
86
|
:'kind' => :'LineOfCreditAccountKind',
|
|
83
87
|
:'id' => :'String',
|
|
84
88
|
:'connection_id' => :'String',
|
|
89
|
+
:'status' => :'ConnectionAccountStatus',
|
|
85
90
|
:'display_name' => :'String',
|
|
86
91
|
:'masked_account_number' => :'String',
|
|
87
92
|
:'institution_account_id' => :'String',
|
|
@@ -137,6 +142,10 @@ module SnapTrade
|
|
|
137
142
|
self.connection_id = attributes[:'connection_id']
|
|
138
143
|
end
|
|
139
144
|
|
|
145
|
+
if attributes.key?(:'status')
|
|
146
|
+
self.status = attributes[:'status']
|
|
147
|
+
end
|
|
148
|
+
|
|
140
149
|
if attributes.key?(:'display_name')
|
|
141
150
|
self.display_name = attributes[:'display_name']
|
|
142
151
|
end
|
|
@@ -228,6 +237,7 @@ module SnapTrade
|
|
|
228
237
|
kind == o.kind &&
|
|
229
238
|
id == o.id &&
|
|
230
239
|
connection_id == o.connection_id &&
|
|
240
|
+
status == o.status &&
|
|
231
241
|
display_name == o.display_name &&
|
|
232
242
|
masked_account_number == o.masked_account_number &&
|
|
233
243
|
institution_account_id == o.institution_account_id &&
|
|
@@ -250,7 +260,7 @@ module SnapTrade
|
|
|
250
260
|
# Calculates hash code according to all attributes.
|
|
251
261
|
# @return [Integer] Hash code
|
|
252
262
|
def hash
|
|
253
|
-
[kind, id, connection_id, display_name, masked_account_number, institution_account_id, institution_id, opening_date, sync_status, raw_type, net_value, minimum_payment_amount, available_credit, next_payment_date].hash
|
|
263
|
+
[kind, id, connection_id, status, display_name, masked_account_number, institution_account_id, institution_id, opening_date, sync_status, raw_type, net_value, minimum_payment_amount, available_credit, next_payment_date].hash
|
|
254
264
|
end
|
|
255
265
|
|
|
256
266
|
# Builds the object from hash
|
data/lib/snaptrade/version.rb
CHANGED
data/lib/snaptrade.rb
CHANGED
|
@@ -106,6 +106,7 @@ require 'snaptrade/models/complex_order_response'
|
|
|
106
106
|
require 'snaptrade/models/complex_order_response_type'
|
|
107
107
|
require 'snaptrade/models/connected_asset_partner_stats'
|
|
108
108
|
require 'snaptrade/models/connection_account'
|
|
109
|
+
require 'snaptrade/models/connection_account_status'
|
|
109
110
|
require 'snaptrade/models/connection_account_sync_status'
|
|
110
111
|
require 'snaptrade/models/connection_accounts_response'
|
|
111
112
|
require 'snaptrade/models/connection_portal_version'
|
|
@@ -38,6 +38,12 @@ describe SnapTrade::AnnuityAccount do
|
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
+
describe 'test attribute "status"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
41
47
|
describe 'test attribute "display_name"' do
|
|
42
48
|
it 'should work' do
|
|
43
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -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::ConnectionAccountStatus
|
|
15
|
+
describe SnapTrade::ConnectionAccountStatus do
|
|
16
|
+
let(:instance) { SnapTrade::ConnectionAccountStatus.new }
|
|
17
|
+
|
|
18
|
+
describe 'test an instance of ConnectionAccountStatus' do
|
|
19
|
+
it 'should create an instance of ConnectionAccountStatus' do
|
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::ConnectionAccountStatus)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -38,6 +38,12 @@ describe SnapTrade::DepositAccount do
|
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
+
describe 'test attribute "status"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
41
47
|
describe 'test attribute "display_name"' do
|
|
42
48
|
it 'should work' do
|
|
43
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -38,6 +38,12 @@ describe SnapTrade::InvestmentAccount do
|
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
+
describe 'test attribute "status"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
41
47
|
describe 'test attribute "display_name"' do
|
|
42
48
|
it 'should work' do
|
|
43
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -38,6 +38,12 @@ describe SnapTrade::LineOfCreditAccount do
|
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
+
describe 'test attribute "status"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
41
47
|
describe 'test attribute "display_name"' do
|
|
42
48
|
it 'should work' do
|
|
43
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: snaptrade
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.50
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SnapTrade
|
|
@@ -221,6 +221,7 @@ files:
|
|
|
221
221
|
- lib/snaptrade/models/complex_order_response_type.rb
|
|
222
222
|
- lib/snaptrade/models/connected_asset_partner_stats.rb
|
|
223
223
|
- lib/snaptrade/models/connection_account.rb
|
|
224
|
+
- lib/snaptrade/models/connection_account_status.rb
|
|
224
225
|
- lib/snaptrade/models/connection_account_sync_status.rb
|
|
225
226
|
- lib/snaptrade/models/connection_accounts_response.rb
|
|
226
227
|
- lib/snaptrade/models/connection_portal_version.rb
|
|
@@ -535,6 +536,7 @@ files:
|
|
|
535
536
|
- spec/models/complex_order_response_type_spec.rb
|
|
536
537
|
- spec/models/connected_asset_partner_stats_spec.rb
|
|
537
538
|
- spec/models/connection_account_spec.rb
|
|
539
|
+
- spec/models/connection_account_status_spec.rb
|
|
538
540
|
- spec/models/connection_account_sync_status_spec.rb
|
|
539
541
|
- spec/models/connection_accounts_response_spec.rb
|
|
540
542
|
- spec/models/connection_portal_version_spec.rb
|
|
@@ -776,319 +778,320 @@ signing_key:
|
|
|
776
778
|
specification_version: 4
|
|
777
779
|
summary: SnapTrade Ruby Gem
|
|
778
780
|
test_files:
|
|
779
|
-
- spec/api/management_api_spec.rb
|
|
780
|
-
- spec/api/experimental_endpoints_api_spec.rb
|
|
781
|
-
- spec/api/connections_api_spec.rb
|
|
782
|
-
- spec/api/trading_api_spec.rb
|
|
783
|
-
- spec/api/authentication_api_spec.rb
|
|
784
|
-
- spec/api/account_information_api_spec.rb
|
|
785
781
|
- spec/api/reference_data_api_spec.rb
|
|
782
|
+
- spec/api/authentication_api_spec.rb
|
|
783
|
+
- spec/api/trading_api_spec.rb
|
|
786
784
|
- spec/api/api_status_api_spec.rb
|
|
785
|
+
- spec/api/account_information_api_spec.rb
|
|
786
|
+
- spec/api/experimental_endpoints_api_spec.rb
|
|
787
|
+
- spec/api/connections_api_spec.rb
|
|
788
|
+
- spec/api/management_api_spec.rb
|
|
787
789
|
- spec/api_client_spec.rb
|
|
788
790
|
- spec/configuration_spec.rb
|
|
789
791
|
- spec/getting_started_spec.rb
|
|
790
|
-
- spec/models/
|
|
791
|
-
- spec/models/
|
|
792
|
+
- spec/models/account_order_record_quote_currency_spec.rb
|
|
793
|
+
- spec/models/option_chain_inner_chain_per_root_inner_spec.rb
|
|
794
|
+
- spec/models/cash_change_direction_spec.rb
|
|
795
|
+
- spec/models/brokerage_authorization_type_read_only_spec.rb
|
|
796
|
+
- spec/models/account_balances_v2_response_margin_spec.rb
|
|
797
|
+
- spec/models/complex_order_response_type_spec.rb
|
|
798
|
+
- spec/models/crypto_instrument_kind_spec.rb
|
|
799
|
+
- spec/models/rate_of_return_response_spec.rb
|
|
800
|
+
- spec/models/exchange_rate_pairs_spec.rb
|
|
801
|
+
- spec/models/release_stage_spec.rb
|
|
792
802
|
- spec/models/basis_spec.rb
|
|
793
|
-
- spec/models/
|
|
794
|
-
- spec/models/
|
|
803
|
+
- spec/models/account_balances_v2_response_cash_or_margin_spec.rb
|
|
804
|
+
- spec/models/account_universal_activity_currency_spec.rb
|
|
805
|
+
- spec/models/balance_v2_currency_amount_spec.rb
|
|
806
|
+
- spec/models/brokerage_authorization_institution_spec.rb
|
|
807
|
+
- spec/models/crypto_trading_instrument_type_spec.rb
|
|
808
|
+
- spec/models/mleg_leg_spec.rb
|
|
809
|
+
- spec/models/connection_account_sync_status_spec.rb
|
|
810
|
+
- spec/models/other_instrument_spec.rb
|
|
811
|
+
- spec/models/deposit_account_kind_spec.rb
|
|
812
|
+
- spec/models/tokenized_asset_instrument_spec.rb
|
|
813
|
+
- spec/models/account_position_spec.rb
|
|
795
814
|
- spec/models/net_contributions_spec.rb
|
|
796
|
-
- spec/models/
|
|
797
|
-
- spec/models/
|
|
798
|
-
- spec/models/
|
|
799
|
-
- spec/models/
|
|
800
|
-
- spec/models/trade_detection_subscription_spec.rb
|
|
801
|
-
- spec/models/deposit_account_sync_status_spec.rb
|
|
802
|
-
- spec/models/all_account_orders_response_spec.rb
|
|
803
|
-
- spec/models/user_i_dand_secret_spec.rb
|
|
804
|
-
- spec/models/stock_instrument_spec.rb
|
|
805
|
-
- spec/models/price_effect_spec.rb
|
|
806
|
-
- spec/models/dividend_at_date_spec.rb
|
|
807
|
-
- spec/models/brokerage_instrument_spec.rb
|
|
808
|
-
- spec/models/account_universal_activity_currency_universal_symbol_spec.rb
|
|
809
|
-
- spec/models/cancel_order_response_spec.rb
|
|
810
|
-
- spec/models/brokerage_type_spec.rb
|
|
811
|
-
- spec/models/annuity_account_sync_status_spec.rb
|
|
812
|
-
- spec/models/action_strict_with_options_spec.rb
|
|
813
|
-
- spec/models/us_exchange_spec.rb
|
|
814
|
-
- spec/models/crypto_trading_instrument_spec.rb
|
|
815
|
-
- spec/models/manual_trade_and_impact_spec.rb
|
|
816
|
-
- spec/models/adr_instrument_spec.rb
|
|
815
|
+
- spec/models/option_strategy_spec.rb
|
|
816
|
+
- spec/models/order_role_spec.rb
|
|
817
|
+
- spec/models/rate_of_return_object_spec.rb
|
|
818
|
+
- spec/models/type_spec.rb
|
|
817
819
|
- spec/models/account_balances_v2_response_net_value_spec.rb
|
|
818
|
-
- spec/models/
|
|
819
|
-
- spec/models/
|
|
820
|
-
- spec/models/
|
|
821
|
-
- spec/models/
|
|
822
|
-
- spec/models/
|
|
823
|
-
- spec/models/
|
|
824
|
-
- spec/models/
|
|
825
|
-
- spec/models/
|
|
826
|
-
- spec/models/
|
|
820
|
+
- spec/models/connection_type_spec.rb
|
|
821
|
+
- spec/models/instrument_spec.rb
|
|
822
|
+
- spec/models/option_leg_action_spec.rb
|
|
823
|
+
- spec/models/simple_order_form_spec.rb
|
|
824
|
+
- spec/models/manual_trade_form_notional_value_spec.rb
|
|
825
|
+
- spec/models/manual_trade_balance_spec.rb
|
|
826
|
+
- spec/models/account_universal_activity_option_symbol_spec.rb
|
|
827
|
+
- spec/models/model403_feature_not_enabled_response_spec.rb
|
|
828
|
+
- spec/models/annuity_account_sync_status_spec.rb
|
|
829
|
+
- spec/models/etf_instrument_spec.rb
|
|
830
|
+
- spec/models/take_profit_spec.rb
|
|
831
|
+
- spec/models/child_brokerage_order_ids_spec.rb
|
|
832
|
+
- spec/models/account_balances_v2_response_spec.rb
|
|
833
|
+
- spec/models/authentication_login_snap_trade_user200_response_spec.rb
|
|
834
|
+
- spec/models/account_spec.rb
|
|
835
|
+
- spec/models/balance_spec.rb
|
|
836
|
+
- spec/models/model500_unexpected_exception_response_spec.rb
|
|
837
|
+
- spec/models/brokerage_spec.rb
|
|
827
838
|
- spec/models/transactions_status_spec.rb
|
|
828
|
-
- spec/models/
|
|
829
|
-
- spec/models/
|
|
830
|
-
- spec/models/
|
|
831
|
-
- spec/models/
|
|
839
|
+
- spec/models/symbol_spec.rb
|
|
840
|
+
- spec/models/account_balance_spec.rb
|
|
841
|
+
- spec/models/net_dividend_spec.rb
|
|
842
|
+
- spec/models/cfd_instrument_spec.rb
|
|
832
843
|
- spec/models/underlying_symbol_spec.rb
|
|
833
|
-
- spec/models/trailing_stop_limit_order_type_kind_spec.rb
|
|
834
|
-
- spec/models/balance_currency_spec.rb
|
|
835
|
-
- spec/models/etf_instrument_kind_spec.rb
|
|
836
|
-
- spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
|
|
837
|
-
- spec/models/paginated_universal_activity_spec.rb
|
|
838
|
-
- spec/models/manual_trade_form_notional_value_spec.rb
|
|
839
844
|
- spec/models/strategy_quotes_spec.rb
|
|
840
|
-
- spec/models/
|
|
841
|
-
- spec/models/
|
|
842
|
-
- spec/models/model404_account_unavailable_response_spec.rb
|
|
843
|
-
- spec/models/brokerage_authorization_data_freshness_mode_spec.rb
|
|
844
|
-
- spec/models/manual_trade_form_complex_spec.rb
|
|
845
|
-
- spec/models/brokerage_authorization_type_read_only_spec.rb
|
|
846
|
-
- spec/models/all_account_orders_response_data_freshness_spec.rb
|
|
847
|
-
- spec/models/simple_order_form_type_spec.rb
|
|
848
|
-
- spec/models/mleg_trading_instrument_spec.rb
|
|
849
|
-
- spec/models/exchange_rate_pairs_spec.rb
|
|
850
|
-
- spec/models/mleg_order_response_spec.rb
|
|
851
|
-
- spec/models/option_impact_spec.rb
|
|
852
|
-
- spec/models/action_strict_spec.rb
|
|
853
|
-
- spec/models/cash_or_margin_spec.rb
|
|
854
|
-
- spec/models/symbols_quotes_inner_spec.rb
|
|
855
|
-
- spec/models/tokenized_asset_instrument_spec.rb
|
|
856
|
-
- spec/models/session_event_spec.rb
|
|
857
|
-
- spec/models/partner_data_spec.rb
|
|
858
|
-
- spec/models/symbol_currency_spec.rb
|
|
845
|
+
- spec/models/dividend_at_date_spec.rb
|
|
846
|
+
- spec/models/brokerage_authorization_disabled_confirmation_spec.rb
|
|
859
847
|
- spec/models/investment_account_net_value_spec.rb
|
|
860
|
-
- spec/models/
|
|
861
|
-
- spec/models/
|
|
862
|
-
- spec/models/
|
|
863
|
-
- spec/models/
|
|
864
|
-
- spec/models/
|
|
865
|
-
- spec/models/
|
|
866
|
-
- spec/models/
|
|
867
|
-
- spec/models/
|
|
868
|
-
- spec/models/
|
|
869
|
-
- spec/models/simple_trade_form_time_in_force_spec.rb
|
|
870
|
-
- spec/models/cash_change_direction_spec.rb
|
|
871
|
-
- spec/models/market_order_type_kind_spec.rb
|
|
872
|
-
- spec/models/underlying_cfd_instrument_spec.rb
|
|
848
|
+
- spec/models/investment_account_spec.rb
|
|
849
|
+
- spec/models/crypto_order_form_type_spec.rb
|
|
850
|
+
- spec/models/account_balances_v2_response_buying_power_inner_spec.rb
|
|
851
|
+
- spec/models/option_quote_greeks_spec.rb
|
|
852
|
+
- spec/models/cef_instrument_spec.rb
|
|
853
|
+
- spec/models/partner_stats_spec.rb
|
|
854
|
+
- spec/models/line_of_credit_account_sync_status_spec.rb
|
|
855
|
+
- spec/models/account_holdings_account_spec.rb
|
|
856
|
+
- spec/models/account_balance_total_spec.rb
|
|
873
857
|
- spec/models/annuity_account_net_value_spec.rb
|
|
874
|
-
- spec/models/
|
|
875
|
-
- spec/models/manual_trade_form_with_options_spec.rb
|
|
876
|
-
- spec/models/snap_trade_register_user_request_body_spec.rb
|
|
877
|
-
- spec/models/tokenized_asset_instrument_kind_spec.rb
|
|
878
|
-
- spec/models/o_auth_webhook_base_spec.rb
|
|
879
|
-
- spec/models/model500_unexpected_exception_response_spec.rb
|
|
880
|
-
- spec/models/delete_connection_confirmation_spec.rb
|
|
881
|
-
- spec/models/account_universal_activity_spec.rb
|
|
882
|
-
- spec/models/options_position_currency_spec.rb
|
|
883
|
-
- spec/models/account_spec.rb
|
|
884
|
-
- spec/models/trade_detection_add_subscription_request_spec.rb
|
|
885
|
-
- spec/models/simple_trade_leg_spec.rb
|
|
886
|
-
- spec/models/option_brokerage_symbol_spec.rb
|
|
887
|
-
- spec/models/account_order_record_leg_instrument_spec.rb
|
|
888
|
-
- spec/models/line_of_credit_account_minimum_payment_amount_spec.rb
|
|
889
|
-
- spec/models/future_option_instrument_kind_spec.rb
|
|
890
|
-
- spec/models/order_type_configuration_spec.rb
|
|
891
|
-
- spec/models/institution_connection_spec.rb
|
|
858
|
+
- spec/models/cryptocurrency_pair_spec.rb
|
|
892
859
|
- spec/models/option_strategy_legs_inner_spec.rb
|
|
893
|
-
- spec/models/
|
|
894
|
-
- spec/models/
|
|
895
|
-
- spec/models/deposit_account_spec.rb
|
|
896
|
-
- spec/models/other_instrument_spec.rb
|
|
897
|
-
- spec/models/model404_failed_request_response_spec.rb
|
|
898
|
-
- spec/models/future_instrument_spec.rb
|
|
860
|
+
- spec/models/brokerage_instruments_response_spec.rb
|
|
861
|
+
- spec/models/mleg_order_response_spec.rb
|
|
899
862
|
- spec/models/line_of_credit_account_available_credit_spec.rb
|
|
900
|
-
- spec/models/
|
|
901
|
-
- spec/models/
|
|
902
|
-
- spec/models/
|
|
903
|
-
- spec/models/
|
|
863
|
+
- spec/models/simple_order_form_time_in_force_spec.rb
|
|
864
|
+
- spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
|
|
865
|
+
- spec/models/strategy_type_spec.rb
|
|
866
|
+
- spec/models/balance_v2_money_spec.rb
|
|
867
|
+
- spec/models/account_order_group_spec.rb
|
|
904
868
|
- spec/models/option_quote_spec.rb
|
|
905
|
-
- spec/models/
|
|
906
|
-
- spec/models/
|
|
907
|
-
- spec/models/
|
|
908
|
-
- spec/models/
|
|
909
|
-
- spec/models/
|
|
910
|
-
- spec/models/
|
|
911
|
-
- spec/models/account_order_leg_spec.rb
|
|
912
|
-
- spec/models/option_chain_inner_chain_per_root_inner_spec.rb
|
|
913
|
-
- spec/models/account_category_spec.rb
|
|
914
|
-
- spec/models/cryptocurrency_pair_spec.rb
|
|
915
|
-
- spec/models/stop_limit_order_type_kind_spec.rb
|
|
916
|
-
- spec/models/account_universal_activity_option_symbol_spec.rb
|
|
917
|
-
- spec/models/stop_limit_order_type_spec.rb
|
|
869
|
+
- spec/models/options_symbol_option_type_spec.rb
|
|
870
|
+
- spec/models/mutual_fund_instrument_kind_spec.rb
|
|
871
|
+
- spec/models/holdings_status_spec.rb
|
|
872
|
+
- spec/models/crypto_order_form_time_in_force_spec.rb
|
|
873
|
+
- spec/models/options_symbol_spec.rb
|
|
874
|
+
- spec/models/simple_trade_instrument_kind_spec.rb
|
|
918
875
|
- spec/models/underlying_option_instrument_spec.rb
|
|
919
|
-
- spec/models/
|
|
920
|
-
- spec/models/
|
|
921
|
-
- spec/models/
|
|
922
|
-
- spec/models/
|
|
923
|
-
- spec/models/take_profit_spec.rb
|
|
924
|
-
- spec/models/strategy_order_record_status_spec.rb
|
|
925
|
-
- spec/models/auth_type_spec.rb
|
|
926
|
-
- spec/models/connection_account_spec.rb
|
|
927
|
-
- spec/models/figi_instrument_spec.rb
|
|
928
|
-
- spec/models/universal_symbol_spec.rb
|
|
929
|
-
- spec/models/account_value_history_response_spec.rb
|
|
930
|
-
- spec/models/position_currency_spec.rb
|
|
931
|
-
- spec/models/connected_asset_partner_stats_spec.rb
|
|
932
|
-
- spec/models/trade_detection_cancel_subscription_response_spec.rb
|
|
933
|
-
- spec/models/account_simple_spec.rb
|
|
934
|
-
- spec/models/trailing_stop_order_type_spec.rb
|
|
935
|
-
- spec/models/notional_value_spec.rb
|
|
936
|
-
- spec/models/connection_portal_version_spec.rb
|
|
937
|
-
- spec/models/account_order_record_status_spec.rb
|
|
938
|
-
- spec/models/stock_instrument_figi_instrument_spec.rb
|
|
876
|
+
- spec/models/account_order_record_universal_symbol_spec.rb
|
|
877
|
+
- spec/models/manual_trade_form_bracket_spec.rb
|
|
878
|
+
- spec/models/schema_version_spec.rb
|
|
879
|
+
- spec/models/limit_order_type_kind_spec.rb
|
|
939
880
|
- spec/models/underlying_tokenized_asset_instrument_spec.rb
|
|
940
|
-
- spec/models/
|
|
881
|
+
- spec/models/crypto_instrument_spec.rb
|
|
882
|
+
- spec/models/account_universal_activity_currency_universal_symbol_spec.rb
|
|
883
|
+
- spec/models/mleg_action_strict_spec.rb
|
|
884
|
+
- spec/models/institution_connection_spec.rb
|
|
885
|
+
- spec/models/past_value_spec.rb
|
|
886
|
+
- spec/models/complex_order_response_spec.rb
|
|
887
|
+
- spec/models/trailing_stop_limit_order_type_kind_spec.rb
|
|
888
|
+
- spec/models/order_type_strict_spec.rb
|
|
889
|
+
- spec/models/stop_order_type_spec.rb
|
|
890
|
+
- spec/models/all_account_positions_response_data_freshness_spec.rb
|
|
891
|
+
- spec/models/stop_limit_order_type_spec.rb
|
|
892
|
+
- spec/models/connection_portal_version_spec.rb
|
|
893
|
+
- spec/models/trade_detection_add_subscription_request_spec.rb
|
|
894
|
+
- spec/models/simple_trade_form_price_effect_spec.rb
|
|
895
|
+
- spec/models/mleg_order_type_strict_spec.rb
|
|
896
|
+
- spec/models/order_updated_response_order_spec.rb
|
|
897
|
+
- spec/models/universal_activity_spec.rb
|
|
941
898
|
- spec/models/line_of_credit_account_kind_spec.rb
|
|
942
|
-
- spec/models/
|
|
899
|
+
- spec/models/account_holdings_spec.rb
|
|
900
|
+
- spec/models/balance_currency_spec.rb
|
|
943
901
|
- spec/models/snaptrade_spec.rb
|
|
944
|
-
- spec/models/
|
|
945
|
-
- spec/models/
|
|
946
|
-
- spec/models/
|
|
947
|
-
- spec/models/model429_too_many_requests_response_spec.rb
|
|
948
|
-
- spec/models/simple_trade_form_spec.rb
|
|
949
|
-
- spec/models/model501_not_implemented_response_spec.rb
|
|
950
|
-
- spec/models/underlying_symbol_exchange_spec.rb
|
|
951
|
-
- spec/models/timeframe_spec.rb
|
|
952
|
-
- spec/models/mleg_trade_form_spec.rb
|
|
953
|
-
- spec/models/connection_account_sync_status_spec.rb
|
|
954
|
-
- spec/models/balance_v2_currency_amount_spec.rb
|
|
955
|
-
- spec/models/investment_account_spec.rb
|
|
956
|
-
- spec/models/simple_trade_form_price_effect_spec.rb
|
|
957
|
-
- spec/models/manual_trade_place_time_in_force_strict_spec.rb
|
|
958
|
-
- spec/models/account_order_record_status_v2_spec.rb
|
|
959
|
-
- spec/models/performance_custom_spec.rb
|
|
902
|
+
- spec/models/order_updated_response_spec.rb
|
|
903
|
+
- spec/models/manual_trade_spec.rb
|
|
904
|
+
- spec/models/all_account_orders_response_spec.rb
|
|
960
905
|
- spec/models/monthly_dividends_spec.rb
|
|
961
|
-
- spec/models/
|
|
962
|
-
- spec/models/account_order_record_option_symbol_spec.rb
|
|
963
|
-
- spec/models/session_event_type_spec.rb
|
|
964
|
-
- spec/models/rate_of_return_response_spec.rb
|
|
965
|
-
- spec/models/cfd_instrument_kind_spec.rb
|
|
966
|
-
- spec/models/mutual_fund_instrument_kind_spec.rb
|
|
967
|
-
- spec/models/strategy_quotes_greek_spec.rb
|
|
968
|
-
- spec/models/account_holdings_account_spec.rb
|
|
969
|
-
- spec/models/brokerage_authorization_institution_spec.rb
|
|
970
|
-
- spec/models/instrument_spec.rb
|
|
971
|
-
- spec/models/institution_spec.rb
|
|
972
|
-
- spec/models/underlying_symbol_type_spec.rb
|
|
973
|
-
- spec/models/simple_trade_form_trading_session_spec.rb
|
|
974
|
-
- spec/models/annuity_account_kind_spec.rb
|
|
975
|
-
- spec/models/crypto_instrument_kind_spec.rb
|
|
976
|
-
- spec/models/crypto_order_preview_estimated_fee_spec.rb
|
|
906
|
+
- spec/models/simple_trade_response_spec.rb
|
|
977
907
|
- spec/models/other_instrument_kind_spec.rb
|
|
978
|
-
- spec/models/
|
|
979
|
-
- spec/models/
|
|
980
|
-
- spec/models/
|
|
981
|
-
- spec/models/
|
|
982
|
-
- spec/models/
|
|
983
|
-
- spec/models/
|
|
984
|
-
- spec/models/
|
|
985
|
-
- spec/models/
|
|
986
|
-
- spec/models/
|
|
987
|
-
- spec/models/
|
|
988
|
-
- spec/models/
|
|
989
|
-
- spec/models/
|
|
990
|
-
- spec/models/
|
|
991
|
-
- spec/models/cef_instrument_kind_spec.rb
|
|
992
|
-
- spec/models/holdings_status_spec.rb
|
|
993
|
-
- spec/models/crypto_order_preview_spec.rb
|
|
994
|
-
- spec/models/account_order_record_spec.rb
|
|
995
|
-
- spec/models/account_balances_v2_response_cash_or_margin_spec.rb
|
|
908
|
+
- spec/models/brokerage_type_spec.rb
|
|
909
|
+
- spec/models/symbol_exchange_spec.rb
|
|
910
|
+
- spec/models/currency_spec.rb
|
|
911
|
+
- spec/models/account_information_get_user_holdings409_response_spec.rb
|
|
912
|
+
- spec/models/auth_type_spec.rb
|
|
913
|
+
- spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
|
|
914
|
+
- spec/models/status_spec.rb
|
|
915
|
+
- spec/models/account_orders_v2_response_spec.rb
|
|
916
|
+
- spec/models/cancel_order_response_spec.rb
|
|
917
|
+
- spec/models/trading_instrument_spec.rb
|
|
918
|
+
- spec/models/underlying_symbol_type_spec.rb
|
|
919
|
+
- spec/models/trade_detection_cancel_subscription_request_spec.rb
|
|
920
|
+
- spec/models/figi_instrument_spec.rb
|
|
996
921
|
- spec/models/stop_loss_spec.rb
|
|
997
|
-
- spec/models/position_spec.rb
|
|
998
|
-
- spec/models/trading_instrument_type_spec.rb
|
|
999
|
-
- spec/models/stock_instrument_kind_spec.rb
|
|
1000
|
-
- spec/models/option_quote_greeks_spec.rb
|
|
1001
|
-
- spec/models/crypto_order_form_spec.rb
|
|
1002
|
-
- spec/models/simple_trade_instrument_kind_spec.rb
|
|
1003
|
-
- spec/models/past_value_spec.rb
|
|
1004
|
-
- spec/models/model503_currency_conversion_unavailable_response_spec.rb
|
|
1005
|
-
- spec/models/cfd_instrument_spec.rb
|
|
1006
|
-
- spec/models/option_leg_spec.rb
|
|
1007
|
-
- spec/models/mleg_leg_spec.rb
|
|
1008
|
-
- spec/models/account_order_time_in_force_spec.rb
|
|
1009
|
-
- spec/models/model503_brokerage_request_response_spec.rb
|
|
1010
|
-
- spec/models/balance_v2_money_spec.rb
|
|
1011
|
-
- spec/models/order_updated_response_order_spec.rb
|
|
1012
|
-
- spec/models/symbol_query_spec.rb
|
|
1013
|
-
- spec/models/account_order_spec.rb
|
|
1014
922
|
- spec/models/trailing_stop_limit_order_type_spec.rb
|
|
1015
|
-
- spec/models/
|
|
1016
|
-
- spec/models/
|
|
1017
|
-
- spec/models/
|
|
923
|
+
- spec/models/stock_instrument_figi_instrument_spec.rb
|
|
924
|
+
- spec/models/simple_trade_leg_action_spec.rb
|
|
925
|
+
- spec/models/trade_detection_cancel_subscription_response_spec.rb
|
|
1018
926
|
- spec/models/options_position_spec.rb
|
|
1019
|
-
- spec/models/
|
|
1020
|
-
- spec/models/
|
|
1021
|
-
- spec/models/
|
|
927
|
+
- spec/models/simple_trade_form_time_in_force_spec.rb
|
|
928
|
+
- spec/models/model503_currency_conversion_unavailable_response_spec.rb
|
|
929
|
+
- spec/models/future_instrument_spec.rb
|
|
930
|
+
- spec/models/trailing_stop_spec.rb
|
|
931
|
+
- spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
|
|
932
|
+
- spec/models/manual_trade_symbol_spec.rb
|
|
933
|
+
- spec/models/strategy_quotes_greek_spec.rb
|
|
934
|
+
- spec/models/exchange_spec.rb
|
|
935
|
+
- spec/models/validated_trade_body_spec.rb
|
|
936
|
+
- spec/models/partner_data_spec.rb
|
|
937
|
+
- spec/models/stock_instrument_spec.rb
|
|
938
|
+
- spec/models/future_option_instrument_kind_spec.rb
|
|
939
|
+
- spec/models/account_order_record_leg_spec.rb
|
|
940
|
+
- spec/models/timeframe_spec.rb
|
|
941
|
+
- spec/models/crypto_order_preview_estimated_fee_spec.rb
|
|
942
|
+
- spec/models/strategy_order_record_spec.rb
|
|
943
|
+
- spec/models/model401_failed_request_response_spec.rb
|
|
944
|
+
- spec/models/position_spec.rb
|
|
945
|
+
- spec/models/kind_spec.rb
|
|
946
|
+
- spec/models/market_order_type_kind_spec.rb
|
|
947
|
+
- spec/models/model503_brokerage_request_response_spec.rb
|
|
948
|
+
- spec/models/account_order_record_child_brokerage_order_ids_spec.rb
|
|
949
|
+
- spec/models/adr_instrument_spec.rb
|
|
950
|
+
- spec/models/account_order_leg_spec.rb
|
|
951
|
+
- spec/models/mleg_price_effect_strict_spec.rb
|
|
952
|
+
- spec/models/option_instrument_option_type_spec.rb
|
|
953
|
+
- spec/models/option_leg_spec.rb
|
|
954
|
+
- spec/models/option_chain_inner_spec.rb
|
|
955
|
+
- spec/models/future_option_instrument_spec.rb
|
|
956
|
+
- spec/models/universal_symbol_spec.rb
|
|
957
|
+
- spec/models/symbols_quotes_inner_spec.rb
|
|
958
|
+
- spec/models/complex_order_leg_spec.rb
|
|
959
|
+
- spec/models/account_simple_spec.rb
|
|
960
|
+
- spec/models/account_order_record_leg_instrument_spec.rb
|
|
961
|
+
- spec/models/simple_trade_form_spec.rb
|
|
962
|
+
- spec/models/trading_instrument_type_spec.rb
|
|
963
|
+
- spec/models/paginated_universal_activity_spec.rb
|
|
964
|
+
- spec/models/deposit_account_sync_status_spec.rb
|
|
965
|
+
- spec/models/performance_custom_spec.rb
|
|
966
|
+
- spec/models/trading_get_user_account_option_quotes410_response_spec.rb
|
|
967
|
+
- spec/models/brokerage_authorization_spec.rb
|
|
968
|
+
- spec/models/brokerage_authorization_refresh_confirmation_spec.rb
|
|
969
|
+
- spec/models/model400_failed_request_response_spec.rb
|
|
1022
970
|
- spec/models/snap_trade_holdings_account_spec.rb
|
|
1023
|
-
- spec/models/
|
|
1024
|
-
- spec/models/
|
|
1025
|
-
- spec/models/
|
|
1026
|
-
- spec/models/
|
|
1027
|
-
- spec/models/
|
|
1028
|
-
- spec/models/
|
|
971
|
+
- spec/models/account_order_time_in_force_spec.rb
|
|
972
|
+
- spec/models/account_information_get_user_account_order_detail_request_spec.rb
|
|
973
|
+
- spec/models/future_instrument_kind_spec.rb
|
|
974
|
+
- spec/models/o_auth_webhook_base_spec.rb
|
|
975
|
+
- spec/models/annuity_account_spec.rb
|
|
976
|
+
- spec/models/account_order_record_quote_universal_symbol_spec.rb
|
|
977
|
+
- spec/models/account_category_spec.rb
|
|
978
|
+
- spec/models/action_strict_with_options_spec.rb
|
|
979
|
+
- spec/models/tax_lot_spec.rb
|
|
980
|
+
- spec/models/order_type_configuration_spec.rb
|
|
981
|
+
- spec/models/model404_failed_request_response_spec.rb
|
|
982
|
+
- spec/models/all_account_positions_response_spec.rb
|
|
983
|
+
- spec/models/account_balances_v2_response_data_freshness_spec.rb
|
|
984
|
+
- spec/models/account_sync_status_spec.rb
|
|
985
|
+
- spec/models/snap_trade_register_user_request_body_spec.rb
|
|
986
|
+
- spec/models/option_brokerage_symbol_spec.rb
|
|
987
|
+
- spec/models/manual_trade_and_impact_spec.rb
|
|
988
|
+
- spec/models/cef_instrument_kind_spec.rb
|
|
989
|
+
- spec/models/option_instrument_kind_spec.rb
|
|
990
|
+
- spec/models/stop_limit_order_type_kind_spec.rb
|
|
991
|
+
- spec/models/connection_account_status_spec.rb
|
|
992
|
+
- spec/models/brokerage_authorization_data_freshness_mode_spec.rb
|
|
993
|
+
- spec/models/action_strict_spec.rb
|
|
994
|
+
- spec/models/all_account_orders_response_data_freshness_spec.rb
|
|
995
|
+
- spec/models/market_order_type_spec.rb
|
|
996
|
+
- spec/models/trading_session_spec.rb
|
|
997
|
+
- spec/models/account_status_spec.rb
|
|
998
|
+
- spec/models/security_type_spec.rb
|
|
999
|
+
- spec/models/cryptocurrency_pair_quote_spec.rb
|
|
1000
|
+
- spec/models/etf_instrument_kind_spec.rb
|
|
1001
|
+
- spec/models/model425_failed_request_response_spec.rb
|
|
1002
|
+
- spec/models/notional_value_spec.rb
|
|
1003
|
+
- spec/models/recent_orders_response_spec.rb
|
|
1004
|
+
- spec/models/time_in_force_strict_spec.rb
|
|
1005
|
+
- spec/models/manual_trade_form_complex_type_spec.rb
|
|
1006
|
+
- spec/models/account_order_record_status_spec.rb
|
|
1029
1007
|
- spec/models/other_order_type_spec.rb
|
|
1030
|
-
- spec/models/
|
|
1031
|
-
- spec/models/
|
|
1032
|
-
- spec/models/
|
|
1033
|
-
- spec/models/account_order_record_universal_symbol_spec.rb
|
|
1008
|
+
- spec/models/simple_trade_form_order_type_spec.rb
|
|
1009
|
+
- spec/models/us_exchange_spec.rb
|
|
1010
|
+
- spec/models/connection_account_spec.rb
|
|
1034
1011
|
- spec/models/connection_accounts_response_spec.rb
|
|
1035
1012
|
- spec/models/line_of_credit_account_net_value_spec.rb
|
|
1013
|
+
- spec/models/account_order_spec.rb
|
|
1014
|
+
- spec/models/cash_or_margin_spec.rb
|
|
1015
|
+
- spec/models/brokerage_authorization_type_read_only_type_spec.rb
|
|
1016
|
+
- spec/models/manual_trade_place_time_in_force_strict_spec.rb
|
|
1017
|
+
- spec/models/crypto_order_preview_spec.rb
|
|
1018
|
+
- spec/models/institution_spec.rb
|
|
1019
|
+
- spec/models/mutual_fund_instrument_spec.rb
|
|
1020
|
+
- spec/models/trailing_stop_order_type_spec.rb
|
|
1021
|
+
- spec/models/crypto_order_form_spec.rb
|
|
1022
|
+
- spec/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner_spec.rb
|
|
1036
1023
|
- spec/models/model403_failed_request_response_spec.rb
|
|
1037
|
-
- spec/models/
|
|
1038
|
-
- spec/models/
|
|
1039
|
-
- spec/models/
|
|
1040
|
-
- spec/models/
|
|
1041
|
-
- spec/models/
|
|
1042
|
-
- spec/models/
|
|
1043
|
-
- spec/models/
|
|
1044
|
-
- spec/models/
|
|
1024
|
+
- spec/models/all_user_accounts_response_spec.rb
|
|
1025
|
+
- spec/models/manual_trade_form_complex_spec.rb
|
|
1026
|
+
- spec/models/option_impact_spec.rb
|
|
1027
|
+
- spec/models/model404_account_unavailable_response_spec.rb
|
|
1028
|
+
- spec/models/account_universal_activity_spec.rb
|
|
1029
|
+
- spec/models/account_universal_activity_symbol_spec.rb
|
|
1030
|
+
- spec/models/login_redirect_uri_spec.rb
|
|
1031
|
+
- spec/models/brokerage_authorization_transactions_sync_confirmation_spec.rb
|
|
1032
|
+
- spec/models/pagination_details_spec.rb
|
|
1033
|
+
- spec/models/encrypted_response_encrypted_message_data_spec.rb
|
|
1034
|
+
- spec/models/session_event_spec.rb
|
|
1035
|
+
- spec/models/account_order_record_v2_spec.rb
|
|
1036
|
+
- spec/models/cfd_instrument_kind_spec.rb
|
|
1037
|
+
- spec/models/symbol_currency_spec.rb
|
|
1038
|
+
- spec/models/manual_trade_impact_spec.rb
|
|
1039
|
+
- spec/models/deposit_account_spec.rb
|
|
1040
|
+
- spec/models/price_effect_spec.rb
|
|
1041
|
+
- spec/models/simple_trade_form_trading_session_spec.rb
|
|
1042
|
+
- spec/models/account_order_record_trailing_stop_spec.rb
|
|
1043
|
+
- spec/models/position_currency_spec.rb
|
|
1044
|
+
- spec/models/account_value_history_response_spec.rb
|
|
1045
|
+
- spec/models/snap_trade_login_user_request_body_spec.rb
|
|
1046
|
+
- spec/models/option_instrument_spec.rb
|
|
1047
|
+
- spec/models/user_i_dand_secret_spec.rb
|
|
1048
|
+
- spec/models/account_order_record_option_symbol_spec.rb
|
|
1049
|
+
- spec/models/manual_trade_form_with_options_spec.rb
|
|
1050
|
+
- spec/models/mleg_trade_form_spec.rb
|
|
1051
|
+
- spec/models/other_order_type_kind_spec.rb
|
|
1052
|
+
- spec/models/brokerage_instrument_spec.rb
|
|
1053
|
+
- spec/models/account_value_history_item_spec.rb
|
|
1054
|
+
- spec/models/simple_order_form_type_spec.rb
|
|
1055
|
+
- spec/models/encrypted_response_spec.rb
|
|
1056
|
+
- spec/models/position_symbol_spec.rb
|
|
1045
1057
|
- spec/models/sub_period_return_rate_spec.rb
|
|
1046
|
-
- spec/models/
|
|
1047
|
-
- spec/models/
|
|
1048
|
-
- spec/models/
|
|
1058
|
+
- spec/models/underlying_symbol_exchange_spec.rb
|
|
1059
|
+
- spec/models/delete_user_response_spec.rb
|
|
1060
|
+
- spec/models/simple_trade_instrument_spec.rb
|
|
1061
|
+
- spec/models/manual_trade_replace_form_spec.rb
|
|
1062
|
+
- spec/models/account_order_record_spec.rb
|
|
1063
|
+
- spec/models/deposit_account_net_value_spec.rb
|
|
1064
|
+
- spec/models/strategy_order_record_status_spec.rb
|
|
1065
|
+
- spec/models/limit_order_type_spec.rb
|
|
1066
|
+
- spec/models/model429_too_many_requests_response_spec.rb
|
|
1067
|
+
- spec/models/line_of_credit_account_minimum_payment_amount_spec.rb
|
|
1068
|
+
- spec/models/trade_detection_subscription_spec.rb
|
|
1069
|
+
- spec/models/options_position_currency_spec.rb
|
|
1070
|
+
- spec/models/snap_trade_holdings_total_value_spec.rb
|
|
1071
|
+
- spec/models/tokenized_asset_instrument_kind_spec.rb
|
|
1072
|
+
- spec/models/delete_connection_confirmation_spec.rb
|
|
1073
|
+
- spec/models/adr_instrument_kind_spec.rb
|
|
1074
|
+
- spec/models/stock_instrument_kind_spec.rb
|
|
1075
|
+
- spec/models/trailing_stop_order_type_kind_spec.rb
|
|
1076
|
+
- spec/models/crypto_trading_instrument_spec.rb
|
|
1077
|
+
- spec/models/simple_trade_leg_spec.rb
|
|
1078
|
+
- spec/models/complex_order_leg_order_role_spec.rb
|
|
1079
|
+
- spec/models/model402_brokerage_auth_disabled_response_spec.rb
|
|
1049
1080
|
- spec/models/stop_order_type_kind_spec.rb
|
|
1050
|
-
- spec/models/balance_spec.rb
|
|
1051
1081
|
- spec/models/account_order_record_v2_order_role_spec.rb
|
|
1052
|
-
- spec/models/
|
|
1053
|
-
- spec/models/
|
|
1054
|
-
- spec/models/
|
|
1055
|
-
- spec/models/
|
|
1056
|
-
- spec/models/
|
|
1057
|
-
- spec/models/
|
|
1058
|
-
- spec/models/
|
|
1059
|
-
- spec/models/
|
|
1060
|
-
- spec/models/
|
|
1061
|
-
- spec/models/delete_user_response_spec.rb
|
|
1062
|
-
- spec/models/simple_trade_response_spec.rb
|
|
1063
|
-
- spec/models/deposit_account_kind_spec.rb
|
|
1064
|
-
- spec/models/stop_order_type_spec.rb
|
|
1065
|
-
- spec/models/snap_trade_login_user_request_body_spec.rb
|
|
1066
|
-
- spec/models/account_value_history_item_spec.rb
|
|
1067
|
-
- spec/models/account_order_record_child_brokerage_order_ids_spec.rb
|
|
1068
|
-
- spec/models/options_symbol_spec.rb
|
|
1069
|
-
- spec/models/net_dividend_spec.rb
|
|
1070
|
-
- spec/models/account_order_record_trailing_stop_spec.rb
|
|
1071
|
-
- spec/models/schema_version_spec.rb
|
|
1072
|
-
- spec/models/model403_feature_not_enabled_response_spec.rb
|
|
1073
|
-
- spec/models/account_status_spec.rb
|
|
1074
|
-
- spec/models/crypto_trading_instrument_type_spec.rb
|
|
1075
|
-
- spec/models/complex_order_response_type_spec.rb
|
|
1082
|
+
- spec/models/connected_asset_partner_stats_spec.rb
|
|
1083
|
+
- spec/models/account_order_record_status_v2_spec.rb
|
|
1084
|
+
- spec/models/session_event_type_spec.rb
|
|
1085
|
+
- spec/models/mleg_instrument_type_spec.rb
|
|
1086
|
+
- spec/models/line_of_credit_account_spec.rb
|
|
1087
|
+
- spec/models/option_type_spec.rb
|
|
1088
|
+
- spec/models/mleg_trading_instrument_spec.rb
|
|
1089
|
+
- spec/models/underlying_cfd_instrument_spec.rb
|
|
1090
|
+
- spec/models/symbol_query_spec.rb
|
|
1076
1091
|
- spec/models/manual_trade_form_spec.rb
|
|
1077
|
-
- spec/models/
|
|
1078
|
-
- spec/models/
|
|
1079
|
-
- spec/models/validated_trade_body_spec.rb
|
|
1080
|
-
- spec/models/crypto_order_form_time_in_force_spec.rb
|
|
1081
|
-
- spec/models/manual_trade_balance_spec.rb
|
|
1082
|
-
- spec/models/account_balances_v2_response_margin_spec.rb
|
|
1083
|
-
- spec/models/complex_order_response_spec.rb
|
|
1084
|
-
- spec/models/annuity_account_spec.rb
|
|
1085
|
-
- spec/models/deposit_account_net_value_spec.rb
|
|
1086
|
-
- spec/models/crypto_order_form_type_spec.rb
|
|
1087
|
-
- spec/models/trading_instrument_spec.rb
|
|
1088
|
-
- spec/models/type_spec.rb
|
|
1089
|
-
- spec/models/order_type_strict_spec.rb
|
|
1090
|
-
- spec/models/option_strategy_spec.rb
|
|
1091
|
-
- spec/regression/request_signing_spec.rb
|
|
1092
|
+
- spec/models/model501_not_implemented_response_spec.rb
|
|
1093
|
+
- spec/models/annuity_account_kind_spec.rb
|
|
1092
1094
|
- spec/regression/all_account_positions_spec.rb
|
|
1093
1095
|
- spec/regression/fixtures/all_account_positions.json
|
|
1096
|
+
- spec/regression/request_signing_spec.rb
|
|
1094
1097
|
- spec/spec_helper.rb
|