snaptrade 2.0.33 → 2.0.35

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/README.md +81 -54
  4. data/lib/snaptrade/api/account_information_api.rb +74 -56
  5. data/lib/snaptrade/api/authentication_api.rb +44 -46
  6. data/lib/snaptrade/api/connections_api.rb +8 -8
  7. data/lib/snaptrade/api/options_api.rb +16 -12
  8. data/lib/snaptrade/api/transactions_and_reporting_api.rb +36 -28
  9. data/lib/snaptrade/models/account.rb +11 -2
  10. data/lib/snaptrade/models/account_balance_total.rb +1 -8
  11. data/lib/snaptrade/models/account_holdings_account.rb +1 -1
  12. data/lib/snaptrade/models/account_order_record.rb +1 -1
  13. data/lib/snaptrade/models/account_order_record_universal_symbol.rb +2 -2
  14. data/lib/snaptrade/models/account_simple.rb +4 -1
  15. data/lib/snaptrade/models/account_sync_status.rb +1 -1
  16. data/lib/snaptrade/models/balance.rb +1 -1
  17. data/lib/snaptrade/models/{snap_trade_holdings_account_account_id_balance.rb → balance_currency.rb} +33 -12
  18. data/lib/snaptrade/models/delete_user_response.rb +12 -3
  19. data/lib/snaptrade/models/holdings_status.rb +4 -4
  20. data/lib/snaptrade/models/login_redirect_uri.rb +3 -2
  21. data/lib/snaptrade/models/snap_trade_login_user_request_body.rb +10 -6
  22. data/lib/snaptrade/models/symbol.rb +16 -10
  23. data/lib/snaptrade/models/{universal_symbol_currency.rb → symbol_currency.rb} +3 -3
  24. data/lib/snaptrade/models/{universal_symbol_exchange.rb → symbol_exchange.rb} +3 -3
  25. data/lib/snaptrade/models/transactions_status.rb +4 -5
  26. data/lib/snaptrade/models/underlying_symbol.rb +1 -1
  27. data/lib/snaptrade/models/universal_activity.rb +91 -81
  28. data/lib/snaptrade/models/{amount.rb → universal_activity_currency.rb} +36 -19
  29. data/lib/snaptrade/models/{snap_trade_holdings_account_account_id.rb → universal_activity_option_symbol.rb} +83 -82
  30. data/lib/snaptrade/models/universal_activity_symbol.rb +304 -0
  31. data/lib/snaptrade/models/universal_symbol.rb +2 -2
  32. data/lib/snaptrade/models/user_i_dand_secret.rb +1 -1
  33. data/lib/snaptrade/version.rb +1 -1
  34. data/lib/snaptrade.rb +6 -5
  35. data/spec/api/account_information_api_spec.rb +13 -13
  36. data/spec/api/authentication_api_spec.rb +7 -7
  37. data/spec/api/connections_api_spec.rb +2 -2
  38. data/spec/api/options_api_spec.rb +3 -3
  39. data/spec/api/transactions_and_reporting_api_spec.rb +7 -7
  40. data/spec/models/{universal_symbol_currency_spec.rb → balance_currency_spec.rb} +6 -6
  41. data/spec/models/delete_user_response_spec.rb +6 -0
  42. data/spec/models/symbol_currency_spec.rb +41 -0
  43. data/spec/models/{universal_symbol_exchange_spec.rb → symbol_exchange_spec.rb} +6 -6
  44. data/spec/models/symbol_spec.rb +1 -1
  45. data/spec/models/universal_activity_currency_spec.rb +41 -0
  46. data/spec/models/universal_activity_option_symbol_spec.rb +65 -0
  47. data/spec/models/universal_activity_spec.rb +15 -15
  48. data/spec/models/{snap_trade_holdings_account_account_id_spec.rb → universal_activity_symbol_spec.rb} +14 -20
  49. metadata +20 -17
  50. data/spec/models/amount_spec.rb +0 -35
  51. data/spec/models/snap_trade_holdings_account_account_id_balance_spec.rb +0 -29
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snaptrade
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.33
4
+ version: 2.0.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-15 00:00:00.000000000 Z
11
+ date: 2024-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -107,10 +107,10 @@ files:
107
107
  - lib/snaptrade/models/account_simple.rb
108
108
  - lib/snaptrade/models/account_sync_status.rb
109
109
  - lib/snaptrade/models/action_strict.rb
110
- - lib/snaptrade/models/amount.rb
111
110
  - lib/snaptrade/models/auth_type.rb
112
111
  - lib/snaptrade/models/authentication_login_snap_trade_user200_response.rb
113
112
  - lib/snaptrade/models/balance.rb
113
+ - lib/snaptrade/models/balance_currency.rb
114
114
  - lib/snaptrade/models/brokerage.rb
115
115
  - lib/snaptrade/models/brokerage_authorization.rb
116
116
  - lib/snaptrade/models/brokerage_authorization_disabled_confirmation.rb
