snaptrade 3.0.5 → 3.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/snaptrade/models/o_auth_webhook_base.rb +341 -0
- data/lib/snaptrade/models/schema_version.rb +36 -0
- data/lib/snaptrade/version.rb +1 -1
- data/lib/snaptrade.rb +2 -0
- data/spec/models/o_auth_webhook_base_spec.rb +89 -0
- data/spec/models/schema_version_spec.rb +23 -0
- metadata +214 -208
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 33ffcead2b0b233863ba95f328820529c973e1896daeaf094057d1b622bbc0e4
|
|
4
|
+
data.tar.gz: 5b5cbe5195457fc1d3a474555d67f949d35e3c9d9cadae4a4063f1e4410c7677
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 228ff904386baeb904841f969514d387af852716fd067b81d6d05e5d504226888c55469b909e0fdaf26432230cd338f218c0ac8e24af24fc0728885e5c919736
|
|
7
|
+
data.tar.gz: ee645d458616b0bb16a1bf956247c54e95905b17f46029f3613c46237476ce6320484c4dcba94304410715f5602727f1be65a4a9933a55d51630c33019309ba8
|
data/Gemfile.lock
CHANGED
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
|
-
[](https://rubygems.org/gems/snaptrade/versions/3.0.6)
|
|
10
10
|
[](https://snaptrade.com/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
@@ -83,7 +83,7 @@ Connect brokerage accounts to your app for live positions and trading
|
|
|
83
83
|
Add to Gemfile:
|
|
84
84
|
|
|
85
85
|
```ruby
|
|
86
|
-
gem 'snaptrade', '~> 3.0.
|
|
86
|
+
gem 'snaptrade', '~> 3.0.6'
|
|
87
87
|
```
|
|
88
88
|
|
|
89
89
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -0,0 +1,341 @@
|
|
|
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
|
+
# The versioned webhook content sent to an authorized OAuth application.
|
|
15
|
+
class OAuthWebhookBase
|
|
16
|
+
attr_accessor :schema_version
|
|
17
|
+
|
|
18
|
+
attr_accessor :webhook_id
|
|
19
|
+
|
|
20
|
+
# The OAuth client ID of the application receiving the webhook.
|
|
21
|
+
attr_accessor :oauth_client_id
|
|
22
|
+
|
|
23
|
+
attr_accessor :event_timestamp
|
|
24
|
+
|
|
25
|
+
# The SnapTrade Personal user UUID, matching `sub.snaptrade_user_id` in the OAuth token response.
|
|
26
|
+
attr_accessor :user_id
|
|
27
|
+
|
|
28
|
+
attr_accessor :event_type
|
|
29
|
+
|
|
30
|
+
attr_accessor :account_id
|
|
31
|
+
|
|
32
|
+
attr_accessor :connection_id
|
|
33
|
+
|
|
34
|
+
attr_accessor :brokerage_id
|
|
35
|
+
|
|
36
|
+
attr_accessor :connection_attempted_result
|
|
37
|
+
|
|
38
|
+
attr_accessor :details
|
|
39
|
+
|
|
40
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
41
|
+
def self.attribute_map
|
|
42
|
+
{
|
|
43
|
+
:'schema_version' => :'schemaVersion',
|
|
44
|
+
:'webhook_id' => :'webhookId',
|
|
45
|
+
:'oauth_client_id' => :'oauthClientId',
|
|
46
|
+
:'event_timestamp' => :'eventTimestamp',
|
|
47
|
+
:'user_id' => :'userId',
|
|
48
|
+
:'event_type' => :'eventType',
|
|
49
|
+
:'account_id' => :'accountId',
|
|
50
|
+
:'connection_id' => :'connectionId',
|
|
51
|
+
:'brokerage_id' => :'brokerageId',
|
|
52
|
+
:'connection_attempted_result' => :'connectionAttemptedResult',
|
|
53
|
+
:'details' => :'details'
|
|
54
|
+
}
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Returns all the JSON keys this model knows about
|
|
58
|
+
def self.acceptable_attributes
|
|
59
|
+
attribute_map.values
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Attribute type mapping.
|
|
63
|
+
def self.openapi_types
|
|
64
|
+
{
|
|
65
|
+
:'schema_version' => :'SchemaVersion',
|
|
66
|
+
:'webhook_id' => :'String',
|
|
67
|
+
:'oauth_client_id' => :'String',
|
|
68
|
+
:'event_timestamp' => :'Time',
|
|
69
|
+
:'user_id' => :'String',
|
|
70
|
+
:'event_type' => :'String',
|
|
71
|
+
:'account_id' => :'String',
|
|
72
|
+
:'connection_id' => :'String',
|
|
73
|
+
:'brokerage_id' => :'String',
|
|
74
|
+
:'connection_attempted_result' => :'String',
|
|
75
|
+
:'details' => :'Hash<String, Object>'
|
|
76
|
+
}
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# List of attributes with nullable: true
|
|
80
|
+
def self.openapi_nullable
|
|
81
|
+
Set.new([
|
|
82
|
+
])
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Initializes the object
|
|
86
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
87
|
+
def initialize(attributes = {})
|
|
88
|
+
if (!attributes.is_a?(Hash))
|
|
89
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SnapTrade::OAuthWebhookBase` initialize method"
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
93
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
94
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
95
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SnapTrade::OAuthWebhookBase`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
96
|
+
end
|
|
97
|
+
h[k.to_sym] = v
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'schema_version')
|
|
101
|
+
self.schema_version = attributes[:'schema_version']
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'webhook_id')
|
|
105
|
+
self.webhook_id = attributes[:'webhook_id']
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'oauth_client_id')
|
|
109
|
+
self.oauth_client_id = attributes[:'oauth_client_id']
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if attributes.key?(:'event_timestamp')
|
|
113
|
+
self.event_timestamp = attributes[:'event_timestamp']
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if attributes.key?(:'user_id')
|
|
117
|
+
self.user_id = attributes[:'user_id']
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if attributes.key?(:'event_type')
|
|
121
|
+
self.event_type = attributes[:'event_type']
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
if attributes.key?(:'account_id')
|
|
125
|
+
self.account_id = attributes[:'account_id']
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if attributes.key?(:'connection_id')
|
|
129
|
+
self.connection_id = attributes[:'connection_id']
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if attributes.key?(:'brokerage_id')
|
|
133
|
+
self.brokerage_id = attributes[:'brokerage_id']
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if attributes.key?(:'connection_attempted_result')
|
|
137
|
+
self.connection_attempted_result = attributes[:'connection_attempted_result']
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
if attributes.key?(:'details')
|
|
141
|
+
if (value = attributes[:'details']).is_a?(Hash)
|
|
142
|
+
self.details = value
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
148
|
+
# @return Array for valid properties with the reasons
|
|
149
|
+
def list_invalid_properties
|
|
150
|
+
invalid_properties = Array.new
|
|
151
|
+
if @schema_version.nil?
|
|
152
|
+
invalid_properties.push('invalid value for "schema_version", schema_version cannot be nil.')
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
if @webhook_id.nil?
|
|
156
|
+
invalid_properties.push('invalid value for "webhook_id", webhook_id cannot be nil.')
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
if @oauth_client_id.nil?
|
|
160
|
+
invalid_properties.push('invalid value for "oauth_client_id", oauth_client_id cannot be nil.')
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
if @event_timestamp.nil?
|
|
164
|
+
invalid_properties.push('invalid value for "event_timestamp", event_timestamp cannot be nil.')
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
if @user_id.nil?
|
|
168
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
if @event_type.nil?
|
|
172
|
+
invalid_properties.push('invalid value for "event_type", event_type cannot be nil.')
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
invalid_properties
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Check to see if the all the properties in the model are valid
|
|
179
|
+
# @return true if the model is valid
|
|
180
|
+
def valid?
|
|
181
|
+
return false if @schema_version.nil?
|
|
182
|
+
return false if @webhook_id.nil?
|
|
183
|
+
return false if @oauth_client_id.nil?
|
|
184
|
+
return false if @event_timestamp.nil?
|
|
185
|
+
return false if @user_id.nil?
|
|
186
|
+
return false if @event_type.nil?
|
|
187
|
+
true
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Checks equality by comparing each attribute.
|
|
191
|
+
# @param [Object] Object to be compared
|
|
192
|
+
def ==(o)
|
|
193
|
+
return true if self.equal?(o)
|
|
194
|
+
self.class == o.class &&
|
|
195
|
+
schema_version == o.schema_version &&
|
|
196
|
+
webhook_id == o.webhook_id &&
|
|
197
|
+
oauth_client_id == o.oauth_client_id &&
|
|
198
|
+
event_timestamp == o.event_timestamp &&
|
|
199
|
+
user_id == o.user_id &&
|
|
200
|
+
event_type == o.event_type &&
|
|
201
|
+
account_id == o.account_id &&
|
|
202
|
+
connection_id == o.connection_id &&
|
|
203
|
+
brokerage_id == o.brokerage_id &&
|
|
204
|
+
connection_attempted_result == o.connection_attempted_result &&
|
|
205
|
+
details == o.details
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# @see the `==` method
|
|
209
|
+
# @param [Object] Object to be compared
|
|
210
|
+
def eql?(o)
|
|
211
|
+
self == o
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Calculates hash code according to all attributes.
|
|
215
|
+
# @return [Integer] Hash code
|
|
216
|
+
def hash
|
|
217
|
+
[schema_version, webhook_id, oauth_client_id, event_timestamp, user_id, event_type, account_id, connection_id, brokerage_id, connection_attempted_result, details].hash
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Builds the object from hash
|
|
221
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
222
|
+
# @return [Object] Returns the model itself
|
|
223
|
+
def self.build_from_hash(attributes)
|
|
224
|
+
new.build_from_hash(attributes)
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# Builds the object from hash
|
|
228
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
229
|
+
# @return [Object] Returns the model itself
|
|
230
|
+
def build_from_hash(attributes)
|
|
231
|
+
return nil unless attributes.is_a?(Hash)
|
|
232
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
233
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
234
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
235
|
+
self.send("#{key}=", nil)
|
|
236
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
237
|
+
# check to ensure the input is an array given that the attribute
|
|
238
|
+
# is documented as an array but the input is not
|
|
239
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
240
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
241
|
+
end
|
|
242
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
243
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
244
|
+
end
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
self
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# Deserializes the data based on type
|
|
251
|
+
# @param string type Data type
|
|
252
|
+
# @param string value Value to be deserialized
|
|
253
|
+
# @return [Object] Deserialized data
|
|
254
|
+
def _deserialize(type, value)
|
|
255
|
+
case type.to_sym
|
|
256
|
+
when :Time
|
|
257
|
+
Time.parse(value)
|
|
258
|
+
when :Date
|
|
259
|
+
Date.parse(value)
|
|
260
|
+
when :String
|
|
261
|
+
value.to_s
|
|
262
|
+
when :Integer
|
|
263
|
+
value.to_i
|
|
264
|
+
when :Float
|
|
265
|
+
value.to_f
|
|
266
|
+
when :Boolean
|
|
267
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
268
|
+
true
|
|
269
|
+
else
|
|
270
|
+
false
|
|
271
|
+
end
|
|
272
|
+
when :Object
|
|
273
|
+
# generic object (usually a Hash), return directly
|
|
274
|
+
value
|
|
275
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
276
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
277
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
278
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
279
|
+
k_type = Regexp.last_match[:k_type]
|
|
280
|
+
v_type = Regexp.last_match[:v_type]
|
|
281
|
+
{}.tap do |hash|
|
|
282
|
+
value.each do |k, v|
|
|
283
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
284
|
+
end
|
|
285
|
+
end
|
|
286
|
+
else # model
|
|
287
|
+
# models (e.g. Pet) or oneOf
|
|
288
|
+
klass = SnapTrade.const_get(type)
|
|
289
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
290
|
+
end
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
# Returns the string representation of the object
|
|
294
|
+
# @return [String] String presentation of the object
|
|
295
|
+
def to_s
|
|
296
|
+
to_hash.to_s
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
300
|
+
# @return [Hash] Returns the object in the form of hash
|
|
301
|
+
def to_body
|
|
302
|
+
to_hash
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
# Returns the object in the form of hash
|
|
306
|
+
# @return [Hash] Returns the object in the form of hash
|
|
307
|
+
def to_hash
|
|
308
|
+
hash = {}
|
|
309
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
310
|
+
value = self.send(attr)
|
|
311
|
+
if value.nil?
|
|
312
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
313
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
hash[param] = _to_hash(value)
|
|
317
|
+
end
|
|
318
|
+
hash
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
# Outputs non-array value in the form of hash
|
|
322
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
323
|
+
# @param [Object] value Any valid value
|
|
324
|
+
# @return [Hash] Returns the value in the form of hash
|
|
325
|
+
def _to_hash(value)
|
|
326
|
+
if value.is_a?(Array)
|
|
327
|
+
value.compact.map { |v| _to_hash(v) }
|
|
328
|
+
elsif value.is_a?(Hash)
|
|
329
|
+
{}.tap do |hash|
|
|
330
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
331
|
+
end
|
|
332
|
+
elsif value.respond_to? :to_hash
|
|
333
|
+
value.to_hash
|
|
334
|
+
else
|
|
335
|
+
value
|
|
336
|
+
end
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
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 SchemaVersion
|
|
15
|
+
OAUTH_V1 = "oauth_v1".freeze
|
|
16
|
+
|
|
17
|
+
def self.all_vars
|
|
18
|
+
@all_vars ||= [OAUTH_V1].freeze
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# Builds the enum from string
|
|
22
|
+
# @param [String] The enum value in the form of the string
|
|
23
|
+
# @return [String] The enum value
|
|
24
|
+
def self.build_from_hash(value)
|
|
25
|
+
new.build_from_hash(value)
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Builds the enum from string
|
|
29
|
+
# @param [String] The enum value in the form of the string
|
|
30
|
+
# @return [String] The enum value
|
|
31
|
+
def build_from_hash(value)
|
|
32
|
+
return value if SchemaVersion.all_vars.include?(value)
|
|
33
|
+
raise "Invalid ENUM value #{value} for class #SchemaVersion"
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
data/lib/snaptrade/version.rb
CHANGED
data/lib/snaptrade.rb
CHANGED
|
@@ -156,6 +156,7 @@ require 'snaptrade/models/mutual_fund_instrument_kind'
|
|
|
156
156
|
require 'snaptrade/models/net_contributions'
|
|
157
157
|
require 'snaptrade/models/net_dividend'
|
|
158
158
|
require 'snaptrade/models/notional_value'
|
|
159
|
+
require 'snaptrade/models/o_auth_webhook_base'
|
|
159
160
|
require 'snaptrade/models/option_brokerage_symbol'
|
|
160
161
|
require 'snaptrade/models/option_chain_inner'
|
|
161
162
|
require 'snaptrade/models/option_chain_inner_chain_per_root_inner'
|
|
@@ -191,6 +192,7 @@ require 'snaptrade/models/position_symbol'
|
|
|
191
192
|
require 'snaptrade/models/rate_of_return_object'
|
|
192
193
|
require 'snaptrade/models/rate_of_return_response'
|
|
193
194
|
require 'snaptrade/models/recent_orders_response'
|
|
195
|
+
require 'snaptrade/models/schema_version'
|
|
194
196
|
require 'snaptrade/models/security_type'
|
|
195
197
|
require 'snaptrade/models/session_event'
|
|
196
198
|
require 'snaptrade/models/session_event_type'
|
|
@@ -0,0 +1,89 @@
|
|
|
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::OAuthWebhookBase
|
|
15
|
+
describe SnapTrade::OAuthWebhookBase do
|
|
16
|
+
let(:instance) { SnapTrade::OAuthWebhookBase.new }
|
|
17
|
+
|
|
18
|
+
describe 'test an instance of OAuthWebhookBase' do
|
|
19
|
+
it 'should create an instance of OAuthWebhookBase' do
|
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::OAuthWebhookBase)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
describe 'test attribute "schema_version"' 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 "webhook_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 "oauth_client_id"' 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
|
+
describe 'test attribute "event_timestamp"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
describe 'test attribute "user_id"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
describe 'test attribute "event_type"' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
describe 'test attribute "account_id"' do
|
|
60
|
+
it 'should work' do
|
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
describe 'test attribute "connection_id"' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
describe 'test attribute "brokerage_id"' do
|
|
72
|
+
it 'should work' do
|
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
describe 'test attribute "connection_attempted_result"' do
|
|
78
|
+
it 'should work' do
|
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
describe 'test attribute "details"' do
|
|
84
|
+
it 'should work' do
|
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
end
|
|
@@ -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::SchemaVersion
|
|
15
|
+
describe SnapTrade::SchemaVersion do
|
|
16
|
+
let(:instance) { SnapTrade::SchemaVersion.new }
|
|
17
|
+
|
|
18
|
+
describe 'test an instance of SchemaVersion' do
|
|
19
|
+
it 'should create an instance of SchemaVersion' do
|
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::SchemaVersion)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: snaptrade
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SnapTrade
|
|
@@ -234,6 +234,7 @@ files:
|
|
|
234
234
|
- lib/snaptrade/models/net_contributions.rb
|
|
235
235
|
- lib/snaptrade/models/net_dividend.rb
|
|
236
236
|
- lib/snaptrade/models/notional_value.rb
|
|
237
|
+
- lib/snaptrade/models/o_auth_webhook_base.rb
|
|
237
238
|
- lib/snaptrade/models/option_brokerage_symbol.rb
|
|
238
239
|
- lib/snaptrade/models/option_chain_inner.rb
|
|
239
240
|
- lib/snaptrade/models/option_chain_inner_chain_per_root_inner.rb
|
|
@@ -269,6 +270,7 @@ files:
|
|
|
269
270
|
- lib/snaptrade/models/rate_of_return_object.rb
|
|
270
271
|
- lib/snaptrade/models/rate_of_return_response.rb
|
|
271
272
|
- lib/snaptrade/models/recent_orders_response.rb
|
|
273
|
+
- lib/snaptrade/models/schema_version.rb
|
|
272
274
|
- lib/snaptrade/models/security_type.rb
|
|
273
275
|
- lib/snaptrade/models/session_event.rb
|
|
274
276
|
- lib/snaptrade/models/session_event_type.rb
|
|
@@ -475,6 +477,7 @@ files:
|
|
|
475
477
|
- spec/models/net_contributions_spec.rb
|
|
476
478
|
- spec/models/net_dividend_spec.rb
|
|
477
479
|
- spec/models/notional_value_spec.rb
|
|
480
|
+
- spec/models/o_auth_webhook_base_spec.rb
|
|
478
481
|
- spec/models/option_brokerage_symbol_spec.rb
|
|
479
482
|
- spec/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner_spec.rb
|
|
480
483
|
- spec/models/option_chain_inner_chain_per_root_inner_spec.rb
|
|
@@ -510,6 +513,7 @@ files:
|
|
|
510
513
|
- spec/models/rate_of_return_object_spec.rb
|
|
511
514
|
- spec/models/rate_of_return_response_spec.rb
|
|
512
515
|
- spec/models/recent_orders_response_spec.rb
|
|
516
|
+
- spec/models/schema_version_spec.rb
|
|
513
517
|
- spec/models/security_type_spec.rb
|
|
514
518
|
- spec/models/session_event_spec.rb
|
|
515
519
|
- spec/models/session_event_type_spec.rb
|
|
@@ -591,243 +595,245 @@ signing_key:
|
|
|
591
595
|
specification_version: 4
|
|
592
596
|
summary: SnapTrade Ruby Gem
|
|
593
597
|
test_files:
|
|
598
|
+
- spec/api/reference_data_api_spec.rb
|
|
599
|
+
- spec/api/connections_api_spec.rb
|
|
594
600
|
- spec/api/authentication_api_spec.rb
|
|
595
|
-
- spec/api/experimental_endpoints_api_spec.rb
|
|
596
601
|
- spec/api/api_status_api_spec.rb
|
|
597
|
-
- spec/api/
|
|
602
|
+
- spec/api/experimental_endpoints_api_spec.rb
|
|
598
603
|
- spec/api/trading_api_spec.rb
|
|
599
|
-
- spec/api/connections_api_spec.rb
|
|
600
604
|
- spec/api/account_information_api_spec.rb
|
|
601
605
|
- spec/api_client_spec.rb
|
|
602
606
|
- spec/configuration_spec.rb
|
|
603
607
|
- spec/getting_started_spec.rb
|
|
604
|
-
- spec/models/
|
|
605
|
-
- spec/models/option_impact_spec.rb
|
|
606
|
-
- spec/models/account_orders_v2_response_spec.rb
|
|
607
|
-
- spec/models/other_instrument_kind_spec.rb
|
|
608
|
-
- spec/models/exchange_rate_pairs_spec.rb
|
|
609
|
-
- spec/models/trade_detection_subscription_spec.rb
|
|
610
|
-
- spec/models/account_order_record_status_spec.rb
|
|
611
|
-
- spec/models/model501_not_implemented_response_spec.rb
|
|
612
|
-
- spec/models/manual_trade_form_complex_type_spec.rb
|
|
613
|
-
- spec/models/cancel_order_response_spec.rb
|
|
614
|
-
- spec/models/stock_instrument_figi_instrument_spec.rb
|
|
615
|
-
- spec/models/universal_activity_spec.rb
|
|
616
|
-
- spec/models/account_order_record_v2_spec.rb
|
|
617
|
-
- spec/models/model429_too_many_requests_response_spec.rb
|
|
618
|
-
- spec/models/universal_symbol_spec.rb
|
|
619
|
-
- spec/models/brokerage_spec.rb
|
|
620
|
-
- spec/models/security_type_spec.rb
|
|
621
|
-
- spec/models/account_order_record_quote_universal_symbol_spec.rb
|
|
608
|
+
- spec/models/account_order_record_leg_spec.rb
|
|
622
609
|
- spec/models/future_instrument_kind_spec.rb
|
|
623
|
-
- spec/models/
|
|
624
|
-
- spec/models/
|
|
610
|
+
- spec/models/dividend_at_date_spec.rb
|
|
611
|
+
- spec/models/manual_trade_form_notional_value_spec.rb
|
|
612
|
+
- spec/models/deposit_account_spec.rb
|
|
613
|
+
- spec/models/trade_detection_add_subscription_request_spec.rb
|
|
614
|
+
- spec/models/strategy_order_record_spec.rb
|
|
615
|
+
- spec/models/complex_order_response_spec.rb
|
|
616
|
+
- spec/models/auth_type_spec.rb
|
|
625
617
|
- spec/models/all_account_positions_response_spec.rb
|
|
626
|
-
- spec/models/
|
|
627
|
-
- spec/models/
|
|
628
|
-
- spec/models/
|
|
629
|
-
- spec/models/
|
|
630
|
-
- spec/models/
|
|
631
|
-
- spec/models/
|
|
632
|
-
- spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
|
|
633
|
-
- spec/models/cef_instrument_spec.rb
|
|
634
|
-
- spec/models/partner_data_spec.rb
|
|
635
|
-
- spec/models/cef_instrument_kind_spec.rb
|
|
636
|
-
- spec/models/model404_failed_request_response_spec.rb
|
|
637
|
-
- spec/models/account_holdings_spec.rb
|
|
638
|
-
- spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
|
|
639
|
-
- spec/models/status_spec.rb
|
|
618
|
+
- spec/models/investment_account_spec.rb
|
|
619
|
+
- spec/models/manual_trade_form_with_options_spec.rb
|
|
620
|
+
- spec/models/delete_user_response_spec.rb
|
|
621
|
+
- spec/models/account_simple_spec.rb
|
|
622
|
+
- spec/models/mleg_trading_instrument_spec.rb
|
|
623
|
+
- spec/models/symbols_quotes_inner_spec.rb
|
|
640
624
|
- spec/models/cfd_instrument_kind_spec.rb
|
|
641
|
-
- spec/models/
|
|
642
|
-
- spec/models/
|
|
643
|
-
- spec/models/
|
|
644
|
-
- spec/models/
|
|
645
|
-
- spec/models/
|
|
646
|
-
- spec/models/
|
|
647
|
-
- spec/models/
|
|
625
|
+
- spec/models/option_leg_action_spec.rb
|
|
626
|
+
- spec/models/snap_trade_holdings_total_value_spec.rb
|
|
627
|
+
- spec/models/underlying_cfd_instrument_spec.rb
|
|
628
|
+
- spec/models/past_value_spec.rb
|
|
629
|
+
- spec/models/adr_instrument_kind_spec.rb
|
|
630
|
+
- spec/models/mleg_order_type_strict_spec.rb
|
|
631
|
+
- spec/models/manual_trade_form_complex_spec.rb
|
|
632
|
+
- spec/models/complex_order_leg_order_role_spec.rb
|
|
633
|
+
- spec/models/account_holdings_spec.rb
|
|
634
|
+
- spec/models/time_in_force_strict_spec.rb
|
|
635
|
+
- spec/models/etf_instrument_spec.rb
|
|
636
|
+
- spec/models/option_quote_greeks_spec.rb
|
|
637
|
+
- spec/models/mutual_fund_instrument_kind_spec.rb
|
|
638
|
+
- spec/models/underlying_symbol_type_spec.rb
|
|
648
639
|
- spec/models/delete_connection_confirmation_spec.rb
|
|
649
|
-
- spec/models/
|
|
650
|
-
- spec/models/
|
|
640
|
+
- spec/models/underlying_symbol_spec.rb
|
|
641
|
+
- spec/models/order_updated_response_spec.rb
|
|
642
|
+
- spec/models/bucket_spec.rb
|
|
643
|
+
- spec/models/investment_account_market_value_spec.rb
|
|
644
|
+
- spec/models/user_aum_percentile_response_spec.rb
|
|
645
|
+
- spec/models/model403_failed_request_response_spec.rb
|
|
646
|
+
- spec/models/connection_account_sync_status_spec.rb
|
|
647
|
+
- spec/models/session_event_type_spec.rb
|
|
648
|
+
- spec/models/stop_loss_spec.rb
|
|
649
|
+
- spec/models/brokerage_authorization_type_read_only_type_spec.rb
|
|
650
|
+
- spec/models/type_spec.rb
|
|
651
|
+
- spec/models/cash_change_direction_spec.rb
|
|
652
|
+
- spec/models/mleg_instrument_type_spec.rb
|
|
653
|
+
- spec/models/underlying_option_instrument_spec.rb
|
|
654
|
+
- spec/models/model403_feature_not_enabled_response_spec.rb
|
|
655
|
+
- spec/models/model404_failed_request_response_spec.rb
|
|
656
|
+
- spec/models/manual_trade_form_bracket_spec.rb
|
|
657
|
+
- spec/models/strategy_order_record_status_spec.rb
|
|
658
|
+
- spec/models/account_value_history_response_spec.rb
|
|
651
659
|
- spec/models/net_contributions_spec.rb
|
|
652
|
-
- spec/models/
|
|
653
|
-
- spec/models/snap_trade_register_user_request_body_spec.rb
|
|
654
|
-
- spec/models/authentication_login_snap_trade_user200_response_spec.rb
|
|
655
|
-
- spec/models/figi_instrument_spec.rb
|
|
656
|
-
- spec/models/crypto_instrument_kind_spec.rb
|
|
657
|
-
- spec/models/option_instrument_spec.rb
|
|
658
|
-
- spec/models/rate_of_return_object_spec.rb
|
|
659
|
-
- spec/models/option_quote_greeks_spec.rb
|
|
660
|
-
- spec/models/past_value_spec.rb
|
|
661
|
-
- spec/models/crypto_trading_instrument_spec.rb
|
|
662
|
-
- spec/models/option_chain_inner_spec.rb
|
|
663
|
-
- spec/models/symbol_spec.rb
|
|
664
|
-
- spec/models/user_i_dand_secret_spec.rb
|
|
665
|
-
- spec/models/account_order_record_quote_currency_spec.rb
|
|
666
|
-
- spec/models/trading_instrument_spec.rb
|
|
660
|
+
- spec/models/option_strategy_spec.rb
|
|
667
661
|
- spec/models/brokerage_authorization_disabled_confirmation_spec.rb
|
|
668
|
-
- spec/models/
|
|
669
|
-
- spec/models/
|
|
670
|
-
- spec/models/option_strategy_legs_inner_spec.rb
|
|
671
|
-
- spec/models/mleg_leg_spec.rb
|
|
672
|
-
- spec/models/model401_failed_request_response_spec.rb
|
|
673
|
-
- spec/models/brokerage_authorization_spec.rb
|
|
674
|
-
- spec/models/option_quote_spec.rb
|
|
675
|
-
- spec/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner_spec.rb
|
|
676
|
-
- spec/models/all_account_positions_response_data_freshness_spec.rb
|
|
677
|
-
- spec/models/balance_spec.rb
|
|
678
|
-
- spec/models/holdings_status_spec.rb
|
|
662
|
+
- spec/models/account_order_record_leg_instrument_spec.rb
|
|
663
|
+
- spec/models/deposit_account_kind_spec.rb
|
|
679
664
|
- spec/models/connection_portal_version_spec.rb
|
|
680
|
-
- spec/models/
|
|
681
|
-
- spec/models/account_status_spec.rb
|
|
682
|
-
- spec/models/option_leg_action_spec.rb
|
|
683
|
-
- spec/models/adr_instrument_spec.rb
|
|
684
|
-
- spec/models/options_symbol_option_type_spec.rb
|
|
685
|
-
- spec/models/brokerage_authorization_refresh_confirmation_spec.rb
|
|
686
|
-
- spec/models/crypto_order_form_time_in_force_spec.rb
|
|
665
|
+
- spec/models/manual_trade_form_spec.rb
|
|
687
666
|
- spec/models/mleg_price_effect_strict_spec.rb
|
|
688
|
-
- spec/models/
|
|
689
|
-
- spec/models/
|
|
690
|
-
- spec/models/
|
|
691
|
-
- spec/models/
|
|
692
|
-
- spec/models/
|
|
693
|
-
- spec/models/
|
|
694
|
-
- spec/models/
|
|
695
|
-
- spec/models/
|
|
696
|
-
- spec/models/
|
|
697
|
-
- spec/models/
|
|
698
|
-
- spec/models/
|
|
699
|
-
- spec/models/symbol_exchange_spec.rb
|
|
700
|
-
- spec/models/brokerage_authorization_type_read_only_spec.rb
|
|
701
|
-
- spec/models/connection_account_sync_status_spec.rb
|
|
702
|
-
- spec/models/account_order_record_option_symbol_spec.rb
|
|
703
|
-
- spec/models/transactions_status_spec.rb
|
|
704
|
-
- spec/models/cfd_instrument_spec.rb
|
|
705
|
-
- spec/models/strategy_quotes_greek_spec.rb
|
|
706
|
-
- spec/models/future_instrument_spec.rb
|
|
707
|
-
- spec/models/deposit_account_kind_spec.rb
|
|
708
|
-
- spec/models/user_aum_percentile_response_data_spec.rb
|
|
709
|
-
- spec/models/investment_account_spec.rb
|
|
710
|
-
- spec/models/account_value_history_item_spec.rb
|
|
711
|
-
- spec/models/underlying_symbol_spec.rb
|
|
712
|
-
- spec/models/position_spec.rb
|
|
713
|
-
- spec/models/brokerage_type_spec.rb
|
|
714
|
-
- spec/models/cash_change_direction_spec.rb
|
|
715
|
-
- spec/models/model503_brokerage_request_response_spec.rb
|
|
716
|
-
- spec/models/pagination_details_spec.rb
|
|
717
|
-
- spec/models/model425_failed_request_response_spec.rb
|
|
718
|
-
- spec/models/user_aum_percentile_response_spec.rb
|
|
719
|
-
- spec/models/stock_instrument_kind_spec.rb
|
|
667
|
+
- spec/models/exchange_spec.rb
|
|
668
|
+
- spec/models/balance_currency_spec.rb
|
|
669
|
+
- spec/models/timeframe_spec.rb
|
|
670
|
+
- spec/models/encrypted_response_encrypted_message_data_spec.rb
|
|
671
|
+
- spec/models/snap_trade_register_user_request_body_spec.rb
|
|
672
|
+
- spec/models/status_spec.rb
|
|
673
|
+
- spec/models/manual_trade_symbol_spec.rb
|
|
674
|
+
- spec/models/strategy_quotes_spec.rb
|
|
675
|
+
- spec/models/model501_not_implemented_response_spec.rb
|
|
676
|
+
- spec/models/action_strict_spec.rb
|
|
677
|
+
- spec/models/model429_too_many_requests_response_spec.rb
|
|
720
678
|
- spec/models/symbol_currency_spec.rb
|
|
679
|
+
- spec/models/brokerage_instruments_response_spec.rb
|
|
680
|
+
- spec/models/trailing_stop_spec.rb
|
|
681
|
+
- spec/models/account_order_record_child_brokerage_order_ids_spec.rb
|
|
682
|
+
- spec/models/account_universal_activity_currency_spec.rb
|
|
683
|
+
- spec/models/model400_failed_request_response_spec.rb
|
|
684
|
+
- spec/models/account_order_record_spec.rb
|
|
721
685
|
- spec/models/account_holdings_account_spec.rb
|
|
722
|
-
- spec/models/
|
|
723
|
-
- spec/models/
|
|
724
|
-
- spec/models/
|
|
725
|
-
- spec/models/account_value_history_response_spec.rb
|
|
686
|
+
- spec/models/trading_session_spec.rb
|
|
687
|
+
- spec/models/symbol_exchange_spec.rb
|
|
688
|
+
- spec/models/manual_trade_spec.rb
|
|
726
689
|
- spec/models/rate_of_return_response_spec.rb
|
|
690
|
+
- spec/models/account_order_record_quote_currency_spec.rb
|
|
691
|
+
- spec/models/figi_instrument_spec.rb
|
|
692
|
+
- spec/models/option_leg_spec.rb
|
|
693
|
+
- spec/models/crypto_order_form_time_in_force_spec.rb
|
|
694
|
+
- spec/models/all_account_positions_response_data_freshness_spec.rb
|
|
695
|
+
- spec/models/stock_instrument_figi_instrument_spec.rb
|
|
696
|
+
- spec/models/account_universal_activity_currency_universal_symbol_spec.rb
|
|
727
697
|
- spec/models/instrument_spec.rb
|
|
728
|
-
- spec/models/
|
|
729
|
-
- spec/models/
|
|
730
|
-
- spec/models/brokerage_authorization_transactions_sync_confirmation_spec.rb
|
|
731
|
-
- spec/models/order_type_strict_spec.rb
|
|
732
|
-
- spec/models/mutual_fund_instrument_spec.rb
|
|
733
|
-
- spec/models/exchange_spec.rb
|
|
698
|
+
- spec/models/connection_account_spec.rb
|
|
699
|
+
- spec/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner_spec.rb
|
|
734
700
|
- spec/models/account_balance_spec.rb
|
|
735
|
-
- spec/models/
|
|
736
|
-
- spec/models/
|
|
737
|
-
- spec/models/notional_value_spec.rb
|
|
738
|
-
- spec/models/model403_failed_request_response_spec.rb
|
|
739
|
-
- spec/models/child_brokerage_order_ids_spec.rb
|
|
740
|
-
- spec/models/manual_trade_replace_form_spec.rb
|
|
741
|
-
- spec/models/underlying_cfd_instrument_spec.rb
|
|
742
|
-
- spec/models/options_symbol_spec.rb
|
|
743
|
-
- spec/models/account_order_record_leg_instrument_spec.rb
|
|
744
|
-
- spec/models/tax_lot_spec.rb
|
|
701
|
+
- spec/models/simple_order_form_type_spec.rb
|
|
702
|
+
- spec/models/option_chain_inner_spec.rb
|
|
745
703
|
- spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
|
|
746
|
-
- spec/models/
|
|
747
|
-
- spec/models/
|
|
748
|
-
- spec/models/
|
|
749
|
-
- spec/models/
|
|
750
|
-
- spec/models/
|
|
751
|
-
- spec/models/
|
|
752
|
-
- spec/models/
|
|
753
|
-
- spec/models/
|
|
754
|
-
- spec/models/
|
|
755
|
-
- spec/models/snap_trade_holdings_total_value_spec.rb
|
|
756
|
-
- spec/models/strategy_order_record_spec.rb
|
|
757
|
-
- spec/models/crypto_trading_instrument_type_spec.rb
|
|
704
|
+
- spec/models/crypto_instrument_kind_spec.rb
|
|
705
|
+
- spec/models/model401_failed_request_response_spec.rb
|
|
706
|
+
- spec/models/account_order_record_quote_universal_symbol_spec.rb
|
|
707
|
+
- spec/models/validated_trade_body_spec.rb
|
|
708
|
+
- spec/models/brokerage_spec.rb
|
|
709
|
+
- spec/models/o_auth_webhook_base_spec.rb
|
|
710
|
+
- spec/models/account_balance_total_spec.rb
|
|
711
|
+
- spec/models/options_symbol_spec.rb
|
|
712
|
+
- spec/models/option_brokerage_symbol_spec.rb
|
|
758
713
|
- spec/models/manual_trade_impact_spec.rb
|
|
759
|
-
- spec/models/
|
|
760
|
-
- spec/models/trade_detection_cancel_subscription_request_spec.rb
|
|
761
|
-
- spec/models/action_strict_with_options_spec.rb
|
|
762
|
-
- spec/models/crypto_order_preview_spec.rb
|
|
763
|
-
- spec/models/deposit_account_balance_spec.rb
|
|
764
|
-
- spec/models/strategy_order_record_status_spec.rb
|
|
765
|
-
- spec/models/order_updated_response_order_spec.rb
|
|
766
|
-
- spec/models/stop_loss_spec.rb
|
|
714
|
+
- spec/models/mleg_trade_form_spec.rb
|
|
767
715
|
- spec/models/stock_instrument_spec.rb
|
|
768
|
-
- spec/models/
|
|
769
|
-
- spec/models/
|
|
770
|
-
- spec/models/
|
|
771
|
-
- spec/models/
|
|
716
|
+
- spec/models/cryptocurrency_pair_spec.rb
|
|
717
|
+
- spec/models/other_instrument_spec.rb
|
|
718
|
+
- spec/models/adr_instrument_spec.rb
|
|
719
|
+
- spec/models/simple_order_form_time_in_force_spec.rb
|
|
720
|
+
- spec/models/account_orders_v2_response_spec.rb
|
|
721
|
+
- spec/models/tax_lot_spec.rb
|
|
722
|
+
- spec/models/net_dividend_spec.rb
|
|
723
|
+
- spec/models/model402_brokerage_auth_disabled_response_spec.rb
|
|
724
|
+
- spec/models/mutual_fund_instrument_spec.rb
|
|
725
|
+
- spec/models/position_spec.rb
|
|
772
726
|
- spec/models/crypto_instrument_spec.rb
|
|
773
|
-
- spec/models/
|
|
774
|
-
- spec/models/
|
|
775
|
-
- spec/models/
|
|
776
|
-
- spec/models/
|
|
777
|
-
- spec/models/
|
|
778
|
-
- spec/models/
|
|
727
|
+
- spec/models/options_position_spec.rb
|
|
728
|
+
- spec/models/partner_data_spec.rb
|
|
729
|
+
- spec/models/account_category_spec.rb
|
|
730
|
+
- spec/models/account_universal_activity_option_symbol_spec.rb
|
|
731
|
+
- spec/models/user_aum_percentile_response_data_spec.rb
|
|
732
|
+
- spec/models/mleg_leg_spec.rb
|
|
733
|
+
- spec/models/deposit_account_balance_spec.rb
|
|
734
|
+
- spec/models/session_event_spec.rb
|
|
735
|
+
- spec/models/account_order_record_v2_spec.rb
|
|
736
|
+
- spec/models/position_symbol_spec.rb
|
|
737
|
+
- spec/models/snap_trade_holdings_account_spec.rb
|
|
738
|
+
- spec/models/mleg_order_response_spec.rb
|
|
739
|
+
- spec/models/brokerage_type_spec.rb
|
|
740
|
+
- spec/models/account_order_record_status_spec.rb
|
|
741
|
+
- spec/models/transactions_status_spec.rb
|
|
742
|
+
- spec/models/strategy_type_spec.rb
|
|
779
743
|
- spec/models/cryptocurrency_pair_quote_spec.rb
|
|
780
|
-
- spec/models/
|
|
781
|
-
- spec/models/
|
|
744
|
+
- spec/models/other_instrument_kind_spec.rb
|
|
745
|
+
- spec/models/holdings_status_spec.rb
|
|
746
|
+
- spec/models/cfd_instrument_spec.rb
|
|
747
|
+
- spec/models/paginated_universal_activity_spec.rb
|
|
748
|
+
- spec/models/brokerage_instrument_spec.rb
|
|
749
|
+
- spec/models/strategy_quotes_greek_spec.rb
|
|
750
|
+
- spec/models/option_chain_inner_chain_per_root_inner_spec.rb
|
|
751
|
+
- spec/models/currency_spec.rb
|
|
752
|
+
- spec/models/stock_instrument_kind_spec.rb
|
|
753
|
+
- spec/models/manual_trade_and_impact_spec.rb
|
|
754
|
+
- spec/models/options_position_currency_spec.rb
|
|
755
|
+
- spec/models/account_spec.rb
|
|
782
756
|
- spec/models/crypto_order_form_spec.rb
|
|
783
|
-
- spec/models/
|
|
784
|
-
- spec/models/
|
|
785
|
-
- spec/models/
|
|
786
|
-
- spec/models/
|
|
787
|
-
- spec/models/
|
|
757
|
+
- spec/models/account_order_record_option_symbol_spec.rb
|
|
758
|
+
- spec/models/trade_detection_cancel_subscription_request_spec.rb
|
|
759
|
+
- spec/models/rate_of_return_object_spec.rb
|
|
760
|
+
- spec/models/notional_value_spec.rb
|
|
761
|
+
- spec/models/symbol_spec.rb
|
|
762
|
+
- spec/models/sub_period_return_rate_spec.rb
|
|
763
|
+
- spec/models/account_position_spec.rb
|
|
764
|
+
- spec/models/encrypted_response_spec.rb
|
|
765
|
+
- spec/models/crypto_order_preview_estimated_fee_spec.rb
|
|
766
|
+
- spec/models/order_role_spec.rb
|
|
767
|
+
- spec/models/crypto_trading_instrument_spec.rb
|
|
768
|
+
- spec/models/cef_instrument_kind_spec.rb
|
|
769
|
+
- spec/models/monthly_dividends_spec.rb
|
|
770
|
+
- spec/models/universal_activity_spec.rb
|
|
771
|
+
- spec/models/option_impact_spec.rb
|
|
772
|
+
- spec/models/future_instrument_spec.rb
|
|
773
|
+
- spec/models/manual_trade_place_time_in_force_strict_spec.rb
|
|
774
|
+
- spec/models/model503_brokerage_request_response_spec.rb
|
|
788
775
|
- spec/models/option_type_spec.rb
|
|
789
|
-
- spec/models/
|
|
790
|
-
- spec/models/
|
|
776
|
+
- spec/models/us_exchange_spec.rb
|
|
777
|
+
- spec/models/model500_unexpected_exception_response_spec.rb
|
|
778
|
+
- spec/models/manual_trade_balance_spec.rb
|
|
779
|
+
- spec/models/performance_custom_spec.rb
|
|
780
|
+
- spec/models/login_redirect_uri_spec.rb
|
|
781
|
+
- spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
|
|
782
|
+
- spec/models/brokerage_authorization_transactions_sync_confirmation_spec.rb
|
|
783
|
+
- spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
|
|
784
|
+
- spec/models/trading_instrument_spec.rb
|
|
785
|
+
- spec/models/account_order_record_status_v2_spec.rb
|
|
786
|
+
- spec/models/account_value_history_item_spec.rb
|
|
787
|
+
- spec/models/cancel_order_response_spec.rb
|
|
788
|
+
- spec/models/account_order_record_trailing_stop_spec.rb
|
|
789
|
+
- spec/models/symbol_query_spec.rb
|
|
790
|
+
- spec/models/simple_order_form_spec.rb
|
|
791
|
+
- spec/models/action_strict_with_options_spec.rb
|
|
792
|
+
- spec/models/user_aum_percentile_object_spec.rb
|
|
793
|
+
- spec/models/exchange_rate_pairs_spec.rb
|
|
794
|
+
- spec/models/user_i_dand_secret_spec.rb
|
|
795
|
+
- spec/models/model425_failed_request_response_spec.rb
|
|
796
|
+
- spec/models/manual_trade_form_complex_type_spec.rb
|
|
797
|
+
- spec/models/trade_detection_cancel_subscription_response_spec.rb
|
|
798
|
+
- spec/models/recent_orders_response_spec.rb
|
|
799
|
+
- spec/models/trading_instrument_type_spec.rb
|
|
800
|
+
- spec/models/connection_type_spec.rb
|
|
801
|
+
- spec/models/cef_instrument_spec.rb
|
|
802
|
+
- spec/models/option_strategy_legs_inner_spec.rb
|
|
791
803
|
- spec/models/crypto_order_form_type_spec.rb
|
|
792
|
-
- spec/models/
|
|
793
|
-
- spec/models/manual_trade_place_time_in_force_strict_spec.rb
|
|
794
|
-
- spec/models/deposit_account_spec.rb
|
|
795
|
-
- spec/models/mleg_trading_instrument_spec.rb
|
|
796
|
-
- spec/models/adr_instrument_kind_spec.rb
|
|
797
|
-
- spec/models/underlying_option_instrument_spec.rb
|
|
798
|
-
- spec/models/trailing_stop_spec.rb
|
|
799
|
-
- spec/models/model402_brokerage_auth_disabled_response_spec.rb
|
|
800
|
-
- spec/models/options_position_currency_spec.rb
|
|
801
|
-
- spec/models/model403_feature_not_enabled_response_spec.rb
|
|
802
|
-
- spec/models/option_strategy_spec.rb
|
|
803
|
-
- spec/models/account_universal_activity_currency_spec.rb
|
|
804
|
-
- spec/models/manual_trade_and_impact_spec.rb
|
|
804
|
+
- spec/models/account_universal_activity_spec.rb
|
|
805
805
|
- spec/models/snap_trade_login_user_request_body_spec.rb
|
|
806
|
-
- spec/models/
|
|
807
|
-
- spec/models/
|
|
808
|
-
- spec/models/
|
|
809
|
-
- spec/models/
|
|
810
|
-
- spec/models/
|
|
806
|
+
- spec/models/trade_detection_subscription_spec.rb
|
|
807
|
+
- spec/models/universal_symbol_spec.rb
|
|
808
|
+
- spec/models/order_updated_response_order_spec.rb
|
|
809
|
+
- spec/models/option_instrument_kind_spec.rb
|
|
810
|
+
- spec/models/account_order_record_universal_symbol_spec.rb
|
|
811
|
+
- spec/models/mleg_action_strict_spec.rb
|
|
812
|
+
- spec/models/option_quote_spec.rb
|
|
813
|
+
- spec/models/child_brokerage_order_ids_spec.rb
|
|
814
|
+
- spec/models/account_universal_activity_symbol_spec.rb
|
|
815
|
+
- spec/models/underlying_symbol_exchange_spec.rb
|
|
816
|
+
- spec/models/account_information_get_user_account_order_detail_request_spec.rb
|
|
817
|
+
- spec/models/account_status_spec.rb
|
|
818
|
+
- spec/models/brokerage_authorization_type_read_only_spec.rb
|
|
819
|
+
- spec/models/authentication_login_snap_trade_user200_response_spec.rb
|
|
811
820
|
- spec/models/position_currency_spec.rb
|
|
812
|
-
- spec/models/
|
|
821
|
+
- spec/models/pagination_details_spec.rb
|
|
822
|
+
- spec/models/etf_instrument_kind_spec.rb
|
|
823
|
+
- spec/models/order_type_strict_spec.rb
|
|
813
824
|
- spec/models/take_profit_spec.rb
|
|
825
|
+
- spec/models/brokerage_authorization_spec.rb
|
|
814
826
|
- spec/models/complex_order_leg_spec.rb
|
|
815
|
-
- spec/models/
|
|
816
|
-
- spec/models/
|
|
817
|
-
- spec/models/
|
|
818
|
-
- spec/models/
|
|
819
|
-
- spec/models/
|
|
820
|
-
- spec/models/
|
|
821
|
-
- spec/models/
|
|
822
|
-
- spec/models/
|
|
823
|
-
- spec/models/
|
|
824
|
-
- spec/models/
|
|
825
|
-
- spec/models/
|
|
826
|
-
- spec/models/
|
|
827
|
-
- spec/models/account_order_record_status_v2_spec.rb
|
|
828
|
-
- spec/models/model400_failed_request_response_spec.rb
|
|
829
|
-
- spec/models/mleg_order_type_strict_spec.rb
|
|
830
|
-
- spec/models/connection_type_spec.rb
|
|
831
|
-
- spec/models/strategy_quotes_spec.rb
|
|
832
|
-
- spec/models/account_universal_activity_currency_universal_symbol_spec.rb
|
|
827
|
+
- spec/models/security_type_spec.rb
|
|
828
|
+
- spec/models/complex_order_response_type_spec.rb
|
|
829
|
+
- spec/models/brokerage_authorization_refresh_confirmation_spec.rb
|
|
830
|
+
- spec/models/balance_spec.rb
|
|
831
|
+
- spec/models/account_sync_status_spec.rb
|
|
832
|
+
- spec/models/crypto_order_preview_spec.rb
|
|
833
|
+
- spec/models/options_symbol_option_type_spec.rb
|
|
834
|
+
- spec/models/schema_version_spec.rb
|
|
835
|
+
- spec/models/manual_trade_replace_form_spec.rb
|
|
836
|
+
- spec/models/crypto_trading_instrument_type_spec.rb
|
|
837
|
+
- spec/models/kind_spec.rb
|
|
838
|
+
- spec/models/option_instrument_spec.rb
|
|
833
839
|
- spec/spec_helper.rb
|