snaptrade 2.0.87 → 2.0.89
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 +280 -285
- data/lib/snaptrade/api/trading_api.rb +653 -0
- 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/{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_instrument.rb +12 -2
- 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} +4 -4
- data/lib/snaptrade/version.rb +1 -1
- data/lib/snaptrade.rb +6 -10
- data/spec/api/trading_api_spec.rb +76 -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/{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_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 +20 -26
- data/lib/snaptrade/api/crypto_spot_trading_api.rb +0 -698
- data/lib/snaptrade/models/trading_crypto_spot_cancel_order_request.rb +0 -222
- 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.89
|
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-29 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
|
@@ -199,6 +195,9 @@ files:
|
|
199
195
|
- lib/snaptrade/models/security_type.rb
|
200
196
|
- lib/snaptrade/models/session_event.rb
|
201
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
|
202
201
|
- lib/snaptrade/models/snap_trade_holdings_account.rb
|
203
202
|
- lib/snaptrade/models/snap_trade_holdings_total_value.rb
|
204
203
|
- lib/snaptrade/models/snap_trade_login_user_request_body.rb
|
@@ -221,11 +220,10 @@ files:
|
|
221
220
|
- lib/snaptrade/models/time_in_force_strict.rb
|
222
221
|
- lib/snaptrade/models/timeframe.rb
|
223
222
|
- lib/snaptrade/models/trading_cancel_user_account_order_request.rb
|
224
|
-
- lib/snaptrade/models/trading_crypto_spot_cancel_order_request.rb
|
225
|
-
- lib/snaptrade/models/trading_crypto_spot_place_order_request.rb
|
226
|
-
- lib/snaptrade/models/trading_crypto_spot_symbols200_response.rb
|
227
223
|
- lib/snaptrade/models/trading_instrument.rb
|
228
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
|
229
227
|
- lib/snaptrade/models/transactions_status.rb
|
230
228
|
- lib/snaptrade/models/type.rb
|
231
229
|
- lib/snaptrade/models/underlying_symbol.rb
|
@@ -242,7 +240,6 @@ files:
|
|
242
240
|
- spec/api/api_status_api_spec.rb
|
243
241
|
- spec/api/authentication_api_spec.rb
|
244
242
|
- spec/api/connections_api_spec.rb
|
245
|
-
- spec/api/crypto_spot_trading_api_spec.rb
|
246
243
|
- spec/api/options_api_spec.rb
|
247
244
|
- spec/api/reference_data_api_spec.rb
|
248
245
|
- spec/api/trading_api_spec.rb
|
@@ -286,10 +283,7 @@ files:
|
|
286
283
|
- spec/models/connection_portal_version_spec.rb
|
287
284
|
- spec/models/connection_type_spec.rb
|
288
285
|
- spec/models/connections_session_events200_response_inner_spec.rb
|
289
|
-
- spec/models/
|
290
|
-
- spec/models/crypto_spot_order_preview_spec.rb
|
291
|
-
- spec/models/crypto_spot_order_request_body_time_in_force_spec.rb
|
292
|
-
- spec/models/crypto_spot_quote_spec.rb
|
286
|
+
- spec/models/cryptocurrency_pair_quote_spec.rb
|
293
287
|
- spec/models/cryptocurrency_pair_spec.rb
|
294
288
|
- spec/models/currency_spec.rb
|
295
289
|
- spec/models/delete_user_response_spec.rb
|
@@ -353,6 +347,9 @@ files:
|
|
353
347
|
- spec/models/security_type_spec.rb
|
354
348
|
- spec/models/session_event_spec.rb
|
355
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
|
356
353
|
- spec/models/snap_trade_holdings_account_spec.rb
|
357
354
|
- spec/models/snap_trade_holdings_total_value_spec.rb
|
358
355
|
- spec/models/snap_trade_login_user_request_body_spec.rb
|
@@ -375,11 +372,10 @@ files:
|
|
375
372
|
- spec/models/time_in_force_strict_spec.rb
|
376
373
|
- spec/models/timeframe_spec.rb
|
377
374
|
- spec/models/trading_cancel_user_account_order_request_spec.rb
|
378
|
-
- spec/models/trading_crypto_spot_cancel_order_request_spec.rb
|
379
|
-
- spec/models/trading_crypto_spot_place_order_request_spec.rb
|
380
|
-
- spec/models/trading_crypto_spot_symbols200_response_spec.rb
|
381
375
|
- spec/models/trading_instrument_spec.rb
|
382
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
|
383
379
|
- spec/models/transactions_status_spec.rb
|
384
380
|
- spec/models/type_spec.rb
|
385
381
|
- spec/models/underlying_symbol_exchange_spec.rb
|
@@ -419,7 +415,6 @@ summary: SnapTrade Ruby Gem
|
|
419
415
|
test_files:
|
420
416
|
- spec/api/options_api_spec.rb
|
421
417
|
- spec/api/transactions_and_reporting_api_spec.rb
|
422
|
-
- spec/api/crypto_spot_trading_api_spec.rb
|
423
418
|
- spec/api/account_information_api_spec.rb
|
424
419
|
- spec/api/connections_api_spec.rb
|
425
420
|
- spec/api/api_status_api_spec.rb
|
@@ -448,11 +443,10 @@ test_files:
|
|
448
443
|
- spec/models/options_position_currency_spec.rb
|
449
444
|
- spec/models/manual_trade_and_impact_spec.rb
|
450
445
|
- spec/models/validated_trade_body_spec.rb
|
451
|
-
- spec/models/
|
446
|
+
- spec/models/simple_order_preview_estimated_fee_spec.rb
|
452
447
|
- spec/models/exchange_rate_pairs_spec.rb
|
453
448
|
- spec/models/strategy_order_record_spec.rb
|
454
449
|
- spec/models/option_chain_inner_chain_per_root_inner_spec.rb
|
455
|
-
- spec/models/crypto_spot_order_request_body_time_in_force_spec.rb
|
456
450
|
- spec/models/model425_failed_request_response_spec.rb
|
457
451
|
- spec/models/underlying_symbol_exchange_spec.rb
|
458
452
|
- spec/models/symbol_exchange_spec.rb
|
@@ -501,15 +495,13 @@ test_files:
|
|
501
495
|
- spec/models/symbol_figi_instrument_spec.rb
|
502
496
|
- spec/models/order_updated_response_spec.rb
|
503
497
|
- spec/models/strategy_quotes_spec.rb
|
498
|
+
- spec/models/simple_order_request_body_time_in_force_spec.rb
|
504
499
|
- spec/models/monthly_dividends_spec.rb
|
505
|
-
- spec/models/trading_crypto_spot_place_order_request_spec.rb
|
506
500
|
- spec/models/snap_trade_register_user_request_body_spec.rb
|
507
501
|
- spec/models/account_order_record_quote_currency_spec.rb
|
508
|
-
- spec/models/crypto_spot_order_preview_spec.rb
|
509
502
|
- spec/models/status_spec.rb
|
510
503
|
- spec/models/account_sync_status_spec.rb
|
511
504
|
- spec/models/account_balance_total_spec.rb
|
512
|
-
- spec/models/trading_crypto_spot_cancel_order_request_spec.rb
|
513
505
|
- spec/models/take_profit_spec.rb
|
514
506
|
- spec/models/balance_currency_spec.rb
|
515
507
|
- spec/models/option_type_spec.rb
|
@@ -519,6 +511,7 @@ test_files:
|
|
519
511
|
- spec/models/model403_failed_request_response_spec.rb
|
520
512
|
- spec/models/sub_period_return_rate_spec.rb
|
521
513
|
- spec/models/snap_trade_holdings_total_value_spec.rb
|
514
|
+
- spec/models/simple_order_preview_spec.rb
|
522
515
|
- spec/models/brokerage_authorization_refresh_confirmation_spec.rb
|
523
516
|
- spec/models/paginated_universal_activity_spec.rb
|
524
517
|
- spec/models/account_universal_activity_symbol_spec.rb
|
@@ -533,11 +526,13 @@ test_files:
|
|
533
526
|
- spec/models/action_strict_with_options_spec.rb
|
534
527
|
- spec/models/currency_spec.rb
|
535
528
|
- spec/models/symbol_query_spec.rb
|
529
|
+
- spec/models/trading_place_simple_order_request_spec.rb
|
536
530
|
- spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
|
537
531
|
- spec/models/manual_trade_replace_form_spec.rb
|
538
532
|
- spec/models/model402_brokerage_auth_disabled_response_spec.rb
|
539
533
|
- spec/models/trading_cancel_user_account_order_request_spec.rb
|
540
534
|
- spec/models/underlying_symbol_spec.rb
|
535
|
+
- spec/models/cryptocurrency_pair_quote_spec.rb
|
541
536
|
- spec/models/model400_failed_request_response_spec.rb
|
542
537
|
- spec/models/net_dividend_spec.rb
|
543
538
|
- spec/models/user_i_dand_secret_spec.rb
|
@@ -548,7 +543,7 @@ test_files:
|
|
548
543
|
- spec/models/holdings_status_spec.rb
|
549
544
|
- spec/models/recent_orders_response_spec.rb
|
550
545
|
- spec/models/trading_instrument_type_spec.rb
|
551
|
-
- spec/models/
|
546
|
+
- spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
|
552
547
|
- spec/models/encrypted_response_encrypted_message_data_spec.rb
|
553
548
|
- spec/models/manual_trade_form_notional_value_spec.rb
|
554
549
|
- spec/models/dividend_at_date_spec.rb
|
@@ -566,7 +561,6 @@ test_files:
|
|
566
561
|
- spec/models/manual_trade_spec.rb
|
567
562
|
- spec/models/brokerage_authorization_type_read_only_spec.rb
|
568
563
|
- spec/models/option_brokerage_symbol_spec.rb
|
569
|
-
- spec/models/crypto_spot_quote_spec.rb
|
570
564
|
- spec/models/account_order_record_quote_universal_symbol_spec.rb
|
571
565
|
- spec/models/manual_trade_symbol_spec.rb
|
572
566
|
- spec/spec_helper.rb
|