snaptrade 2.0.89 → 2.0.91
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 +4 -4
- data/README.md +5 -5
- data/lib/snaptrade/api/account_information_api.rb +4 -4
- data/lib/snaptrade/api/authentication_api.rb +2 -2
- data/lib/snaptrade/api/connections_api.rb +10 -10
- data/lib/snaptrade/models/account.rb +15 -15
- data/lib/snaptrade/models/snap_trade_register_user_request_body.rb +5 -0
- data/lib/snaptrade/models/trading_instrument.rb +1 -1
- data/lib/snaptrade/version.rb +1 -1
- data/spec/api/account_information_api_spec.rb +1 -1
- data/spec/api/connections_api_spec.rb +2 -2
- data/spec/models/account_spec.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96a36a98aeb1fb6c97d243813734decf01f1ce9ea45c28c42ca570e19487e799
|
4
|
+
data.tar.gz: '0346728bf405a16ba477eb478daba50e79c478f2e99a025b87a0b75429e0e848'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e72cd583e3751f9ac6353208835835c7202f2fc4cbf58ddedc4b5ce95f7c147441bb412419f883db2826bb72393037cd0359fc6efd754850b5b3d834f6e2d332
|
7
|
+
data.tar.gz: 626060577c3f93fc74cc948420bc085223d40ce1b8f8aa68160fff700ec89928984c95fc61c0c7fc8268990a51e641d6331a7a17735aba8e86f053bdd178b92c
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
snaptrade (2.0.
|
4
|
+
snaptrade (2.0.91)
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
6
6
|
faraday-multipart (~> 1.0, >= 1.0.4)
|
7
7
|
|
@@ -29,7 +29,7 @@ GEM
|
|
29
29
|
method_source (1.1.0)
|
30
30
|
multipart-post (2.4.1)
|
31
31
|
parallel (1.26.3)
|
32
|
-
parser (3.3.7.
|
32
|
+
parser (3.3.7.4)
|
33
33
|
ast (~> 2.4.1)
|
34
34
|
racc
|
35
35
|
prism (1.4.0)
|
@@ -43,7 +43,7 @@ GEM
|
|
43
43
|
rainbow (3.1.1)
|
44
44
|
rake (13.0.6)
|
45
45
|
regexp_parser (2.10.0)
|
46
|
-
reline (0.6.
|
46
|
+
reline (0.6.1)
|
47
47
|
io-console (~> 0.5)
|
48
48
|
rexml (3.4.1)
|
49
49
|
rspec (3.13.0)
|
@@ -68,7 +68,7 @@ GEM
|
|
68
68
|
rubocop-ast (>= 1.2.0, < 2.0)
|
69
69
|
ruby-progressbar (~> 1.7)
|
70
70
|
unicode-display_width (>= 1.4.0, < 3.0)
|
71
|
-
rubocop-ast (1.
|
71
|
+
rubocop-ast (1.44.0)
|
72
72
|
parser (>= 3.3.7.2)
|
73
73
|
prism (~> 1.4)
|
74
74
|
ruby-progressbar (1.13.0)
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
Connect brokerage accounts to your app for live positions and trading
|
8
8
|
|
9
|
-
[](https://rubygems.org/gems/snaptrade/versions/2.0.91)
|
10
10
|
[](https://snaptrade.com/)
|
11
11
|
|
12
12
|
</div>
|
@@ -81,7 +81,7 @@ Connect brokerage accounts to your app for live positions and trading
|
|
81
81
|
Add to Gemfile:
|
82
82
|
|
83
83
|
```ruby
|
84
|
-
gem 'snaptrade', '~> 2.0.
|
84
|
+
gem 'snaptrade', '~> 2.0.91'
|
85
85
|
```
|
86
86
|
|
87
87
|
## Getting Started<a id="getting-started"></a>
|
@@ -840,7 +840,7 @@ p result
|
|
840
840
|
Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections.
|
841
841
|
Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](/docs/webhooks#webhooks-connection_broken) for the connection.
|
842
842
|
|
843
|
-
|
843
|
+
This endpoint is available on test keys. If you would like it enabled on production keys as well, please contact support as it is disabled by default.
|
844
844
|
|
845
845
|
|
846
846
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
@@ -911,9 +911,9 @@ p result
|
|
911
911
|
### `snaptrade.connections.refresh_brokerage_authorization`<a id="snaptradeconnectionsrefresh_brokerage_authorization"></a>
|
912
912
|
|
913
913
|
Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection.
|
914
|
-
This endpoint will also trigger a transaction sync for the past day if one has not yet
|
914
|
+
This endpoint will also trigger a transaction sync for the past day if one has not yet occurred.
|
915
915
|
|
916
|
-
|
916
|
+
**Please contact support before use. Because of the cost of refreshing a connection, each call to this endpoint incurs a additional charge of $0.05**
|
917
917
|
|
918
918
|
|
919
919
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
@@ -497,7 +497,7 @@ module SnapTrade
|
|
497
497
|
end
|
498
498
|
|
499
499
|
|
500
|
-
# List account
|
500
|
+
# List account orders
|
501
501
|
#
|
502
502
|
# Returns a list of recent orders in the specified account.
|
503
503
|
#
|
@@ -516,7 +516,7 @@ module SnapTrade
|
|
516
516
|
data
|
517
517
|
end
|
518
518
|
|
519
|
-
# List account
|
519
|
+
# List account orders
|
520
520
|
#
|
521
521
|
# Returns a list of recent orders in the specified account.
|
522
522
|
#
|
@@ -534,7 +534,7 @@ module SnapTrade
|
|
534
534
|
get_user_account_orders_with_http_info_impl(user_id, user_secret, account_id, extra)
|
535
535
|
end
|
536
536
|
|
537
|
-
# List account
|
537
|
+
# List account orders
|
538
538
|
# 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**.
|
539
539
|
# @param user_id [String]
|
540
540
|
# @param user_secret [String]
|
@@ -548,7 +548,7 @@ module SnapTrade
|
|
548
548
|
data
|
549
549
|
end
|
550
550
|
|
551
|
-
# List account
|
551
|
+
# List account orders
|
552
552
|
# 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**.
|
553
553
|
# @param user_id [String]
|
554
554
|
# @param user_secret [String]
|
@@ -324,7 +324,7 @@ module SnapTrade
|
|
324
324
|
# @param user_id [String] SnapTrade User ID. This is chosen by the API partner and can be any string that is a) unique to the user, and b) immutable for the user. It is recommended to NOT use email addresses for this property because they are usually not immutable.
|
325
325
|
# @param body [SnapTradeRegisterUserRequestBody]
|
326
326
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
327
|
-
def register_snap_trade_user(user_id
|
327
|
+
def register_snap_trade_user(user_id:, extra: {})
|
328
328
|
_body = {}
|
329
329
|
_body[:userId] = user_id if user_id != SENTINEL
|
330
330
|
snap_trade_register_user_request_body = _body
|
@@ -340,7 +340,7 @@ module SnapTrade
|
|
340
340
|
# @param user_id [String] SnapTrade User ID. This is chosen by the API partner and can be any string that is a) unique to the user, and b) immutable for the user. It is recommended to NOT use email addresses for this property because they are usually not immutable.
|
341
341
|
# @param body [SnapTradeRegisterUserRequestBody]
|
342
342
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
343
|
-
def register_snap_trade_user_with_http_info(user_id
|
343
|
+
def register_snap_trade_user_with_http_info(user_id:, extra: {})
|
344
344
|
_body = {}
|
345
345
|
_body[:userId] = user_id if user_id != SENTINEL
|
346
346
|
snap_trade_register_user_request_body = _body
|
@@ -125,7 +125,7 @@ module SnapTrade
|
|
125
125
|
# Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections.
|
126
126
|
# Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](/docs/webhooks#webhooks-connection_broken) for the connection.
|
127
127
|
#
|
128
|
-
#
|
128
|
+
# This endpoint is available on test keys. If you would like it enabled on production keys as well, please contact support as it is disabled by default.
|
129
129
|
#
|
130
130
|
# @param authorization_id [String]
|
131
131
|
# @param user_id [String]
|
@@ -141,7 +141,7 @@ module SnapTrade
|
|
141
141
|
# Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections.
|
142
142
|
# Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](/docs/webhooks#webhooks-connection_broken) for the connection.
|
143
143
|
#
|
144
|
-
#
|
144
|
+
# This endpoint is available on test keys. If you would like it enabled on production keys as well, please contact support as it is disabled by default.
|
145
145
|
#
|
146
146
|
# @param authorization_id [String]
|
147
147
|
# @param user_id [String]
|
@@ -152,7 +152,7 @@ module SnapTrade
|
|
152
152
|
end
|
153
153
|
|
154
154
|
# Force disable connection
|
155
|
-
# Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](/docs/webhooks#webhooks-connection_broken) for the connection.
|
155
|
+
# Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](/docs/webhooks#webhooks-connection_broken) for the connection. This endpoint is available on test keys. If you would like it enabled on production keys as well, please contact support as it is disabled by default.
|
156
156
|
# @param authorization_id [String]
|
157
157
|
# @param user_id [String]
|
158
158
|
# @param user_secret [String]
|
@@ -164,7 +164,7 @@ module SnapTrade
|
|
164
164
|
end
|
165
165
|
|
166
166
|
# Force disable connection
|
167
|
-
# Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](/docs/webhooks#webhooks-connection_broken) for the connection.
|
167
|
+
# Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](/docs/webhooks#webhooks-connection_broken) for the connection. This endpoint is available on test keys. If you would like it enabled on production keys as well, please contact support as it is disabled by default.
|
168
168
|
# @param authorization_id [String]
|
169
169
|
# @param user_id [String]
|
170
170
|
# @param user_secret [String]
|
@@ -335,9 +335,9 @@ module SnapTrade
|
|
335
335
|
# Refresh holdings for a connection
|
336
336
|
#
|
337
337
|
# Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection.
|
338
|
-
# This endpoint will also trigger a transaction sync for the past day if one has not yet
|
338
|
+
# This endpoint will also trigger a transaction sync for the past day if one has not yet occurred.
|
339
339
|
#
|
340
|
-
#
|
340
|
+
# **Please contact support before use. Because of the cost of refreshing a connection, each call to this endpoint incurs a additional charge of $0.05**
|
341
341
|
#
|
342
342
|
# @param authorization_id [String]
|
343
343
|
# @param user_id [String]
|
@@ -351,9 +351,9 @@ module SnapTrade
|
|
351
351
|
# Refresh holdings for a connection
|
352
352
|
#
|
353
353
|
# Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection.
|
354
|
-
# This endpoint will also trigger a transaction sync for the past day if one has not yet
|
354
|
+
# This endpoint will also trigger a transaction sync for the past day if one has not yet occurred.
|
355
355
|
#
|
356
|
-
#
|
356
|
+
# **Please contact support before use. Because of the cost of refreshing a connection, each call to this endpoint incurs a additional charge of $0.05**
|
357
357
|
#
|
358
358
|
# @param authorization_id [String]
|
359
359
|
# @param user_id [String]
|
@@ -364,7 +364,7 @@ module SnapTrade
|
|
364
364
|
end
|
365
365
|
|
366
366
|
# Refresh holdings for a connection
|
367
|
-
# Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet
|
367
|
+
# Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Please contact support before use. Because of the cost of refreshing a connection, each call to this endpoint incurs a additional charge of $0.05**
|
368
368
|
# @param authorization_id [String]
|
369
369
|
# @param user_id [String]
|
370
370
|
# @param user_secret [String]
|
@@ -376,7 +376,7 @@ module SnapTrade
|
|
376
376
|
end
|
377
377
|
|
378
378
|
# Refresh holdings for a connection
|
379
|
-
# Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet
|
379
|
+
# Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Please contact support before use. Because of the cost of refreshing a connection, each call to this endpoint incurs a additional charge of $0.05**
|
380
380
|
# @param authorization_id [String]
|
381
381
|
# @param user_id [String]
|
382
382
|
# @param user_secret [String]
|
@@ -35,6 +35,9 @@ module SnapTrade
|
|
35
35
|
|
36
36
|
attr_accessor :balance
|
37
37
|
|
38
|
+
# The account type as provided by the brokerage
|
39
|
+
attr_accessor :raw_type
|
40
|
+
|
38
41
|
# Additional information about the account, such as account type, status, etc. This information is specific to the brokerage and there's no standard format for this data. This field is deprecated and subject to removal in a future version.
|
39
42
|
attr_accessor :meta
|
40
43
|
|
@@ -44,9 +47,6 @@ module SnapTrade
|
|
44
47
|
# This field is deprecated.
|
45
48
|
attr_accessor :cash_restrictions
|
46
49
|
|
47
|
-
# The account type as provided by the brokerage
|
48
|
-
attr_accessor :raw_type
|
49
|
-
|
50
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
51
|
def self.attribute_map
|
52
52
|
{
|
@@ -58,10 +58,10 @@ module SnapTrade
|
|
58
58
|
:'created_date' => :'created_date',
|
59
59
|
:'sync_status' => :'sync_status',
|
60
60
|
:'balance' => :'balance',
|
61
|
+
:'raw_type' => :'raw_type',
|
61
62
|
:'meta' => :'meta',
|
62
63
|
:'portfolio_group' => :'portfolio_group',
|
63
|
-
:'cash_restrictions' => :'cash_restrictions'
|
64
|
-
:'raw_type' => :'raw_type'
|
64
|
+
:'cash_restrictions' => :'cash_restrictions'
|
65
65
|
}
|
66
66
|
end
|
67
67
|
|
@@ -81,10 +81,10 @@ module SnapTrade
|
|
81
81
|
:'created_date' => :'Time',
|
82
82
|
:'sync_status' => :'AccountSyncStatus',
|
83
83
|
:'balance' => :'AccountBalance',
|
84
|
+
:'raw_type' => :'String',
|
84
85
|
:'meta' => :'Hash<String, Object>',
|
85
86
|
:'portfolio_group' => :'String',
|
86
|
-
:'cash_restrictions' => :'Array<String>'
|
87
|
-
:'raw_type' => :'String'
|
87
|
+
:'cash_restrictions' => :'Array<String>'
|
88
88
|
}
|
89
89
|
end
|
90
90
|
|
@@ -92,7 +92,7 @@ module SnapTrade
|
|
92
92
|
def self.openapi_nullable
|
93
93
|
Set.new([
|
94
94
|
:'name',
|
95
|
-
:'raw_type'
|
95
|
+
:'raw_type',
|
96
96
|
])
|
97
97
|
end
|
98
98
|
|
@@ -143,6 +143,10 @@ module SnapTrade
|
|
143
143
|
self.balance = attributes[:'balance']
|
144
144
|
end
|
145
145
|
|
146
|
+
if attributes.key?(:'raw_type')
|
147
|
+
self.raw_type = attributes[:'raw_type']
|
148
|
+
end
|
149
|
+
|
146
150
|
if attributes.key?(:'meta')
|
147
151
|
if (value = attributes[:'meta']).is_a?(Hash)
|
148
152
|
self.meta = value
|
@@ -158,10 +162,6 @@ module SnapTrade
|
|
158
162
|
self.cash_restrictions = value
|
159
163
|
end
|
160
164
|
end
|
161
|
-
|
162
|
-
if attributes.key?(:'raw_type')
|
163
|
-
self.raw_type = attributes[:'raw_type']
|
164
|
-
end
|
165
165
|
end
|
166
166
|
|
167
167
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -225,10 +225,10 @@ module SnapTrade
|
|
225
225
|
created_date == o.created_date &&
|
226
226
|
sync_status == o.sync_status &&
|
227
227
|
balance == o.balance &&
|
228
|
+
raw_type == o.raw_type &&
|
228
229
|
meta == o.meta &&
|
229
230
|
portfolio_group == o.portfolio_group &&
|
230
|
-
cash_restrictions == o.cash_restrictions
|
231
|
-
raw_type == o.raw_type
|
231
|
+
cash_restrictions == o.cash_restrictions
|
232
232
|
end
|
233
233
|
|
234
234
|
# @see the `==` method
|
@@ -240,7 +240,7 @@ module SnapTrade
|
|
240
240
|
# Calculates hash code according to all attributes.
|
241
241
|
# @return [Integer] Hash code
|
242
242
|
def hash
|
243
|
-
[id, brokerage_authorization, name, number, institution_name, created_date, sync_status, balance, meta, portfolio_group, cash_restrictions
|
243
|
+
[id, brokerage_authorization, name, number, institution_name, created_date, sync_status, balance, raw_type, meta, portfolio_group, cash_restrictions].hash
|
244
244
|
end
|
245
245
|
|
246
246
|
# Builds the object from hash
|
@@ -65,12 +65,17 @@ module SnapTrade
|
|
65
65
|
# @return Array for valid properties with the reasons
|
66
66
|
def list_invalid_properties
|
67
67
|
invalid_properties = Array.new
|
68
|
+
if @user_id.nil?
|
69
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
70
|
+
end
|
71
|
+
|
68
72
|
invalid_properties
|
69
73
|
end
|
70
74
|
|
71
75
|
# Check to see if the all the properties in the model are valid
|
72
76
|
# @return true if the model is valid
|
73
77
|
def valid?
|
78
|
+
return false if @user_id.nil?
|
74
79
|
true
|
75
80
|
end
|
76
81
|
|
data/lib/snaptrade/version.rb
CHANGED
@@ -89,7 +89,7 @@ describe 'AccountInformationApi' do
|
|
89
89
|
end
|
90
90
|
|
91
91
|
# unit tests for get_user_account_orders
|
92
|
-
# List account
|
92
|
+
# List account orders
|
93
93
|
# 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**.
|
94
94
|
# @param user_id
|
95
95
|
# @param user_secret
|
@@ -43,7 +43,7 @@ describe 'ConnectionsApi' do
|
|
43
43
|
|
44
44
|
# unit tests for disable_brokerage_authorization
|
45
45
|
# Force disable connection
|
46
|
-
# Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](/docs/webhooks#webhooks-connection_broken) for the connection.
|
46
|
+
# Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](/docs/webhooks#webhooks-connection_broken) for the connection. This endpoint is available on test keys. If you would like it enabled on production keys as well, please contact support as it is disabled by default.
|
47
47
|
# @param authorization_id
|
48
48
|
# @param user_id
|
49
49
|
# @param user_secret
|
@@ -70,7 +70,7 @@ describe 'ConnectionsApi' do
|
|
70
70
|
|
71
71
|
# unit tests for refresh_brokerage_authorization
|
72
72
|
# Refresh holdings for a connection
|
73
|
-
# Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet
|
73
|
+
# Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Please contact support before use. Because of the cost of refreshing a connection, each call to this endpoint incurs a additional charge of $0.05**
|
74
74
|
# @param authorization_id
|
75
75
|
# @param user_id
|
76
76
|
# @param user_secret
|
data/spec/models/account_spec.rb
CHANGED
@@ -68,25 +68,25 @@ describe SnapTrade::Account do
|
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
-
describe 'test attribute "
|
71
|
+
describe 'test attribute "raw_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 "meta"' 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 "portfolio_group"' 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 "cash_restrictions"' 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
|
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.91
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SnapTrade
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|