@@ -173,8 +173,6 @@ files:
173
173
  - lib/snaptrade/models/session_event.rb
174
174
  - lib/snaptrade/models/session_event_type.rb
175
175
  - lib/snaptrade/models/snap_trade_holdings_account.rb
176
- - lib/snaptrade/models/snap_trade_holdings_account_account_id.rb
177
- - lib/snaptrade/models/snap_trade_holdings_account_account_id_balance.rb
178
176
  - lib/snaptrade/models/snap_trade_holdings_total_value.rb
179
177
  - lib/snaptrade/models/snap_trade_login_user_request_body.rb
180
178
  - lib/snaptrade/models/snap_trade_register_user_request_body.rb
@@ -186,6 +184,8 @@ files:
186
184
  - lib/snaptrade/models/strategy_type.rb
187
185
  - lib/snaptrade/models/sub_period_return_rate.rb
188
186
  - lib/snaptrade/models/symbol.rb
187
+ - lib/snaptrade/models/symbol_currency.rb
188
+ - lib/snaptrade/models/symbol_exchange.rb
189
189
  - lib/snaptrade/models/symbol_figi_instrument.rb
190
190
  - lib/snaptrade/models/symbol_query.rb
191
191
  - lib/snaptrade/models/symbols_quotes_inner.rb
@@ -197,9 +197,10 @@ files:
197
197
  - lib/snaptrade/models/underlying_symbol_exchange.rb
198
198
  - lib/snaptrade/models/underlying_symbol_type.rb
199
199
  - lib/snaptrade/models/universal_activity.rb
200
+ - lib/snaptrade/models/universal_activity_currency.rb
201
+ - lib/snaptrade/models/universal_activity_option_symbol.rb
202
+ - lib/snaptrade/models/universal_activity_symbol.rb
200
203
  - lib/snaptrade/models/universal_symbol.rb
201
- - lib/snaptrade/models/universal_symbol_currency.rb
202
- - lib/snaptrade/models/universal_symbol_exchange.rb
203
204
  - lib/snaptrade/models/us_exchange.rb
204
205
  - lib/snaptrade/models/user_i_dand_secret.rb
205
206
  - lib/snaptrade/models/validated_trade_body.rb
@@ -228,9 +229,9 @@ files:
228
229
  - spec/models/account_spec.rb
229
230
  - spec/models/account_sync_status_spec.rb
230
231
  - spec/models/action_strict_spec.rb
231
- - spec/models/amount_spec.rb
232
232
  - spec/models/auth_type_spec.rb
233
233
  - spec/models/authentication_login_snap_trade_user200_response_spec.rb
234
+ - spec/models/balance_currency_spec.rb
234
235
  - spec/models/balance_spec.rb
235
236
  - spec/models/brokerage_authorization_disabled_confirmation_spec.rb
236
237
  - spec/models/brokerage_authorization_refresh_confirmation_spec.rb
@@ -293,8 +294,6 @@ files:
293
294
  - spec/models/security_type_spec.rb
294
295
  - spec/models/session_event_spec.rb
295
296
  - spec/models/session_event_type_spec.rb
296
- - spec/models/snap_trade_holdings_account_account_id_balance_spec.rb
297
- - spec/models/snap_trade_holdings_account_account_id_spec.rb
298
297
  - spec/models/snap_trade_holdings_account_spec.rb
299
298
  - spec/models/snap_trade_holdings_total_value_spec.rb
300
299
  - spec/models/snap_trade_login_user_request_body_spec.rb
@@ -306,6 +305,8 @@ files:
306
305
  - spec/models/strategy_quotes_spec.rb
307
306
  - spec/models/strategy_type_spec.rb
308
307
  - spec/models/sub_period_return_rate_spec.rb
308
+ - spec/models/symbol_currency_spec.rb
309
+ - spec/models/symbol_exchange_spec.rb
309
310
  - spec/models/symbol_figi_instrument_spec.rb
310
311
  - spec/models/symbol_query_spec.rb
311
312
  - spec/models/symbol_spec.rb
@@ -317,9 +318,10 @@ files:
317
318
  - spec/models/underlying_symbol_exchange_spec.rb
318
319
  - spec/models/underlying_symbol_spec.rb
319
320
  - spec/models/underlying_symbol_type_spec.rb
321
+ - spec/models/universal_activity_currency_spec.rb
322
+ - spec/models/universal_activity_option_symbol_spec.rb
320
323
  - spec/models/universal_activity_spec.rb
321
- - spec/models/universal_symbol_currency_spec.rb
322
- - spec/models/universal_symbol_exchange_spec.rb
324
+ - spec/models/universal_activity_symbol_spec.rb
323
325
  - spec/models/universal_symbol_spec.rb
324
326
  - spec/models/us_exchange_spec.rb
325
327
  - spec/models/user_i_dand_secret_spec.rb
@@ -363,7 +365,6 @@ test_files:
363
365
  - spec/configuration_spec.rb
364
366
  - spec/getting_started_spec.rb
365
367
  - spec/models/universal_symbol_spec.rb
