snaptrade 3.0.60 → 3.0.62

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: 92a90db2616eb5fbeecc3fafab85d5e307f196f37c8b837906efe8927f1f90bc
4
- data.tar.gz: d41783774686e91dffe3f015f9fe8f10900fd146bfe0b1281fbf66dc854ac52d
3
+ metadata.gz: 0fb55a223d345be16a9bdb862ee41082fe0e25916592dca132fadea463c3b012
4
+ data.tar.gz: 390f9e2a3097e032c96493edea40f3751f61ad29eb09977380e299291186e571
5
5
  SHA512:
6
- metadata.gz: 5d4da16d5cf7ddafdaa5f17bbda8f51db45d3333e9ae139457aaf1b79b956daec9442026554bf890704405431a11279e8894ed5ad971c5da04b28418ebe2fd89
7
- data.tar.gz: 3411ed55d570a6a12412f4dc493de59b9f97e182887810ae5e8cfba8e3f483c7eccafb89522dddec22a3f81b40a40bafd3522f4b999fd18ffebccf6e099b4428
6
+ metadata.gz: 2028dfa6b330de7131214bebe50aaa3a852893e73ad050810f152c7b108db254973d4153d92f8b2cb2a6e6d44224a49162c22afd27a501e388dd37ba8f8e82ef
7
+ data.tar.gz: 6a26d6e953b5013959331809103e4e3c1a56b1127a2f94a716403f1a067f29ca0d139789b7f3e0a3671af9dfe9bc4e6aac9293221f8230c37a42fa618e661ee4
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.60-blue)](https://rubygems.org/gems/snaptrade/versions/3.0.60)
66
+ [![npm](https://img.shields.io/badge/gem-v3.0.62-blue)](https://rubygems.org/gems/snaptrade/versions/3.0.62)
67
67
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
68
68
 
69
69
  </div>
@@ -150,7 +150,7 @@ See https://docs.snaptrade.com/docs/ratelimiting.
150
150
  Add to Gemfile:
151
151
 
152
152
  ```ruby
153
- gem 'snaptrade', '~> 3.0.60'
153
+ gem 'snaptrade', '~> 3.0.62'
154
154
  ```
155
155
 
156
156
  ## Getting Started<a id="getting-started"></a>
@@ -448,7 +448,7 @@ p result
448
448
 
449
449
  ### `snaptrade.account_information.get_account_transactions`<a id="snaptradeaccount_informationget_account_transactions"></a>
450
450
 
451
- Returns the account's cached transaction history, most recent trade date first. Transactions with the same timestamp are ordered by descending internal activity ID.
451
+ Returns the account's cached transaction history, most recent date first. Transactions with the same timestamp are ordered by descending internal activity ID.
452
452
 
453
453
  History refreshes daily. Timing and available history depend on the brokerage. A disabled connection continues to return its last cached history.
454
454
 
@@ -462,7 +462,7 @@ result = snaptrade.account_information.get_account_transactions(
462
462
  user_secret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
463
463
  start_date: "2022-01-24",
464
464
  end_date: "2022-01-24",
465
- type: "BUY_TO_OPEN,DIVIDEND",
465
+ type: "BUY,DIVIDEND",
466
466
  offset: 0,
467
467
  limit: 1000,
468
468
  )
@@ -475,11 +475,10 @@ p result
475
475
  ##### user_id: `String`<a id="user_id-string"></a>
476
476
  ##### user_secret: `String`<a id="user_secret-string"></a>
477
477
  ##### start_date: `Date`<a id="start_date-date"></a>
478
- First trade date to include (UTC). Defaults to the earliest available
479
- transaction.
478
+ First date to include (UTC). Defaults to the earliest available transaction.
480
479
 
481
480
  ##### end_date: `Date`<a id="end_date-date"></a>
482
- Last trade date to include (UTC). Defaults to the latest available transaction.
481
+ Last date to include (UTC). Defaults to the latest available transaction.
483
482
 
484
483
  ##### type: `String`<a id="type-string"></a>
485
484
  Comma-separated activity types. A transaction matches its base type or its
@@ -661,15 +661,15 @@ module SnapTrade
661
661
 
662
662
  # List account transactions
663
663
  #
664
- # Returns the account's cached transaction history, most recent trade date first. Transactions with the same timestamp are ordered by descending internal activity ID.
664
+ # Returns the account's cached transaction history, most recent date first. Transactions with the same timestamp are ordered by descending internal activity ID.
665
665
  #
666
666
  # History refreshes daily. Timing and available history depend on the brokerage. A disabled connection continues to return its last cached history.
667
667
  #
668
668
  # @param account_id [String]
669
669
  # @param user_id [String]
670
670
  # @param user_secret [String]
671
- # @param start_date [Date] First trade date to include (UTC). Defaults to the earliest available transaction.
672
- # @param end_date [Date] Last trade date to include (UTC). Defaults to the latest available transaction.
671
+ # @param start_date [Date] First date to include (UTC). Defaults to the earliest available transaction.
672
+ # @param end_date [Date] Last date to include (UTC). Defaults to the latest available transaction.
673
673
  # @param type [String] Comma-separated activity types. A transaction matches its base type or its option action, case-insensitively. For example, BUY includes opening and closing option purchases, while BUY_TO_OPEN selects only opening purchases. A transaction matching multiple values appears once.
674
674
  # @param offset [Integer] Number of matching transactions to skip.
675
675
  # @param limit [Integer] Maximum number of transactions to return in this page.
@@ -686,15 +686,15 @@ module SnapTrade
686
686
 
687
687
  # List account transactions
688
688
  #
689
- # Returns the account's cached transaction history, most recent trade date first. Transactions with the same timestamp are ordered by descending internal activity ID.
689
+ # Returns the account's cached transaction history, most recent date first. Transactions with the same timestamp are ordered by descending internal activity ID.
690
690
  #
691
691
  # History refreshes daily. Timing and available history depend on the brokerage. A disabled connection continues to return its last cached history.
692
692
  #
693
693
  # @param account_id [String]
694
694
  # @param user_id [String]
695
695
  # @param user_secret [String]
696
- # @param start_date [Date] First trade date to include (UTC). Defaults to the earliest available transaction.
697
- # @param end_date [Date] Last trade date to include (UTC). Defaults to the latest available transaction.
696
+ # @param start_date [Date] First date to include (UTC). Defaults to the earliest available transaction.
697
+ # @param end_date [Date] Last date to include (UTC). Defaults to the latest available transaction.
698
698
  # @param type [String] Comma-separated activity types. A transaction matches its base type or its option action, case-insensitively. For example, BUY includes opening and closing option purchases, while BUY_TO_OPEN selects only opening purchases. A transaction matching multiple values appears once.
699
699
  # @param offset [Integer] Number of matching transactions to skip.
700
700
  # @param limit [Integer] Maximum number of transactions to return in this page.
@@ -709,13 +709,13 @@ module SnapTrade
709
709
  end
710
710
 
711
711
  # List account transactions
712
- # Returns the account's cached transaction history, most recent trade date first. Transactions with the same timestamp are ordered by descending internal activity ID. History refreshes daily. Timing and available history depend on the brokerage. A disabled connection continues to return its last cached history.
712
+ # Returns the account's cached transaction history, most recent date first. Transactions with the same timestamp are ordered by descending internal activity ID. History refreshes daily. Timing and available history depend on the brokerage. A disabled connection continues to return its last cached history.
713
713
  # @param account_id [String]
714
714
  # @param user_id [String]
715
715
  # @param user_secret [String]
716
716
  # @param [Hash] opts the optional parameters
717
- # @option opts [Date] :start_date First trade date to include (UTC). Defaults to the earliest available transaction.
718
- # @option opts [Date] :end_date Last trade date to include (UTC). Defaults to the latest available transaction.
717
+ # @option opts [Date] :start_date First date to include (UTC). Defaults to the earliest available transaction.
718
+ # @option opts [Date] :end_date Last date to include (UTC). Defaults to the latest available transaction.
719
719
  # @option opts [String] :type Comma-separated activity types. A transaction matches its base type or its option action, case-insensitively. For example, BUY includes opening and closing option purchases, while BUY_TO_OPEN selects only opening purchases. A transaction matching multiple values appears once.
720
720
  # @option opts [Integer] :offset Number of matching transactions to skip. (default to 0)
721
721
  # @option opts [Integer] :limit Maximum number of transactions to return in this page. (default to 1000)
@@ -726,13 +726,13 @@ module SnapTrade
726
726
  end
727
727
 
728
728
  # List account transactions
729
- # Returns the account&#39;s cached transaction history, most recent trade date first. Transactions with the same timestamp are ordered by descending internal activity ID. History refreshes daily. Timing and available history depend on the brokerage. A disabled connection continues to return its last cached history.
729
+ # Returns the account&#39;s cached transaction history, most recent date first. Transactions with the same timestamp are ordered by descending internal activity ID. History refreshes daily. Timing and available history depend on the brokerage. A disabled connection continues to return its last cached history.
730
730
  # @param account_id [String]
731
731
  # @param user_id [String]
732
732
  # @param user_secret [String]
733
733
  # @param [Hash] opts the optional parameters
734
- # @option opts [Date] :start_date First trade date to include (UTC). Defaults to the earliest available transaction.
735
- # @option opts [Date] :end_date Last trade date to include (UTC). Defaults to the latest available transaction.
734
+ # @option opts [Date] :start_date First date to include (UTC). Defaults to the earliest available transaction.
735
+ # @option opts [Date] :end_date Last date to include (UTC). Defaults to the latest available transaction.
736
736
  # @option opts [String] :type Comma-separated activity types. A transaction matches its base type or its option action, case-insensitively. For example, BUY includes opening and closing option purchases, while BUY_TO_OPEN selects only opening purchases. A transaction matching multiple values appears once.
737
737
  # @option opts [Integer] :offset Number of matching transactions to skip. (default to 0)
738
738
  # @option opts [Integer] :limit Maximum number of transactions to return in this page. (default to 1000)
@@ -35,7 +35,7 @@ module SnapTrade
35
35
  def self.openapi_types
36
36
  {
37
37
  :'data' => :'Array<Activity>',
38
- :'pagination' => :'PaginationDetails'
38
+ :'pagination' => :'AccountTransactionsResponsePagination'
39
39
  }
40
40
  end
41
41
 
@@ -0,0 +1,244 @@
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 AccountTransactionsResponsePagination
15
+ # The starting point of the paginated results.
16
+ attr_accessor :offset
17
+
18
+ # The maximum number of items to return in the response.
19
+ attr_accessor :limit
20
+
21
+ # The total number of items available to be returned over the API.
22
+ attr_accessor :total
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'offset' => :'offset',
28
+ :'limit' => :'limit',
29
+ :'total' => :'total'
30
+ }
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'offset' => :'Integer',
42
+ :'limit' => :'Integer',
43
+ :'total' => :'Integer'
44
+ }
45
+ end
46
+
47
+ # List of attributes with nullable: true
48
+ def self.openapi_nullable
49
+ Set.new([
50
+ ])
51
+ end
52
+
53
+ # List of class defined in allOf (OpenAPI v3)
54
+ def self.openapi_all_of
55
+ [
56
+ :'PaginationDetails'
57
+ ]
58
+ end
59
+
60
+ # Initializes the object
61
+ # @param [Hash] attributes Model attributes in the form of hash
62
+ def initialize(attributes = {})
63
+ if (!attributes.is_a?(Hash))
64
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SnapTrade::AccountTransactionsResponsePagination` initialize method"
65
+ end
66
+
67
+ # check to see if the attribute exists and convert string to symbol for hash key
68
+ attributes = attributes.each_with_object({}) { |(k, v), h|
69
+ if (!self.class.attribute_map.key?(k.to_sym))
70
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SnapTrade::AccountTransactionsResponsePagination`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
71
+ end
72
+ h[k.to_sym] = v
73
+ }
74
+
75
+ if attributes.key?(:'offset')
76
+ self.offset = attributes[:'offset']
77
+ end
78
+
79
+ if attributes.key?(:'limit')
80
+ self.limit = attributes[:'limit']
81
+ end
82
+
83
+ if attributes.key?(:'total')
84
+ self.total = attributes[:'total']
85
+ end
86
+ end
87
+
88
+ # Show invalid properties with the reasons. Usually used together with valid?
89
+ # @return Array for valid properties with the reasons
90
+ def list_invalid_properties
91
+ invalid_properties = Array.new
92
+ invalid_properties
93
+ end
94
+
95
+ # Check to see if the all the properties in the model are valid
96
+ # @return true if the model is valid
97
+ def valid?
98
+ true
99
+ end
100
+
101
+ # Checks equality by comparing each attribute.
102
+ # @param [Object] Object to be compared
103
+ def ==(o)
104
+ return true if self.equal?(o)
105
+ self.class == o.class &&
106
+ offset == o.offset &&
107
+ limit == o.limit &&
108
+ total == o.total
109
+ end
110
+
111
+ # @see the `==` method
112
+ # @param [Object] Object to be compared
113
+ def eql?(o)
114
+ self == o
115
+ end
116
+
117
+ # Calculates hash code according to all attributes.
118
+ # @return [Integer] Hash code
119
+ def hash
120
+ [offset, limit, total].hash
121
+ end
122
+
123
+ # Builds the object from hash
124
+ # @param [Hash] attributes Model attributes in the form of hash
125
+ # @return [Object] Returns the model itself
126
+ def self.build_from_hash(attributes)
127
+ new.build_from_hash(attributes)
128
+ end
129
+
130
+ # Builds the object from hash
131
+ # @param [Hash] attributes Model attributes in the form of hash
132
+ # @return [Object] Returns the model itself
133
+ def build_from_hash(attributes)
134
+ return nil unless attributes.is_a?(Hash)
135
+ attributes = attributes.transform_keys(&:to_sym)
136
+ self.class.openapi_types.each_pair do |key, type|
137
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
138
+ self.send("#{key}=", nil)
139
+ elsif type =~ /\AArray<(.*)>/i
140
+ # check to ensure the input is an array given that the attribute
141
+ # is documented as an array but the input is not
142
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
143
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
144
+ end
145
+ elsif !attributes[self.class.attribute_map[key]].nil?
146
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
147
+ end
148
+ end
149
+
150
+ self
151
+ end
152
+
153
+ # Deserializes the data based on type
154
+ # @param string type Data type
155
+ # @param string value Value to be deserialized
156
+ # @return [Object] Deserialized data
157
+ def _deserialize(type, value)
158
+ case type.to_sym
159
+ when :Time
160
+ Time.parse(value)
161
+ when :Date
162
+ Date.parse(value)
163
+ when :String
164
+ value.to_s
165
+ when :Integer
166
+ value.to_i
167
+ when :Float
168
+ value.to_f
169
+ when :Boolean
170
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
171
+ true
172
+ else
173
+ false
174
+ end
175
+ when :Object
176
+ # generic object (usually a Hash), return directly
177
+ value
178
+ when /\AArray<(?<inner_type>.+)>\z/
179
+ inner_type = Regexp.last_match[:inner_type]
180
+ value.map { |v| _deserialize(inner_type, v) }
181
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
182
+ k_type = Regexp.last_match[:k_type]
183
+ v_type = Regexp.last_match[:v_type]
184
+ {}.tap do |hash|
185
+ value.each do |k, v|
186
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
187
+ end
188
+ end
189
+ else # model
190
+ # models (e.g. Pet) or oneOf
191
+ klass = SnapTrade.const_get(type)
192
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
193
+ end
194
+ end
195
+
196
+ # Returns the string representation of the object
197
+ # @return [String] String presentation of the object
198
+ def to_s
199
+ to_hash.to_s
200
+ end
201
+
202
+ # to_body is an alias to to_hash (backward compatibility)
203
+ # @return [Hash] Returns the object in the form of hash
204
+ def to_body
205
+ to_hash
206
+ end
207
+
208
+ # Returns the object in the form of hash
209
+ # @return [Hash] Returns the object in the form of hash
210
+ def to_hash
211
+ hash = {}
212
+ self.class.attribute_map.each_pair do |attr, param|
213
+ value = self.send(attr)
214
+ if value.nil?
215
+ is_nullable = self.class.openapi_nullable.include?(attr)
216
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
217
+ end
218
+
219
+ hash[param] = _to_hash(value)
220
+ end
221
+ hash
222
+ end
223
+
224
+ # Outputs non-array value in the form of hash
225
+ # For object, use to_hash. Otherwise, just return the value
226
+ # @param [Object] value Any valid value
227
+ # @return [Hash] Returns the value in the form of hash
228
+ def _to_hash(value)
229
+ if value.is_a?(Array)
230
+ value.compact.map { |v| _to_hash(v) }
231
+ elsif value.is_a?(Hash)
232
+ {}.tap do |hash|
233
+ value.each { |k, v| hash[k] = _to_hash(v) }
234
+ end
235
+ elsif value.respond_to? :to_hash
236
+ value.to_hash
237
+ else
238
+ value
239
+ end
240
+ end
241
+
242
+ end
243
+
244
+ end
@@ -19,7 +19,7 @@ module SnapTrade
19
19
  # Best-effort activity classification. A reported option action takes precedence over its base type. Common values include BUY, SELL, BUY_TO_OPEN, BUY_TO_CLOSE, SELL_TO_OPEN, SELL_TO_CLOSE, DIVIDEND, INTEREST, CONTRIBUTION, WITHDRAWAL, TRANSFER and FEE. Clients must accept unfamiliar values.
