snaptrade 2.0.86 → 2.0.88
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 +376 -304
- data/lib/snaptrade/api/trading_api.rb +831 -14
- data/lib/snaptrade/models/cryptocurrency_pair.rb +12 -2
- data/lib/snaptrade/models/{crypto_spot_quote.rb → cryptocurrency_pair_quote.rb} +3 -3
- data/lib/snaptrade/models/manual_trade_form_bracket.rb +13 -19
- data/lib/snaptrade/models/manual_trade_replace_form.rb +285 -0
- data/lib/snaptrade/models/{crypto_spot_order_preview.rb → simple_order_preview.rb} +5 -5
- data/lib/snaptrade/models/{crypto_spot_order_preview_estimated_fee.rb → simple_order_preview_estimated_fee.rb} +3 -3
- data/lib/snaptrade/models/{crypto_spot_order_request_body_time_in_force.rb → simple_order_request_body_time_in_force.rb} +3 -3
- data/lib/snaptrade/models/{trading_crypto_spot_cancel_order_request.rb → trading_instrument.rb} +21 -16
- data/lib/snaptrade/models/trading_instrument_type.rb +38 -0
- data/lib/snaptrade/models/{trading_crypto_spot_place_order_request.rb → trading_place_simple_order_request.rb} +14 -14
- data/lib/snaptrade/models/{trading_crypto_spot_symbols200_response.rb → trading_search_cryptocurrency_pair_instruments200_response.rb} +3 -3
- data/lib/snaptrade/version.rb +1 -1
- data/lib/snaptrade.rb +9 -10
- data/spec/api/trading_api_spec.rb +93 -0
- data/spec/models/{crypto_spot_quote_spec.rb → cryptocurrency_pair_quote_spec.rb} +6 -6
- data/spec/models/cryptocurrency_pair_spec.rb +6 -0
- data/spec/models/manual_trade_form_bracket_spec.rb +3 -3
- data/spec/models/manual_trade_replace_form_spec.rb +59 -0
- data/spec/models/{crypto_spot_order_preview_estimated_fee_spec.rb → simple_order_preview_estimated_fee_spec.rb} +6 -6
- data/spec/models/{crypto_spot_order_preview_spec.rb → simple_order_preview_spec.rb} +6 -6
- data/spec/models/simple_order_request_body_time_in_force_spec.rb +23 -0
- data/spec/models/trading_instrument_spec.rb +35 -0
- data/spec/models/trading_instrument_type_spec.rb +23 -0
- data/spec/models/{trading_crypto_spot_place_order_request_spec.rb → trading_place_simple_order_request_spec.rb} +7 -7
- data/spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb +29 -0
- metadata +29 -26
- data/lib/snaptrade/api/crypto_spot_trading_api.rb +0 -698
- data/spec/api/crypto_spot_trading_api_spec.rb +0 -107
- data/spec/models/crypto_spot_order_request_body_time_in_force_spec.rb +0 -23
- data/spec/models/trading_crypto_spot_cancel_order_request_spec.rb +0 -29
- data/spec/models/trading_crypto_spot_symbols200_response_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.
|
4
|
+
version: 2.0.88
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SnapTrade
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-03-
|
11
|
+
date: 2025-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -87,7 +87,6 @@ files:
|
|
87
87
|
- lib/snaptrade/api/api_status_api.rb
|
88
88
|
- lib/snaptrade/api/authentication_api.rb
|
89
89
|
- lib/snaptrade/api/connections_api.rb
|
90
|
-
- lib/snaptrade/api/crypto_spot_trading_api.rb
|
91
90
|
- lib/snaptrade/api/options_api.rb
|
92
91
|
- lib/snaptrade/api/reference_data_api.rb
|
93
92
|
- lib/snaptrade/api/trading_api.rb
|
@@ -132,11 +131,8 @@ files:
|
|
132
131
|
- lib/snaptrade/models/connection_portal_version.rb
|
133
132
|
- lib/snaptrade/models/connection_type.rb
|
134
133
|
- lib/snaptrade/models/connections_session_events200_response_inner.rb
|
135
|
-
- lib/snaptrade/models/crypto_spot_order_preview.rb
|
136
|
-
- lib/snaptrade/models/crypto_spot_order_preview_estimated_fee.rb
|
137
|
-
- lib/snaptrade/models/crypto_spot_order_request_body_time_in_force.rb
|
138
|
-
- lib/snaptrade/models/crypto_spot_quote.rb
|
139
134
|
- lib/snaptrade/models/cryptocurrency_pair.rb
|
135
|
+
- lib/snaptrade/models/cryptocurrency_pair_quote.rb
|
140
136
|
- lib/snaptrade/models/currency.rb
|
141
137
|
- lib/snaptrade/models/delete_user_response.rb
|
142
138
|
- lib/snaptrade/models/dividend_at_date.rb
|
@@ -155,6 +151,7 @@ files:
|
|
155
151
|
- lib/snaptrade/models/manual_trade_form_notional_value.rb
|
156
152
|
- lib/snaptrade/models/manual_trade_form_with_options.rb
|
157
153
|
- lib/snaptrade/models/manual_trade_impact.rb
|
154
|
+
- lib/snaptrade/models/manual_trade_replace_form.rb
|
158
155
|
- lib/snaptrade/models/manual_trade_symbol.rb
|
159
156
|
- lib/snaptrade/models/model400_failed_request_response.rb
|
160
157
|
- lib/snaptrade/models/model401_failed_request_response.rb
|
@@ -198,6 +195,9 @@ files:
|
|
198
195
|
- lib/snaptrade/models/security_type.rb
|
199
196
|
- lib/snaptrade/models/session_event.rb
|
200
197
|
- lib/snaptrade/models/session_event_type.rb
|
198
|
+
- lib/snaptrade/models/simple_order_preview.rb
|
199
|
+
- lib/snaptrade/models/simple_order_preview_estimated_fee.rb
|
200
|
+
- lib/snaptrade/models/simple_order_request_body_time_in_force.rb
|
201
201
|
- lib/snaptrade/models/snap_trade_holdings_account.rb
|
202
202
|
- lib/snaptrade/models/snap_trade_holdings_total_value.rb
|
203
203
|
- lib/snaptrade/models/snap_trade_login_user_request_body.rb
|
@@ -220,9 +220,10 @@ files:
|
|
220
220
|
- lib/snaptrade/models/time_in_force_strict.rb
|
221
221
|
- lib/snaptrade/models/timeframe.rb
|
222
222
|
- lib/snaptrade/models/trading_cancel_user_account_order_request.rb
|
223
|
-
- lib/snaptrade/models/
|
224
|
-
- lib/snaptrade/models/
|
225
|
-
- lib/snaptrade/models/
|
223
|
+
- lib/snaptrade/models/trading_instrument.rb
|
224
|
+
- lib/snaptrade/models/trading_instrument_type.rb
|
225
|
+
- lib/snaptrade/models/trading_place_simple_order_request.rb
|
226
|
+
- lib/snaptrade/models/trading_search_cryptocurrency_pair_instruments200_response.rb
|
226
227
|
- lib/snaptrade/models/transactions_status.rb
|
227
228
|
- lib/snaptrade/models/type.rb
|
228
229
|
- lib/snaptrade/models/underlying_symbol.rb
|
@@ -239,7 +240,6 @@ files:
|
|
239
240
|
- spec/api/api_status_api_spec.rb
|
240
241
|
- spec/api/authentication_api_spec.rb
|
241
242
|
- spec/api/connections_api_spec.rb
|
242
|
-
- spec/api/crypto_spot_trading_api_spec.rb
|
243
243
|
- spec/api/options_api_spec.rb
|
244
244
|
- spec/api/reference_data_api_spec.rb
|
245
245
|
- spec/api/trading_api_spec.rb
|
@@ -283,10 +283,7 @@ files:
|
|
283
283
|
- spec/models/connection_portal_version_spec.rb
|
284
284
|
- spec/models/connection_type_spec.rb
|
285
285
|
- spec/models/connections_session_events200_response_inner_spec.rb
|
286
|
-
- spec/models/
|
287
|
-
- spec/models/crypto_spot_order_preview_spec.rb
|
288
|
-
- spec/models/crypto_spot_order_request_body_time_in_force_spec.rb
|
289
|
-
- spec/models/crypto_spot_quote_spec.rb
|
286
|
+
- spec/models/cryptocurrency_pair_quote_spec.rb
|
290
287
|
- spec/models/cryptocurrency_pair_spec.rb
|
291
288
|
- spec/models/currency_spec.rb
|
292
289
|
- spec/models/delete_user_response_spec.rb
|
@@ -305,6 +302,7 @@ files:
|
|
305
302
|
- spec/models/manual_trade_form_spec.rb
|
306
303
|
- spec/models/manual_trade_form_with_options_spec.rb
|
307
304
|
- spec/models/manual_trade_impact_spec.rb
|
305
|
+
- spec/models/manual_trade_replace_form_spec.rb
|
308
306
|
- spec/models/manual_trade_spec.rb
|
309
307
|
- spec/models/manual_trade_symbol_spec.rb
|
310
308
|
- spec/models/model400_failed_request_response_spec.rb
|
@@ -349,6 +347,9 @@ files:
|
|
349
347
|
- spec/models/security_type_spec.rb
|
350
348
|
- spec/models/session_event_spec.rb
|
351
349
|
- spec/models/session_event_type_spec.rb
|
350
|
+
- spec/models/simple_order_preview_estimated_fee_spec.rb
|
351
|
+
- spec/models/simple_order_preview_spec.rb
|
352
|
+
- spec/models/simple_order_request_body_time_in_force_spec.rb
|
352
353
|
- spec/models/snap_trade_holdings_account_spec.rb
|
353
354
|
- spec/models/snap_trade_holdings_total_value_spec.rb
|
354
355
|
- spec/models/snap_trade_login_user_request_body_spec.rb
|
@@ -371,9 +372,10 @@ files:
|
|
371
372
|
- spec/models/time_in_force_strict_spec.rb
|
372
373
|
- spec/models/timeframe_spec.rb
|
373
374
|
- spec/models/trading_cancel_user_account_order_request_spec.rb
|
374
|
-
- spec/models/
|
375
|
-
- spec/models/
|
376
|
-
- spec/models/
|
375
|
+
- spec/models/trading_instrument_spec.rb
|
376
|
+
- spec/models/trading_instrument_type_spec.rb
|
377
|
+
- spec/models/trading_place_simple_order_request_spec.rb
|
378
|
+
- spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
|
377
379
|
- spec/models/transactions_status_spec.rb
|
378
380
|
- spec/models/type_spec.rb
|
379
381
|
- spec/models/underlying_symbol_exchange_spec.rb
|
@@ -413,7 +415,6 @@ summary: SnapTrade Ruby Gem
|
|
413
415
|
test_files:
|
414
416
|
- spec/api/options_api_spec.rb
|
415
417
|
- spec/api/transactions_and_reporting_api_spec.rb
|
416
|
-
- spec/api/crypto_spot_trading_api_spec.rb
|
417
418
|
- spec/api/account_information_api_spec.rb
|
418
419
|
- spec/api/connections_api_spec.rb
|
419
420
|
- spec/api/api_status_api_spec.rb
|
@@ -442,11 +443,10 @@ test_files:
|
|
442
443
|
- spec/models/options_position_currency_spec.rb
|
443
444
|
- spec/models/manual_trade_and_impact_spec.rb
|
444
445
|
- spec/models/validated_trade_body_spec.rb
|
445
|
-
- spec/models/
|
446
|
+
- spec/models/simple_order_preview_estimated_fee_spec.rb
|
446
447
|
- spec/models/exchange_rate_pairs_spec.rb
|
447
448
|
- spec/models/strategy_order_record_spec.rb
|
448
449
|
- spec/models/option_chain_inner_chain_per_root_inner_spec.rb
|
449
|
-
- spec/models/crypto_spot_order_request_body_time_in_force_spec.rb
|
450
450
|
- spec/models/model425_failed_request_response_spec.rb
|
451
451
|
- spec/models/underlying_symbol_exchange_spec.rb
|
452
452
|
- spec/models/symbol_exchange_spec.rb
|
@@ -477,6 +477,7 @@ test_files:
|
|
477
477
|
- spec/models/brokerage_type_spec.rb
|
478
478
|
- spec/models/rate_of_return_response_spec.rb
|
479
479
|
- spec/models/net_contributions_spec.rb
|
480
|
+
- spec/models/trading_instrument_spec.rb
|
480
481
|
- spec/models/notional_value_spec.rb
|
481
482
|
- spec/models/stop_loss_spec.rb
|
482
483
|
- spec/models/model404_failed_request_response_spec.rb
|
@@ -494,15 +495,13 @@ test_files:
|
|
494
495
|
- spec/models/symbol_figi_instrument_spec.rb
|
495
496
|
- spec/models/order_updated_response_spec.rb
|
496
497
|
- spec/models/strategy_quotes_spec.rb
|
498
|
+
- spec/models/simple_order_request_body_time_in_force_spec.rb
|
497
499
|
- spec/models/monthly_dividends_spec.rb
|
498
|
-
- spec/models/trading_crypto_spot_place_order_request_spec.rb
|
499
500
|
- spec/models/snap_trade_register_user_request_body_spec.rb
|
500
501
|
- spec/models/account_order_record_quote_currency_spec.rb
|
501
|
-
- spec/models/crypto_spot_order_preview_spec.rb
|
502
502
|
- spec/models/status_spec.rb
|
503
503
|
- spec/models/account_sync_status_spec.rb
|
504
504
|
- spec/models/account_balance_total_spec.rb
|
505
|
-
- spec/models/trading_crypto_spot_cancel_order_request_spec.rb
|
506
505
|
- spec/models/take_profit_spec.rb
|
507
506
|
- spec/models/balance_currency_spec.rb
|
508
507
|
- spec/models/option_type_spec.rb
|
@@ -512,6 +511,7 @@ test_files:
|
|
512
511
|
- spec/models/model403_failed_request_response_spec.rb
|
513
512
|
- spec/models/sub_period_return_rate_spec.rb
|
514
513
|
- spec/models/snap_trade_holdings_total_value_spec.rb
|
514
|
+
- spec/models/simple_order_preview_spec.rb
|
515
515
|
- spec/models/brokerage_authorization_refresh_confirmation_spec.rb
|
516
516
|
- spec/models/paginated_universal_activity_spec.rb
|
517
517
|
- spec/models/account_universal_activity_symbol_spec.rb
|
@@ -526,10 +526,13 @@ test_files:
|
|
526
526
|
- spec/models/action_strict_with_options_spec.rb
|
527
527
|
- spec/models/currency_spec.rb
|
528
528
|
- spec/models/symbol_query_spec.rb
|
529
|
+
- spec/models/trading_place_simple_order_request_spec.rb
|
529
530
|
- spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
|
531
|
+
- spec/models/manual_trade_replace_form_spec.rb
|
530
532
|
- spec/models/model402_brokerage_auth_disabled_response_spec.rb
|
531
533
|
- spec/models/trading_cancel_user_account_order_request_spec.rb
|
532
534
|
- spec/models/underlying_symbol_spec.rb
|
535
|
+
- spec/models/cryptocurrency_pair_quote_spec.rb
|
533
536
|
- spec/models/model400_failed_request_response_spec.rb
|
534
537
|
- spec/models/net_dividend_spec.rb
|
535
538
|
- spec/models/user_i_dand_secret_spec.rb
|
@@ -539,7 +542,8 @@ test_files:
|
|
539
542
|
- spec/models/position_spec.rb
|
540
543
|
- spec/models/holdings_status_spec.rb
|
541
544
|
- spec/models/recent_orders_response_spec.rb
|
542
|
-
- spec/models/
|
545
|
+
- spec/models/trading_instrument_type_spec.rb
|
546
|
+
- spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
|
543
547
|
- spec/models/encrypted_response_encrypted_message_data_spec.rb
|
544
548
|
- spec/models/manual_trade_form_notional_value_spec.rb
|
545
549
|
- spec/models/dividend_at_date_spec.rb
|
@@ -557,7 +561,6 @@ test_files:
|
|
557
561
|
- spec/models/manual_trade_spec.rb
|
558
562
|
- spec/models/brokerage_authorization_type_read_only_spec.rb
|
559
563
|
- spec/models/option_brokerage_symbol_spec.rb
|
560
|
-
- spec/models/crypto_spot_quote_spec.rb
|
561
564
|
- spec/models/account_order_record_quote_universal_symbol_spec.rb
|
562
565
|
- spec/models/manual_trade_symbol_spec.rb
|
563
566
|
- spec/spec_helper.rb
|