snaptrade 2.0.187 → 2.0.189
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 +84 -53
- data/lib/snaptrade/api/account_information_api.rb +111 -12
- data/lib/snaptrade/api/connections_api.rb +115 -0
- data/lib/snaptrade/api/experimental_endpoints_api.rb +8 -137
- data/lib/snaptrade/configuration.rb +1 -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/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/underlying_option_instrument.rb +6 -0
- data/lib/snaptrade/version.rb +1 -1
- data/lib/snaptrade.rb +6 -0
- data/spec/api/account_information_api_spec.rb +15 -1
- data/spec/api/connections_api_spec.rb +14 -0
- data/spec/api/experimental_endpoints_api_spec.rb +1 -17
- 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/mutual_fund_instrument_kind_spec.rb +23 -0
- data/spec/models/mutual_fund_instrument_spec.rb +71 -0
- metadata +20 -2
|
@@ -0,0 +1,36 @@
|
|
|
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 'date'
|
|
11
|
+
require 'time'
|
|
12
|
+
|
|
13
|
+
module SnapTrade
|
|
14
|
+
class MutualFundInstrumentKind
|
|
15
|
+
MUTUALFUND = "mutualfund".freeze
|
|
16
|
+
|
|
17
|
+
def self.all_vars
|
|
18
|
+
@all_vars ||= [MUTUALFUND].freeze
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# Builds the enum from string
|
|
22
|
+
# @param [String] The enum value in the form of the string
|
|
23
|
+
# @return [String] The enum value
|
|
24
|
+
def self.build_from_hash(value)
|
|
25
|
+
new.build_from_hash(value)
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Builds the enum from string
|
|
29
|
+
# @param [String] The enum value in the form of the string
|
|
30
|
+
# @return [String] The enum value
|
|
31
|
+
def build_from_hash(value)
|
|
32
|
+
return value if MutualFundInstrumentKind.all_vars.include?(value)
|
|
33
|
+
raise "Invalid ENUM value #{value} for class #MutualFundInstrumentKind"
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -17,8 +17,11 @@ module SnapTrade
|
|
|
17
17
|
# List of class defined in oneOf (OpenAPI v3)
|
|
18
18
|
def openapi_one_of
|
|
19
19
|
[
|
|
20
|
+
:'AdrInstrument',
|
|
21
|
+
:'CefInstrument',
|
|
20
22
|
:'CryptoInstrument',
|
|
21
23
|
:'EtfInstrument',
|
|
24
|
+
:'MutualFundInstrument',
|
|
22
25
|
:'OtherInstrument',
|
|
23
26
|
:'StockInstrument'
|
|
24
27
|
]
|
|
@@ -32,8 +35,11 @@ module SnapTrade
|
|
|
32
35
|
# Discriminator's mapping (OpenAPI v3)
|
|
33
36
|
def openapi_discriminator_mapping
|
|
34
37
|
{
|
|
38
|
+
:'adr' => :'AdrInstrument',
|
|
39
|
+
:'cef' => :'CefInstrument',
|
|
35
40
|
:'crypto' => :'CryptoInstrument',
|
|
36
41
|
:'etf' => :'EtfInstrument',
|
|
42
|
+
:'mutualfund' => :'MutualFundInstrument',
|
|
37
43
|
:'other' => :'OtherInstrument',
|
|
38
44
|
:'stock' => :'StockInstrument'
|
|
39
45
|
}
|
data/lib/snaptrade/version.rb
CHANGED
data/lib/snaptrade.rb
CHANGED
|
@@ -48,6 +48,8 @@ require 'snaptrade/models/account_value_history_item'
|
|
|
48
48
|
require 'snaptrade/models/account_value_history_response'
|
|
49
49
|
require 'snaptrade/models/action_strict'
|
|
50
50
|
require 'snaptrade/models/action_strict_with_options'
|
|
51
|
+
require 'snaptrade/models/adr_instrument'
|
|
52
|
+
require 'snaptrade/models/adr_instrument_kind'
|
|
51
53
|
require 'snaptrade/models/all_account_positions_response'
|
|
52
54
|
require 'snaptrade/models/auth_type'
|
|
53
55
|
require 'snaptrade/models/authentication_login_snap_trade_user200_response'
|
|
@@ -66,6 +68,8 @@ require 'snaptrade/models/brokerage_instruments_response'
|
|
|
66
68
|
require 'snaptrade/models/brokerage_type'
|
|
67
69
|
require 'snaptrade/models/cancel_order_response'
|
|
68
70
|
require 'snaptrade/models/cash_change_direction'
|
|
71
|
+
require 'snaptrade/models/cef_instrument'
|
|
72
|
+
require 'snaptrade/models/cef_instrument_kind'
|
|
69
73
|
require 'snaptrade/models/child_brokerage_order_ids'
|
|
70
74
|
require 'snaptrade/models/complex_order_leg'
|
|
71
75
|
require 'snaptrade/models/complex_order_leg_order_role'
|
|
@@ -132,6 +136,8 @@ require 'snaptrade/models/model404_failed_request_response'
|
|
|
132
136
|
require 'snaptrade/models/model425_failed_request_response'
|
|
133
137
|
require 'snaptrade/models/model500_unexpected_exception_response'
|
|
134
138
|
require 'snaptrade/models/monthly_dividends'
|
|
139
|
+
require 'snaptrade/models/mutual_fund_instrument'
|
|
140
|
+
require 'snaptrade/models/mutual_fund_instrument_kind'
|
|
135
141
|
require 'snaptrade/models/net_contributions'
|
|
136
142
|
require 'snaptrade/models/net_dividend'
|
|
137
143
|
require 'snaptrade/models/notional_value'
|
|
@@ -46,6 +46,20 @@ describe 'AccountInformationApi' do
|
|
|
46
46
|
end
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
+
# unit tests for get_account_balance_history
|
|
50
|
+
# List historical account total value
|
|
51
|
+
# An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year.
|
|
52
|
+
# @param user_id
|
|
53
|
+
# @param user_secret
|
|
54
|
+
# @param account_id
|
|
55
|
+
# @param [Hash] opts the optional parameters
|
|
56
|
+
# @return [AccountValueHistoryResponse]
|
|
57
|
+
describe 'get_account_balance_history test' do
|
|
58
|
+
it 'should work' do
|
|
59
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
49
63
|
# unit tests for get_all_user_holdings
|
|
50
64
|
# List all accounts for the user, plus balances, positions, and orders for each account.
|
|
51
65
|
# **Deprecated, please use the account-specific holdings endpoint instead.** List all accounts for the user, plus balances, positions, and orders for each account. **Note:** This endpoint will return HTTP 410 Gone for all customers that sign up after April 25, 2026.
|
|
@@ -179,7 +193,7 @@ describe 'AccountInformationApi' do
|
|
|
179
193
|
|
|
180
194
|
# unit tests for list_user_accounts
|
|
181
195
|
# List accounts
|
|
182
|
-
# Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user.
|
|
196
|
+
# **Deprecated, please use the [list accounts for a connection endpoint](/reference/Connections/Connections_listBrokerageAuthorizationAccounts) instead.** Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user. This data is cached and only refreshed once a day, regardless of the customer's plan. To get real-time data on a real-time plan, use the connection-scoped endpoint linked above. Customers on delayed plans can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
183
197
|
# @param user_id
|
|
184
198
|
# @param user_secret
|
|
185
199
|
# @param [Hash] opts the optional parameters
|
|
@@ -69,6 +69,20 @@ describe 'ConnectionsApi' do
|
|
|
69
69
|
end
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
+
# unit tests for list_brokerage_authorization_accounts
|
|
73
|
+
# List accounts for a connection
|
|
74
|
+
# Returns all brokerage accounts that belong to the specified connection for the authenticated user. On real-time plans, this endpoint refreshes each account's opening date, funding date, and total value live from the brokerage on each call. On delayed plans, this endpoint returns cached data that is refreshed once a day. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
75
|
+
# @param authorization_id
|
|
76
|
+
# @param user_id
|
|
77
|
+
# @param user_secret
|
|
78
|
+
# @param [Hash] opts the optional parameters
|
|
79
|
+
# @return [Array<Account>]
|
|
80
|
+
describe 'list_brokerage_authorization_accounts test' do
|
|
81
|
+
it 'should work' do
|
|
82
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
72
86
|
# unit tests for list_brokerage_authorizations
|
|
73
87
|
# List all connections
|
|
74
88
|
# Returns a list of all connections for the specified user. Note that `Connection` and `Brokerage Authorization` are interchangeable, but the term `Connection` is preferred and used in the doc for consistency. A connection is usually tied to a single login at a brokerage. A single connection can contain multiple brokerage accounts. SnapTrade performs de-duping on connections for a given user. If the user has an existing connection with the brokerage, when connecting the brokerage with the same credentials, SnapTrade will return the existing connection instead of creating a new one.
|
|
@@ -27,29 +27,13 @@ describe 'ExperimentalEndpointsApi' do
|
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
# unit tests for get_account_balance_history
|
|
31
|
-
# List historical account total value
|
|
32
|
-
# An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and only available for certain brokerages with a maximum lookback of 1 year.
|
|
33
|
-
# @param user_id
|
|
34
|
-
# @param user_secret
|
|
35
|
-
# @param account_id
|
|
36
|
-
# @param [Hash] opts the optional parameters
|
|
37
|
-
# @return [AccountValueHistoryResponse]
|
|
38
|
-
describe 'get_account_balance_history test' do
|
|
39
|
-
it 'should work' do
|
|
40
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
|
|
44
30
|
# unit tests for get_all_account_positions
|
|
45
31
|
# List all account positions
|
|
46
|
-
# Returns a
|
|
32
|
+
# Returns a list of all positions in the specified account. The `results` list can contain multiple instrument types in the same response, including stocks, ADRs, ETFs, mutual funds, closed-end funds, crypto, futures, and option positions. Use the `instrument.kind` discriminator to determine the schema for each position's `instrument`. Stock positions may also include `cash_equivalent`, and may include `tax_lots` when tax lot data is enabled for the account. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
47
33
|
# @param user_id
|
|
48
34
|
# @param user_secret
|
|
49
35
|
# @param account_id
|
|
50
36
|
# @param [Hash] opts the optional parameters
|
|
51
|
-
# @option opts [Integer] :page The page number to return. Defaults to 1.
|
|
52
|
-
# @option opts [Integer] :page_size The number of positions to return per page. Defaults to 100 with a maximum of 1000.
|
|
53
37
|
# @return [AllAccountPositionsResponse]
|
|
54
38
|
describe 'get_all_account_positions test' do
|
|
55
39
|
it 'should work' do
|
|
@@ -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::AdrInstrumentKind
|
|
15
|
+
describe SnapTrade::AdrInstrumentKind do
|
|
16
|
+
let(:instance) { SnapTrade::AdrInstrumentKind.new }
|
|
17
|
+
|
|
18
|
+
describe 'test an instance of AdrInstrumentKind' do
|
|
19
|
+
it 'should create an instance of AdrInstrumentKind' do
|
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::AdrInstrumentKind)
|
|
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::AdrInstrument
|
|
15
|
+
describe SnapTrade::AdrInstrument do
|
|
16
|
+
let(:instance) { SnapTrade::AdrInstrument.new }
|
|
17
|
+
|
|
18
|
+
describe 'test an instance of AdrInstrument' do
|
|
19
|
+
it 'should create an instance of AdrInstrument' do
|
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::AdrInstrument)
|
|
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
|
|
@@ -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::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
|
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.189
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SnapTrade
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-05-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -128,6 +128,8 @@ files:
|
|
|
128
128
|
- lib/snaptrade/models/account_value_history_response.rb
|
|
129
129
|
- lib/snaptrade/models/action_strict.rb
|
|
130
130
|
- lib/snaptrade/models/action_strict_with_options.rb
|
|
131
|
+
- lib/snaptrade/models/adr_instrument.rb
|
|
132
|
+
- lib/snaptrade/models/adr_instrument_kind.rb
|
|
131
133
|
- lib/snaptrade/models/all_account_positions_response.rb
|
|
132
134
|
- lib/snaptrade/models/auth_type.rb
|
|
133
135
|
- lib/snaptrade/models/authentication_login_snap_trade_user200_response.rb
|
|
@@ -146,6 +148,8 @@ files:
|
|
|
146
148
|
- lib/snaptrade/models/brokerage_type.rb
|
|
147
149
|
- lib/snaptrade/models/cancel_order_response.rb
|
|
148
150
|
- lib/snaptrade/models/cash_change_direction.rb
|
|
151
|
+
- lib/snaptrade/models/cef_instrument.rb
|
|
152
|
+
- lib/snaptrade/models/cef_instrument_kind.rb
|
|
149
153
|
- lib/snaptrade/models/child_brokerage_order_ids.rb
|
|
150
154
|
- lib/snaptrade/models/complex_order_leg.rb
|
|
151
155
|
- lib/snaptrade/models/complex_order_leg_order_role.rb
|
|
@@ -212,6 +216,8 @@ files:
|
|
|
212
216
|
- lib/snaptrade/models/model425_failed_request_response.rb
|
|
213
217
|
- lib/snaptrade/models/model500_unexpected_exception_response.rb
|
|
214
218
|
- lib/snaptrade/models/monthly_dividends.rb
|
|
219
|
+
- lib/snaptrade/models/mutual_fund_instrument.rb
|
|
220
|
+
- lib/snaptrade/models/mutual_fund_instrument_kind.rb
|
|
215
221
|
- lib/snaptrade/models/net_contributions.rb
|
|
216
222
|
- lib/snaptrade/models/net_dividend.rb
|
|
217
223
|
- lib/snaptrade/models/notional_value.rb
|
|
@@ -341,6 +347,8 @@ files:
|
|
|
341
347
|
- spec/models/account_value_history_response_spec.rb
|
|
342
348
|
- spec/models/action_strict_spec.rb
|
|
343
349
|
- spec/models/action_strict_with_options_spec.rb
|
|
350
|
+
- spec/models/adr_instrument_kind_spec.rb
|
|
351
|
+
- spec/models/adr_instrument_spec.rb
|
|
344
352
|
- spec/models/all_account_positions_response_spec.rb
|
|
345
353
|
- spec/models/auth_type_spec.rb
|
|
346
354
|
- spec/models/authentication_login_snap_trade_user200_response_spec.rb
|
|
@@ -359,6 +367,8 @@ files:
|
|
|
359
367
|
- spec/models/brokerage_type_spec.rb
|
|
360
368
|
- spec/models/cancel_order_response_spec.rb
|
|
361
369
|
- spec/models/cash_change_direction_spec.rb
|
|
370
|
+
- spec/models/cef_instrument_kind_spec.rb
|
|
371
|
+
- spec/models/cef_instrument_spec.rb
|
|
362
372
|
- spec/models/child_brokerage_order_ids_spec.rb
|
|
363
373
|
- spec/models/complex_order_leg_order_role_spec.rb
|
|
364
374
|
- spec/models/complex_order_leg_spec.rb
|
|
@@ -425,6 +435,8 @@ files:
|
|
|
425
435
|
- spec/models/model425_failed_request_response_spec.rb
|
|
426
436
|
- spec/models/model500_unexpected_exception_response_spec.rb
|
|
427
437
|
- spec/models/monthly_dividends_spec.rb
|
|
438
|
+
- spec/models/mutual_fund_instrument_kind_spec.rb
|
|
439
|
+
- spec/models/mutual_fund_instrument_spec.rb
|
|
428
440
|
- spec/models/net_contributions_spec.rb
|
|
429
441
|
- spec/models/net_dividend_spec.rb
|
|
430
442
|
- spec/models/notional_value_spec.rb
|
|
@@ -645,14 +657,17 @@ test_files:
|
|
|
645
657
|
- spec/models/mleg_action_strict_spec.rb
|
|
646
658
|
- spec/models/account_status_spec.rb
|
|
647
659
|
- spec/models/delete_user_response_spec.rb
|
|
660
|
+
- spec/models/mutual_fund_instrument_spec.rb
|
|
648
661
|
- spec/models/option_brokerage_symbol_spec.rb
|
|
649
662
|
- spec/models/account_universal_activity_option_symbol_spec.rb
|
|
650
663
|
- spec/models/underlying_symbol_spec.rb
|
|
664
|
+
- spec/models/adr_instrument_kind_spec.rb
|
|
651
665
|
- spec/models/auth_type_spec.rb
|
|
652
666
|
- spec/models/cash_change_direction_spec.rb
|
|
653
667
|
- spec/models/manual_trade_replace_form_spec.rb
|
|
654
668
|
- spec/models/login_redirect_uri_spec.rb
|
|
655
669
|
- spec/models/exchange_spec.rb
|
|
670
|
+
- spec/models/adr_instrument_spec.rb
|
|
656
671
|
- spec/models/account_holdings_spec.rb
|
|
657
672
|
- spec/models/action_strict_with_options_spec.rb
|
|
658
673
|
- spec/models/account_order_record_spec.rb
|
|
@@ -686,6 +701,7 @@ test_files:
|
|
|
686
701
|
- spec/models/figi_instrument_spec.rb
|
|
687
702
|
- spec/models/brokerage_authorization_type_read_only_type_spec.rb
|
|
688
703
|
- spec/models/instrument_spec.rb
|
|
704
|
+
- spec/models/cef_instrument_kind_spec.rb
|
|
689
705
|
- spec/models/notional_value_spec.rb
|
|
690
706
|
- spec/models/partner_data_spec.rb
|
|
691
707
|
- spec/models/account_simple_spec.rb
|
|
@@ -732,8 +748,10 @@ test_files:
|
|
|
732
748
|
- spec/models/option_instrument_kind_spec.rb
|
|
733
749
|
- spec/models/trading_instrument_spec.rb
|
|
734
750
|
- spec/models/type_spec.rb
|
|
751
|
+
- spec/models/cef_instrument_spec.rb
|
|
735
752
|
- spec/models/symbol_exchange_spec.rb
|
|
736
753
|
- spec/models/brokerage_instruments_response_spec.rb
|
|
754
|
+
- spec/models/mutual_fund_instrument_kind_spec.rb
|
|
737
755
|
- spec/models/model401_failed_request_response_spec.rb
|
|
738
756
|
- spec/models/symbol_currency_spec.rb
|
|
739
757
|
- spec/models/account_order_record_status_spec.rb
|