20
20
  attr_accessor :type
21
21
 
22
- # Recorded trade date and time in UTC. Precision depends on what the brokerage supplies.
22
+ # Recorded date and time in UTC. Precision depends on what the brokerage supplies.
23
23
  attr_accessor :date
24
24
 
25
25
  # Brokerage activity description, including an unresolved brokerage symbol's name when available.
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '3.0.60'
11
+ VERSION = '3.0.62'
12
12
  end
data/lib/snaptrade.rb CHANGED
@@ -54,6 +54,7 @@ require 'snaptrade/models/account_simple'
54
54
  require 'snaptrade/models/account_status'
55
55
  require 'snaptrade/models/account_sync_status'
56
56
  require 'snaptrade/models/account_transactions_response'
57
+ require 'snaptrade/models/account_transactions_response_pagination'
57
58
  require 'snaptrade/models/account_universal_activity'
58
59
  require 'snaptrade/models/account_universal_activity_currency'
59
60
  require 'snaptrade/models/account_universal_activity_currency_universal_symbol'
@@ -105,13 +105,13 @@ describe 'AccountInformationApi' do
105
105
 
106
106
  # unit tests for get_account_transactions
107
107
  # List account transactions
108
- # Returns the account&#39;s cached transaction history, most recent trade date first. Transactions with the same timestamp are ordered by descending internal activity ID. History refreshes daily. Timing and available history depend on the brokerage. A disabled connection continues to return its last cached history.
108
+ # Returns the account&#39;s cached transaction history, most recent date first. Transactions with the same timestamp are ordered by descending internal activity ID. History refreshes daily. Timing and available history depend on the brokerage. A disabled connection continues to return its last cached history.
109
109
  # @param account_id
