snaptrade 2.0.95 → 2.0.96

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.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +91 -12
  4. data/lib/snaptrade/api/options_api.rb +2 -2
  5. data/lib/snaptrade/api/trading_api.rb +148 -8
  6. data/lib/snaptrade/models/manual_trade.rb +1 -1
  7. data/lib/snaptrade/models/manual_trade_form.rb +1 -1
  8. data/lib/snaptrade/models/manual_trade_form_bracket.rb +1 -1
  9. data/lib/snaptrade/models/manual_trade_form_with_options.rb +1 -1
  10. data/lib/snaptrade/models/manual_trade_replace_form.rb +1 -1
  11. data/lib/snaptrade/models/mleg_action_strict.rb +41 -0
  12. data/lib/snaptrade/models/mleg_leg.rb +251 -0
  13. data/lib/snaptrade/models/mleg_order_request_body_type.rb +39 -0
  14. data/lib/snaptrade/models/mleg_order_response.rb +238 -0
  15. data/lib/snaptrade/models/mleg_trading_instrument.rb +237 -0
  16. data/lib/snaptrade/models/mleg_trading_instrument_type.rb +37 -0
  17. data/lib/snaptrade/models/options_place_option_strategy_request.rb +1 -1
  18. data/lib/snaptrade/models/time_in_force_strict.rb +2 -1
  19. data/lib/snaptrade/models/trading_place_mleg_order_request.rb +275 -0
  20. data/lib/snaptrade/version.rb +1 -1
  21. data/lib/snaptrade.rb +7 -0
  22. data/spec/api/trading_api_spec.rb +15 -0
  23. data/spec/models/mleg_action_strict_spec.rb +23 -0
  24. data/spec/models/mleg_leg_spec.rb +41 -0
  25. data/spec/models/mleg_order_request_body_type_spec.rb +23 -0
  26. data/spec/models/mleg_order_response_spec.rb +35 -0
  27. data/spec/models/mleg_trading_instrument_spec.rb +35 -0
  28. data/spec/models/mleg_trading_instrument_type_spec.rb +23 -0
  29. data/spec/models/trading_place_mleg_order_request_spec.rb +53 -0
  30. metadata +23 -2
@@ -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::MlegOrderRequestBodyType
15
+ describe SnapTrade::MlegOrderRequestBodyType do
16
+ let(:instance) { SnapTrade::MlegOrderRequestBodyType.new }
17
+
18
+ describe 'test an instance of MlegOrderRequestBodyType' do
19
+ it 'should create an instance of MlegOrderRequestBodyType' do
20
+ expect(instance).to be_instance_of(SnapTrade::MlegOrderRequestBodyType)
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,35 @@
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::MlegOrderResponse
15
+ describe SnapTrade::MlegOrderResponse do
16
+ let(:instance) { SnapTrade::MlegOrderResponse.new }
17
+
18
+ describe 'test an instance of MlegOrderResponse' do
19
+ it 'should create an instance of MlegOrderResponse' do
20
+ expect(instance).to be_instance_of(SnapTrade::MlegOrderResponse)
21
+ end
22
+ end
23
+ describe 'test attribute "brokerage_order_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 "orders"' 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
@@ -0,0 +1,35 @@
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::MlegTradingInstrument
15
+ describe SnapTrade::MlegTradingInstrument do
16
+ let(:instance) { SnapTrade::MlegTradingInstrument.new }
17
+
18
+ describe 'test an instance of MlegTradingInstrument' do
19
+ it 'should create an instance of MlegTradingInstrument' do
20
+ expect(instance).to be_instance_of(SnapTrade::MlegTradingInstrument)
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
+ describe 'test attribute "type"' 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
@@ -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::MlegTradingInstrumentType
15
+ describe SnapTrade::MlegTradingInstrumentType do
16
+ let(:instance) { SnapTrade::MlegTradingInstrumentType.new }
17
+
18
+ describe 'test an instance of MlegTradingInstrumentType' do
19
+ it 'should create an instance of MlegTradingInstrumentType' do
20
+ expect(instance).to be_instance_of(SnapTrade::MlegTradingInstrumentType)
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,53 @@
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::TradingPlaceMlegOrderRequest
15
+ describe SnapTrade::TradingPlaceMlegOrderRequest do
16
+ let(:instance) { SnapTrade::TradingPlaceMlegOrderRequest.new }
17
+
18
+ describe 'test an instance of TradingPlaceMlegOrderRequest' do
19
+ it 'should create an instance of TradingPlaceMlegOrderRequest' do
20
+ expect(instance).to be_instance_of(SnapTrade::TradingPlaceMlegOrderRequest)
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
+ describe 'test attribute "time_in_force"' 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 "limit_price"' 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 "stop_price"' 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 "legs"' 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
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snaptrade
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.95
4
+ version: 2.0.96
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-23 00:00:00.000000000 Z
11
+ date: 2025-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -153,6 +153,12 @@ files:
153
153
  - lib/snaptrade/models/manual_trade_impact.rb
154
154
  - lib/snaptrade/models/manual_trade_replace_form.rb
155
155
  - lib/snaptrade/models/manual_trade_symbol.rb
156
+ - lib/snaptrade/models/mleg_action_strict.rb
157
+ - lib/snaptrade/models/mleg_leg.rb
158
+ - lib/snaptrade/models/mleg_order_request_body_type.rb
159
+ - lib/snaptrade/models/mleg_order_response.rb
160
+ - lib/snaptrade/models/mleg_trading_instrument.rb
161
+ - lib/snaptrade/models/mleg_trading_instrument_type.rb
156
162
  - lib/snaptrade/models/model400_failed_request_response.rb
