snaptrade 3.0.5 → 3.0.7
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 +7 -7
- data/lib/snaptrade/api/experimental_endpoints_api.rb +21 -21
- data/lib/snaptrade/models/account_order_record_v2.rb +24 -43
- data/lib/snaptrade/models/account_order_record_v2_order_role.rb +38 -0
- data/lib/snaptrade/models/connection_account_sync_status.rb +1 -1
- data/lib/snaptrade/models/deposit_account.rb +16 -16
- data/lib/snaptrade/models/{deposit_account_balance.rb → deposit_account_net_value.rb} +4 -4
- data/lib/snaptrade/models/deposit_account_sync_status.rb +228 -0
- data/lib/snaptrade/models/investment_account.rb +27 -27
- data/lib/snaptrade/models/{investment_account_market_value.rb → investment_account_net_value.rb} +4 -4
- data/lib/snaptrade/models/o_auth_webhook_base.rb +341 -0
- data/lib/snaptrade/models/price_effect.rb +39 -0
- data/lib/snaptrade/models/schema_version.rb +36 -0
- data/lib/snaptrade/version.rb +1 -1
- data/lib/snaptrade.rb +7 -2
- data/spec/api/experimental_endpoints_api_spec.rb +2 -2
- data/spec/models/account_order_record_v2_order_role_spec.rb +23 -0
- data/spec/models/account_order_record_v2_spec.rb +7 -5
- data/spec/models/{deposit_account_balance_spec.rb → deposit_account_net_value_spec.rb} +6 -6
- data/spec/models/deposit_account_spec.rb +1 -1
- data/spec/models/deposit_account_sync_status_spec.rb +35 -0
- data/spec/models/{investment_account_market_value_spec.rb → investment_account_net_value_spec.rb} +6 -6
- data/spec/models/investment_account_spec.rb +4 -4
- data/spec/models/o_auth_webhook_base_spec.rb +89 -0
- data/spec/models/price_effect_spec.rb +23 -0
- data/spec/models/schema_version_spec.rb +23 -0
- metadata +228 -213
|
@@ -0,0 +1,89 @@
|
|
|
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::OAuthWebhookBase
|
|
15
|
+
describe SnapTrade::OAuthWebhookBase do
|
|
16
|
+
let(:instance) { SnapTrade::OAuthWebhookBase.new }
|
|
17
|
+
|
|
18
|
+
describe 'test an instance of OAuthWebhookBase' do
|
|
19
|
+
it 'should create an instance of OAuthWebhookBase' do
|
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::OAuthWebhookBase)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
describe 'test attribute "schema_version"' 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 "webhook_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 "oauth_client_id"' 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 "event_timestamp"' 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 "user_id"' 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 "event_type"' 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 "account_id"' 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 "connection_id"' 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
|
+
describe 'test attribute "brokerage_id"' do
|
|
72
|
+
it 'should work' do
|
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
describe 'test attribute "connection_attempted_result"' do
|
|
78
|
+
it 'should work' do
|
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
describe 'test attribute "details"' do
|
|
84
|
+
it 'should work' do
|
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
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::PriceEffect
|
|
15
|
+
describe SnapTrade::PriceEffect do
|
|
16
|
+
let(:instance) { SnapTrade::PriceEffect.new }
|
|
17
|
+
|
|
18
|
+
describe 'test an instance of PriceEffect' do
|
|
19
|
+
it 'should create an instance of PriceEffect' do
|
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::PriceEffect)
|
|
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::SchemaVersion
|
|
15
|
+
describe SnapTrade::SchemaVersion do
|
|
16
|
+
let(:instance) { SnapTrade::SchemaVersion.new }
|
|
17
|
+
|
|
18
|
+
describe 'test an instance of SchemaVersion' do
|
|
19
|
+
it 'should create an instance of SchemaVersion' do
|
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::SchemaVersion)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|