110
110
  # @param user_id
111
111
  # @param user_secret
112
112
  # @param [Hash] opts the optional parameters
113
- # @option opts [Date] :start_date First trade date to include (UTC). Defaults to the earliest available transaction.
114
- # @option opts [Date] :end_date Last trade date to include (UTC). Defaults to the latest available transaction.
113
+ # @option opts [Date] :start_date First date to include (UTC). Defaults to the earliest available transaction.
114
+ # @option opts [Date] :end_date Last date to include (UTC). Defaults to the latest available transaction.
115
115
  # @option opts [String] :type Comma-separated activity types. A transaction matches its base type or its option action, case-insensitively. For example, BUY includes opening and closing option purchases, while BUY_TO_OPEN selects only opening purchases. A transaction matching multiple values appears once.
116
116
  # @option opts [Integer] :offset Number of matching transactions to skip.
117
117
  # @option opts [Integer] :limit Maximum number of transactions to return in this page.
@@ -0,0 +1,41 @@
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::AccountTransactionsResponsePagination
15
+ describe SnapTrade::AccountTransactionsResponsePagination do
16
+ let(:instance) { SnapTrade::AccountTransactionsResponsePagination.new }
17
+
18
+ describe 'test an instance of AccountTransactionsResponsePagination' do
19
+ it 'should create an instance of AccountTransactionsResponsePagination' do
20
+ expect(instance).to be_instance_of(SnapTrade::AccountTransactionsResponsePagination)
21
+ end
22
+ end
23
+ describe 'test attribute "offset"' do
24
+ it 'should work' do
25
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
26
+ end
27
+ end
28
+
29
+ describe 'test attribute "limit"' do
30
+ it 'should work' do
31
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ end
33
+ end
34
+
35
+ describe 'test attribute "total"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ 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.60
4
+ version: 3.0.62
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-18 00:00:00.000000000 Z
11
+ date: 2026-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -169,6 +169,7 @@ files:
169
169
  - lib/snaptrade/models/account_status.rb
170
170
  - lib/snaptrade/models/account_sync_status.rb
171
171
  - lib/snaptrade/models/account_transactions_response.rb
172
+ - lib/snaptrade/models/account_transactions_response_pagination.rb
172
173
  - lib/snaptrade/models/account_universal_activity.rb
173
174
  - lib/snaptrade/models/account_universal_activity_currency.rb
174
175
  - lib/snaptrade/models/account_universal_activity_currency_universal_symbol.rb
@@ -495,6 +496,7 @@ files:
495
496
  - spec/models/account_spec.rb
496
497
  - spec/models/account_status_spec.rb
497
498
  - spec/models/account_sync_status_spec.rb
499
+ - spec/models/account_transactions_response_pagination_spec.rb
498
500
  - spec/models/account_transactions_response_spec.rb
499
501
  - spec/models/account_universal_activity_currency_spec.rb
500
502
  - spec/models/account_universal_activity_currency_universal_symbol_spec.rb
@@ -802,332 +804,333 @@ signing_key:
802
804
  specification_version: 4
803
805
  summary: SnapTrade Ruby Gem
804
806
  test_files:
805
- - spec/api/management_api_spec.rb
806
807
  - spec/api/experimental_endpoints_api_spec.rb
807
- - spec/api/connections_api_spec.rb
808
808
  - spec/api/account_information_api_spec.rb
809
+ - spec/api/management_api_spec.rb
810
+ - spec/api/connections_api_spec.rb
811
+ - spec/api/trading_api_spec.rb
809
812
  - spec/api/api_status_api_spec.rb
810
813
  - spec/api/authentication_api_spec.rb
