snaptrade 2.0.31 → 2.0.32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +31 -29
  3. data/README.md +4 -2
  4. data/lib/snaptrade/api/account_information_api.rb +6 -2
  5. data/lib/snaptrade/models/account_holdings_account.rb +1 -1
  6. data/lib/snaptrade/models/account_order_record.rb +4 -2
  7. data/lib/snaptrade/models/exchange.rb +9 -1
  8. data/lib/snaptrade/models/figi_instrument.rb +3 -1
  9. data/lib/snaptrade/models/option_brokerage_symbol.rb +3 -1
  10. data/lib/snaptrade/models/options_position.rb +1 -1
  11. data/lib/snaptrade/models/options_position_currency.rb +1 -0
  12. data/lib/snaptrade/models/options_symbol.rb +12 -24
  13. data/lib/snaptrade/models/position_symbol.rb +6 -1
  14. data/lib/snaptrade/models/security_type.rb +5 -1
  15. data/lib/snaptrade/models/symbol_figi_instrument.rb +2 -0
  16. data/lib/snaptrade/models/underlying_symbol.rb +20 -5
  17. data/lib/snaptrade/models/{model_portfolio.rb → underlying_symbol_exchange.rb} +73 -12
  18. data/lib/snaptrade/models/{brokerage_symbol.rb → underlying_symbol_type.rb} +28 -38
  19. data/lib/snaptrade/models/universal_symbol.rb +9 -3
  20. data/lib/snaptrade/models/{model_asset_class.rb → universal_symbol_currency.rb} +24 -4
  21. data/lib/snaptrade/models/{portfolio_group.rb → universal_symbol_exchange.rb} +78 -7
  22. data/lib/snaptrade/version.rb +1 -1
  23. data/lib/snaptrade.rb +4 -36
  24. data/spec/api/account_information_api_spec.rb +1 -1
  25. data/spec/models/options_symbol_spec.rb +0 -12
  26. data/spec/models/{brokerage_symbol_option_symbol_spec.rb → underlying_symbol_exchange_spec.rb} +14 -14
  27. data/spec/models/underlying_symbol_spec.rb +6 -0
  28. data/spec/models/{trade_impact_spec.rb → underlying_symbol_type_spec.rb} +10 -16
  29. data/spec/models/{model_portfolio_spec.rb → universal_symbol_currency_spec.rb} +8 -8
  30. data/spec/models/{trade_spec.rb → universal_symbol_exchange_spec.rb} +13 -13
  31. metadata +113 -209
  32. data/lib/snaptrade/models/brokerage_authorization_type.rb +0 -216
  33. data/lib/snaptrade/models/brokerage_authorization_type_type.rb +0 -37
  34. data/lib/snaptrade/models/brokerage_symbol_option_symbol.rb +0 -325
  35. data/lib/snaptrade/models/brokerage_symbol_symbol.rb +0 -339
  36. data/lib/snaptrade/models/calculated_trade.rb +0 -228
  37. data/lib/snaptrade/models/excluded_asset.rb +0 -217
  38. data/lib/snaptrade/models/jwt.rb +0 -217
  39. data/lib/snaptrade/models/model_asset_class_details.rb +0 -227
  40. data/lib/snaptrade/models/model_asset_class_target.rb +0 -216
  41. data/lib/snaptrade/models/model_portfolio_asset_class.rb +0 -249
  42. data/lib/snaptrade/models/model_portfolio_details.rb +0 -238
  43. data/lib/snaptrade/models/model_portfolio_security.rb +0 -249
  44. data/lib/snaptrade/models/model_type.rb +0 -38
  45. data/lib/snaptrade/models/portfolio_group_info.rb +0 -325
  46. data/lib/snaptrade/models/portfolio_group_position.rb +0 -237
  47. data/lib/snaptrade/models/portfolio_group_settings.rb +0 -276
  48. data/lib/snaptrade/models/redirect_tokenand_pin.rb +0 -226
  49. data/lib/snaptrade/models/snap_trade_api_disclaimer_accept_status.rb +0 -226
  50. data/lib/snaptrade/models/state.rb +0 -40
  51. data/lib/snaptrade/models/strategy_impact.rb +0 -309
  52. data/lib/snaptrade/models/strategy_impact_legs_inner.rb +0 -270
  53. data/lib/snaptrade/models/strategy_order_place.rb +0 -228
  54. data/lib/snaptrade/models/strategy_order_place_orders_inner.rb +0 -596
  55. data/lib/snaptrade/models/strategy_order_place_orders_inner_legs_inner.rb +0 -270
  56. data/lib/snaptrade/models/target_asset.rb +0 -289
  57. data/lib/snaptrade/models/trade.rb +0 -280
  58. data/lib/snaptrade/models/trade_action.rb +0 -37
  59. data/lib/snaptrade/models/trade_execution_status.rb +0 -297
  60. data/lib/snaptrade/models/trade_execution_status_action.rb +0 -37
  61. data/lib/snaptrade/models/trade_impact.rb +0 -256
  62. data/lib/snaptrade/models/user_error_log.rb +0 -262
  63. data/lib/snaptrade/models/user_settings.rb +0 -298
  64. data/spec/models/brokerage_authorization_type_spec.rb +0 -29
  65. data/spec/models/brokerage_authorization_type_type_spec.rb +0 -23
  66. data/spec/models/brokerage_symbol_spec.rb +0 -59
  67. data/spec/models/brokerage_symbol_symbol_spec.rb +0 -83
  68. data/spec/models/calculated_trade_spec.rb +0 -35
  69. data/spec/models/excluded_asset_spec.rb +0 -29
  70. data/spec/models/jwt_spec.rb +0 -29
  71. data/spec/models/model_asset_class_details_spec.rb +0 -35
  72. data/spec/models/model_asset_class_spec.rb +0 -35
  73. data/spec/models/model_asset_class_target_spec.rb +0 -29
  74. data/spec/models/model_portfolio_asset_class_spec.rb +0 -35
  75. data/spec/models/model_portfolio_details_spec.rb +0 -41
  76. data/spec/models/model_portfolio_security_spec.rb +0 -35
  77. data/spec/models/model_type_spec.rb +0 -23
  78. data/spec/models/portfolio_group_info_spec.rb +0 -89
  79. data/spec/models/portfolio_group_position_spec.rb +0 -41
  80. data/spec/models/portfolio_group_settings_spec.rb +0 -53
  81. data/spec/models/portfolio_group_spec.rb +0 -35
  82. data/spec/models/redirect_tokenand_pin_spec.rb +0 -35
  83. data/spec/models/snap_trade_api_disclaimer_accept_status_spec.rb +0 -35
  84. data/spec/models/state_spec.rb +0 -23
  85. data/spec/models/strategy_impact_legs_inner_spec.rb +0 -65
  86. data/spec/models/strategy_impact_spec.rb +0 -89
  87. data/spec/models/strategy_order_place_orders_inner_legs_inner_spec.rb +0 -65
  88. data/spec/models/strategy_order_place_orders_inner_spec.rb +0 -281
  89. data/spec/models/strategy_order_place_spec.rb +0 -35
  90. data/spec/models/target_asset_spec.rb +0 -59
  91. data/spec/models/trade_action_spec.rb +0 -23
  92. data/spec/models/trade_execution_status_action_spec.rb +0 -23
  93. data/spec/models/trade_execution_status_spec.rb +0 -77
  94. data/spec/models/user_error_log_spec.rb +0 -59
  95. data/spec/models/user_settings_spec.rb +0 -83
