snaptrade 2.0.69 → 2.0.70
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +19 -2
- data/lib/snaptrade/api/trading_api.rb +14 -2
- data/lib/snaptrade/models/manual_trade_form_with_options.rb +36 -5
- data/lib/snaptrade/models/manual_trade_form_with_options_stop_loss.rb +233 -0
- data/lib/snaptrade/models/manual_trade_form_with_options_take_profit.rb +223 -0
- data/lib/snaptrade/models/order_class.rb +37 -0
- data/lib/snaptrade/models/stop_loss.rb +227 -0
- data/lib/snaptrade/models/take_profit.rb +217 -0
- data/lib/snaptrade/version.rb +1 -1
- data/lib/snaptrade.rb +5 -0
- data/spec/models/manual_trade_form_with_options_spec.rb +18 -0
- data/spec/models/manual_trade_form_with_options_stop_loss_spec.rb +35 -0
- data/spec/models/manual_trade_form_with_options_take_profit_spec.rb +29 -0
- data/spec/models/order_class_spec.rb +23 -0
- data/spec/models/stop_loss_spec.rb +35 -0
- data/spec/models/take_profit_spec.rb +29 -0
- metadata +17 -2
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.70
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SnapTrade
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -138,6 +138,8 @@ files:
|
|
138
138
|
- lib/snaptrade/models/manual_trade_form.rb
|
139
139
|
- lib/snaptrade/models/manual_trade_form_notional_value.rb
|
140
140
|
- lib/snaptrade/models/manual_trade_form_with_options.rb
|
141
|
+
- lib/snaptrade/models/manual_trade_form_with_options_stop_loss.rb
|
142
|
+
- lib/snaptrade/models/manual_trade_form_with_options_take_profit.rb
|
141
143
|
- lib/snaptrade/models/manual_trade_impact.rb
|
142
144
|
- lib/snaptrade/models/manual_trade_symbol.rb
|
143
145
|
- lib/snaptrade/models/model400_failed_request_response.rb
|
@@ -167,6 +169,7 @@ files:
|
|
167
169
|
- lib/snaptrade/models/options_position.rb
|
168
170
|
- lib/snaptrade/models/options_position_currency.rb
|
169
171
|
- lib/snaptrade/models/options_symbol.rb
|
172
|
+
- lib/snaptrade/models/order_class.rb
|
170
173
|
- lib/snaptrade/models/order_type_strict.rb
|
171
174
|
- lib/snaptrade/models/partner_data.rb
|
172
175
|
- lib/snaptrade/models/past_value.rb
|
@@ -184,6 +187,7 @@ files:
|
|
184
187
|
- lib/snaptrade/models/snap_trade_login_user_request_body.rb
|
185
188
|
- lib/snaptrade/models/snap_trade_register_user_request_body.rb
|
186
189
|
- lib/snaptrade/models/status.rb
|
190
|
+
- lib/snaptrade/models/stop_loss.rb
|
187
191
|
- lib/snaptrade/models/strategy_order_record.rb
|
188
192
|
- lib/snaptrade/models/strategy_order_record_status.rb
|
189
193
|
- lib/snaptrade/models/strategy_quotes.rb
|
@@ -196,6 +200,7 @@ files:
|
|
196
200
|
- lib/snaptrade/models/symbol_figi_instrument.rb
|
197
201
|
- lib/snaptrade/models/symbol_query.rb
|
198
202
|
- lib/snaptrade/models/symbols_quotes_inner.rb
|
203
|
+
- lib/snaptrade/models/take_profit.rb
|
199
204
|
- lib/snaptrade/models/time_in_force_strict.rb
|
200
205
|
- lib/snaptrade/models/timeframe.rb
|
201
206
|
- lib/snaptrade/models/trading_cancel_user_account_order_request.rb
|
@@ -267,6 +272,8 @@ files:
|
|
267
272
|
- spec/models/manual_trade_form_notional_value_spec.rb
|
268
273
|
- spec/models/manual_trade_form_spec.rb
|
269
274
|
- spec/models/manual_trade_form_with_options_spec.rb
|
275
|
+
- spec/models/manual_trade_form_with_options_stop_loss_spec.rb
|
276
|
+
- spec/models/manual_trade_form_with_options_take_profit_spec.rb
|
270
277
|
- spec/models/manual_trade_impact_spec.rb
|
271
278
|
- spec/models/manual_trade_spec.rb
|
272
279
|
- spec/models/manual_trade_symbol_spec.rb
|
@@ -297,6 +304,7 @@ files:
|
|
297
304
|
- spec/models/options_position_currency_spec.rb
|
298
305
|
- spec/models/options_position_spec.rb
|
299
306
|
- spec/models/options_symbol_spec.rb
|
307
|
+
- spec/models/order_class_spec.rb
|
300
308
|
- spec/models/order_type_strict_spec.rb
|
301
309
|
- spec/models/partner_data_spec.rb
|
302
310
|
- spec/models/past_value_spec.rb
|
@@ -314,6 +322,7 @@ files:
|
|
314
322
|
- spec/models/snap_trade_login_user_request_body_spec.rb
|
315
323
|
- spec/models/snap_trade_register_user_request_body_spec.rb
|
316
324
|
- spec/models/status_spec.rb
|
325
|
+
- spec/models/stop_loss_spec.rb
|
317
326
|
- spec/models/strategy_order_record_spec.rb
|
318
327
|
- spec/models/strategy_order_record_status_spec.rb
|
319
328
|
- spec/models/strategy_quotes_greek_spec.rb
|
@@ -326,6 +335,7 @@ files:
|
|
326
335
|
- spec/models/symbol_query_spec.rb
|
327
336
|
- spec/models/symbol_spec.rb
|
328
337
|
- spec/models/symbols_quotes_inner_spec.rb
|
338
|
+
- spec/models/take_profit_spec.rb
|
329
339
|
- spec/models/time_in_force_strict_spec.rb
|
330
340
|
- spec/models/timeframe_spec.rb
|
331
341
|
- spec/models/trading_cancel_user_account_order_request_spec.rb
|
@@ -383,7 +393,9 @@ test_files:
|
|
383
393
|
- spec/models/authentication_login_snap_trade_user200_response_spec.rb
|
384
394
|
- spec/models/strategy_order_record_status_spec.rb
|
385
395
|
- spec/models/trading_cancel_user_account_order_request_spec.rb
|
396
|
+
- spec/models/take_profit_spec.rb
|
386
397
|
- spec/models/exchange_spec.rb
|
398
|
+
- spec/models/manual_trade_form_with_options_stop_loss_spec.rb
|
387
399
|
- spec/models/manual_trade_spec.rb
|
388
400
|
- spec/models/login_redirect_uri_spec.rb
|
389
401
|
- spec/models/encrypted_response_encrypted_message_data_spec.rb
|
@@ -429,6 +441,7 @@ test_files:
|
|
429
441
|
- spec/models/option_type_spec.rb
|
430
442
|
- spec/models/brokerage_authorization_spec.rb
|
431
443
|
- spec/models/brokerage_authorization_type_read_only_spec.rb
|
444
|
+
- spec/models/manual_trade_form_with_options_take_profit_spec.rb
|
432
445
|
- spec/models/brokerage_authorization_refresh_confirmation_spec.rb
|
433
446
|
- spec/models/option_strategy_legs_inner_spec.rb
|
434
447
|
- spec/models/snap_trade_holdings_account_spec.rb
|
@@ -475,6 +488,7 @@ test_files:
|
|
475
488
|
- spec/models/connections_session_events200_response_inner_spec.rb
|
476
489
|
- spec/models/snap_trade_holdings_total_value_spec.rb
|
477
490
|
- spec/models/auth_type_spec.rb
|
491
|
+
- spec/models/stop_loss_spec.rb
|
478
492
|
- spec/models/snap_trade_login_user_request_body_spec.rb
|
479
493
|
- spec/models/user_i_dand_secret_spec.rb
|
480
494
|
- spec/models/status_spec.rb
|
@@ -488,6 +502,7 @@ test_files:
|
|
488
502
|
- spec/models/symbols_quotes_inner_spec.rb
|
489
503
|
- spec/models/account_order_record_universal_symbol_spec.rb
|
490
504
|
- spec/models/strategy_order_record_spec.rb
|
505
|
+
- spec/models/order_class_spec.rb
|
491
506
|
- spec/models/manual_trade_and_impact_spec.rb
|
492
507
|
- spec/models/notional_value_spec.rb
|
493
508
|
- spec/models/past_value_spec.rb
|