snaptrade 2.0.218 → 3.0.0

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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/README.md +20 -549
  4. data/lib/snaptrade/api/account_information_api.rb +0 -231
  5. data/lib/snaptrade/api/connections_api.rb +0 -201
  6. data/lib/snaptrade/api/experimental_endpoints_api.rb +123 -0
  7. data/lib/snaptrade/api/reference_data_api.rb +0 -316
  8. data/lib/snaptrade/api/trading_api.rb +0 -290
  9. data/lib/snaptrade/models/connection_account.rb +51 -0
  10. data/lib/snaptrade/models/{connections_session_events200_response_inner.rb → connection_account_sync_status.rb} +35 -77
  11. data/lib/snaptrade/models/investment_account.rb +372 -0
  12. data/lib/snaptrade/models/investment_account_market_value.rb +228 -0
  13. data/lib/snaptrade/models/kind.rb +2 -2
  14. data/lib/snaptrade/models/stock_instrument.rb +1 -1
  15. data/lib/snaptrade/models/stock_instrument_kind.rb +36 -0
  16. data/lib/snaptrade/version.rb +1 -1
  17. data/lib/snaptrade.rb +5 -7
  18. data/spec/api/account_information_api_spec.rb +0 -28
  19. data/spec/api/connections_api_spec.rb +0 -28
  20. data/spec/api/experimental_endpoints_api_spec.rb +14 -0
  21. data/spec/api/reference_data_api_spec.rb +0 -45
  22. data/spec/api/trading_api_spec.rb +0 -30
  23. data/spec/getting_started_spec.rb +6 -6
  24. data/spec/models/connection_account_spec.rb +38 -0
  25. data/spec/models/connection_account_sync_status_spec.rb +47 -0
  26. data/spec/models/investment_account_market_value_spec.rb +35 -0
  27. data/spec/models/investment_account_spec.rb +101 -0
  28. data/spec/models/stock_instrument_kind_spec.rb +23 -0
  29. metadata +212 -206
  30. data/lib/snaptrade/api/options_api.rb +0 -137
  31. data/lib/snaptrade/api/transactions_and_reporting_api.rb +0 -302
  32. data/spec/api/options_api_spec.rb +0 -44
  33. data/spec/api/transactions_and_reporting_api_spec.rb +0 -66
  34. data/spec/models/connections_session_events200_response_inner_spec.rb +0 -65
@@ -0,0 +1,47 @@
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::ConnectionAccountSyncStatus
15
+ describe SnapTrade::ConnectionAccountSyncStatus do
16
+ let(:instance) { SnapTrade::ConnectionAccountSyncStatus.new }
17
+
18
+ describe 'test an instance of ConnectionAccountSyncStatus' do
19
+ it 'should create an instance of ConnectionAccountSyncStatus' do
20
+ expect(instance).to be_instance_of(SnapTrade::ConnectionAccountSyncStatus)
21
+ end
22
+ end
23
+ describe 'test attribute "transactions"' 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 "orders"' 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 "positions"' 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 "balances"' 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
+ end
@@ -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::InvestmentAccountMarketValue
15
+ describe SnapTrade::InvestmentAccountMarketValue do
16
+ let(:instance) { SnapTrade::InvestmentAccountMarketValue.new }
17
+
18
+ describe 'test an instance of InvestmentAccountMarketValue' do
19
+ it 'should create an instance of InvestmentAccountMarketValue' do
20
+ expect(instance).to be_instance_of(SnapTrade::InvestmentAccountMarketValue)
21
+ end
22
+ end
23
+ describe 'test attribute "amount"' 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 "currency"' 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,101 @@
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::InvestmentAccount
15
+ describe SnapTrade::InvestmentAccount do
16
+ let(:instance) { SnapTrade::InvestmentAccount.new }
17
+
18
+ describe 'test an instance of InvestmentAccount' do
19
+ it 'should create an instance of InvestmentAccount' do
20
+ expect(instance).to be_instance_of(SnapTrade::InvestmentAccount)
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 "connection_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 "display_name"' 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 "number"' 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 "institution_account_id"' 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 "institution_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 "opening_date"' 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 "sync_status"' 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 "raw_type"' 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 "funding_date"' 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
+ describe 'test attribute "is_paper"' do
90
+ it 'should work' do
91
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
+ end
93
+ end
94
+
95
+ describe 'test attribute "market_value"' do
96
+ it 'should work' do
97
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
+ end
99
+ end
100
+
101
+ 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::StockInstrumentKind
15
+ describe SnapTrade::StockInstrumentKind do
16
+ let(:instance) { SnapTrade::StockInstrumentKind.new }
17
+
18
+ describe 'test an instance of StockInstrumentKind' do
19
+ it 'should create an instance of StockInstrumentKind' do
20
+ expect(instance).to be_instance_of(SnapTrade::StockInstrumentKind)
21
+ end
22
+ end
23
+ end