snaptrade 2.0.186 → 2.0.187

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: cd4322701e75c8d0af2ed0b015c1e525bd4fce27720cfab7babab3ed73368c41
4
- data.tar.gz: 3e9811048508415bd62640ae9ecf39a7839162495c054b613e049932fa8ebefe
3
+ metadata.gz: eb4521beb152b33455ba85fb0f22b57d4cb4f1112831c888c4aa47ca01347092
4
+ data.tar.gz: cabb03509707ea085af558908cdaf7f322feff23b2c96d771e2c4c06cbc0cfed
5
5
  SHA512:
6
- metadata.gz: d300944a9b5724d7f3de66b3d541f9b98ed6b17ac2e156fc8f384b557e9b730b01b96efa175676b7ebd74e4c30dde89f62dbdbec3ae7a1036645fccacf97930f
7
- data.tar.gz: 1fdb7e6ba9a4e79a83a7d2a5ac78c7f020d49e681e25a5d88a6184784273dffa7dddb6599f4b437231d166e6a892bc7bf71174d0e97d5a2a6d7054e3c3756fc2
6
+ metadata.gz: 6ca1520d727cffeb91dbcdbcd6fe3cdb6839dc45cceb06202750280dcd841c0822eac4049a835e99ecee9be2c3b80ed691ac087f7b211b71f8ab32fb6a2e32b0
7
+ data.tar.gz: 3f201b7383cc1b2b1929e0a5a2f8dec2941098de7de44c2e435178400c5e1c5a25545869920b84ac85dd433bbda854bbbe9eb576a81b83f23741bd4d647c93cc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.186)
4
+ snaptrade (2.0.187)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Connect brokerage accounts to your app for live positions and trading
8
8
 