157
163
  - lib/snaptrade/models/model401_failed_request_response.rb
158
164
  - lib/snaptrade/models/model402_brokerage_auth_already_disabled_exception.rb
@@ -222,6 +228,7 @@ files:
222
228
  - lib/snaptrade/models/trading_cancel_user_account_order_request.rb
223
229
  - lib/snaptrade/models/trading_instrument.rb
224
230
  - lib/snaptrade/models/trading_instrument_type.rb
231
+ - lib/snaptrade/models/trading_place_mleg_order_request.rb
225
232
  - lib/snaptrade/models/trading_place_simple_order_request.rb
226
233
  - lib/snaptrade/models/trading_search_cryptocurrency_pair_instruments200_response.rb
227
234
  - lib/snaptrade/models/transactions_status.rb
@@ -305,6 +312,12 @@ files:
305
312
  - spec/models/manual_trade_replace_form_spec.rb
306
313
  - spec/models/manual_trade_spec.rb
307
314
  - spec/models/manual_trade_symbol_spec.rb
315
+ - spec/models/mleg_action_strict_spec.rb
316
+ - spec/models/mleg_leg_spec.rb
317
+ - spec/models/mleg_order_request_body_type_spec.rb
318
+ - spec/models/mleg_order_response_spec.rb
319
+ - spec/models/mleg_trading_instrument_spec.rb
320
+ - spec/models/mleg_trading_instrument_type_spec.rb
308
321
  - spec/models/model400_failed_request_response_spec.rb
309
322
  - spec/models/model401_failed_request_response_spec.rb
310
323
  - spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
@@ -374,6 +387,7 @@ files:
374
387
  - spec/models/trading_cancel_user_account_order_request_spec.rb
375
388
  - spec/models/trading_instrument_spec.rb
376
389
  - spec/models/trading_instrument_type_spec.rb
390
+ - spec/models/trading_place_mleg_order_request_spec.rb
377
391
  - spec/models/trading_place_simple_order_request_spec.rb
378
392
  - spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
379
393
  - spec/models/transactions_status_spec.rb
@@ -425,6 +439,7 @@ test_files:
425
439
  - spec/configuration_spec.rb
426
440
  - spec/getting_started_spec.rb
427
441
  - spec/models/brokerage_authorization_refresh_confirmation_spec.rb
442
+ - spec/models/mleg_trading_instrument_type_spec.rb
428
443
  - spec/models/model400_failed_request_response_spec.rb
429
444
  - spec/models/monthly_dividends_spec.rb
430
445
  - spec/models/manual_trade_form_spec.rb
@@ -452,6 +467,7 @@ test_files:
452
467
  - spec/models/brokerage_authorization_spec.rb
453
468
  - spec/models/trading_place_simple_order_request_spec.rb
454
469
  - spec/models/time_in_force_strict_spec.rb
470
+ - spec/models/mleg_action_strict_spec.rb
455
471
  - spec/models/snap_trade_login_user_request_body_spec.rb
456
472
  - spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
457
473
  - spec/models/manual_trade_replace_form_spec.rb
@@ -471,6 +487,7 @@ test_files:
471
487
  - spec/models/symbol_currency_spec.rb
472
488
  - spec/models/option_brokerage_symbol_spec.rb
473
489
  - spec/models/underlying_symbol_type_spec.rb
490
+ - spec/models/mleg_trading_instrument_spec.rb
474
491
  - spec/models/position_symbol_spec.rb
475
492
  - spec/models/past_value_spec.rb
476
493
  - spec/models/brokerage_authorization_type_read_only_spec.rb
@@ -490,10 +507,12 @@ test_files:
490
507
  - spec/models/currency_spec.rb
491
508
  - spec/models/options_position_currency_spec.rb
492
509
  - spec/models/notional_value_spec.rb
510
+ - spec/models/mleg_order_response_spec.rb
493
511
  - spec/models/manual_trade_balance_spec.rb
494
512
  - spec/models/connection_portal_version_spec.rb
495
513
  - spec/models/strategy_quotes_spec.rb
496
514
  - spec/models/snap_trade_register_user_request_body_spec.rb
515
+ - spec/models/trading_place_mleg_order_request_spec.rb
497
516
  - spec/models/account_holdings_spec.rb
498
517
  - spec/models/account_order_record_quote_universal_symbol_spec.rb
499
518
  - spec/models/manual_trade_spec.rb
@@ -516,9 +535,11 @@ test_files:
516
535
  - spec/models/account_order_record_option_symbol_spec.rb
517
536
  - spec/models/status_spec.rb
518
537
  - spec/models/snap_trade_holdings_total_value_spec.rb
538
+ - spec/models/mleg_order_request_body_type_spec.rb
519
539
  - spec/models/strategy_order_record_status_spec.rb
520
540
  - spec/models/session_event_type_spec.rb
521
541
  - spec/models/authentication_login_snap_trade_user200_response_spec.rb
542
+ - spec/models/mleg_leg_spec.rb
522
543
  - spec/models/symbol_query_spec.rb
523
544
  - spec/models/trading_instrument_type_spec.rb
524
545
  - spec/models/simple_order_preview_spec.rb