snaptrade 2.0.33 → 2.0.34
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 +26 -21
- data/lib/snaptrade/api/account_information_api.rb +70 -52
- data/lib/snaptrade/api/options_api.rb +16 -12
- data/lib/snaptrade/models/account.rb +11 -2
- data/lib/snaptrade/models/account_balance_total.rb +1 -8
- data/lib/snaptrade/models/account_holdings_account.rb +1 -1
- data/lib/snaptrade/models/account_sync_status.rb +1 -1
- data/lib/snaptrade/models/balance.rb +1 -1
- data/lib/snaptrade/models/{snap_trade_holdings_account_account_id_balance.rb → balance_currency.rb} +33 -12
- data/lib/snaptrade/models/holdings_status.rb +4 -4
- data/lib/snaptrade/models/transactions_status.rb +4 -5
- data/lib/snaptrade/version.rb +1 -1
- data/lib/snaptrade.rb +1 -3
- data/spec/api/account_information_api_spec.rb +12 -12
- data/spec/api/options_api_spec.rb +3 -3
- data/spec/models/balance_currency_spec.rb +41 -0
- metadata +5 -11
- data/lib/snaptrade/models/amount.rb +0 -228
- data/lib/snaptrade/models/snap_trade_holdings_account_account_id.rb +0 -313
- data/spec/models/amount_spec.rb +0 -35
- data/spec/models/snap_trade_holdings_account_account_id_balance_spec.rb +0 -29
- data/spec/models/snap_trade_holdings_account_account_id_spec.rb +0 -83
@@ -11,22 +11,30 @@ require 'date'
|
|
11
11
|
require 'time'
|
12
12
|
|
13
13
|
module SnapTrade
|
14
|
-
#
|
14
|
+
# A single brokerage account at a financial institution.
|
15
15
|
class Account
|
16
|
+
# Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade. This ID should not change for as long as the connection stays active. If the connection is deleted and re-added, a new account ID will be generated. If you want a stable identifier for the account, use the `number` field.
|
16
17
|
attr_accessor :id
|
17
18
|
|
19
|
+
# Unique identifier for the connection (brokerage authorization). This is the UUID used to reference the connection in SnapTrade.
|
18
20
|
attr_accessor :brokerage_authorization
|
19
21
|
|
22
|
+
# Portfolio Group ID. Portfolio Groups have been deprecated. Please contact support if you have a usecase for it.
|
20
23
|
attr_accessor :portfolio_group
|
21
24
|
|
25
|
+
# A display name for the account. Either assigned by the user or by the financial institution itself. For certain institutions, SnapTrade appends the institution name to the account name for clarity.
|
22
26
|
attr_accessor :name
|
23
27
|
|
28
|
+
# The account number assigned by the financial institution.
|
24
29
|
attr_accessor :number
|
25
30
|
|
31
|
+
# The name of the financial institution that holds the account.
|
26
32
|
attr_accessor :institution_name
|
27
33
|
|
34
|
+
# Timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format indicating when the account was created in SnapTrade. This is _not_ the account opening date at the financial institution.
|
28
35
|
attr_accessor :created_date
|
29
36
|
|
37
|
+
# Additional information about the account, such as account type, status, etc. This information is specific to the financial institution and there's no standard format for this data. Please use at your own risk.
|
30
38
|
attr_accessor :meta
|
31
39
|
|
32
40
|
# This field is deprecated.
|
@@ -67,7 +75,7 @@ module SnapTrade
|
|
67
75
|
:'name' => :'String',
|
68
76
|
:'number' => :'String',
|
69
77
|
:'institution_name' => :'String',
|
70
|
-
:'created_date' => :'
|
78
|
+
:'created_date' => :'Time',
|
71
79
|
:'meta' => :'Hash<String, Object>',
|
72
80
|
:'cash_restrictions' => :'Array<String>',
|
73
81
|
:'sync_status' => :'AccountSyncStatus',
|
@@ -78,6 +86,7 @@ module SnapTrade
|
|
78
86
|
# List of attributes with nullable: true
|
79
87
|
def self.openapi_nullable
|
80
88
|
Set.new([
|
89
|
+
:'name',
|
81
90
|
])
|
82
91
|
end
|
83
92
|
|
@@ -11,7 +11,7 @@ require 'date'
|
|
11
11
|
require 'time'
|
12
12
|
|
13
13
|
module SnapTrade
|
14
|
-
# Total value of this account (includes cash, equity, fixed income, etc)
|
14
|
+
# Total market value of this account (includes cash, equity, fixed income, etc). This value is directly obtained from the brokerage and should reflect the most accurate value of the account.
|
15
15
|
class AccountBalanceTotal
|
16
16
|
# Total value denominated in the currency of the `currency` field.
|
17
17
|
attr_accessor :amount
|
@@ -46,13 +46,6 @@ module SnapTrade
|
|
46
46
|
])
|
47
47
|
end
|
48
48
|
|
49
|
-
# List of class defined in allOf (OpenAPI v3)
|
50
|
-
def self.openapi_all_of
|
51
|
-
[
|
52
|
-
:'Amount'
|
53
|
-
]
|
54
|
-
end
|
55
|
-
|
56
49
|
# Initializes the object
|
57
50
|
# @param [Hash] attributes Model attributes in the form of hash
|
58
51
|
def initialize(attributes = {})
|
@@ -49,7 +49,7 @@ module SnapTrade
|
|
49
49
|
# Attribute type mapping.
|
50
50
|
def self.openapi_types
|
51
51
|
{
|
52
|
-
:'account' => :'
|
52
|
+
:'account' => :'Account',
|
53
53
|
:'balances' => :'Array<Balance>',
|
54
54
|
:'positions' => :'Array<Position>',
|
55
55
|
:'option_positions' => :'Array<OptionsPosition>',
|
data/lib/snaptrade/models/{snap_trade_holdings_account_account_id_balance.rb → balance_currency.rb}
RENAMED
@@ -11,13 +11,23 @@ require 'date'
|
|
11
11
|
require 'time'
|
12
12
|
|
13
13
|
module SnapTrade
|
14
|
-
|
15
|
-
|
14
|
+
# The currency of the balance. This applies to both `cash` and `buying_power`.
|
15
|
+
class BalanceCurrency
|
16
|
+
# Unique identifier for the currency. This is the UUID used to reference the currency in SnapTrade.
|
17
|
+
attr_accessor :id
|
18
|
+
|
19
|
+
# The ISO-4217 currency code for the currency.
|
20
|
+
attr_accessor :code
|
21
|
+
|
22
|
+
# A human-friendly name of the currency.
|
23
|
+
attr_accessor :name
|
16
24
|
|
17
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
18
26
|
def self.attribute_map
|
19
27
|
{
|
20
|
-
:'
|
28
|
+
:'id' => :'id',
|
29
|
+
:'code' => :'code',
|
30
|
+
:'name' => :'name'
|
21
31
|
}
|
22
32
|
end
|
23
33
|
|
@@ -29,21 +39,22 @@ module SnapTrade
|
|
29
39
|
# Attribute type mapping.
|
30
40
|
def self.openapi_types
|
31
41
|
{
|
32
|
-
:'
|
42
|
+
:'id' => :'String',
|
43
|
+
:'code' => :'String',
|
44
|
+
:'name' => :'String'
|
33
45
|
}
|
34
46
|
end
|
35
47
|
|
36
48
|
# List of attributes with nullable: true
|
37
49
|
def self.openapi_nullable
|
38
50
|
Set.new([
|
39
|
-
:'total'
|
40
51
|
])
|
41
52
|
end
|
42
53
|
|
43
54
|
# List of class defined in allOf (OpenAPI v3)
|
44
55
|
def self.openapi_all_of
|
45
56
|
[
|
46
|
-
:'
|
57
|
+
:'Currency'
|
47
58
|
]
|
48
59
|
end
|
49
60
|
|
@@ -51,19 +62,27 @@ module SnapTrade
|
|
51
62
|
# @param [Hash] attributes Model attributes in the form of hash
|
52
63
|
def initialize(attributes = {})
|
53
64
|
if (!attributes.is_a?(Hash))
|
54
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `SnapTrade::
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SnapTrade::BalanceCurrency` initialize method"
|
55
66
|
end
|
56
67
|
|
57
68
|
# check to see if the attribute exists and convert string to symbol for hash key
|
58
69
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
59
70
|
if (!self.class.attribute_map.key?(k.to_sym))
|
60
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `SnapTrade::
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SnapTrade::BalanceCurrency`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
61
72
|
end
|
62
73
|
h[k.to_sym] = v
|
63
74
|
}
|
64
75
|
|
65
|
-
if attributes.key?(:'
|
66
|
-
self.
|
76
|
+
if attributes.key?(:'id')
|
77
|
+
self.id = attributes[:'id']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.key?(:'code')
|
81
|
+
self.code = attributes[:'code']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.key?(:'name')
|
85
|
+
self.name = attributes[:'name']
|
67
86
|
end
|
68
87
|
end
|
69
88
|
|
@@ -85,7 +104,9 @@ module SnapTrade
|
|
85
104
|
def ==(o)
|
86
105
|
return true if self.equal?(o)
|
87
106
|
self.class == o.class &&
|
88
|
-
|
107
|
+
id == o.id &&
|
108
|
+
code == o.code &&
|
109
|
+
name == o.name
|
89
110
|
end
|
90
111
|
|
91
112
|
# @see the `==` method
|
@@ -97,7 +118,7 @@ module SnapTrade
|
|
97
118
|
# Calculates hash code according to all attributes.
|
98
119
|
# @return [Integer] Hash code
|
99
120
|
def hash
|
100
|
-
[
|
121
|
+
[id, code, name].hash
|
101
122
|
end
|
102
123
|
|
103
124
|
# Builds the object from hash
|
@@ -11,11 +11,12 @@ require 'date'
|
|
11
11
|
require 'time'
|
12
12
|
|
13
13
|
module SnapTrade
|
14
|
-
# Status of account holdings sync
|
14
|
+
# Status of account holdings sync. SnapTrade syncs holdings from the brokerage under the following conditions: 1. Initial connection - SnapTrade syncs all holdings (positions, balances, recent orders, and transactions) immediately after the connection is established. 2. Daily sync - Once a day SnapTrade refreshes all holdings from the brokerage. 3. Manual sync - You can trigger a refresh of holdings with the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint.
|
15
15
|
class HoldingsStatus
|
16
|
+
# Indicates if the initial sync of holdings has been completed. For accounts with a large number of positions/orders/transactions, the initial sync may take a while to complete.
|
16
17
|
attr_accessor :initial_sync_completed
|
17
18
|
|
18
|
-
#
|
19
|
+
# The last time holdings were successfully synced by SnapTrade.
|
19
20
|
attr_accessor :last_successful_sync
|
20
21
|
|
21
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -35,14 +36,13 @@ module SnapTrade
|
|
35
36
|
def self.openapi_types
|
36
37
|
{
|
37
38
|
:'initial_sync_completed' => :'Boolean',
|
38
|
-
:'last_successful_sync' => :'
|
39
|
+
:'last_successful_sync' => :'Time'
|
39
40
|
}
|
40
41
|
end
|
41
42
|
|
42
43
|
# List of attributes with nullable: true
|
43
44
|
def self.openapi_nullable
|
44
45
|
Set.new([
|
45
|
-
:'last_successful_sync'
|
46
46
|
])
|
47
47
|
end
|
48
48
|
|
@@ -11,14 +11,15 @@ require 'date'
|
|
11
11
|
require 'time'
|
12
12
|
|
13
13
|
module SnapTrade
|
14
|
-
# Status of account transaction sync
|
14
|
+
# Status of account transaction sync. SnapTrade syncs transactions from the brokerage under the following conditions: 1. Initial connection - SnapTrade syncs all transactions from the brokerage account as far back as the brokerage allows. Check [our integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=6fab8012ade6441fa0c6d9af9c55ce3a) for details on how far back we sync for each brokerage. 2. Daily sync - Once a day SnapTrade syncs new transactions from the brokerage. 3. Manual sync - You can retrigger an incremental sync of transactions with the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint.
|
15
15
|
class TransactionsStatus
|
16
|
+
# Indicates if the initial sync of transactions has been completed. For accounts with a large number of transactions, the initial sync may take a while to complete.
|
16
17
|
attr_accessor :initial_sync_completed
|
17
18
|
|
18
|
-
#
|
19
|
+
# All transactions up to this date have been successfully synced. Please note that this is not the date of the last transaction, nor the last time SnapTrade attempted to sync transactions.
|
19
20
|
attr_accessor :last_successful_sync
|
20
21
|
|
21
|
-
#
|
22
|
+
# The date of the first transaction in the account known to SnapTrade. It's possible that the account has transactions before this date, but they are not known to SnapTrade.
|
22
23
|
attr_accessor :first_transaction_date
|
23
24
|
|
24
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -47,8 +48,6 @@ module SnapTrade
|
|
47
48
|
# List of attributes with nullable: true
|
48
49
|
def self.openapi_nullable
|
49
50
|
Set.new([
|
50
|
-
:'last_successful_sync',
|
51
|
-
:'first_transaction_date'
|
52
51
|
])
|
53
52
|
end
|
54
53
|
|
data/lib/snaptrade/version.rb
CHANGED
data/lib/snaptrade.rb
CHANGED
@@ -28,10 +28,10 @@ require 'snaptrade/models/account_order_record_universal_symbol'
|
|
28
28
|
require 'snaptrade/models/account_simple'
|
29
29
|
require 'snaptrade/models/account_sync_status'
|
30
30
|
require 'snaptrade/models/action_strict'
|
31
|
-
require 'snaptrade/models/amount'
|
32
31
|
require 'snaptrade/models/auth_type'
|
33
32
|
require 'snaptrade/models/authentication_login_snap_trade_user200_response'
|
34
33
|
require 'snaptrade/models/balance'
|
34
|
+
require 'snaptrade/models/balance_currency'
|
35
35
|
require 'snaptrade/models/brokerage'
|
36
36
|
require 'snaptrade/models/brokerage_authorization'
|
37
37
|
require 'snaptrade/models/brokerage_authorization_disabled_confirmation'
|
@@ -94,8 +94,6 @@ require 'snaptrade/models/security_type'
|
|
94
94
|
require 'snaptrade/models/session_event'
|
95
95
|
require 'snaptrade/models/session_event_type'
|
96
96
|
require 'snaptrade/models/snap_trade_holdings_account'
|
97
|
-
require 'snaptrade/models/snap_trade_holdings_account_account_id'
|
98
|
-
require 'snaptrade/models/snap_trade_holdings_account_account_id_balance'
|
99
97
|
require 'snaptrade/models/snap_trade_holdings_total_value'
|
100
98
|
require 'snaptrade/models/snap_trade_login_user_request_body'
|
101
99
|
require 'snaptrade/models/snap_trade_register_user_request_body'
|
@@ -43,10 +43,10 @@ describe 'AccountInformationApi' do
|
|
43
43
|
|
44
44
|
# unit tests for get_user_account_balance
|
45
45
|
# List account balances
|
46
|
-
#
|
46
|
+
# Returns a list of balances for the account. Each element of the list has a distinct currency. Some brokerages like Questrade [allows holding multiple currencies in the same account](https://www.questrade.com/learning/questrade-basics/balances-and-reports/understanding-your-account-balances). The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
47
47
|
# @param user_id
|
48
48
|
# @param user_secret
|
49
|
-
# @param account_id
|
49
|
+
# @param account_id
|
50
50
|
# @param [Hash] opts the optional parameters
|
51
51
|
# @return [Array<Balance>]
|
52
52
|
describe 'get_user_account_balance test' do
|
@@ -56,11 +56,11 @@ describe 'AccountInformationApi' do
|
|
56
56
|
end
|
57
57
|
|
58
58
|
# unit tests for get_user_account_details
|
59
|
-
#
|
60
|
-
# Returns
|
59
|
+
# Get account detail
|
60
|
+
# Returns account detail known to SnapTrade for the specified account. 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**.
|
61
61
|
# @param user_id
|
62
62
|
# @param user_secret
|
63
|
-
# @param account_id
|
63
|
+
# @param account_id
|
64
64
|
# @param [Hash] opts the optional parameters
|
65
65
|
# @return [Account]
|
66
66
|
describe 'get_user_account_details test' do
|
@@ -70,11 +70,11 @@ describe 'AccountInformationApi' do
|
|
70
70
|
end
|
71
71
|
|
72
72
|
# unit tests for get_user_account_orders
|
73
|
-
# List account orders
|
74
|
-
#
|
73
|
+
# List account recent orders
|
74
|
+
# Returns a list of recent orders in the specified account. The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
75
75
|
# @param user_id
|
76
76
|
# @param user_secret
|
77
|
-
# @param account_id
|
77
|
+
# @param account_id
|
78
78
|
# @param [Hash] opts the optional parameters
|
79
79
|
# @option opts [String] :state defaults value is set to \"all\"
|
80
80
|
# @option opts [Integer] :days Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in.
|
@@ -87,10 +87,10 @@ describe 'AccountInformationApi' do
|
|
87
87
|
|
88
88
|
# unit tests for get_user_account_positions
|
89
89
|
# List account positions
|
90
|
-
# Returns a list of positions in the specified account.
|
90
|
+
# Returns a list of stock/ETF/crypto/mutual fund positions in the specified account. For option positions, please use the [options endpoint](/reference/Options/Options_listOptionHoldings). The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
91
91
|
# @param user_id
|
92
92
|
# @param user_secret
|
93
|
-
# @param account_id
|
93
|
+
# @param account_id
|
94
94
|
# @param [Hash] opts the optional parameters
|
95
95
|
# @return [Array<Position>]
|
96
96
|
describe 'get_user_account_positions test' do
|
@@ -101,7 +101,7 @@ describe 'AccountInformationApi' do
|
|
101
101
|
|
102
102
|
# unit tests for get_user_holdings
|
103
103
|
# List account holdings
|
104
|
-
#
|
104
|
+
# Returns a list of balances, positions, and recent orders for the specified account. The data returned is similar to the data returned over the more fine-grained [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getUserAccountPositions) and [orders](/reference/Account%20Information/AccountInformation_getUserAccountOrders) endpoints. __The finer-grained APIs are preferred. They are easier to work with, faster, and have better error handling than this coarse-grained API.__ The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
105
105
|
# @param account_id
|
106
106
|
# @param user_id
|
107
107
|
# @param user_secret
|
@@ -115,7 +115,7 @@ describe 'AccountInformationApi' do
|
|
115
115
|
|
116
116
|
# unit tests for list_user_accounts
|
117
117
|
# List accounts
|
118
|
-
#
|
118
|
+
# Returns all brokerage accounts known to SnapTrade for the authenticated user. 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**.
|
119
119
|
# @param user_id
|
120
120
|
# @param user_secret
|
121
121
|
# @param [Hash] opts the optional parameters
|
@@ -73,11 +73,11 @@ describe 'OptionsApi' do
|
|
73
73
|
end
|
74
74
|
|
75
75
|
# unit tests for list_option_holdings
|
76
|
-
#
|
77
|
-
# Returns a list of
|
76
|
+
# List account option positions
|
77
|
+
# Returns a list of option positions in the specified account. For stock/ETF/crypto/mutual fund positions, please use the [positions endpoint](/reference/Account%20Information/AccountInformation_getUserAccountPositions). The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
78
78
|
# @param user_id
|
79
79
|
# @param user_secret
|
80
|
-
# @param account_id
|
80
|
+
# @param account_id
|
81
81
|
# @param [Hash] opts the optional parameters
|
82
82
|
# @return [Array<OptionsPosition>]
|
83
83
|
describe 'list_option_holdings test' do
|
@@ -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::BalanceCurrency
|
15
|
+
describe SnapTrade::BalanceCurrency do
|
16
|
+
let(:instance) { SnapTrade::BalanceCurrency.new }
|
17
|
+
|
18
|
+
describe 'test an instance of BalanceCurrency' do
|
19
|
+
it 'should create an instance of BalanceCurrency' do
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::BalanceCurrency)
|
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
|
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.34
|
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-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -107,10 +107,10 @@ files:
|
|
107
107
|
- lib/snaptrade/models/account_simple.rb
|
108
108
|
- lib/snaptrade/models/account_sync_status.rb
|
109
109
|
- lib/snaptrade/models/action_strict.rb
|
110
|
-
- lib/snaptrade/models/amount.rb
|
111
110
|
- lib/snaptrade/models/auth_type.rb
|
112
111
|
- lib/snaptrade/models/authentication_login_snap_trade_user200_response.rb
|
113
112
|
- lib/snaptrade/models/balance.rb
|
113
|
+
- lib/snaptrade/models/balance_currency.rb
|
114
114
|
- lib/snaptrade/models/brokerage.rb
|
115
115
|
- lib/snaptrade/models/brokerage_authorization.rb
|
116
116
|
- lib/snaptrade/models/brokerage_authorization_disabled_confirmation.rb
|
@@ -173,8 +173,6 @@ files:
|
|
173
173
|
- lib/snaptrade/models/session_event.rb
|
174
174
|
- lib/snaptrade/models/session_event_type.rb
|
175
175
|
- lib/snaptrade/models/snap_trade_holdings_account.rb
|
176
|
-
- lib/snaptrade/models/snap_trade_holdings_account_account_id.rb
|
177
|
-
- lib/snaptrade/models/snap_trade_holdings_account_account_id_balance.rb
|
178
176
|
- lib/snaptrade/models/snap_trade_holdings_total_value.rb
|
179
177
|
- lib/snaptrade/models/snap_trade_login_user_request_body.rb
|
180
178
|
- lib/snaptrade/models/snap_trade_register_user_request_body.rb
|
@@ -228,9 +226,9 @@ files:
|
|
228
226
|
- spec/models/account_spec.rb
|
229
227
|
- spec/models/account_sync_status_spec.rb
|
230
228
|
- spec/models/action_strict_spec.rb
|
231
|
-
- spec/models/amount_spec.rb
|
232
229
|
- spec/models/auth_type_spec.rb
|
233
230
|
- spec/models/authentication_login_snap_trade_user200_response_spec.rb
|
231
|
+
- spec/models/balance_currency_spec.rb
|
234
232
|
- spec/models/balance_spec.rb
|
235
233
|
- spec/models/brokerage_authorization_disabled_confirmation_spec.rb
|
236
234
|
- spec/models/brokerage_authorization_refresh_confirmation_spec.rb
|
@@ -293,8 +291,6 @@ files:
|
|
293
291
|
- spec/models/security_type_spec.rb
|
294
292
|
- spec/models/session_event_spec.rb
|
295
293
|
- spec/models/session_event_type_spec.rb
|
296
|
-
- spec/models/snap_trade_holdings_account_account_id_balance_spec.rb
|
297
|
-
- spec/models/snap_trade_holdings_account_account_id_spec.rb
|
298
294
|
- spec/models/snap_trade_holdings_account_spec.rb
|
299
295
|
- spec/models/snap_trade_holdings_total_value_spec.rb
|
300
296
|
- spec/models/snap_trade_login_user_request_body_spec.rb
|
@@ -363,7 +359,6 @@ test_files:
|
|
363
359
|
- spec/configuration_spec.rb
|
364
360
|
- spec/getting_started_spec.rb
|
365
361
|
- spec/models/universal_symbol_spec.rb
|
366
|
-
- spec/models/snap_trade_holdings_account_account_id_spec.rb
|
367
362
|
- spec/models/monthly_dividends_spec.rb
|
368
363
|
- spec/models/symbol_query_spec.rb
|
369
364
|
- spec/models/connection_portal_version_spec.rb
|
@@ -371,7 +366,6 @@ test_files:
|
|
371
366
|
- spec/models/type_spec.rb
|
372
367
|
- spec/models/sub_period_return_rate_spec.rb
|
373
368
|
- spec/models/brokerage_spec.rb
|
374
|
-
- spec/models/snap_trade_holdings_account_account_id_balance_spec.rb
|
375
369
|
- spec/models/underlying_symbol_spec.rb
|
376
370
|
- spec/models/model404_failed_request_response_spec.rb
|
377
371
|
- spec/models/snap_trade_login_user_request_body_spec.rb
|
@@ -416,7 +410,6 @@ test_files:
|
|
416
410
|
- spec/models/symbol_spec.rb
|
417
411
|
- spec/models/underlying_symbol_type_spec.rb
|
418
412
|
- spec/models/security_type_spec.rb
|
419
|
-
- spec/models/amount_spec.rb
|
420
413
|
- spec/models/account_order_record_option_symbol_spec.rb
|
421
414
|
- spec/models/account_simple_spec.rb
|
422
415
|
- spec/models/symbols_quotes_inner_spec.rb
|
@@ -453,6 +446,7 @@ test_files:
|
|
453
446
|
- spec/models/option_chain_inner_spec.rb
|
454
447
|
- spec/models/account_order_record_universal_symbol_spec.rb
|
455
448
|
- spec/models/connections_session_events200_response_inner_spec.rb
|
449
|
+
- spec/models/balance_currency_spec.rb
|
456
450
|
- spec/models/figi_instrument_spec.rb
|
457
451
|
- spec/models/encrypted_response_encrypted_message_data_spec.rb
|
458
452
|
- spec/models/performance_custom_spec.rb
|