snaptrade 2.0.186 → 2.0.188
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 +39 -48
- data/lib/snaptrade/api/account_information_api.rb +103 -0
- data/lib/snaptrade/api/experimental_endpoints_api.rb +8 -137
- data/lib/snaptrade/configuration.rb +1 -1
- data/lib/snaptrade/models/account_order_record.rb +23 -1
- data/lib/snaptrade/models/account_order_record_v2.rb +57 -1
- data/lib/snaptrade/models/adr_instrument.rb +311 -0
- data/lib/snaptrade/models/adr_instrument_kind.rb +36 -0
- data/lib/snaptrade/models/all_account_positions_response.rb +3 -40
- data/lib/snaptrade/models/cef_instrument.rb +311 -0
- data/lib/snaptrade/models/cef_instrument_kind.rb +36 -0
- data/lib/snaptrade/models/complex_order_leg.rb +1 -1
- data/lib/snaptrade/models/complex_order_leg_order_role.rb +38 -0
- data/lib/snaptrade/models/instrument.rb +6 -0
- data/lib/snaptrade/models/mutual_fund_instrument.rb +311 -0
- data/lib/snaptrade/models/mutual_fund_instrument_kind.rb +36 -0
- data/lib/snaptrade/models/order_updated_response_order.rb +23 -1
- data/lib/snaptrade/models/underlying_option_instrument.rb +6 -0
- data/lib/snaptrade/version.rb +1 -1
- data/lib/snaptrade.rb +7 -0
- data/spec/api/account_information_api_spec.rb +14 -0
- data/spec/api/experimental_endpoints_api_spec.rb +1 -17
- data/spec/models/account_order_record_spec.rb +12 -0
- data/spec/models/account_order_record_v2_spec.rb +16 -0
- data/spec/models/adr_instrument_kind_spec.rb +23 -0
- data/spec/models/adr_instrument_spec.rb +71 -0
- data/spec/models/all_account_positions_response_spec.rb +0 -18
- data/spec/models/cef_instrument_kind_spec.rb +23 -0
- data/spec/models/cef_instrument_spec.rb +71 -0
- data/spec/models/complex_order_leg_order_role_spec.rb +23 -0
- data/spec/models/mutual_fund_instrument_kind_spec.rb +23 -0
- data/spec/models/mutual_fund_instrument_spec.rb +71 -0
- data/spec/models/order_updated_response_order_spec.rb +12 -0
- metadata +202 -181
|
@@ -20,24 +20,6 @@ describe SnapTrade::AllAccountPositionsResponse do
|
|
|
20
20
|
expect(instance).to be_instance_of(SnapTrade::AllAccountPositionsResponse)
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
|
-
describe 'test attribute "count"' 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 "_next"' 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 "previous"' 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
23
|
describe 'test attribute "results"' do
|
|
42
24
|
it 'should work' do
|
|
43
25
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -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::CefInstrumentKind
|
|
15
|
+
describe SnapTrade::CefInstrumentKind do
|
|
16
|
+
let(:instance) { SnapTrade::CefInstrumentKind.new }
|
|
17
|
+
|
|
18
|
+
describe 'test an instance of CefInstrumentKind' do
|
|
19
|
+
it 'should create an instance of CefInstrumentKind' do
|
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::CefInstrumentKind)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,71 @@
|
|
|
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::CefInstrument
|
|
15
|
+
describe SnapTrade::CefInstrument do
|
|
16
|
+
let(:instance) { SnapTrade::CefInstrument.new }
|
|
17
|
+
|
|
18
|
+
describe 'test an instance of CefInstrument' do
|
|
19
|
+
it 'should create an instance of CefInstrument' do
|
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::CefInstrument)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
describe 'test attribute "kind"' 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 "id"' 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 "symbol"' 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 "raw_symbol"' 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 "description"' 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
|
+
describe 'test attribute "currency"' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
describe 'test attribute "exchange"' do
|
|
60
|
+
it 'should work' do
|
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
describe 'test attribute "figi_instrument"' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
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::ComplexOrderLegOrderRole
|
|
15
|
+
describe SnapTrade::ComplexOrderLegOrderRole do
|
|
16
|
+
let(:instance) { SnapTrade::ComplexOrderLegOrderRole.new }
|
|
17
|
+
|
|
18
|
+
describe 'test an instance of ComplexOrderLegOrderRole' do
|
|
19
|
+
it 'should create an instance of ComplexOrderLegOrderRole' do
|
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::ComplexOrderLegOrderRole)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
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::MutualFundInstrumentKind
|
|
15
|
+
describe SnapTrade::MutualFundInstrumentKind do
|
|
16
|
+
let(:instance) { SnapTrade::MutualFundInstrumentKind.new }
|
|
17
|
+
|
|
18
|
+
describe 'test an instance of MutualFundInstrumentKind' do
|
|
19
|
+
it 'should create an instance of MutualFundInstrumentKind' do
|
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::MutualFundInstrumentKind)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,71 @@
|
|
|
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::MutualFundInstrument
|
|
15
|
+
describe SnapTrade::MutualFundInstrument do
|
|
16
|
+
let(:instance) { SnapTrade::MutualFundInstrument.new }
|
|
17
|
+
|
|
18
|
+
describe 'test an instance of MutualFundInstrument' do
|
|
19
|
+
it 'should create an instance of MutualFundInstrument' do
|
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::MutualFundInstrument)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
describe 'test attribute "kind"' 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 "id"' 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 "symbol"' 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 "raw_symbol"' 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 "description"' 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
|
+
describe 'test attribute "currency"' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
describe 'test attribute "exchange"' do
|
|
60
|
+
it 'should work' do
|
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
describe 'test attribute "figi_instrument"' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
end
|
|
@@ -26,6 +26,18 @@ describe SnapTrade::OrderUpdatedResponseOrder do
|
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
+
describe 'test attribute "brokerage_group_order_id"' 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 "order_role"' 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
|
+
|
|
29
41
|
describe 'test attribute "status"' do
|
|
30
42
|
it 'should work' do
|
|
31
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|