811
- - spec/api/trading_api_spec.rb
812
814
  - spec/api/reference_data_api_spec.rb
813
815
  - spec/api_client_spec.rb
814
816
  - spec/configuration_spec.rb
815
817
  - spec/getting_started_spec.rb
816
- - spec/models/account_order_leg_spec.rb
817
- - spec/models/option_instrument_spec.rb
818
- - spec/models/model500_unexpected_exception_response_spec.rb
819
- - spec/models/pagination_details_spec.rb
820
- - spec/models/account_balances_v2_response_margin_spec.rb
821
- - spec/models/release_stage_spec.rb
822
- - spec/models/option_quote_greeks_spec.rb
823
- - spec/models/underlying_tokenized_asset_instrument_spec.rb
824
- - spec/models/session_event_type_spec.rb
825
- - spec/models/auth_type_spec.rb
826
- - spec/models/priced_in_instrument_spec.rb
827
- - spec/models/strategy_type_spec.rb
828
- - spec/models/position_symbol_spec.rb
829
- - spec/models/connection_accounts_response_spec.rb
830
- - spec/models/underlying_symbol_spec.rb
831
- - spec/models/account_sync_status_spec.rb
832
- - spec/models/crypto_instrument_kind_spec.rb
833
- - spec/models/limit_order_type_kind_spec.rb
834
- - spec/models/stop_order_type_spec.rb
835
- - spec/models/account_value_history_response_spec.rb
836
- - spec/models/brokerage_authorization_transactions_sync_confirmation_spec.rb
837
- - spec/models/brokerage_instruments_response_spec.rb
838
- - spec/models/trade_detection_subscription_spec.rb
839
- - spec/models/underlying_cfd_instrument_spec.rb
840
- - spec/models/brokerage_authorization_spec.rb
841
- - spec/models/complex_order_leg_order_role_spec.rb
842
- - spec/models/snap_trade_register_user_request_body_spec.rb
843
- - spec/models/limit_order_type_spec.rb
844
- - spec/models/future_option_instrument_spec.rb
845
- - spec/models/simple_trade_leg_spec.rb
846
- - spec/models/strategy_order_record_spec.rb
847
- - spec/models/order_type_configuration_spec.rb
848
- - spec/models/cash_instrument_spec.rb
849
- - spec/models/mortgage_account_net_value_spec.rb
850
- - spec/models/trading_place_simple_order409_response_spec.rb
851
- - spec/models/trailing_stop_spec.rb
852
- - spec/models/connection_portal_version_spec.rb
853
- - spec/models/model404_failed_request_response_spec.rb
854
- - spec/models/strategy_order_record_status_spec.rb
855
- - spec/models/preferred_stock_instrument_kind_spec.rb
856
- - spec/models/crypto_instrument_spec.rb
857
- - spec/models/option_instrument_option_type_spec.rb
858
- - spec/models/balance_spec.rb
859
- - spec/models/etf_instrument_kind_spec.rb
860
- - spec/models/order_updated_response_spec.rb
861
- - spec/models/account_universal_activity_currency_universal_symbol_spec.rb
862
- - spec/models/symbol_exchange_spec.rb
863
- - spec/models/model503_brokerage_request_response_spec.rb
818
+ - spec/models/cef_instrument_kind_spec.rb
819
+ - spec/models/model403_feature_not_enabled_response_spec.rb
820
+ - spec/models/model401_failed_request_response_spec.rb
864
821
  - spec/models/model402_brokerage_auth_disabled_response_spec.rb
865
- - spec/models/brokerage_authorization_data_freshness_mode_spec.rb
866
- - spec/models/symbol_currency_spec.rb
867
- - spec/models/account_order_record_v2_spec.rb
868
- - spec/models/institution_connection_spec.rb
869
- - spec/models/account_order_group_spec.rb
870
- - spec/models/cef_instrument_spec.rb
871
- - spec/models/symbol_spec.rb
872
- - spec/models/model404_account_unavailable_response_spec.rb
873
- - spec/models/delete_user_response_spec.rb
874
- - spec/models/option_quote_spec.rb
875
- - spec/models/monthly_dividends_spec.rb
876
- - spec/models/complex_order_response_type_spec.rb
877
- - spec/models/trade_detection_cancel_subscription_request_spec.rb
878
- - spec/models/etf_instrument_spec.rb
879
- - spec/models/manual_trade_form_with_options_spec.rb
880
- - spec/models/manual_trade_replace_form_spec.rb
822
+ - spec/models/order_type_strict_spec.rb
823
+ - spec/models/account_order_record_leg_instrument_spec.rb
824
+ - spec/models/brokerage_authorization_type_read_only_spec.rb
825
+ - spec/models/account_balances_v2_response_net_value_spec.rb
826
+ - spec/models/mleg_instrument_type_spec.rb
827
+ - spec/models/paginated_universal_activity_spec.rb
881
828
  - spec/models/annuity_account_spec.rb
882
- - spec/models/option_impact_spec.rb
883
- - spec/models/model503_currency_conversion_unavailable_response_spec.rb
829
+ - spec/models/account_order_record_leg_spec.rb
830
+ - spec/models/balance_v2_currency_amount_spec.rb
884
831
  - spec/models/basis_spec.rb
885
- - spec/models/simple_order_form_spec.rb
886
- - spec/models/net_contributions_spec.rb
887
- - spec/models/manual_trade_form_complex_spec.rb
888
- - spec/models/crypto_order_preview_spec.rb
832
+ - spec/models/account_balances_v2_response_margin_spec.rb
833
+ - spec/models/stock_instrument_kind_spec.rb
834
+ - spec/models/stock_instrument_spec.rb
835
+ - spec/models/line_of_credit_account_spec.rb
889
836
  - spec/models/future_instrument_kind_spec.rb
890
- - spec/models/option_type_spec.rb
891
- - spec/models/account_order_record_status_v2_spec.rb
837
+ - spec/models/account_order_record_trailing_stop_spec.rb
892
838
  - spec/models/sub_period_return_rate_spec.rb
893
- - spec/models/action_strict_with_options_spec.rb
894
- - spec/models/tokenized_asset_instrument_kind_spec.rb
895
- - spec/models/mleg_trade_form_spec.rb
896
- - spec/models/timeframe_spec.rb
897
839
  - spec/models/manual_trade_form_bracket_spec.rb
898
- - spec/models/cash_change_direction_spec.rb
899
- - spec/models/account_status_spec.rb
900
- - spec/models/account_information_get_user_holdings409_response_spec.rb
901
- - spec/models/other_instrument_spec.rb
902
- - spec/models/account_holdings_spec.rb
903
- - spec/models/account_balance_total_spec.rb
904
- - spec/models/connection_type_spec.rb
905
- - spec/models/mortgage_account_kind_spec.rb
906
- - spec/models/position_currency_spec.rb
907
- - spec/models/investment_account_spec.rb
908
- - spec/models/line_of_credit_account_sync_status_spec.rb
909
- - spec/models/account_order_record_v2_order_role_spec.rb
910
- - spec/models/us_exchange_spec.rb
911
- - spec/models/all_account_positions_response_spec.rb
912
- - spec/models/institution_spec.rb
840
+ - spec/models/cfd_instrument_spec.rb
841
+ - spec/models/line_of_credit_account_available_credit_spec.rb
842
+ - spec/models/cash_instrument_spec.rb
843
+ - spec/models/manual_trade_form_complex_type_spec.rb
913
844
  - spec/models/universal_symbol_spec.rb