366
- - spec/models/snap_trade_holdings_account_account_id_spec.rb
367
368
  - spec/models/monthly_dividends_spec.rb
368
369
  - spec/models/symbol_query_spec.rb
369
370
  - spec/models/connection_portal_version_spec.rb
@@ -371,10 +372,10 @@ test_files:
371
372
  - spec/models/type_spec.rb
372
373
  - spec/models/sub_period_return_rate_spec.rb
373
374
  - spec/models/brokerage_spec.rb
374
- - spec/models/snap_trade_holdings_account_account_id_balance_spec.rb
375
375
  - spec/models/underlying_symbol_spec.rb
376
376
  - spec/models/model404_failed_request_response_spec.rb
377
377
  - spec/models/snap_trade_login_user_request_body_spec.rb
378
+ - spec/models/universal_activity_currency_spec.rb
378
379
  - spec/models/manual_trade_form_spec.rb
379
380
  - spec/models/option_strategy_legs_inner_spec.rb
380
381
  - spec/models/session_event_type_spec.rb
@@ -416,7 +417,6 @@ test_files:
416
417
  - spec/models/symbol_spec.rb
417
418
  - spec/models/underlying_symbol_type_spec.rb
418
419
  - spec/models/security_type_spec.rb
419
- - spec/models/amount_spec.rb
420
420
  - spec/models/account_order_record_option_symbol_spec.rb
421
421
  - spec/models/account_simple_spec.rb
422
422
  - spec/models/symbols_quotes_inner_spec.rb
@@ -428,23 +428,25 @@ test_files:
428
428
  - spec/models/manual_trade_and_impact_spec.rb
429
429
  - spec/models/auth_type_spec.rb
430
430
  - spec/models/model500_unexpected_exception_response_spec.rb
431
+ - spec/models/symbol_exchange_spec.rb
431
432
  - spec/models/brokerage_authorization_type_read_only_spec.rb
432
433
  - spec/models/manual_trade_symbol_spec.rb
433
434
  - spec/models/user_i_dand_secret_spec.rb
434
435
  - spec/models/model403_feature_not_enabled_response_spec.rb
435
436
  - spec/models/manual_trade_spec.rb
436
- - spec/models/universal_symbol_currency_spec.rb
437
437
  - spec/models/account_order_record_spec.rb
438
- - spec/models/universal_symbol_exchange_spec.rb
439
438
  - spec/models/trading_cancel_user_account_order_request_spec.rb
440
439
  - spec/models/manual_trade_form_notional_value_spec.rb
441
440
  - spec/models/order_type_strict_spec.rb
442
441
  - spec/models/notional_value_spec.rb
443
442
  - spec/models/brokerage_authorization_disabled_confirmation_spec.rb
443
+ - spec/models/universal_activity_symbol_spec.rb
444
+ - spec/models/universal_activity_option_symbol_spec.rb
444
445
  - spec/models/option_type_spec.rb
445
446
  - spec/models/snap_trade_holdings_total_value_spec.rb
446
447
  - spec/models/model402_brokerage_auth_disabled_response_spec.rb
447
448
  - spec/models/option_chain_inner_chain_per_root_inner_spec.rb
449
+ - spec/models/symbol_currency_spec.rb
448
450
  - spec/models/options_place_option_strategy_request_spec.rb
449
451
  - spec/models/strategy_quotes_greek_spec.rb
450
452
  - spec/models/position_spec.rb
@@ -453,6 +455,7 @@ test_files:
453
455
  - spec/models/option_chain_inner_spec.rb
454
456
  - spec/models/account_order_record_universal_symbol_spec.rb
455
457
  - spec/models/connections_session_events200_response_inner_spec.rb
458
+ - spec/models/balance_currency_spec.rb
456
459
  - spec/models/figi_instrument_spec.rb
457
460
  - spec/models/encrypted_response_encrypted_message_data_spec.rb
458
461
  - spec/models/performance_custom_spec.rb
@@ -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::Amount
15
- describe SnapTrade::Amount do
16
- let(:instance) { SnapTrade::Amount.new }
17
-
18
- describe 'test an instance of Amount' do
19
- it 'should create an instance of Amount' do
20
- expect(instance).to be_instance_of(SnapTrade::Amount)
21
- end
22
- end
23
- describe 'test attribute "amount"' 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 "currency"' 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::SnapTradeHoldingsAccountAccountIdBalance
15
- describe SnapTrade::SnapTradeHoldingsAccountAccountIdBalance do
16
- let(:instance) { SnapTrade::SnapTradeHoldingsAccountAccountIdBalance.new }
17
-
18
- describe 'test an instance of SnapTradeHoldingsAccountAccountIdBalance' do
19
- it 'should create an instance of SnapTradeHoldingsAccountAccountIdBalance' do
20
- expect(instance).to be_instance_of(SnapTrade::SnapTradeHoldingsAccountAccountIdBalance)
21
- end
22
- end
23
- describe 'test attribute "total"' 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