snaptrade 2.0.86 → 2.0.87
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 +89 -12
- data/lib/snaptrade/api/trading_api.rb +178 -14
- 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/trading_instrument.rb +227 -0
- data/lib/snaptrade/models/trading_instrument_type.rb +38 -0
- data/lib/snaptrade/version.rb +1 -1
- data/lib/snaptrade.rb +3 -0
- data/spec/api/trading_api_spec.rb +17 -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/trading_instrument_spec.rb +35 -0
- data/spec/models/trading_instrument_type_spec.rb +23 -0
- metadata +10 -1
@@ -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::TradingInstrument
|
15
|
+
describe SnapTrade::TradingInstrument do
|
16
|
+
let(:instance) { SnapTrade::TradingInstrument.new }
|
17
|
+
|
18
|
+
describe 'test an instance of TradingInstrument' do
|
19
|
+
it 'should create an instance of TradingInstrument' do
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::TradingInstrument)
|
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::TradingInstrumentType
|
15
|
+
describe SnapTrade::TradingInstrumentType do
|
16
|
+
let(:instance) { SnapTrade::TradingInstrumentType.new }
|
17
|
+
|
18
|
+
describe 'test an instance of TradingInstrumentType' do
|
19
|
+
it 'should create an instance of TradingInstrumentType' do
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::TradingInstrumentType)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.87
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SnapTrade
|
@@ -155,6 +155,7 @@ files:
|
|
155
155
|
- lib/snaptrade/models/manual_trade_form_notional_value.rb
|
156
156
|
- lib/snaptrade/models/manual_trade_form_with_options.rb
|
157
157
|
- lib/snaptrade/models/manual_trade_impact.rb
|
158
|
+
- lib/snaptrade/models/manual_trade_replace_form.rb
|
158
159
|
- lib/snaptrade/models/manual_trade_symbol.rb
|
159
160
|
- lib/snaptrade/models/model400_failed_request_response.rb
|
160
161
|
- lib/snaptrade/models/model401_failed_request_response.rb
|
@@ -223,6 +224,8 @@ files:
|
|
223
224
|
- lib/snaptrade/models/trading_crypto_spot_cancel_order_request.rb
|
224
225
|
- lib/snaptrade/models/trading_crypto_spot_place_order_request.rb
|
225
226
|
- lib/snaptrade/models/trading_crypto_spot_symbols200_response.rb
|
227
|
+
- lib/snaptrade/models/trading_instrument.rb
|
228
|
+
- lib/snaptrade/models/trading_instrument_type.rb
|
226
229
|
- lib/snaptrade/models/transactions_status.rb
|
227
230
|
- lib/snaptrade/models/type.rb
|
228
231
|
- lib/snaptrade/models/underlying_symbol.rb
|
@@ -305,6 +308,7 @@ files:
|
|
305
308
|
- spec/models/manual_trade_form_spec.rb
|
306
309
|
- spec/models/manual_trade_form_with_options_spec.rb
|
307
310
|
- spec/models/manual_trade_impact_spec.rb
|
311
|
+
- spec/models/manual_trade_replace_form_spec.rb
|
308
312
|
- spec/models/manual_trade_spec.rb
|
309
313
|
- spec/models/manual_trade_symbol_spec.rb
|
310
314
|
- spec/models/model400_failed_request_response_spec.rb
|
@@ -374,6 +378,8 @@ files:
|
|
374
378
|
- spec/models/trading_crypto_spot_cancel_order_request_spec.rb
|
375
379
|
- spec/models/trading_crypto_spot_place_order_request_spec.rb
|
376
380
|
- spec/models/trading_crypto_spot_symbols200_response_spec.rb
|
381
|
+
- spec/models/trading_instrument_spec.rb
|
382
|
+
- spec/models/trading_instrument_type_spec.rb
|
377
383
|
- spec/models/transactions_status_spec.rb
|
378
384
|
- spec/models/type_spec.rb
|
379
385
|
- spec/models/underlying_symbol_exchange_spec.rb
|
@@ -477,6 +483,7 @@ test_files:
|
|
477
483
|
- spec/models/brokerage_type_spec.rb
|
478
484
|
- spec/models/rate_of_return_response_spec.rb
|
479
485
|
- spec/models/net_contributions_spec.rb
|
486
|
+
- spec/models/trading_instrument_spec.rb
|
480
487
|
- spec/models/notional_value_spec.rb
|
481
488
|
- spec/models/stop_loss_spec.rb
|
482
489
|
- spec/models/model404_failed_request_response_spec.rb
|
@@ -527,6 +534,7 @@ test_files:
|
|
527
534
|
- spec/models/currency_spec.rb
|
528
535
|
- spec/models/symbol_query_spec.rb
|
529
536
|
- spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
|
537
|
+
- spec/models/manual_trade_replace_form_spec.rb
|
530
538
|
- spec/models/model402_brokerage_auth_disabled_response_spec.rb
|
531
539
|
- spec/models/trading_cancel_user_account_order_request_spec.rb
|
532
540
|
- spec/models/underlying_symbol_spec.rb
|
@@ -539,6 +547,7 @@ test_files:
|
|
539
547
|
- spec/models/position_spec.rb
|
540
548
|
- spec/models/holdings_status_spec.rb
|
541
549
|
- spec/models/recent_orders_response_spec.rb
|
550
|
+
- spec/models/trading_instrument_type_spec.rb
|
542
551
|
- spec/models/crypto_spot_order_preview_estimated_fee_spec.rb
|
543
552
|
- spec/models/encrypted_response_encrypted_message_data_spec.rb
|
544
553
|
- spec/models/manual_trade_form_notional_value_spec.rb
|