914
- - spec/models/encrypted_response_encrypted_message_data_spec.rb
915
- - spec/models/mortgage_account_sync_status_spec.rb
916
- - spec/models/account_order_spec.rb
917
- - spec/models/stop_order_type_kind_spec.rb
918
- - spec/models/figi_instrument_spec.rb
919
- - spec/models/underlying_symbol_exchange_spec.rb
920
- - spec/models/cash_or_margin_spec.rb
921
- - spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
922
- - spec/models/complex_order_response_spec.rb
923
- - spec/models/account_balances_v2_response_spec.rb
924
- - spec/models/crypto_order_form_time_in_force_spec.rb
925
- - spec/models/account_order_record_leg_instrument_spec.rb
926
- - spec/models/all_account_orders_response_spec.rb
927
- - spec/models/net_dividend_spec.rb
928
- - spec/models/account_holdings_account_spec.rb
929
- - spec/models/trading_get_user_account_option_quotes410_response_spec.rb
930
- - spec/models/account_order_record_child_brokerage_order_ids_spec.rb
931
- - spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
932
- - spec/models/trailing_stop_limit_order_type_spec.rb
933
- - spec/models/cash_instrument_kind_spec.rb
934
- - spec/models/crypto_order_form_spec.rb
935
- - spec/models/mutual_fund_instrument_spec.rb
936
- - spec/models/session_event_spec.rb
937
- - spec/models/option_chain_inner_chain_per_root_inner_spec.rb
938
- - spec/models/notional_value_spec.rb
939
- - spec/models/complex_order_leg_spec.rb
940
- - spec/models/symbol_query_spec.rb
941
- - spec/models/annuity_account_kind_spec.rb
942
- - spec/models/all_account_orders_response_data_freshness_spec.rb
943
- - spec/models/stop_limit_order_type_spec.rb
944
- - spec/models/brokerage_authorization_refresh_confirmation_spec.rb
945
- - spec/models/login_redirect_uri_spec.rb
946
- - spec/models/simple_trade_form_spec.rb
947
- - spec/models/market_order_type_kind_spec.rb
948
- - spec/models/underlying_symbol_type_spec.rb
949
- - spec/models/account_universal_activity_option_symbol_spec.rb
950
- - spec/models/deposit_account_kind_spec.rb
951
- - spec/models/account_balances_v2_response_cash_or_margin_spec.rb
952
- - spec/models/future_instrument_spec.rb
953
- - spec/models/encrypted_response_spec.rb
954
- - spec/models/account_position_spec.rb
955
- - spec/models/dividend_at_date_spec.rb
956
- - spec/models/account_order_record_quote_universal_symbol_spec.rb
957
- - spec/models/exchange_spec.rb
958
845
  - spec/models/cryptocurrency_pair_spec.rb
959
- - spec/models/account_order_record_status_spec.rb
960
- - spec/models/currency_spec.rb
961
- - spec/models/account_universal_activity_symbol_spec.rb
962
- - spec/models/simple_trade_leg_action_spec.rb
963
- - spec/models/take_profit_spec.rb
964
- - spec/models/snap_trade_login_user_request_body_spec.rb
965
- - spec/models/options_symbol_option_type_spec.rb
966
- - spec/models/security_type_spec.rb
967
- - spec/models/deposit_account_spec.rb
968
- - spec/models/model403_feature_not_enabled_response_spec.rb
969
- - spec/models/transactions_status_spec.rb
970
846
  - spec/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner_spec.rb
971
- - spec/models/options_position_spec.rb
972
- - spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
973
- - spec/models/trading_session_spec.rb
974
- - spec/models/option_instrument_kind_spec.rb
975
- - spec/models/trading_instrument_type_spec.rb
976
- - spec/models/brokerage_type_spec.rb
977
- - spec/models/mleg_order_response_spec.rb
978
- - spec/models/model429_too_many_requests_response_spec.rb
979
- - spec/models/order_updated_response_order_spec.rb
980
- - spec/models/options_position_currency_spec.rb
981
- - spec/models/simple_trade_form_order_type_spec.rb
982
- - spec/models/schema_version_spec.rb
983
- - spec/models/other_order_type_kind_spec.rb
984
- - spec/models/symbols_quotes_inner_spec.rb
985
- - spec/models/mleg_order_type_strict_spec.rb
986
- - spec/models/past_value_spec.rb
847
+ - spec/models/other_instrument_spec.rb
848
+ - spec/models/account_position_spec.rb
849
+ - spec/models/model404_failed_request_response_spec.rb
987
850
  - spec/models/trade_detection_add_subscription_request_spec.rb
988
- - spec/models/o_auth_webhook_base_spec.rb
989
- - spec/models/brokerage_authorization_type_read_only_spec.rb
990
- - spec/models/market_order_type_spec.rb
991
- - spec/models/other_order_type_spec.rb
992
- - spec/models/order_role_spec.rb
993
- - spec/models/rate_of_return_response_spec.rb
994
- - spec/models/account_balance_spec.rb
995
- - spec/models/position_spec.rb
996
- - spec/models/simple_trade_form_price_effect_spec.rb
997
- - spec/models/partner_data_spec.rb
998
- - spec/models/mutual_fund_instrument_kind_spec.rb
999
- - spec/models/line_of_credit_account_spec.rb
1000
- - spec/models/manual_trade_spec.rb
1001
- - spec/models/activity_spec.rb
1002
- - spec/models/manual_trade_impact_spec.rb
1003
- - spec/models/manual_trade_symbol_spec.rb
851
+ - spec/models/crypto_trading_instrument_spec.rb
852
+ - spec/models/stop_order_type_kind_spec.rb
853
+ - spec/models/underlying_symbol_type_spec.rb
854
+ - spec/models/account_category_spec.rb
855
+ - spec/models/etf_instrument_spec.rb
1004
856
  - spec/models/option_brokerage_symbol_spec.rb
1005
- - spec/models/trailing_stop_order_type_kind_spec.rb
1006
- - spec/models/cancel_order_response_spec.rb
857
+ - spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
1007
858
  - spec/models/mortgage_account_spec.rb
1008
- - spec/models/account_category_spec.rb
1009
- - spec/models/stop_limit_order_type_kind_spec.rb
1010
- - spec/models/account_balances_v2_response_net_value_spec.rb
859
+ - spec/models/tax_lot_spec.rb
860
+ - spec/models/account_universal_activity_currency_universal_symbol_spec.rb
861
+ - spec/models/trading_get_user_account_option_quotes410_response_spec.rb
862
+ - spec/models/preferred_stock_instrument_spec.rb
863
+ - spec/models/simple_trade_form_price_effect_spec.rb
864
+ - spec/models/institution_spec.rb
865
+ - spec/models/account_universal_activity_option_symbol_spec.rb
866
+ - spec/models/encrypted_response_encrypted_message_data_spec.rb
867
+ - spec/models/etf_instrument_kind_spec.rb
1011
868
  - spec/models/deposit_account_net_value_spec.rb
1012
- - spec/models/tokenized_asset_instrument_spec.rb
1013
- - spec/models/strategy_quotes_spec.rb
1014
- - spec/models/connected_asset_partner_stats_spec.rb
1015
- - spec/models/simple_trade_form_trading_session_spec.rb
1016
- - spec/models/mleg_instrument_type_spec.rb
1017
- - spec/models/model501_not_implemented_response_spec.rb
1018
- - spec/models/holdings_status_spec.rb
1019
- - spec/models/paginated_universal_activity_spec.rb
1020
- - spec/models/recent_orders_response_spec.rb
1021
- - spec/models/deposit_account_sync_status_spec.rb
1022
- - spec/models/crypto_order_preview_estimated_fee_spec.rb
1023
- - spec/models/simple_trade_form_time_in_force_spec.rb
1024
- - spec/models/line_of_credit_account_net_value_spec.rb
1025
- - spec/models/authentication_login_snap_trade_user200_response_spec.rb
1026
- - spec/models/strategy_quotes_greek_spec.rb
1027
- - spec/models/account_order_record_universal_symbol_spec.rb
1028
- - spec/models/adr_instrument_kind_spec.rb
869
+ - spec/models/complex_order_leg_spec.rb
870
+ - spec/models/cef_instrument_spec.rb
871
+ - spec/models/exchange_spec.rb
872
+ - spec/models/account_order_group_spec.rb
1029
873
  - spec/models/all_account_positions_response_data_freshness_spec.rb
