snaptrade 2.0.34 → 2.0.35
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +57 -35
- data/lib/snaptrade/api/account_information_api.rb +4 -4
- data/lib/snaptrade/api/authentication_api.rb +44 -46
- data/lib/snaptrade/api/connections_api.rb +8 -8
- data/lib/snaptrade/api/transactions_and_reporting_api.rb +36 -28
- data/lib/snaptrade/models/account_order_record.rb +1 -1
- data/lib/snaptrade/models/account_order_record_universal_symbol.rb +2 -2
- data/lib/snaptrade/models/account_simple.rb +4 -1
- data/lib/snaptrade/models/delete_user_response.rb +12 -3
- data/lib/snaptrade/models/login_redirect_uri.rb +3 -2
- data/lib/snaptrade/models/snap_trade_login_user_request_body.rb +10 -6
- data/lib/snaptrade/models/symbol.rb +16 -10
- data/lib/snaptrade/models/{universal_symbol_currency.rb → symbol_currency.rb} +3 -3
- data/lib/snaptrade/models/{universal_symbol_exchange.rb → symbol_exchange.rb} +3 -3
- data/lib/snaptrade/models/underlying_symbol.rb +1 -1
- data/lib/snaptrade/models/universal_activity.rb +91 -81
- data/lib/snaptrade/models/universal_activity_currency.rb +245 -0
- data/lib/snaptrade/models/universal_activity_option_symbol.rb +314 -0
- data/lib/snaptrade/models/universal_activity_symbol.rb +304 -0
- data/lib/snaptrade/models/universal_symbol.rb +2 -2
- data/lib/snaptrade/models/user_i_dand_secret.rb +1 -1
- data/lib/snaptrade/version.rb +1 -1
- data/lib/snaptrade.rb +5 -2
- data/spec/api/account_information_api_spec.rb +1 -1
- data/spec/api/authentication_api_spec.rb +7 -7
- data/spec/api/connections_api_spec.rb +2 -2
- data/spec/api/transactions_and_reporting_api_spec.rb +7 -7
- data/spec/models/delete_user_response_spec.rb +6 -0
- data/spec/models/{universal_symbol_currency_spec.rb → symbol_currency_spec.rb} +6 -6
- data/spec/models/{universal_symbol_exchange_spec.rb → symbol_exchange_spec.rb} +6 -6
- data/spec/models/symbol_spec.rb +1 -1
- data/spec/models/universal_activity_currency_spec.rb +41 -0
- data/spec/models/universal_activity_option_symbol_spec.rb +65 -0
- data/spec/models/universal_activity_spec.rb +15 -15
- data/spec/models/universal_activity_symbol_spec.rb +77 -0
- metadata +17 -8
@@ -28,8 +28,8 @@ describe 'AuthenticationApi' do
|
|
28
28
|
end
|
29
29
|
|
30
30
|
# unit tests for delete_snap_trade_user
|
31
|
-
# Delete
|
32
|
-
# Deletes a user
|
31
|
+
# Delete user
|
32
|
+
# Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
|
33
33
|
# @param user_id
|
34
34
|
# @param [Hash] opts the optional parameters
|
35
35
|
# @return [DeleteUserResponse]
|
@@ -40,8 +40,8 @@ describe 'AuthenticationApi' do
|
|
40
40
|
end
|
41
41
|
|
42
42
|
# unit tests for list_snap_trade_users
|
43
|
-
# List
|
44
|
-
# Returns a list of
|
43
|
+
# List all users
|
44
|
+
# Returns a list of all registered user IDs.
|
45
45
|
# @param [Hash] opts the optional parameters
|
46
46
|
# @return [Array<String>]
|
47
47
|
describe 'list_snap_trade_users test' do
|
@@ -65,7 +65,7 @@ describe 'AuthenticationApi' do
|
|
65
65
|
end
|
66
66
|
|
67
67
|
# unit tests for register_snap_trade_user
|
68
|
-
#
|
68
|
+
# Register user
|
69
69
|
# Registers a new SnapTrade user under your ClientID. A user secret will be automatically generated for you and must be properly stored in your database. Most SnapTrade operations require a user ID and user secret to be passed as a parameter.
|
70
70
|
# @param snap_trade_register_user_request_body
|
71
71
|
# @param [Hash] opts the optional parameters
|
@@ -77,8 +77,8 @@ describe 'AuthenticationApi' do
|
|
77
77
|
end
|
78
78
|
|
79
79
|
# unit tests for reset_snap_trade_user_secret
|
80
|
-
#
|
81
|
-
#
|
80
|
+
# Rotate user secret
|
81
|
+
# Rotates the secret for a SnapTrade user. You might use this if `userSecret` is compromised. Please note that if you call this endpoint and fail to save the new secret, you'll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
|
82
82
|
# @param user_i_dand_secret
|
83
83
|
# @param [Hash] opts the optional parameters
|
84
84
|
# @return [UserIDandSecret]
|
@@ -101,8 +101,8 @@ describe 'ConnectionsApi' do
|
|
101
101
|
# Returns a list of session events associated with a user.
|
102
102
|
# @param partner_client_id
|
103
103
|
# @param [Hash] opts the optional parameters
|
104
|
-
# @option opts [String] :user_id Optional comma
|
105
|
-
# @option opts [String] :session_id Optional comma
|
104
|
+
# @option opts [String] :user_id Optional comma separated list of user IDs used to filter the request on specific users
|
105
|
+
# @option opts [String] :session_id Optional comma separated list of session IDs used to filter the request on specific users
|
106
106
|
# @return [Array<ConnectionsSessionEvents200ResponseInner>]
|
107
107
|
describe 'session_events test' do
|
108
108
|
it 'should work' do
|
@@ -29,15 +29,15 @@ describe 'TransactionsAndReportingApi' do
|
|
29
29
|
|
30
30
|
# unit tests for get_activities
|
31
31
|
# Get transaction history for a user
|
32
|
-
# Returns
|
32
|
+
# Returns all historical transactions for the specified user and filtering criteria. It's recommended to use `startDate` and `endDate` to paginate through the data, as the response may be very large for accounts with a long history and/or a lot of activity. There's a max number of 10000 transactions returned per request. There is no guarantee to the ordering of the transactions returned. Please sort the transactions based on the `trade_date` field if you need them in a specific order. The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
33
33
|
# @param user_id
|
34
34
|
# @param user_secret
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @option opts [Date] :start_date
|
37
|
-
# @option opts [Date] :end_date
|
38
|
-
# @option opts [String] :accounts Optional comma
|
39
|
-
# @option opts [String] :brokerage_authorizations Optional comma
|
40
|
-
# @option opts [String] :type Optional comma
|
36
|
+
# @option opts [Date] :start_date The start date (inclusive) of the transaction history to retrieve. If not provided, the default is the first transaction known to SnapTrade based on `trade_date`.
|
37
|
+
# @option opts [Date] :end_date The end date (inclusive) of the transaction history to retrieve. If not provided, the default is the last transaction known to SnapTrade based on `trade_date`.
|
38
|
+
# @option opts [String] :accounts Optional comma separated list of SnapTrade Account IDs used to filter the request to specific accounts. If not provided, the default is all known brokerage accounts for the user. The `brokerageAuthorizations` parameter takes precedence over this parameter.
|
39
|
+
# @option opts [String] :brokerage_authorizations Optional comma separated list of SnapTrade Connection (Brokerage Authorization) IDs used to filter the request to only accounts that belong to those connections. If not provided, the default is all connections for the user. This parameter takes precedence over the `accounts` parameter.
|
40
|
+
# @option opts [String] :type Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - BUY - SELL - DIVIDEND - CONTRIBUTION - WITHDRAWAL - REI - INTEREST - FEE
|
41
41
|
# @return [Array<UniversalActivity>]
|
42
42
|
describe 'get_activities test' do
|
43
43
|
it 'should work' do
|
@@ -53,7 +53,7 @@ describe 'TransactionsAndReportingApi' do
|
|
53
53
|
# @param user_id
|
54
54
|
# @param user_secret
|
55
55
|
# @param [Hash] opts the optional parameters
|
56
|
-
# @option opts [String] :accounts Optional comma
|
56
|
+
# @option opts [String] :accounts Optional comma separated list of account IDs used to filter the request on specific accounts
|
57
57
|
# @option opts [Boolean] :detailed Optional, increases frequency of data points for the total value and contribution charts if set to true
|
58
58
|
# @option opts [String] :frequency Optional frequency for the rate of return chart (defaults to monthly). Possible values are daily, weekly, monthly, quarterly, yearly.
|
59
59
|
# @return [PerformanceCustom]
|
@@ -26,6 +26,12 @@ describe SnapTrade::DeleteUserResponse do
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
+
describe 'test attribute "detail"' 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
|
+
|
29
35
|
describe 'test attribute "user_id"' do
|
30
36
|
it 'should work' do
|
31
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -11,13 +11,13 @@ require 'spec_helper'
|
|
11
11
|
require 'json'
|
12
12
|
require 'date'
|
13
13
|
|
14
|
-
# Unit tests for SnapTrade::
|
15
|
-
describe SnapTrade::
|
16
|
-
let(:instance) { SnapTrade::
|
14
|
+
# Unit tests for SnapTrade::SymbolCurrency
|
15
|
+
describe SnapTrade::SymbolCurrency do
|
16
|
+
let(:instance) { SnapTrade::SymbolCurrency.new }
|
17
17
|
|
18
|
-
describe 'test an instance of
|
19
|
-
it 'should create an instance of
|
20
|
-
expect(instance).to be_instance_of(SnapTrade::
|
18
|
+
describe 'test an instance of SymbolCurrency' do
|
19
|
+
it 'should create an instance of SymbolCurrency' do
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::SymbolCurrency)
|
21
21
|
end
|
22
22
|
end
|
23
23
|
describe 'test attribute "id"' do
|
@@ -11,13 +11,13 @@ require 'spec_helper'
|
|
11
11
|
require 'json'
|
12
12
|
require 'date'
|
13
13
|
|
14
|
-
# Unit tests for SnapTrade::
|
15
|
-
describe SnapTrade::
|
16
|
-
let(:instance) { SnapTrade::
|
14
|
+
# Unit tests for SnapTrade::SymbolExchange
|
15
|
+
describe SnapTrade::SymbolExchange do
|
16
|
+
let(:instance) { SnapTrade::SymbolExchange.new }
|
17
17
|
|
18
|
-
describe 'test an instance of
|
19
|
-
it 'should create an instance of
|
20
|
-
expect(instance).to be_instance_of(SnapTrade::
|
18
|
+
describe 'test an instance of SymbolExchange' do
|
19
|
+
it 'should create an instance of SymbolExchange' do
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::SymbolExchange)
|
21
21
|
end
|
22
22
|
end
|
23
23
|
describe 'test attribute "id"' do
|
data/spec/models/symbol_spec.rb
CHANGED
@@ -38,7 +38,7 @@ describe SnapTrade::Symbol do
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "description"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
@@ -0,0 +1,41 @@
|
|
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::UniversalActivityCurrency
|
15
|
+
describe SnapTrade::UniversalActivityCurrency do
|
16
|
+
let(:instance) { SnapTrade::UniversalActivityCurrency.new }
|
17
|
+
|
18
|
+
describe 'test an instance of UniversalActivityCurrency' do
|
19
|
+
it 'should create an instance of UniversalActivityCurrency' do
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::UniversalActivityCurrency)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
describe 'test attribute "id"' 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 "code"' 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 "name"' 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
|
+
end
|
@@ -0,0 +1,65 @@
|
|
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::UniversalActivityOptionSymbol
|
15
|
+
describe SnapTrade::UniversalActivityOptionSymbol do
|
16
|
+
let(:instance) { SnapTrade::UniversalActivityOptionSymbol.new }
|
17
|
+
|
18
|
+
describe 'test an instance of UniversalActivityOptionSymbol' do
|
19
|
+
it 'should create an instance of UniversalActivityOptionSymbol' do
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::UniversalActivityOptionSymbol)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
describe 'test attribute "id"' 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 "ticker"' 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 "option_type"' 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 "strike_price"' 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 "expiration_date"' 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 "is_mini_option"' 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 "underlying_symbol"' 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
|
+
end
|
@@ -32,91 +32,91 @@ describe SnapTrade::UniversalActivity do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "symbol"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "option_symbol"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "price"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "units"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
describe 'test attribute "
|
59
|
+
describe 'test attribute "amount"' do
|
60
60
|
it 'should work' do
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
-
describe 'test attribute "
|
65
|
+
describe 'test attribute "currency"' do
|
66
66
|
it 'should work' do
|
67
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
-
describe 'test attribute "
|
71
|
+
describe 'test attribute "type"' do
|
72
72
|
it 'should work' do
|
73
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
|
-
describe 'test attribute "
|
77
|
+
describe 'test attribute "option_type"' do
|
78
78
|
it 'should work' do
|
79
79
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
83
|
-
describe 'test attribute "
|
83
|
+
describe 'test attribute "description"' do
|
84
84
|
it 'should work' do
|
85
85
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
89
|
-
describe 'test attribute "
|
89
|
+
describe 'test attribute "trade_date"' do
|
90
90
|
it 'should work' do
|
91
91
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
|
-
describe 'test attribute "
|
95
|
+
describe 'test attribute "settlement_date"' do
|
96
96
|
it 'should work' do
|
97
97
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
101
|
-
describe 'test attribute "
|
101
|
+
describe 'test attribute "fee"' do
|
102
102
|
it 'should work' do
|
103
103
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
104
|
end
|
105
105
|
end
|
106
106
|
|
107
|
-
describe 'test attribute "
|
107
|
+
describe 'test attribute "fx_rate"' do
|
108
108
|
it 'should work' do
|
109
109
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
113
|
-
describe 'test attribute "
|
113
|
+
describe 'test attribute "institution"' do
|
114
114
|
it 'should work' do
|
115
115
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
116
116
|
end
|
117
117
|
end
|
118
118
|
|
119
|
-
describe 'test attribute "
|
119
|
+
describe 'test attribute "external_reference_id"' do
|
120
120
|
it 'should work' do
|
121
121
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
122
122
|
end
|
@@ -0,0 +1,77 @@
|
|
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::UniversalActivitySymbol
|
15
|
+
describe SnapTrade::UniversalActivitySymbol do
|
16
|
+
let(:instance) { SnapTrade::UniversalActivitySymbol.new }
|
17
|
+
|
18
|
+
describe 'test an instance of UniversalActivitySymbol' do
|
19
|
+
it 'should create an instance of UniversalActivitySymbol' do
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::UniversalActivitySymbol)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
describe 'test attribute "id"' 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 "symbol"' 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 "raw_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 "description"' 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 "currency"' 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 "exchange"' 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 "type"' 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_code"' 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 "figi_instrument"' 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
|
+
end
|
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.35
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SnapTrade
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -184,6 +184,8 @@ files:
|
|
184
184
|
- lib/snaptrade/models/strategy_type.rb
|
185
185
|
- lib/snaptrade/models/sub_period_return_rate.rb
|
186
186
|
- lib/snaptrade/models/symbol.rb
|
187
|
+
- lib/snaptrade/models/symbol_currency.rb
|
188
|
+
- lib/snaptrade/models/symbol_exchange.rb
|
187
189
|
- lib/snaptrade/models/symbol_figi_instrument.rb
|
188
190
|
- lib/snaptrade/models/symbol_query.rb
|
189
191
|
- lib/snaptrade/models/symbols_quotes_inner.rb
|
@@ -195,9 +197,10 @@ files:
|
|
195
197
|
- lib/snaptrade/models/underlying_symbol_exchange.rb
|
196
198
|
- lib/snaptrade/models/underlying_symbol_type.rb
|
197
199
|
- lib/snaptrade/models/universal_activity.rb
|
200
|
+
- lib/snaptrade/models/universal_activity_currency.rb
|
201
|
+
- lib/snaptrade/models/universal_activity_option_symbol.rb
|
202
|
+
- lib/snaptrade/models/universal_activity_symbol.rb
|
198
203
|
- lib/snaptrade/models/universal_symbol.rb
|
199
|
-
- lib/snaptrade/models/universal_symbol_currency.rb
|
200
|
-
- lib/snaptrade/models/universal_symbol_exchange.rb
|
201
204
|
- lib/snaptrade/models/us_exchange.rb
|
202
205
|
- lib/snaptrade/models/user_i_dand_secret.rb
|
203
206
|
- lib/snaptrade/models/validated_trade_body.rb
|
@@ -302,6 +305,8 @@ files:
|
|
302
305
|
- spec/models/strategy_quotes_spec.rb
|
303
306
|
- spec/models/strategy_type_spec.rb
|
304
307
|
- spec/models/sub_period_return_rate_spec.rb
|
308
|
+
- spec/models/symbol_currency_spec.rb
|
309
|
+
- spec/models/symbol_exchange_spec.rb
|
305
310
|
- spec/models/symbol_figi_instrument_spec.rb
|
306
311
|
- spec/models/symbol_query_spec.rb
|
307
312
|
- spec/models/symbol_spec.rb
|
@@ -313,9 +318,10 @@ files:
|
|
313
318
|
- spec/models/underlying_symbol_exchange_spec.rb
|
314
319
|
- spec/models/underlying_symbol_spec.rb
|
315
320
|
- spec/models/underlying_symbol_type_spec.rb
|
321
|
+
- spec/models/universal_activity_currency_spec.rb
|
322
|
+
- spec/models/universal_activity_option_symbol_spec.rb
|
316
323
|
- spec/models/universal_activity_spec.rb
|
317
|
-
- spec/models/
|
318
|
-
- spec/models/universal_symbol_exchange_spec.rb
|
324
|
+
- spec/models/universal_activity_symbol_spec.rb
|
319
325
|
- spec/models/universal_symbol_spec.rb
|
320
326
|
- spec/models/us_exchange_spec.rb
|
321
327
|
- spec/models/user_i_dand_secret_spec.rb
|
@@ -369,6 +375,7 @@ test_files:
|
|
369
375
|
- spec/models/underlying_symbol_spec.rb
|
370
376
|
- spec/models/model404_failed_request_response_spec.rb
|
371
377
|
- spec/models/snap_trade_login_user_request_body_spec.rb
|
378
|
+
- spec/models/universal_activity_currency_spec.rb
|
372
379
|
- spec/models/manual_trade_form_spec.rb
|
373
380
|
- spec/models/option_strategy_legs_inner_spec.rb
|
374
381
|
- spec/models/session_event_type_spec.rb
|
@@ -421,23 +428,25 @@ test_files:
|
|
421
428
|
- spec/models/manual_trade_and_impact_spec.rb
|
422
429
|
- spec/models/auth_type_spec.rb
|
423
430
|
- spec/models/model500_unexpected_exception_response_spec.rb
|
431
|
+
- spec/models/symbol_exchange_spec.rb
|
424
432
|
- spec/models/brokerage_authorization_type_read_only_spec.rb
|
425
433
|
- spec/models/manual_trade_symbol_spec.rb
|
426
434
|
- spec/models/user_i_dand_secret_spec.rb
|
427
435
|
- spec/models/model403_feature_not_enabled_response_spec.rb
|
428
436
|
- spec/models/manual_trade_spec.rb
|
429
|
-
- spec/models/universal_symbol_currency_spec.rb
|
430
437
|
- spec/models/account_order_record_spec.rb
|
431
|
-
- spec/models/universal_symbol_exchange_spec.rb
|
432
438
|
- spec/models/trading_cancel_user_account_order_request_spec.rb
|
433
439
|
- spec/models/manual_trade_form_notional_value_spec.rb
|
434
440
|
- spec/models/order_type_strict_spec.rb
|
435
441
|
- spec/models/notional_value_spec.rb
|
436
442
|
- spec/models/brokerage_authorization_disabled_confirmation_spec.rb
|
443
|
+
- spec/models/universal_activity_symbol_spec.rb
|
444
|
+
- spec/models/universal_activity_option_symbol_spec.rb
|
437
445
|
- spec/models/option_type_spec.rb
|
438
446
|
- spec/models/snap_trade_holdings_total_value_spec.rb
|
439
447
|
- spec/models/model402_brokerage_auth_disabled_response_spec.rb
|
440
448
|
- spec/models/option_chain_inner_chain_per_root_inner_spec.rb
|
449
|
+
- spec/models/symbol_currency_spec.rb
|
441
450
|
- spec/models/options_place_option_strategy_request_spec.rb
|
442
451
|
- spec/models/strategy_quotes_greek_spec.rb
|
443
452
|
- spec/models/position_spec.rb
|