9
- [![npm](https://img.shields.io/badge/gem-v2.0.186-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.186)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.187-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.187)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -90,7 +90,7 @@ Connect brokerage accounts to your app for live positions and trading
90
90
  Add to Gemfile:
91
91
 
92
92
  ```ruby
93
- gem 'snaptrade', '~> 2.0.186'
93
+ gem 'snaptrade', '~> 2.0.187'
94
94
  ```
95
95
 
96
96
  ## Getting Started<a id="getting-started"></a>
@@ -16,6 +16,12 @@ module SnapTrade
16
16
  # Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
17
17
  attr_accessor :brokerage_order_id
18
18
 
19
+ # The brokerage-assigned identifier that links all orders within a complex order (OCO, OTO, OTOCO) together. Null for non-complex orders or when the brokerage does not return a group identifier.
20
+ attr_accessor :brokerage_group_order_id
21
+
22
+ # The role of this order within a complex order group (OCO, OTO, OTOCO). Null for non-complex orders.
23
+ attr_accessor :order_role
24
+
19
25
  # Indicates the status of an order. SnapTrade does a best effort to map brokerage statuses to statuses in this enum. Possible values include: - NONE - PENDING - ACCEPTED - FAILED - REJECTED - CANCELED - PARTIAL_CANCELED - CANCEL_PENDING - EXECUTED - PARTIAL - REPLACE_PENDING - REPLACED - EXPIRED - QUEUED - TRIGGERED - ACTIVATED
20
26
  attr_accessor :status
21
27
 
@@ -80,6 +86,8 @@ module SnapTrade
80
86
  def self.attribute_map
81
87
  {
82
88
  :'brokerage_order_id' => :'brokerage_order_id',
89
+ :'brokerage_group_order_id' => :'brokerage_group_order_id',
90
+ :'order_role' => :'order_role',
83
91
  :'status' => :'status',
84
92
  :'universal_symbol' => :'universal_symbol',
85
93
  :'option_symbol' => :'option_symbol',
@@ -114,6 +122,8 @@ module SnapTrade
114
122
  def self.openapi_types
115
123
  {
116
124
  :'brokerage_order_id' => :'String',
125
+ :'brokerage_group_order_id' => :'String',
126
+ :'order_role' => :'OrderRole',
117
127
  :'status' => :'AccountOrderRecordStatus',
118
128
  :'universal_symbol' => :'AccountOrderRecordUniversalSymbol',
119
129
  :'option_symbol' => :'AccountOrderRecordOptionSymbol',
@@ -142,6 +152,8 @@ module SnapTrade
142
152
  # List of attributes with nullable: true
143
153
  def self.openapi_nullable
144
154
  Set.new([
155
+ :'brokerage_group_order_id',
156
+ :'order_role',
145
157
  :'total_quantity',
146
158
  :'open_quantity',
147
159
  :'canceled_quantity',
@@ -177,6 +189,14 @@ module SnapTrade
177
189
  self.brokerage_order_id = attributes[:'brokerage_order_id']
178
190
  end
179
191
 
192
+ if attributes.key?(:'brokerage_group_order_id')
193
+ self.brokerage_group_order_id = attributes[:'brokerage_group_order_id']
194
+ end
195
+
196
+ if attributes.key?(:'order_role')
197
+ self.order_role = attributes[:'order_role']
198
+ end
199
+
180
200
  if attributes.key?(:'status')
181
201
  self.status = attributes[:'status']
182
202
  end
@@ -285,6 +305,8 @@ module SnapTrade
285
305
  return true if self.equal?(o)
286
306
  self.class == o.class &&
287
307
  brokerage_order_id == o.brokerage_order_id &&
308
+ brokerage_group_order_id == o.brokerage_group_order_id &&
309
+ order_role == o.order_role &&
288
310
  status == o.status &&
289
311
  universal_symbol == o.universal_symbol &&
290
312
  option_symbol == o.option_symbol &&
@@ -318,7 +340,7 @@ module SnapTrade
318
340
  # Calculates hash code according to all attributes.
319
341
  # @return [Integer] Hash code
320
342
  def hash
321
- [brokerage_order_id, status, universal_symbol, option_symbol, quote_universal_symbol, quote_currency, action, total_quantity, open_quantity, canceled_quantity, filled_quantity, execution_price, limit_price, stop_price, trailing_stop, order_type, time_in_force, time_placed, time_updated, time_executed, expiry_date, symbol, child_brokerage_order_ids].hash
343
+ [brokerage_order_id, brokerage_group_order_id, order_role, status, universal_symbol, option_symbol, quote_universal_symbol, quote_currency, action, total_quantity, open_quantity, canceled_quantity, filled_quantity, execution_price, limit_price, stop_price, trailing_stop, order_type, time_in_force, time_placed, time_updated, time_executed, expiry_date, symbol, child_brokerage_order_ids].hash
322
344
  end
323
345
 
324
346
  # Builds the object from hash
@@ -16,6 +16,12 @@ module SnapTrade
16
16
  # Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
17
17
  attr_accessor :brokerage_order_id
18
18
 
19
+ # The brokerage-assigned identifier that links all orders within a complex order (OCO, OTO, OTOCO) together. Null for non-complex orders or when the brokerage does not return a group identifier.
20
+ attr_accessor :brokerage_group_order_id
21
+
22
+ # The role of this order within a complex order group (OCO, OTO, OTOCO). Null for non-complex orders.
23
+ attr_accessor :order_role
24
+
19
25
  # Indicates the status of an order. SnapTrade does a best effort to map brokerage statuses to statuses in this enum. Possible values include: - NONE - PENDING - ACCEPTED - FAILED - REJECTED - CANCELED - PARTIAL_CANCELED - CANCEL_PENDING - EXECUTED - PARTIAL - REPLACE_PENDING - REPLACED - EXPIRED - QUEUED - TRIGGERED - ACTIVATED
20
26
  attr_accessor :status
21
27
 
@@ -48,10 +54,34 @@ module SnapTrade
48
54
  # List of legs that make up the order.
49
55
  attr_accessor :legs
50
56
 
57
+ class EnumAttributeValidator
58
+ attr_reader :datatype
59
+ attr_reader :allowable_values
60
+
61
+ def initialize(datatype, allowable_values)
62
+ @allowable_values = allowable_values.map do |value|
63
+ case datatype.to_s
64
+ when /Integer/i
65
+ value.to_i
66
+ when /Float/i
67
+ value.to_f
68
+ else
69
+ value
70
+ end
71
+ end
72
+ end
73
+
74
+ def valid?(value)
75
+ !value || allowable_values.include?(value)
76
+ end
77
+ end
78
+
51
79
  # Attribute mapping from ruby-style variable name to JSON key.
52
80
  def self.attribute_map
53
81
  {
54
82
  :'brokerage_order_id' => :'brokerage_order_id',
83
+ :'brokerage_group_order_id' => :'brokerage_group_order_id',
84
+ :'order_role' => :'order_role',
55
85
  :'status' => :'status',
56
86
  :'order_type' => :'order_type',
57
87
  :'time_in_force' => :'time_in_force',
@@ -75,6 +105,8 @@ module SnapTrade
75
105
  def self.openapi_types
76
106
  {
77
107
  :'brokerage_order_id' => :'String',
108
+ :'brokerage_group_order_id' => :'String',
109
+ :'order_role' => :'String',
78
110
  :'status' => :'AccountOrderRecordStatus',
79
111
  :'order_type' => :'String',
80
112
  :'time_in_force' => :'String',
@@ -92,6 +124,8 @@ module SnapTrade
92
124
  # List of attributes with nullable: true
93
125
  def self.openapi_nullable
94
126
  Set.new([
127
+ :'brokerage_group_order_id',
128
+ :'order_role',
95
129
  :'order_type',
96
130
  :'time_executed',
97
131
  :'execution_price',
@@ -120,6 +154,14 @@ module SnapTrade
120
154
  self.brokerage_order_id = attributes[:'brokerage_order_id']
121
155
  end
122
156
 
157
+ if attributes.key?(:'brokerage_group_order_id')
158
+ self.brokerage_group_order_id = attributes[:'brokerage_group_order_id']
159
+ end
160
+
161
+ if attributes.key?(:'order_role')
162
+ self.order_role = attributes[:'order_role']
163
+ end
164
+
123
165
  if attributes.key?(:'status')
124
166
  self.status = attributes[:'status']
125
167
  end
@@ -177,15 +219,29 @@ module SnapTrade
177
219
  # Check to see if the all the properties in the model are valid
178
220
  # @return true if the model is valid
179
221
  def valid?
222
+ order_role_validator = EnumAttributeValidator.new('String', ["TRIGGER", "CONDITIONAL", "PEER"])
223
+ return false unless order_role_validator.valid?(@order_role)
180
224
  true
181
225
  end
182
226
 
227
+ # Custom attribute writer method checking allowed values (enum).
228
+ # @param [Object] order_role Object to be assigned
229
+ def order_role=(order_role)
230
+ validator = EnumAttributeValidator.new('String', ["TRIGGER", "CONDITIONAL", "PEER"])
231
+ unless validator.valid?(order_role)
232
+ fail ArgumentError, "invalid value for \"order_role\", must be one of #{validator.allowable_values}."
233
+ end
234
+ @order_role = order_role
235
+ end
236
+
183
237
  # Checks equality by comparing each attribute.
184
238
  # @param [Object] Object to be compared
185
239
  def ==(o)
186
240
  return true if self.equal?(o)
187
241
  self.class == o.class &&
188
242
  brokerage_order_id == o.brokerage_order_id &&
243
+ brokerage_group_order_id == o.brokerage_group_order_id &&
244
+ order_role == o.order_role &&
189
245
  status == o.status &&
190
246
  order_type == o.order_type &&
191
247
  time_in_force == o.time_in_force &&
@@ -208,7 +264,7 @@ module SnapTrade
208
264
  # Calculates hash code according to all attributes.
209
265
  # @return [Integer] Hash code
210
266
  def hash
211
- [brokerage_order_id, status, order_type, time_in_force, time_placed, time_executed, quote_currency, execution_price, limit_price, stop_price, trailing_stop, legs].hash
267
+ [brokerage_order_id, brokerage_group_order_id, order_role, status, order_type, time_in_force, time_placed, time_executed, quote_currency, execution_price, limit_price, stop_price, trailing_stop, legs].hash
212
268
  end
213
269
 
214
270
  # Builds the object from hash
@@ -58,7 +58,7 @@ module SnapTrade
58
58
  # Attribute type mapping.
59
59
  def self.openapi_types
60
60
  {
61
- :'order_role' => :'OrderRole',
61
+ :'order_role' => :'ComplexOrderLegOrderRole',
62
62
  :'action' => :'ActionStrict',
63
63
  :'instrument' => :'TradingInstrument',
64
64
  :'order_type' => :'OrderTypeStrict',
@@ -0,0 +1,38 @@
1
+ =begin
2
+ #SnapTrade
3
+
4
+ #Connect brokerage accounts to your app for live positions and trading
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 ComplexOrderLegOrderRole
15
+ TRIGGER = "TRIGGER".freeze
16
+ CONDITIONAL = "CONDITIONAL".freeze
17
+ PEER = "PEER".freeze
18
+
19
+ def self.all_vars
20
+ @all_vars ||= [TRIGGER, CONDITIONAL, PEER].freeze
21
+ end
22
+
23
+ # Builds the enum from string
24
+ # @param [String] The enum value in the form of the string
25
+ # @return [String] The enum value
26
+ def self.build_from_hash(value)
27
+ new.build_from_hash(value)
28
+ end
29
+
30
+ # Builds the enum from string
31
+ # @param [String] The enum value in the form of the string
32
+ # @return [String] The enum value
33
+ def build_from_hash(value)
34
+ return value if ComplexOrderLegOrderRole.all_vars.include?(value)
35
+ raise "Invalid ENUM value #{value} for class #ComplexOrderLegOrderRole"
36
+ end
37
+ end
38
+ end
@@ -15,6 +15,12 @@ module SnapTrade
15
15
  # Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
16
16
  attr_accessor :brokerage_order_id
17
17
 
18
+ # The brokerage-assigned identifier that links all orders within a complex order (OCO, OTO, OTOCO) together. Null for non-complex orders or when the brokerage does not return a group identifier.
19
+ attr_accessor :brokerage_group_order_id
20
+
21
+ # The role of this order within a complex order group (OCO, OTO, OTOCO). Null for non-complex orders.
22
+ attr_accessor :order_role
23
+
18
24
  # Indicates the status of an order. SnapTrade does a best effort to map brokerage statuses to statuses in this enum. Possible values include: - NONE - PENDING - ACCEPTED - FAILED - REJECTED - CANCELED - PARTIAL_CANCELED - CANCEL_PENDING - EXECUTED - PARTIAL - REPLACE_PENDING - REPLACED - EXPIRED - QUEUED - TRIGGERED - ACTIVATED
19
25
  attr_accessor :status
20
26
 
@@ -79,6 +85,8 @@ module SnapTrade
79
85
  def self.attribute_map
80
86
  {
81
87
  :'brokerage_order_id' => :'brokerage_order_id',
88
+ :'brokerage_group_order_id' => :'brokerage_group_order_id',
89
+ :'order_role' => :'order_role',
82
90
  :'status' => :'status',
83
91
  :'universal_symbol' => :'universal_symbol',
84
92
  :'option_symbol' => :'option_symbol',
@@ -113,6 +121,8 @@ module SnapTrade
113
121
  def self.openapi_types
114
122
  {
115
123
  :'brokerage_order_id' => :'String',
124
+ :'brokerage_group_order_id' => :'String',
125
+ :'order_role' => :'OrderRole',
116
126
  :'status' => :'AccountOrderRecordStatus',
117
127
  :'universal_symbol' => :'AccountOrderRecordUniversalSymbol',
118
128
  :'option_symbol' => :'AccountOrderRecordOptionSymbol',
@@ -141,6 +151,8 @@ module SnapTrade
141
151
  # List of attributes with nullable: true
142
152
  def self.openapi_nullable
143
153
  Set.new([
154
+ :'brokerage_group_order_id',
155
+ :'order_role',
144
156
  :'total_quantity',
145
157
  :'open_quantity',
146
158
  :'canceled_quantity',
@@ -183,6 +195,14 @@ module SnapTrade
183
195
  self.brokerage_order_id = attributes[:'brokerage_order_id']
184
196
  end
185
197
 
198
+ if attributes.key?(:'brokerage_group_order_id')
199
+ self.brokerage_group_order_id = attributes[:'brokerage_group_order_id']
200
+ end
201
+
202
+ if attributes.key?(:'order_role')
203
+ self.order_role = attributes[:'order_role']
204
+ end
205
+
186
206
  if attributes.key?(:'status')
187
207
  self.status = attributes[:'status']
188
208
  end
@@ -291,6 +311,8 @@ module SnapTrade
291
311
  return true if self.equal?(o)
292
312
  self.class == o.class &&
293
313
  brokerage_order_id == o.brokerage_order_id &&
314
+ brokerage_group_order_id == o.brokerage_group_order_id &&
315
+ order_role == o.order_role &&
294
316
  status == o.status &&
295
317
  universal_symbol == o.universal_symbol &&
296
318
  option_symbol == o.option_symbol &&
@@ -324,7 +346,7 @@ module SnapTrade
324
346
  # Calculates hash code according to all attributes.
325
347
  # @return [Integer] Hash code
326
348
  def hash
327
- [brokerage_order_id, status, universal_symbol, option_symbol, quote_universal_symbol, quote_currency, action, total_quantity, open_quantity, canceled_quantity, filled_quantity, execution_price, limit_price, stop_price, trailing_stop, order_type, time_in_force, time_placed, time_updated, time_executed, expiry_date, symbol, child_brokerage_order_ids].hash
349
+ [brokerage_order_id, brokerage_group_order_id, order_role, status, universal_symbol, option_symbol, quote_universal_symbol, quote_currency, action, total_quantity, open_quantity, canceled_quantity, filled_quantity, execution_price, limit_price, stop_price, trailing_stop, order_type, time_in_force, time_placed, time_updated, time_executed, expiry_date, symbol, child_brokerage_order_ids].hash
328
350
  end
329
351
 
330
352
  # Builds the object from hash
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '2.0.186'
11
+ VERSION = '2.0.187'
12
12
  end
data/lib/snaptrade.rb CHANGED
@@ -68,6 +68,7 @@ require 'snaptrade/models/cancel_order_response'
68
68
  require 'snaptrade/models/cash_change_direction'
69
69
  require 'snaptrade/models/child_brokerage_order_ids'
70
70
  require 'snaptrade/models/complex_order_leg'
71
+ require 'snaptrade/models/complex_order_leg_order_role'
71
72
  require 'snaptrade/models/complex_order_response'
72
73
  require 'snaptrade/models/complex_order_response_type'
73
74
  require 'snaptrade/models/connection_portal_version'
@@ -26,6 +26,18 @@ describe SnapTrade::AccountOrderRecord do
26
26
  end
27
27
  end
28
28
 
29
+ describe 'test attribute "brokerage_group_order_id"' do
30
+ it 'should work' do
31
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ end
33
+ end
34
+
35
+ describe 'test attribute "order_role"' 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
+
29
41
  describe 'test attribute "status"' do
30
42
  it 'should work' do
31
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -26,6 +26,22 @@ describe SnapTrade::AccountOrderRecordV2 do
26
26
  end
27
27
  end
28
28
 
29
+ describe 'test attribute "brokerage_group_order_id"' do
30
+ it 'should work' do
31
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ end
33
+ end
34
+
35
+ describe 'test attribute "order_role"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["TRIGGER", "CONDITIONAL", "PEER"])
39
+ # validator.allowable_values.each do |value|
40
+ # expect { instance.order_role = value }.not_to raise_error
41
+ # end
42
+ end
43
+ end
44
+
29
45
  describe 'test attribute "status"' do
30
46
  it 'should work' do
31
47
  # 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
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::ComplexOrderLegOrderRole
15
+ describe SnapTrade::ComplexOrderLegOrderRole do
16
+ let(:instance) { SnapTrade::ComplexOrderLegOrderRole.new }
17
+
18
+ describe 'test an instance of ComplexOrderLegOrderRole' do
19
+ it 'should create an instance of ComplexOrderLegOrderRole' do
20
+ expect(instance).to be_instance_of(SnapTrade::ComplexOrderLegOrderRole)
21
+ end
22
+ end
23
+ end
@@ -26,6 +26,18 @@ describe SnapTrade::OrderUpdatedResponseOrder do
26
26
  end
27
27
  end
28
28
 
29
+ describe 'test attribute "brokerage_group_order_id"' do
30
+ it 'should work' do
31
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ end
33
+ end
34
+
35
+ describe 'test attribute "order_role"' 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
+
29
41
  describe 'test attribute "status"' do
30
42
  it 'should work' do
31
43
  # 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: 2.0.186
4
+ version: 2.0.187
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
@@ -148,6 +148,7 @@ files:
148
148
  - lib/snaptrade/models/cash_change_direction.rb
149
149
  - lib/snaptrade/models/child_brokerage_order_ids.rb
150
150
  - lib/snaptrade/models/complex_order_leg.rb
151
+ - lib/snaptrade/models/complex_order_leg_order_role.rb
151
152
  - lib/snaptrade/models/complex_order_response.rb
152
153
  - lib/snaptrade/models/complex_order_response_type.rb
153
154
  - lib/snaptrade/models/connection_portal_version.rb
@@ -359,6 +360,7 @@ files:
359
360
  - spec/models/cancel_order_response_spec.rb
360
361
  - spec/models/cash_change_direction_spec.rb
361
362
  - spec/models/child_brokerage_order_ids_spec.rb
363
+ - spec/models/complex_order_leg_order_role_spec.rb
362
364
  - spec/models/complex_order_leg_spec.rb
363
365
  - spec/models/complex_order_response_spec.rb
364
366
  - spec/models/complex_order_response_type_spec.rb
@@ -533,214 +535,215 @@ signing_key:
533
535
  specification_version: 4
534
536
  summary: SnapTrade Ruby Gem
535
537
  test_files:
538
+ - spec/api/options_api_spec.rb
536
539
  - spec/api/api_status_api_spec.rb
540
+ - spec/api/reference_data_api_spec.rb
541
+ - spec/api/trading_api_spec.rb
542
+ - spec/api/transactions_and_reporting_api_spec.rb
537
543
  - spec/api/connections_api_spec.rb
538
544
  - spec/api/authentication_api_spec.rb
539
- - spec/api/account_information_api_spec.rb
540
545
  - spec/api/experimental_endpoints_api_spec.rb
541
- - spec/api/trading_api_spec.rb
542
- - spec/api/transactions_and_reporting_api_spec.rb
543
- - spec/api/options_api_spec.rb
544
- - spec/api/reference_data_api_spec.rb
546
+ - spec/api/account_information_api_spec.rb
545
547
  - spec/api_client_spec.rb
546
548
  - spec/configuration_spec.rb
547
549
  - spec/getting_started_spec.rb
548
- - spec/models/model403_failed_request_response_spec.rb
549
- - spec/models/brokerage_authorization_spec.rb
550
- - spec/models/timeframe_spec.rb
551
- - spec/models/brokerage_authorization_type_read_only_spec.rb
552
- - spec/models/authentication_login_snap_trade_user200_response_spec.rb
553
- - spec/models/stock_instrument_spec.rb
554
- - spec/models/complex_order_response_spec.rb
555
- - spec/models/account_balance_total_spec.rb
556
- - spec/models/position_currency_spec.rb
557
- - spec/models/cryptocurrency_pair_quote_spec.rb
550
+ - spec/models/brokerage_authorization_refresh_confirmation_spec.rb
551
+ - spec/models/universal_activity_spec.rb
552
+ - spec/models/strategy_order_record_spec.rb
558
553
  - spec/models/balance_spec.rb
559
- - spec/models/exchange_rate_pairs_spec.rb
560
- - spec/models/account_order_record_spec.rb
561
- - spec/models/account_order_record_option_symbol_spec.rb
562
- - spec/models/account_order_record_leg_spec.rb
563
- - spec/models/type_spec.rb
564
- - spec/models/account_order_record_status_spec.rb
554
+ - spec/models/mleg_trading_instrument_spec.rb
555
+ - spec/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner_spec.rb
556
+ - spec/models/net_dividend_spec.rb
557
+ - spec/models/account_order_record_universal_symbol_spec.rb
558
+ - spec/models/validated_trade_body_spec.rb
559
+ - spec/models/manual_trade_form_notional_value_spec.rb
560
+ - spec/models/crypto_order_preview_spec.rb
561
+ - spec/models/strategy_order_record_status_spec.rb
562
+ - spec/models/manual_trade_spec.rb
563
+ - spec/models/brokerage_spec.rb
564
+ - spec/models/account_information_get_user_account_order_detail_request_spec.rb
565
+ - spec/models/complex_order_leg_spec.rb
566
+ - spec/models/option_chain_inner_spec.rb
565
567
  - spec/models/session_event_spec.rb
566
- - spec/models/model403_feature_not_enabled_response_spec.rb
567
- - spec/models/option_instrument_spec.rb
568
- - spec/models/transactions_status_spec.rb
569
- - spec/models/option_type_spec.rb
570
- - spec/models/manual_trade_impact_spec.rb
571
- - spec/models/model404_failed_request_response_spec.rb
572
- - spec/models/stop_loss_spec.rb
573
- - spec/models/crypto_trading_instrument_spec.rb
574
- - spec/models/manual_trade_form_complex_spec.rb
575
- - spec/models/exchange_spec.rb
576
- - spec/models/options_position_currency_spec.rb
577
- - spec/models/option_leg_action_spec.rb
578
- - spec/models/delete_connection_confirmation_spec.rb
579
- - spec/models/crypto_trading_instrument_type_spec.rb
580
- - spec/models/position_symbol_spec.rb
581
- - spec/models/crypto_order_form_spec.rb
568
+ - spec/models/rate_of_return_response_spec.rb
569
+ - spec/models/model400_failed_request_response_spec.rb
582
570
  - spec/models/strategy_quotes_spec.rb
583
- - spec/models/crypto_order_form_time_in_force_spec.rb
584
- - spec/models/mleg_leg_spec.rb
585
- - spec/models/strategy_quotes_greek_spec.rb
586
- - spec/models/all_account_positions_response_spec.rb
587
- - spec/models/account_information_get_user_account_order_detail_request_spec.rb
588
- - spec/models/crypto_order_form_type_spec.rb
589
- - spec/models/delete_user_response_spec.rb
590
- - spec/models/model425_failed_request_response_spec.rb
591
- - spec/models/mleg_trading_instrument_spec.rb
592
- - spec/models/notional_value_spec.rb
593
- - spec/models/option_brokerage_symbol_spec.rb
571
+ - spec/models/brokerage_authorization_disabled_confirmation_spec.rb
572
+ - spec/models/account_value_history_item_spec.rb
573
+ - spec/models/brokerage_type_spec.rb
574
+ - spec/models/action_strict_spec.rb
575
+ - spec/models/account_spec.rb
576
+ - spec/models/us_exchange_spec.rb
577
+ - spec/models/account_order_record_leg_instrument_spec.rb
578
+ - spec/models/account_orders_v2_response_spec.rb
579
+ - spec/models/stock_instrument_figi_instrument_spec.rb
580
+ - spec/models/mleg_trade_form_spec.rb
581
+ - spec/models/complex_order_response_spec.rb
582
+ - spec/models/account_sync_status_spec.rb
583
+ - spec/models/order_updated_response_order_spec.rb
584
+ - spec/models/trading_instrument_type_spec.rb
585
+ - spec/models/order_type_strict_spec.rb
594
586
  - spec/models/account_order_record_child_brokerage_order_ids_spec.rb
595
- - spec/models/account_order_record_status_v2_spec.rb
587
+ - spec/models/position_spec.rb
588
+ - spec/models/all_account_positions_response_spec.rb
589
+ - spec/models/authentication_login_snap_trade_user200_response_spec.rb
590
+ - spec/models/currency_spec.rb
591
+ - spec/models/connections_session_events200_response_inner_spec.rb
592
+ - spec/models/account_order_record_quote_universal_symbol_spec.rb
593
+ - spec/models/position_symbol_spec.rb
594
+ - spec/models/crypto_instrument_kind_spec.rb
595
+ - spec/models/connection_type_spec.rb
596
+ - spec/models/etf_instrument_kind_spec.rb
596
597
  - spec/models/manual_trade_form_with_options_spec.rb
597
- - spec/models/pagination_details_spec.rb
598
- - spec/models/brokerage_instruments_response_spec.rb
599
- - spec/models/mleg_order_type_strict_spec.rb
600
- - spec/models/complex_order_leg_spec.rb
601
- - spec/models/crypto_order_preview_estimated_fee_spec.rb
602
- - spec/models/stock_instrument_figi_instrument_spec.rb
603
- - spec/models/us_exchange_spec.rb
598
+ - spec/models/kind_spec.rb
599
+ - spec/models/order_updated_response_spec.rb
600
+ - spec/models/manual_trade_and_impact_spec.rb
601
+ - spec/models/crypto_instrument_spec.rb
602
+ - spec/models/model403_feature_not_enabled_response_spec.rb
603
+ - spec/models/mleg_order_response_spec.rb
604
+ - spec/models/option_quote_greeks_spec.rb
605
+ - spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
606
+ - spec/models/complex_order_leg_order_role_spec.rb
607
+ - spec/models/take_profit_spec.rb
608
+ - spec/models/manual_trade_form_spec.rb
609
+ - spec/models/account_holdings_account_spec.rb
604
610
  - spec/models/net_contributions_spec.rb
611
+ - spec/models/trailing_stop_spec.rb
612
+ - spec/models/option_strategy_legs_inner_spec.rb
613
+ - spec/models/account_balance_total_spec.rb
605
614
  - spec/models/future_instrument_kind_spec.rb
606
- - spec/models/account_spec.rb
607
- - spec/models/manual_trade_balance_spec.rb
608
- - spec/models/brokerage_authorization_refresh_confirmation_spec.rb
609
- - spec/models/symbol_exchange_spec.rb
610
- - spec/models/manual_trade_form_bracket_spec.rb
615
+ - spec/models/account_order_record_status_v2_spec.rb
616
+ - spec/models/brokerage_authorization_spec.rb
617
+ - spec/models/encrypted_response_spec.rb
611
618
  - spec/models/account_category_spec.rb
612
- - spec/models/model400_failed_request_response_spec.rb
613
- - spec/models/option_quote_greeks_spec.rb
614
- - spec/models/complex_order_response_type_spec.rb
615
- - spec/models/strategy_order_record_status_spec.rb
616
- - spec/models/model500_unexpected_exception_response_spec.rb
617
- - spec/models/simple_order_form_time_in_force_spec.rb
618
- - spec/models/option_chain_inner_spec.rb
619
- - spec/models/action_strict_spec.rb
620
- - spec/models/connection_portal_version_spec.rb
621
- - spec/models/trading_instrument_spec.rb
622
- - spec/models/trading_session_spec.rb
623
- - spec/models/position_spec.rb
619
+ - spec/models/symbol_query_spec.rb
620
+ - spec/models/sub_period_return_rate_spec.rb
621
+ - spec/models/paginated_universal_activity_spec.rb
624
622
  - spec/models/mleg_instrument_type_spec.rb
625
- - spec/models/encrypted_response_spec.rb
626
- - spec/models/monthly_dividends_spec.rb
627
- - spec/models/option_impact_spec.rb
628
- - spec/models/validated_trade_body_spec.rb
629
- - spec/models/kind_spec.rb
630
- - spec/models/account_sync_status_spec.rb
631
- - spec/models/simple_order_form_type_spec.rb
632
- - spec/models/underlying_option_instrument_spec.rb
633
- - spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
634
- - spec/models/mleg_order_response_spec.rb
635
- - spec/models/etf_instrument_spec.rb
636
- - spec/models/options_symbol_spec.rb
637
- - spec/models/connections_session_events200_response_inner_spec.rb
623
+ - spec/models/brokerage_authorization_type_read_only_spec.rb
624
+ - spec/models/snap_trade_login_user_request_body_spec.rb
625
+ - spec/models/security_type_spec.rb
626
+ - spec/models/future_instrument_spec.rb
627
+ - spec/models/manual_trade_form_complex_spec.rb
638
628
  - spec/models/cryptocurrency_pair_spec.rb
639
- - spec/models/model402_brokerage_auth_disabled_response_spec.rb
640
- - spec/models/net_dividend_spec.rb
641
- - spec/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner_spec.rb
642
- - spec/models/account_balance_spec.rb
643
- - spec/models/encrypted_response_encrypted_message_data_spec.rb
644
- - spec/models/account_status_spec.rb
645
- - spec/models/manual_trade_form_notional_value_spec.rb
646
- - spec/models/figi_instrument_spec.rb
647
- - spec/models/account_value_history_item_spec.rb
629
+ - spec/models/model500_unexpected_exception_response_spec.rb
630
+ - spec/models/stock_instrument_spec.rb
648
631
  - spec/models/snap_trade_holdings_account_spec.rb
649
- - spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
650
- - spec/models/simple_order_form_spec.rb
651
- - spec/models/status_spec.rb
652
- - spec/models/brokerage_type_spec.rb
632
+ - spec/models/complex_order_response_type_spec.rb
633
+ - spec/models/encrypted_response_encrypted_message_data_spec.rb
634
+ - spec/models/mleg_order_type_strict_spec.rb
635
+ - spec/models/account_value_history_response_spec.rb
653
636
  - spec/models/other_instrument_spec.rb
654
- - spec/models/holdings_status_spec.rb
655
- - spec/models/cash_change_direction_spec.rb
656
- - spec/models/account_universal_activity_spec.rb
657
- - spec/models/underlying_symbol_exchange_spec.rb
658
- - spec/models/session_event_type_spec.rb
659
- - spec/models/child_brokerage_order_ids_spec.rb
660
- - spec/models/manual_trade_form_spec.rb
661
- - spec/models/partner_data_spec.rb
637
+ - spec/models/order_role_spec.rb
638
+ - spec/models/transactions_status_spec.rb
639
+ - spec/models/balance_currency_spec.rb
640
+ - spec/models/options_symbol_spec.rb
641
+ - spec/models/account_universal_activity_symbol_spec.rb
642
+ - spec/models/tax_lot_spec.rb
643
+ - spec/models/crypto_order_form_type_spec.rb
644
+ - spec/models/strategy_type_spec.rb
645
+ - spec/models/mleg_action_strict_spec.rb
646
+ - spec/models/account_status_spec.rb
647
+ - spec/models/delete_user_response_spec.rb
648
+ - spec/models/option_brokerage_symbol_spec.rb
662
649
  - spec/models/account_universal_activity_option_symbol_spec.rb
663
- - spec/models/option_quote_spec.rb
664
- - spec/models/action_strict_with_options_spec.rb
650
+ - spec/models/underlying_symbol_spec.rb
651
+ - spec/models/auth_type_spec.rb
652
+ - spec/models/cash_change_direction_spec.rb
653
+ - spec/models/manual_trade_replace_form_spec.rb
665
654
  - spec/models/login_redirect_uri_spec.rb
666
- - spec/models/snap_trade_login_user_request_body_spec.rb
667
- - spec/models/recent_orders_response_spec.rb
668
- - spec/models/crypto_instrument_kind_spec.rb
669
- - spec/models/symbol_currency_spec.rb
670
- - spec/models/account_universal_activity_currency_spec.rb
671
- - spec/models/crypto_instrument_spec.rb
655
+ - spec/models/exchange_spec.rb
656
+ - spec/models/account_holdings_spec.rb
657
+ - spec/models/action_strict_with_options_spec.rb
658
+ - spec/models/account_order_record_spec.rb
659
+ - spec/models/holdings_status_spec.rb
660
+ - spec/models/symbol_spec.rb
661
+ - spec/models/mleg_leg_spec.rb
662
+ - spec/models/child_brokerage_order_ids_spec.rb
663
+ - spec/models/manual_trade_impact_spec.rb
672
664
  - spec/models/cancel_order_response_spec.rb
673
- - spec/models/brokerage_authorization_type_read_only_type_spec.rb
674
665
  - spec/models/account_order_record_quote_currency_spec.rb
666
+ - spec/models/account_universal_activity_currency_spec.rb
667
+ - spec/models/universal_symbol_spec.rb
668
+ - spec/models/simple_order_form_time_in_force_spec.rb
669
+ - spec/models/model403_failed_request_response_spec.rb
670
+ - spec/models/crypto_order_preview_estimated_fee_spec.rb
671
+ - spec/models/timeframe_spec.rb
672
+ - spec/models/crypto_trading_instrument_spec.rb
673
+ - spec/models/brokerage_authorization_transactions_sync_confirmation_spec.rb
674
+ - spec/models/account_position_spec.rb
675
+ - spec/models/status_spec.rb
675
676
  - spec/models/other_instrument_kind_spec.rb
676
- - spec/models/symbol_query_spec.rb
677
- - spec/models/mleg_trade_form_spec.rb
678
- - spec/models/dividend_at_date_spec.rb
679
- - spec/models/snap_trade_register_user_request_body_spec.rb
680
- - spec/models/account_order_record_v2_spec.rb
681
- - spec/models/option_strategy_spec.rb
682
- - spec/models/security_type_spec.rb
683
- - spec/models/account_order_record_universal_symbol_spec.rb
684
- - spec/models/balance_currency_spec.rb
685
- - spec/models/option_strategy_legs_inner_spec.rb
686
- - spec/models/account_value_history_response_spec.rb
687
- - spec/models/option_chain_inner_chain_per_root_inner_spec.rb
677
+ - spec/models/rate_of_return_object_spec.rb
678
+ - spec/models/account_order_record_trailing_stop_spec.rb
679
+ - spec/models/etf_instrument_spec.rb
680
+ - spec/models/performance_custom_spec.rb
681
+ - spec/models/option_leg_spec.rb
682
+ - spec/models/simple_order_form_spec.rb
683
+ - spec/models/brokerage_instrument_spec.rb
684
+ - spec/models/session_event_type_spec.rb
685
+ - spec/models/position_currency_spec.rb
686
+ - spec/models/figi_instrument_spec.rb
687
+ - spec/models/brokerage_authorization_type_read_only_type_spec.rb
688
+ - spec/models/instrument_spec.rb
689
+ - spec/models/notional_value_spec.rb
690
+ - spec/models/partner_data_spec.rb
691
+ - spec/models/account_simple_spec.rb
692
+ - spec/models/model404_failed_request_response_spec.rb
693
+ - spec/models/account_order_record_leg_spec.rb
694
+ - spec/models/manual_trade_form_bracket_spec.rb
688
695
  - spec/models/options_position_spec.rb
696
+ - spec/models/model425_failed_request_response_spec.rb
697
+ - spec/models/option_strategy_spec.rb
698
+ - spec/models/crypto_trading_instrument_type_spec.rb
689
699
  - spec/models/mleg_price_effect_strict_spec.rb
690
- - spec/models/take_profit_spec.rb
691
- - spec/models/account_simple_spec.rb
692
- - spec/models/account_order_record_leg_instrument_spec.rb
693
- - spec/models/mleg_action_strict_spec.rb
694
- - spec/models/strategy_order_record_spec.rb
695
- - spec/models/order_type_strict_spec.rb
696
- - spec/models/brokerage_authorization_transactions_sync_confirmation_spec.rb
697
- - spec/models/model401_failed_request_response_spec.rb
698
- - spec/models/performance_custom_spec.rb
699
- - spec/models/connection_type_spec.rb
700
- - spec/models/symbol_spec.rb
701
- - spec/models/manual_trade_and_impact_spec.rb
702
- - spec/models/future_instrument_spec.rb
703
- - spec/models/tax_lot_spec.rb
704
- - spec/models/manual_trade_spec.rb
705
- - spec/models/account_orders_v2_response_spec.rb
706
- - spec/models/user_i_dand_secret_spec.rb
700
+ - spec/models/option_leg_action_spec.rb
701
+ - spec/models/underlying_option_instrument_spec.rb
702
+ - spec/models/model402_brokerage_auth_disabled_response_spec.rb
703
+ - spec/models/delete_connection_confirmation_spec.rb
704
+ - spec/models/account_order_record_v2_spec.rb
707
705
  - spec/models/options_symbol_option_type_spec.rb
708
- - spec/models/instrument_spec.rb
709
- - spec/models/manual_trade_replace_form_spec.rb
710
- - spec/models/option_leg_spec.rb
711
- - spec/models/order_updated_response_spec.rb
712
- - spec/models/strategy_type_spec.rb
713
- - spec/models/underlying_symbol_type_spec.rb
714
- - spec/models/sub_period_return_rate_spec.rb
715
- - spec/models/underlying_symbol_spec.rb
716
- - spec/models/manual_trade_symbol_spec.rb
717
- - spec/models/universal_activity_spec.rb
718
- - spec/models/auth_type_spec.rb
719
- - spec/models/account_order_record_quote_universal_symbol_spec.rb
706
+ - spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
720
707
  - spec/models/manual_trade_form_complex_type_spec.rb
721
- - spec/models/rate_of_return_object_spec.rb
722
- - spec/models/option_instrument_kind_spec.rb
723
- - spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
724
- - spec/models/account_position_spec.rb
725
- - spec/models/brokerage_instrument_spec.rb
726
- - spec/models/order_updated_response_order_spec.rb
727
- - spec/models/etf_instrument_kind_spec.rb
728
- - spec/models/brokerage_authorization_disabled_confirmation_spec.rb
729
- - spec/models/brokerage_spec.rb
730
- - spec/models/crypto_order_preview_spec.rb
731
- - spec/models/order_role_spec.rb
732
- - spec/models/account_holdings_account_spec.rb
733
- - spec/models/symbols_quotes_inner_spec.rb
734
- - spec/models/paginated_universal_activity_spec.rb
735
- - spec/models/trading_instrument_type_spec.rb
736
- - spec/models/rate_of_return_response_spec.rb
737
- - spec/models/currency_spec.rb
738
- - spec/models/account_holdings_spec.rb
708
+ - spec/models/snap_trade_register_user_request_body_spec.rb
709
+ - spec/models/trading_session_spec.rb
710
+ - spec/models/recent_orders_response_spec.rb
711
+ - spec/models/strategy_quotes_greek_spec.rb
712
+ - spec/models/option_quote_spec.rb
713
+ - spec/models/underlying_symbol_type_spec.rb
714
+ - spec/models/crypto_order_form_time_in_force_spec.rb
739
715
  - spec/models/time_in_force_strict_spec.rb
740
- - spec/models/account_order_record_trailing_stop_spec.rb
741
- - spec/models/trailing_stop_spec.rb
716
+ - spec/models/manual_trade_balance_spec.rb
717
+ - spec/models/pagination_details_spec.rb
718
+ - spec/models/options_position_currency_spec.rb
719
+ - spec/models/option_instrument_spec.rb
720
+ - spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
721
+ - spec/models/stop_loss_spec.rb
722
+ - spec/models/monthly_dividends_spec.rb
723
+ - spec/models/symbols_quotes_inner_spec.rb
742
724
  - spec/models/past_value_spec.rb
743
- - spec/models/account_universal_activity_symbol_spec.rb
744
- - spec/models/universal_symbol_spec.rb
725
+ - spec/models/user_i_dand_secret_spec.rb
726
+ - spec/models/crypto_order_form_spec.rb
727
+ - spec/models/account_balance_spec.rb
728
+ - spec/models/option_chain_inner_chain_per_root_inner_spec.rb
729
+ - spec/models/manual_trade_symbol_spec.rb
730
+ - spec/models/account_order_record_option_symbol_spec.rb
731
+ - spec/models/option_type_spec.rb
732
+ - spec/models/option_instrument_kind_spec.rb
733
+ - spec/models/trading_instrument_spec.rb
734
+ - spec/models/type_spec.rb
735
+ - spec/models/symbol_exchange_spec.rb
736
+ - spec/models/brokerage_instruments_response_spec.rb
737
+ - spec/models/model401_failed_request_response_spec.rb
738
+ - spec/models/symbol_currency_spec.rb
739
+ - spec/models/account_order_record_status_spec.rb
740
+ - spec/models/exchange_rate_pairs_spec.rb
741
+ - spec/models/simple_order_form_type_spec.rb
742
+ - spec/models/option_impact_spec.rb
743
+ - spec/models/cryptocurrency_pair_quote_spec.rb
744
+ - spec/models/account_universal_activity_spec.rb
745
+ - spec/models/connection_portal_version_spec.rb
745
746
  - spec/models/snap_trade_holdings_total_value_spec.rb
747
+ - spec/models/underlying_symbol_exchange_spec.rb
748
+ - spec/models/dividend_at_date_spec.rb
746
749
  - spec/spec_helper.rb