1030
- - spec/models/trailing_stop_limit_order_type_kind_spec.rb
1031
- - spec/models/simple_order_form_type_spec.rb
1032
- - spec/models/all_user_accounts_response_spec.rb
1033
- - spec/models/balance_v2_currency_amount_spec.rb
1034
- - spec/models/brokerage_instrument_spec.rb
1035
- - spec/models/order_type_strict_spec.rb
1036
- - spec/models/manual_trade_form_spec.rb
1037
- - spec/models/option_strategy_legs_inner_spec.rb
1038
- - spec/models/stock_instrument_spec.rb
1039
- - spec/models/mleg_leg_spec.rb
1040
- - spec/models/balance_v2_money_spec.rb
1041
- - spec/models/partner_stats_spec.rb
1042
- - spec/models/simple_trade_instrument_kind_spec.rb
1043
- - spec/models/account_orders_v2_response_spec.rb
1044
- - spec/models/mleg_action_strict_spec.rb
1045
- - spec/models/mleg_trading_instrument_spec.rb
1046
- - spec/models/cfd_instrument_spec.rb
1047
- - spec/models/account_order_price_effect_spec.rb
1048
- - spec/models/model403_failed_request_response_spec.rb
1049
- - spec/models/delete_connection_confirmation_spec.rb
1050
- - spec/models/adr_instrument_spec.rb
1051
- - spec/models/balance_currency_spec.rb
1052
- - spec/models/cryptocurrency_pair_quote_spec.rb
1053
- - spec/models/account_value_history_item_spec.rb
1054
- - spec/models/model425_failed_request_response_spec.rb
874
+ - spec/models/manual_trade_place_time_in_force_strict_spec.rb
1055
875
  - spec/models/simple_trade_response_spec.rb
1056
- - spec/models/future_option_instrument_kind_spec.rb
1057
- - spec/models/underlying_option_instrument_spec.rb
876
+ - spec/models/us_exchange_spec.rb
877
+ - spec/models/trailing_stop_order_type_spec.rb
1058
878
  - spec/models/simple_order_form_time_in_force_spec.rb
1059
- - spec/models/account_information_get_user_account_order_detail_request_spec.rb
1060
- - spec/models/option_chain_inner_spec.rb
1061
- - spec/models/options_symbol_spec.rb
1062
- - spec/models/crypto_trading_instrument_spec.rb
1063
- - spec/models/price_effect_spec.rb
1064
- - spec/models/cef_instrument_kind_spec.rb
1065
- - spec/models/stock_instrument_figi_instrument_spec.rb
1066
- - spec/models/mleg_price_effect_strict_spec.rb
1067
- - spec/models/time_in_force_strict_spec.rb
879
+ - spec/models/strategy_order_record_spec.rb
880
+ - spec/models/simple_order_form_spec.rb
881
+ - spec/models/option_impact_spec.rb
882
+ - spec/models/option_quote_spec.rb
883
+ - spec/models/dividend_at_date_spec.rb
884
+ - spec/models/transactions_status_spec.rb
885
+ - spec/models/currency_spec.rb
886
+ - spec/models/brokerage_authorization_transactions_sync_confirmation_spec.rb
887
+ - spec/models/instrument_spec.rb
888
+ - spec/models/account_orders_v2_response_spec.rb
889
+ - spec/models/mleg_action_strict_spec.rb
890
+ - spec/models/brokerage_authorization_data_freshness_mode_spec.rb
891
+ - spec/models/encrypted_response_spec.rb
892
+ - spec/models/holdings_status_spec.rb
893
+ - spec/models/model404_account_unavailable_response_spec.rb
894
+ - spec/models/account_balance_spec.rb
895
+ - spec/models/connection_portal_version_spec.rb
896
+ - spec/models/account_order_leg_spec.rb
897
+ - spec/models/annuity_account_kind_spec.rb
898
+ - spec/models/line_of_credit_account_net_value_spec.rb
899
+ - spec/models/recent_orders_response_spec.rb
900
+ - spec/models/all_account_orders_response_data_freshness_spec.rb
901
+ - spec/models/other_order_type_spec.rb
902
+ - spec/models/crypto_order_form_type_spec.rb
903
+ - spec/models/stop_order_type_spec.rb
904
+ - spec/models/exchange_rate_pairs_spec.rb
1068
905
  - spec/models/line_of_credit_account_kind_spec.rb
1069
- - spec/models/snaptrade_spec.rb
1070
- - spec/models/validated_trade_body_spec.rb
1071
- - spec/models/rate_of_return_object_spec.rb
1072
- - spec/models/connection_account_status_spec.rb
906
+ - spec/models/mleg_order_response_spec.rb
907
+ - spec/models/account_order_record_quote_currency_spec.rb
908
+ - spec/models/position_spec.rb
909
+ - spec/models/snap_trade_login_user_request_body_spec.rb
910
+ - spec/models/market_order_type_kind_spec.rb
911
+ - spec/models/symbol_currency_spec.rb
912
+ - spec/models/manual_trade_form_spec.rb
913
+ - spec/models/account_value_history_response_spec.rb
914
+ - spec/models/account_balances_v2_response_buying_power_inner_spec.rb
915
+ - spec/models/simple_order_form_type_spec.rb
916
+ - spec/models/account_order_record_v2_order_role_spec.rb
917
+ - spec/models/symbol_exchange_spec.rb
918
+ - spec/models/partner_stats_spec.rb
919
+ - spec/models/time_in_force_strict_spec.rb
920
+ - spec/models/manual_trade_and_impact_spec.rb
921
+ - spec/models/authentication_login_snap_trade_user200_response_spec.rb
922
+ - spec/models/order_updated_response_order_spec.rb
923
+ - spec/models/option_instrument_spec.rb
924
+ - spec/models/complex_order_response_type_spec.rb
925
+ - spec/models/account_universal_activity_symbol_spec.rb
926
+ - spec/models/stock_instrument_figi_instrument_spec.rb
927
+ - spec/models/price_effect_spec.rb
928
+ - spec/models/trailing_stop_spec.rb
929
+ - spec/models/session_event_type_spec.rb
930
+ - spec/models/mleg_leg_spec.rb
931
+ - spec/models/trading_place_simple_order409_response_spec.rb
932
+ - spec/models/all_account_positions_response_spec.rb
933
+ - spec/models/underlying_tokenized_asset_instrument_spec.rb
934
+ - spec/models/monthly_dividends_spec.rb
935
+ - spec/models/option_strategy_spec.rb
936
+ - spec/models/manual_trade_replace_form_spec.rb
937
+ - spec/models/connection_type_spec.rb
1073
938
  - spec/models/kind_spec.rb
1074
- - spec/models/connection_account_sync_status_spec.rb
1075
- - spec/models/account_order_record_spec.rb
939
+ - spec/models/cryptocurrency_pair_quote_spec.rb
940
+ - spec/models/net_contributions_spec.rb
941
+ - spec/models/brokerage_instrument_spec.rb
942
+ - spec/models/crypto_order_form_time_in_force_spec.rb
1076
943
  - spec/models/simple_trade_instrument_spec.rb