@@ -1,298 +0,0 @@
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
- # User account settings
15
- class UserSettings
16
- attr_accessor :email
17
-
18
- attr_accessor :name
19
-
20
- attr_accessor :receive_cash_notification
21
-
22
- attr_accessor :receive_drift_notification
23
-
24
- attr_accessor :user_trial_activated
25
-
26
- attr_accessor :activated_trial_date
27
-
28
- attr_accessor :demo
29
-
30
- attr_accessor :api_enabled
31
-
32
- attr_accessor :drift_threshold
33
-
34
- attr_accessor :preferred_currency
35
-
36
- # Attribute mapping from ruby-style variable name to JSON key.
37
- def self.attribute_map
38
- {
39
- :'email' => :'email',
40
- :'name' => :'name',
41
- :'receive_cash_notification' => :'receive_cash_notification',
42
- :'receive_drift_notification' => :'receive_drift_notification',
43
- :'user_trial_activated' => :'user_trial_activated',
44
- :'activated_trial_date' => :'activated_trial_date',
45
- :'demo' => :'demo',
46
- :'api_enabled' => :'api_enabled',
47
- :'drift_threshold' => :'drift_threshold',
48
- :'preferred_currency' => :'preferred_currency'
49
- }
50
- end
51
-
52
- # Returns all the JSON keys this model knows about
53
- def self.acceptable_attributes
54
- attribute_map.values
55
- end
56
-
57
- # Attribute type mapping.
58
- def self.openapi_types
59
- {
60
- :'email' => :'String',
61
- :'name' => :'String',
62
- :'receive_cash_notification' => :'Boolean',
63
- :'receive_drift_notification' => :'Boolean',
64
- :'user_trial_activated' => :'Boolean',
65
- :'activated_trial_date' => :'String',
66
- :'demo' => :'Boolean',
67
- :'api_enabled' => :'Boolean',
68
- :'drift_threshold' => :'Float',
69
- :'preferred_currency' => :'Currency'
70
- }
71
- end
72
-
73
- # List of attributes with nullable: true
74
- def self.openapi_nullable
75
- Set.new([
76
- ])
77
- end
78
-
79
- # Initializes the object
80
- # @param [Hash] attributes Model attributes in the form of hash
81
- def initialize(attributes = {})
82
- if (!attributes.is_a?(Hash))
83
- fail ArgumentError, "The input argument (attributes) must be a hash in `SnapTrade::UserSettings` initialize method"
84
- end
85
-
86
- # check to see if the attribute exists and convert string to symbol for hash key
87
- attributes = attributes.each_with_object({}) { |(k, v), h|
88
- if (!self.class.attribute_map.key?(k.to_sym))
89
- fail ArgumentError, "`#{k}` is not a valid attribute in `SnapTrade::UserSettings`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
90
- end
91
- h[k.to_sym] = v
92
- }
93
-
94
- if attributes.key?(:'email')
95
- self.email = attributes[:'email']
96
- end
97
-
98
- if attributes.key?(:'name')
99
- self.name = attributes[:'name']
100
- end
101
-
102
- if attributes.key?(:'receive_cash_notification')
103
- self.receive_cash_notification = attributes[:'receive_cash_notification']
104
- end
105
-
106
- if attributes.key?(:'receive_drift_notification')
107
- self.receive_drift_notification = attributes[:'receive_drift_notification']
108
- end
109
-
110
- if attributes.key?(:'user_trial_activated')
111
- self.user_trial_activated = attributes[:'user_trial_activated']
112
- end
113
-
114
- if attributes.key?(:'activated_trial_date')
115
- self.activated_trial_date = attributes[:'activated_trial_date']
116
- end
117
-
118
- if attributes.key?(:'demo')
119
- self.demo = attributes[:'demo']
120
- end
121
-
122
- if attributes.key?(:'api_enabled')
123
- self.api_enabled = attributes[:'api_enabled']
124
- end
125
-
126
- if attributes.key?(:'drift_threshold')
127
- self.drift_threshold = attributes[:'drift_threshold']
128
- end
129
-
130
- if attributes.key?(:'preferred_currency')
131
- self.preferred_currency = attributes[:'preferred_currency']
132
- end
133
- end
134
-
135
- # Show invalid properties with the reasons. Usually used together with valid?
136
- # @return Array for valid properties with the reasons
137
- def list_invalid_properties
138
- invalid_properties = Array.new
139
- invalid_properties
140
- end
141
-
142
- # Check to see if the all the properties in the model are valid
143
- # @return true if the model is valid
144
- def valid?
145
- true
146
- end
147
-
148
- # Checks equality by comparing each attribute.
149
- # @param [Object] Object to be compared
150
- def ==(o)
151
- return true if self.equal?(o)
152
- self.class == o.class &&
153
- email == o.email &&
154
- name == o.name &&
155
- receive_cash_notification == o.receive_cash_notification &&
156
- receive_drift_notification == o.receive_drift_notification &&
157
- user_trial_activated == o.user_trial_activated &&
158
- activated_trial_date == o.activated_trial_date &&
159
- demo == o.demo &&
160
- api_enabled == o.api_enabled &&
161
- drift_threshold == o.drift_threshold &&
162
- preferred_currency == o.preferred_currency
163
- end
164
-
165
- # @see the `==` method
166
- # @param [Object] Object to be compared
167
- def eql?(o)
168
- self == o
169
- end
170
-
171
- # Calculates hash code according to all attributes.
172
- # @return [Integer] Hash code
173
- def hash
174
- [email, name, receive_cash_notification, receive_drift_notification, user_trial_activated, activated_trial_date, demo, api_enabled, drift_threshold, preferred_currency].hash
175
- end
176
-
177
- # Builds the object from hash
178
- # @param [Hash] attributes Model attributes in the form of hash
179
- # @return [Object] Returns the model itself
180
- def self.build_from_hash(attributes)
181
- new.build_from_hash(attributes)
182
- end
183
-
184
- # Builds the object from hash
185
- # @param [Hash] attributes Model attributes in the form of hash
186
- # @return [Object] Returns the model itself
187
- def build_from_hash(attributes)
188
- return nil unless attributes.is_a?(Hash)
189
- attributes = attributes.transform_keys(&:to_sym)
190
- self.class.openapi_types.each_pair do |key, type|
191
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
192
- self.send("#{key}=", nil)
193
- elsif type =~ /\AArray<(.*)>/i
194
- # check to ensure the input is an array given that the attribute
195
- # is documented as an array but the input is not
196
- if attributes[self.class.attribute_map[key]].is_a?(Array)
197
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
198
- end
199
- elsif !attributes[self.class.attribute_map[key]].nil?
200
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
201
- end
202
- end
203
-
204
- self
205
- end
206
-
207
- # Deserializes the data based on type
208
- # @param string type Data type
209
- # @param string value Value to be deserialized
210
- # @return [Object] Deserialized data
211
- def _deserialize(type, value)
212
- case type.to_sym
213
- when :Time
214
- Time.parse(value)
215
- when :Date
216
- Date.parse(value)
217
- when :String
218
- value.to_s
219
- when :Integer
220
- value.to_i
221
- when :Float
222
- value.to_f
223
- when :Boolean
224
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
225
- true
226
- else
227
- false
228
- end
229
- when :Object
230
- # generic object (usually a Hash), return directly
231
- value
232
- when /\AArray<(?<inner_type>.+)>\z/
233
- inner_type = Regexp.last_match[:inner_type]
234
- value.map { |v| _deserialize(inner_type, v) }
235
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
236
- k_type = Regexp.last_match[:k_type]
237
- v_type = Regexp.last_match[:v_type]
238
- {}.tap do |hash|
239
- value.each do |k, v|
240
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
241
- end
242
- end
243
- else # model
244
- # models (e.g. Pet) or oneOf
245
- klass = SnapTrade.const_get(type)
246
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
247
- end
248
- end
249
-
250
- # Returns the string representation of the object
251
- # @return [String] String presentation of the object
252
- def to_s
253
- to_hash.to_s
254
- end
255
-
256
- # to_body is an alias to to_hash (backward compatibility)
257
- # @return [Hash] Returns the object in the form of hash
258
- def to_body
259
- to_hash
260
- end
261
-
262
- # Returns the object in the form of hash
263
- # @return [Hash] Returns the object in the form of hash
264
- def to_hash
265
- hash = {}
266
- self.class.attribute_map.each_pair do |attr, param|
267
- value = self.send(attr)
268
- if value.nil?
269
- is_nullable = self.class.openapi_nullable.include?(attr)
270
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
271
- end
272
-
273
- hash[param] = _to_hash(value)
274
- end
275
- hash
276
- end
277
-
278
- # Outputs non-array value in the form of hash
279
- # For object, use to_hash. Otherwise, just return the value
280
- # @param [Object] value Any valid value
281
- # @return [Hash] Returns the value in the form of hash
282
- def _to_hash(value)
283
- if value.is_a?(Array)
284
- value.compact.map { |v| _to_hash(v) }
285
- elsif value.is_a?(Hash)
286
- {}.tap do |hash|
287
- value.each { |k, v| hash[k] = _to_hash(v) }
288
- end
289
- elsif value.respond_to? :to_hash
290
- value.to_hash
291
- else
292
- value
293
- end
294
- end
295
-
296
- end
297
-
298
- end
@@ -1,29 +0,0 @@
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::BrokerageAuthorizationType
15
- describe SnapTrade::BrokerageAuthorizationType do
16
- let(:instance) { SnapTrade::BrokerageAuthorizationType.new }
17
-
18
- describe 'test an instance of BrokerageAuthorizationType' do
19
- it 'should create an instance of BrokerageAuthorizationType' do
20
- expect(instance).to be_instance_of(SnapTrade::BrokerageAuthorizationType)
21
- end
22
- end
23
- describe 'test attribute "type"' do
24
- it 'should work' do
25
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
26
- end
27
- end
28
-
29
- end
@@ -1,23 +0,0 @@
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::BrokerageAuthorizationTypeType
15
- describe SnapTrade::BrokerageAuthorizationTypeType do
16
- let(:instance) { SnapTrade::BrokerageAuthorizationTypeType.new }
17
-
18
- describe 'test an instance of BrokerageAuthorizationTypeType' do
19
- it 'should create an instance of BrokerageAuthorizationTypeType' do
20
- expect(instance).to be_instance_of(SnapTrade::BrokerageAuthorizationTypeType)
21
- end
22
- end
23
- end
@@ -1,59 +0,0 @@
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::BrokerageSymbol
15
- describe SnapTrade::BrokerageSymbol do
16
- let(:instance) { SnapTrade::BrokerageSymbol.new }
17
-
18
- describe 'test an instance of BrokerageSymbol' do
19
- it 'should create an instance of BrokerageSymbol' do
20
- expect(instance).to be_instance_of(SnapTrade::BrokerageSymbol)
21
- end
22
- end
23
- describe 'test attribute "id"' 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 "symbol"' 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 "brokerage_authorization"' 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 "description"' 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 "allows_fractional_units"' 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 "option_symbol"' 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
- end
@@ -1,83 +0,0 @@
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::BrokerageSymbolSymbol
15
- describe SnapTrade::BrokerageSymbolSymbol do
16
- let(:instance) { SnapTrade::BrokerageSymbolSymbol.new }
17
-
18
- describe 'test an instance of BrokerageSymbolSymbol' do
19
- it 'should create an instance of BrokerageSymbolSymbol' do
20
- expect(instance).to be_instance_of(SnapTrade::BrokerageSymbolSymbol)
21
- end
22
- end
23
- describe 'test attribute "id"' 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 "symbol"' 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 "raw_symbol"' 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 "description"' 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 "currency"' 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 "exchange"' 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 "type"' 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 "currencies"' 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 "figi_code"' 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 "figi_instrument"' 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
- end
@@ -1,35 +0,0 @@
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::CalculatedTrade
15
- describe SnapTrade::CalculatedTrade do
16
- let(:instance) { SnapTrade::CalculatedTrade.new }
17
-
18
- describe 'test an instance of CalculatedTrade' do
19
- it 'should create an instance of CalculatedTrade' do
20
- expect(instance).to be_instance_of(SnapTrade::CalculatedTrade)
21
- end
22
- end
23
- describe 'test attribute "id"' 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 "trades"' 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
- end
@@ -1,29 +0,0 @@
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::ExcludedAsset
15
- describe SnapTrade::ExcludedAsset do
16
- let(:instance) { SnapTrade::ExcludedAsset.new }
17
-
18
- describe 'test an instance of ExcludedAsset' do
19
- it 'should create an instance of ExcludedAsset' do
20
- expect(instance).to be_instance_of(SnapTrade::ExcludedAsset)
21
- end
22
- end
23
- describe 'test attribute "symbol"' do
24
- it 'should work' do
25
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
26
- end
27
- end
28
-
29
- end
@@ -1,29 +0,0 @@
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::JWT
15
- describe SnapTrade::JWT do
16
- let(:instance) { SnapTrade::JWT.new }
17
-
18
- describe 'test an instance of JWT' do
19
- it 'should create an instance of JWT' do
20
- expect(instance).to be_instance_of(SnapTrade::JWT)
21
- end
22
- end
23
- describe 'test attribute "token"' do
24
- it 'should work' do
25
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
26
- end
27
- end
28
-
29
- end
@@ -1,35 +0,0 @@
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::ModelAssetClassDetails
15
- describe SnapTrade::ModelAssetClassDetails do
16
- let(:instance) { SnapTrade::ModelAssetClassDetails.new }
17
-
18
- describe 'test an instance of ModelAssetClassDetails' do
19
- it 'should create an instance of ModelAssetClassDetails' do
20
- expect(instance).to be_instance_of(SnapTrade::ModelAssetClassDetails)
21
- end
22
- end
23
- describe 'test attribute "model_asset_class"' 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 "model_asset_class_target"' 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
- end
@@ -1,35 +0,0 @@
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::ModelAssetClass
15
- describe SnapTrade::ModelAssetClass do
16
- let(:instance) { SnapTrade::ModelAssetClass.new }
17
-
18
- describe 'test an instance of ModelAssetClass' do
19
- it 'should create an instance of ModelAssetClass' do
20
- expect(instance).to be_instance_of(SnapTrade::ModelAssetClass)
21
- end
22
- end
23
- describe 'test attribute "id"' 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 "name"' 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
- end
@@ -1,29 +0,0 @@
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::ModelAssetClassTarget
15
- describe SnapTrade::ModelAssetClassTarget do
16
- let(:instance) { SnapTrade::ModelAssetClassTarget.new }
17
-
18
- describe 'test an instance of ModelAssetClassTarget' do
19
- it 'should create an instance of ModelAssetClassTarget' do
20
- expect(instance).to be_instance_of(SnapTrade::ModelAssetClassTarget)
21
- end
22
- end
23
- describe 'test attribute "symbol"' do
24
- it 'should work' do
25
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
26
- end
27
- end
28
-
29
- end