1077
- - spec/models/stop_loss_spec.rb
944
+ - spec/models/model501_not_implemented_response_spec.rb
945
+ - spec/models/rate_of_return_response_spec.rb
946
+ - spec/models/simple_trade_form_trading_session_spec.rb
947
+ - spec/models/notional_value_spec.rb
948
+ - spec/models/model503_brokerage_request_response_spec.rb
949
+ - spec/models/option_instrument_option_type_spec.rb
950
+ - spec/models/child_brokerage_order_ids_spec.rb
951
+ - spec/models/trading_session_spec.rb
952
+ - spec/models/trade_detection_cancel_subscription_response_spec.rb
953
+ - spec/models/option_leg_action_spec.rb
954
+ - spec/models/trading_instrument_spec.rb
955
+ - spec/models/release_stage_spec.rb
956
+ - spec/models/options_position_spec.rb
957
+ - spec/models/snap_trade_register_user_request_body_spec.rb
958
+ - spec/models/schema_version_spec.rb
959
+ - spec/models/underlying_symbol_exchange_spec.rb
960
+ - spec/models/crypto_order_preview_estimated_fee_spec.rb
961
+ - spec/models/net_dividend_spec.rb
962
+ - spec/models/manual_trade_balance_spec.rb
963
+ - spec/models/limit_order_type_kind_spec.rb
964
+ - spec/models/manual_trade_spec.rb
965
+ - spec/models/account_simple_spec.rb
966
+ - spec/models/option_leg_spec.rb
967
+ - spec/models/priced_in_instrument_spec.rb
968
+ - spec/models/strategy_quotes_spec.rb
969
+ - spec/models/adr_instrument_spec.rb
970
+ - spec/models/underlying_option_instrument_spec.rb
971
+ - spec/models/mutual_fund_instrument_kind_spec.rb
972
+ - spec/models/mortgage_account_kind_spec.rb
1078
973
  - spec/models/model400_failed_request_response_spec.rb
974
+ - spec/models/account_order_record_quote_universal_symbol_spec.rb
975
+ - spec/models/balance_v2_money_spec.rb
976
+ - spec/models/crypto_order_form_spec.rb
977
+ - spec/models/performance_custom_spec.rb
978
+ - spec/models/account_order_spec.rb
979
+ - spec/models/auth_type_spec.rb
980
+ - spec/models/investment_account_net_value_spec.rb
981
+ - spec/models/adr_instrument_kind_spec.rb
982
+ - spec/models/brokerage_authorization_spec.rb
983
+ - spec/models/option_chain_inner_spec.rb
984
+ - spec/models/mleg_trading_instrument_spec.rb
985
+ - spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
986
+ - spec/models/position_symbol_spec.rb
987
+ - spec/models/validated_trade_body_spec.rb
988
+ - spec/models/all_user_accounts_response_spec.rb
989
+ - spec/models/manual_trade_form_complex_spec.rb
990
+ - spec/models/delete_connection_confirmation_spec.rb
991
+ - spec/models/security_type_spec.rb
992
+ - spec/models/option_chain_inner_chain_per_root_inner_spec.rb
993
+ - spec/models/simple_trade_form_time_in_force_spec.rb
994
+ - spec/models/model429_too_many_requests_response_spec.rb
995
+ - spec/models/account_universal_activity_spec.rb
996
+ - spec/models/brokerage_spec.rb
997
+ - spec/models/crypto_instrument_kind_spec.rb
998
+ - spec/models/option_type_spec.rb
999
+ - spec/models/snap_trade_holdings_total_value_spec.rb
1000
+ - spec/models/cancel_order_response_spec.rb
1001
+ - spec/models/strategy_type_spec.rb
1002
+ - spec/models/future_instrument_spec.rb
1003
+ - spec/models/model503_currency_conversion_unavailable_response_spec.rb
1004
+ - spec/models/annuity_account_net_value_spec.rb
1005
+ - spec/models/account_holdings_account_spec.rb
1006
+ - spec/models/mortgage_account_net_value_spec.rb
1007
+ - spec/models/account_balances_v2_response_spec.rb
1008
+ - spec/models/deposit_account_kind_spec.rb
1009
+ - spec/models/future_option_instrument_kind_spec.rb
1010
+ - spec/models/cash_change_direction_spec.rb
1011
+ - spec/models/underlying_cfd_instrument_spec.rb
1012
+ - spec/models/crypto_instrument_spec.rb
1013
+ - spec/models/brokerage_instruments_response_spec.rb
1014
+ - spec/models/account_spec.rb
1015
+ - spec/models/account_transactions_response_pagination_spec.rb
1016
+ - spec/models/symbol_query_spec.rb
1017
+ - spec/models/options_position_currency_spec.rb
1018
+ - spec/models/option_quote_greeks_spec.rb
1019
+ - spec/models/account_information_get_user_holdings409_response_spec.rb
1020
+ - spec/models/investment_account_spec.rb
1021
+ - spec/models/connection_account_spec.rb
1022
+ - spec/models/cfd_instrument_kind_spec.rb
1023
+ - spec/models/option_strategy_legs_inner_spec.rb
1024
+ - spec/models/model403_failed_request_response_spec.rb
1025
+ - spec/models/account_order_record_status_v2_spec.rb
1026
+ - spec/models/manual_trade_impact_spec.rb
1027
+ - spec/models/position_currency_spec.rb
1028
+ - spec/models/snap_trade_holdings_account_spec.rb
1029
+ - spec/models/account_balances_v2_response_cash_or_margin_spec.rb
1079
1030
  - spec/models/annuity_account_sync_status_spec.rb
1031
+ - spec/models/other_instrument_kind_spec.rb
1032
+ - spec/models/account_status_spec.rb
1033
+ - spec/models/account_order_record_option_symbol_spec.rb
1034
+ - spec/models/simple_trade_instrument_kind_spec.rb
1035
+ - spec/models/order_type_configuration_spec.rb
1036
+ - spec/models/account_order_price_effect_spec.rb
1037
+ - spec/models/cash_instrument_kind_spec.rb
1038
+ - spec/models/account_balance_total_spec.rb
1039
+ - spec/models/balance_spec.rb
1040
+ - spec/models/options_symbol_option_type_spec.rb
1041
+ - spec/models/crypto_trading_instrument_type_spec.rb
1042
+ - spec/models/cash_or_margin_spec.rb
1043
+ - spec/models/institution_connection_spec.rb
1044
+ - spec/models/account_order_time_in_force_spec.rb
1045
+ - spec/models/deposit_account_sync_status_spec.rb
1046
+ - spec/models/stop_limit_order_type_kind_spec.rb
1047
+ - spec/models/option_instrument_kind_spec.rb
1048
+ - spec/models/type_spec.rb
1049
+ - spec/models/activity_spec.rb
1050
+ - spec/models/connected_asset_partner_stats_spec.rb
1051
+ - spec/models/strategy_quotes_greek_spec.rb
1052
+ - spec/models/simple_trade_leg_spec.rb
1053
+ - spec/models/brokerage_type_spec.rb
1054
+ - spec/models/order_role_spec.rb
1080
1055
  - spec/models/brokerage_authorization_institution_spec.rb
1081
- - spec/models/snap_trade_holdings_total_value_spec.rb
1082
- - spec/models/option_leg_action_spec.rb
1083
- - spec/models/brokerage_spec.rb
1084
- - spec/models/performance_custom_spec.rb
1085
- - spec/models/instrument_spec.rb
1086
- - spec/models/trailing_stop_order_type_spec.rb
1087
- - spec/models/account_transactions_response_spec.rb
1056
+ - spec/models/account_universal_activity_currency_spec.rb
1057
+ - spec/models/account_order_record_universal_symbol_spec.rb
1058
+ - spec/models/trade_detection_subscription_spec.rb
1059
+ - spec/models/account_value_history_item_spec.rb
1060
+ - spec/models/balance_currency_spec.rb
1061
+ - spec/models/universal_activity_spec.rb
1062
+ - spec/models/login_redirect_uri_spec.rb
1063
+ - spec/models/trailing_stop_limit_order_type_kind_spec.rb
1064
+ - spec/models/session_event_spec.rb
1065
+ - spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
1066
+ - spec/models/connection_accounts_response_spec.rb
1088
1067
  - spec/models/status_spec.rb
1068
+ - spec/models/pagination_details_spec.rb
1069
+ - spec/models/strategy_order_record_status_spec.rb
1070
+ - spec/models/options_symbol_spec.rb
1071
+ - spec/models/simple_trade_leg_action_spec.rb
1072
+ - spec/models/rate_of_return_object_spec.rb
1073
+ - spec/models/model500_unexpected_exception_response_spec.rb
1074
+ - spec/models/connection_account_sync_status_spec.rb
1075
+ - spec/models/preferred_stock_instrument_kind_spec.rb
1076
+ - spec/models/snaptrade_spec.rb
1077
+ - spec/models/account_order_record_child_brokerage_order_ids_spec.rb
1078
+ - spec/models/account_sync_status_spec.rb
1079
+ - spec/models/account_order_record_status_spec.rb
1080
+ - spec/models/symbol_spec.rb
1081
+ - spec/models/trading_instrument_type_spec.rb
1082
+ - spec/models/tokenized_asset_instrument_spec.rb
1083
+ - spec/models/mleg_order_type_strict_spec.rb
1084
+ - spec/models/limit_order_type_spec.rb
1085
+ - spec/models/delete_user_response_spec.rb
1086
+ - spec/models/account_holdings_spec.rb
1087
+ - spec/models/account_transactions_response_spec.rb
1088
+ - spec/models/deposit_account_spec.rb
1089
+ - spec/models/future_option_instrument_spec.rb
1090
+ - spec/models/trailing_stop_limit_order_type_spec.rb
1091
+ - spec/models/o_auth_webhook_base_spec.rb
1092
+ - spec/models/other_order_type_kind_spec.rb
1093
+ - spec/models/account_order_record_spec.rb
1094
+ - spec/models/complex_order_response_spec.rb
1095
+ - spec/models/order_updated_response_spec.rb
1096
+ - spec/models/mleg_trade_form_spec.rb
1089
1097
  - spec/models/user_i_dand_secret_spec.rb
1090
- - spec/models/stock_instrument_kind_spec.rb
1091
- - spec/models/brokerage_authorization_type_read_only_type_spec.rb
1092
- - spec/models/manual_trade_form_complex_type_spec.rb
1093
- - spec/models/trade_detection_cancel_subscription_response_spec.rb
1094
- - spec/models/type_spec.rb
1095
- - spec/models/account_universal_activity_currency_spec.rb
1096
- - spec/models/snap_trade_holdings_account_spec.rb
1097
- - spec/models/option_strategy_spec.rb
1098
1098
  - spec/models/account_balances_v2_response_data_freshness_spec.rb
1099
- - spec/models/account_order_record_trailing_stop_spec.rb
1100
- - spec/models/option_leg_spec.rb
1099
+ - spec/models/brokerage_authorization_type_read_only_type_spec.rb
1100
+ - spec/models/model425_failed_request_response_spec.rb
1101
+ - spec/models/stop_limit_order_type_spec.rb
1102
+ - spec/models/tokenized_asset_instrument_kind_spec.rb
1103
+ - spec/models/symbols_quotes_inner_spec.rb
1104
+ - spec/models/account_information_get_user_account_order_detail_request_spec.rb
1105
+ - spec/models/all_account_orders_response_spec.rb
1106
+ - spec/models/trade_detection_cancel_subscription_request_spec.rb
1107
+ - spec/models/take_profit_spec.rb
1108
+ - spec/models/figi_instrument_spec.rb
1109
+ - spec/models/line_of_credit_account_sync_status_spec.rb
1110
+ - spec/models/brokerage_authorization_refresh_confirmation_spec.rb
1111
+ - spec/models/market_order_type_spec.rb
1112
+ - spec/models/manual_trade_symbol_spec.rb
1113
+ - spec/models/mutual_fund_instrument_spec.rb
1114
+ - spec/models/stop_loss_spec.rb
1115
+ - spec/models/partner_data_spec.rb
1116
+ - spec/models/line_of_credit_account_minimum_payment_amount_spec.rb
1117
+ - spec/models/crypto_order_preview_spec.rb
1101
1118
  - spec/models/action_strict_spec.rb
1102
- - spec/models/universal_activity_spec.rb
1103
- - spec/models/account_order_time_in_force_spec.rb
1104
- - spec/models/crypto_order_form_type_spec.rb
1105
- - spec/models/tax_lot_spec.rb
1106
- - spec/models/investment_account_net_value_spec.rb
1107
- - spec/models/model401_failed_request_response_spec.rb
1108
- - spec/models/account_universal_activity_spec.rb
1109
- - spec/models/account_order_record_option_symbol_spec.rb
1110
- - spec/models/account_order_record_quote_currency_spec.rb
1119
+ - spec/models/mleg_price_effect_strict_spec.rb
1120
+ - spec/models/action_strict_with_options_spec.rb
1121
+ - spec/models/timeframe_spec.rb
1122
+ - spec/models/underlying_symbol_spec.rb
1123
+ - spec/models/account_order_record_v2_spec.rb
1124
+ - spec/models/mortgage_account_sync_status_spec.rb
1125
+ - spec/models/trailing_stop_order_type_kind_spec.rb
1126
+ - spec/models/connection_account_status_spec.rb
1127
+ - spec/models/simple_trade_form_spec.rb
1128
+ - spec/models/simple_trade_form_order_type_spec.rb
1129
+ - spec/models/complex_order_leg_order_role_spec.rb
1130
+ - spec/models/manual_trade_form_with_options_spec.rb
1131
+ - spec/models/past_value_spec.rb
1111
1132
  - spec/models/brokerage_authorization_disabled_confirmation_spec.rb
1112
- - spec/models/cfd_instrument_kind_spec.rb
1113
- - spec/models/exchange_rate_pairs_spec.rb
1114
- - spec/models/connection_account_spec.rb
1115
- - spec/models/annuity_account_net_value_spec.rb
1116
- - spec/models/manual_trade_place_time_in_force_strict_spec.rb
1117
- - spec/models/manual_trade_and_impact_spec.rb
1118
- - spec/models/account_order_record_leg_spec.rb
1119
- - spec/models/manual_trade_balance_spec.rb
1120
- - spec/models/line_of_credit_account_minimum_payment_amount_spec.rb
1121
- - spec/models/account_spec.rb
1122
- - spec/models/crypto_trading_instrument_type_spec.rb
1123
- - spec/models/preferred_stock_instrument_spec.rb
1124
- - spec/models/line_of_credit_account_available_credit_spec.rb
1125
- - spec/models/trading_instrument_spec.rb
1126
- - spec/models/other_instrument_kind_spec.rb
1127
- - spec/models/child_brokerage_order_ids_spec.rb
1128
- - spec/models/account_simple_spec.rb
1129
- - spec/models/account_balances_v2_response_buying_power_inner_spec.rb
1130
- - spec/regression/all_account_positions_spec.rb
1131
1133
  - spec/regression/fixtures/all_account_positions.json
1134
+ - spec/regression/all_account_positions_spec.rb
1132
1135
  - spec/regression/request_signing_spec.rb
1133
1136
  - spec/spec_helper.rb