snaptrade 3.0.65 → 3.0.67
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/README.md +165 -154
- data/lib/snaptrade/api/account_information_api.rb +22 -14
- data/lib/snaptrade/api/connections_api.rb +10 -2
- data/lib/snaptrade/api/experimental_endpoints_api.rb +0 -184
- data/lib/snaptrade/api/trading_api.rb +184 -0
- data/lib/snaptrade/models/account_universal_activity.rb +12 -2
- data/lib/snaptrade/models/activity.rb +1 -1
- data/lib/snaptrade/models/future_option_instrument.rb +1 -1
- data/lib/snaptrade/models/universal_activity.rb +1 -1
- data/lib/snaptrade/version.rb +1 -1
- data/spec/api/account_information_api_spec.rb +4 -4
- data/spec/api/connections_api_spec.rb +1 -1
- data/spec/api/experimental_endpoints_api_spec.rb +0 -15
- data/spec/api/trading_api_spec.rb +15 -0
- data/spec/models/account_universal_activity_spec.rb +6 -0
- metadata +293 -293
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3b5801a1d6c83da7789beff8a1da2b1c55cd08ec856059657824dd656e6bc84d
|
|
4
|
+
data.tar.gz: be182a66f15e9db5a8936bbf28e5db496ad6324bd2eef8888111e06aaec2543e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d6c34890345eba60dbb9b55b4c2765a61f70bddf248c699ea080fd698b81f73f986616d97e79ddb15cd82fa9708ea1d98ec383eb9f0149c1ed57aaa1bf43965b
|
|
7
|
+
data.tar.gz: 1289a0fe7d0152ddc60e57cef46a6712cb74032691298438cd319f2e85690c266a6934efdc95e09ecd76ac69b848ab880764f0af893f8f7491a838fe751bfc9e
|
data/README.md
CHANGED
|
@@ -63,7 +63,7 @@ backoff with jitter rather than from the headers.
|
|
|
63
63
|
See https://docs.snaptrade.com/docs/ratelimiting.
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
[](https://rubygems.org/gems/snaptrade/versions/3.0.67)
|
|
67
67
|
[](https://snaptrade.com/)
|
|
68
68
|
|
|
69
69
|
</div>
|
|
@@ -116,7 +116,6 @@ See https://docs.snaptrade.com/docs/ratelimiting.
|
|
|
116
116
|
* [`snaptrade.experimental_endpoints.get_user_account_orders_v2`](#snaptradeexperimental_endpointsget_user_account_orders_v2)
|
|
117
117
|
* [`snaptrade.experimental_endpoints.get_user_account_recent_orders_v2`](#snaptradeexperimental_endpointsget_user_account_recent_orders_v2)
|
|
118
118
|
* [`snaptrade.experimental_endpoints.list_subscriptions`](#snaptradeexperimental_endpointslist_subscriptions)
|
|
119
|
-
* [`snaptrade.experimental_endpoints.place_simple_order`](#snaptradeexperimental_endpointsplace_simple_order)
|
|
120
119
|
* [`snaptrade.management.get_stats`](#snaptrademanagementget_stats)
|
|
121
120
|
* [`snaptrade.management.get_stats_legacy`](#snaptrademanagementget_stats_legacy)
|
|
122
121
|
* [`snaptrade.reference_data.get_partner_info`](#snaptradereference_dataget_partner_info)
|
|
@@ -139,6 +138,7 @@ See https://docs.snaptrade.com/docs/ratelimiting.
|
|
|
139
138
|
* [`snaptrade.trading.place_force_order`](#snaptradetradingplace_force_order)
|
|
140
139
|
* [`snaptrade.trading.place_mleg_order`](#snaptradetradingplace_mleg_order)
|
|
141
140
|
* [`snaptrade.trading.place_order`](#snaptradetradingplace_order)
|
|
141
|
+
* [`snaptrade.trading.place_simple_order`](#snaptradetradingplace_simple_order)
|
|
142
142
|
* [`snaptrade.trading.preview_crypto_order`](#snaptradetradingpreview_crypto_order)
|
|
143
143
|
* [`snaptrade.trading.replace_order`](#snaptradetradingreplace_order)
|
|
144
144
|
* [`snaptrade.trading.search_cryptocurrency_pair_instruments`](#snaptradetradingsearch_cryptocurrency_pair_instruments)
|
|
@@ -150,7 +150,7 @@ See https://docs.snaptrade.com/docs/ratelimiting.
|
|
|
150
150
|
Add to Gemfile:
|
|
151
151
|
|
|
152
152
|
```ruby
|
|
153
|
-
gem 'snaptrade', '~> 3.0.
|
|
153
|
+
gem 'snaptrade', '~> 3.0.67'
|
|
154
154
|
```
|
|
155
155
|
|
|
156
156
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -258,14 +258,15 @@ Optional comma separated list of transaction types to filter by. SnapTrade does
|
|
|
258
258
|
a best effort to categorize brokerage transaction types into a common set of
|
|
259
259
|
values. Here are some of the most popular values: - `BUY` - Asset bought. -
|
|
260
260
|
`SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` -
|
|
261
|
-
Payment in lieu of a dividend. - `
|
|
262
|
-
|
|
263
|
-
`
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
`
|
|
268
|
-
|
|
261
|
+
Payment in lieu of a dividend. - `CAPITAL_GAINS_LONG` - Long-term capital-gain
|
|
262
|
+
distribution. - `CAPITAL_GAINS_SHORT` - Short-term capital-gain distribution. -
|
|
263
|
+
`CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` -
|
|
264
|
+
Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company
|
|
265
|
+
distributes shares instead of cash - `INTEREST` - Interest deposited into the
|
|
266
|
+
account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee.
|
|
267
|
+
- `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option
|
|
268
|
+
assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` -
|
|
269
|
+
Transfer of assets from one account to another. - `SPLIT` - A stock share split.
|
|
269
270
|
|
|
270
271
|
#### 🔄 Return<a id="🔄-return"></a>
|
|
271
272
|
|
|
@@ -488,14 +489,15 @@ values. Here are some of the most popular values: - `BUY` - Asset bought. -
|
|
|
488
489
|
`BUY_TO_CLOSE` - Option bought to close a short position. - `SELL_TO_OPEN` -
|
|
489
490
|
Option sold to open a short position. - `SELL_TO_CLOSE` - Option sold to close a
|
|
490
491
|
long position. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment
|
|
491
|
-
in lieu of a dividend. - `
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
`
|
|
497
|
-
|
|
498
|
-
`
|
|
492
|
+
in lieu of a dividend. - `CAPITAL_GAINS_LONG` - Long-term capital-gain
|
|
493
|
+
distribution. - `CAPITAL_GAINS_SHORT` - Short-term capital-gain distribution. -
|
|
494
|
+
`CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` -
|
|
495
|
+
Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company
|
|
496
|
+
distributes shares instead of cash - `INTEREST` - Interest deposited into the
|
|
497
|
+
account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee.
|
|
498
|
+
- `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option
|
|
499
|
+
assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` -
|
|
500
|
+
Transfer of assets from one account to another. - `SPLIT` - A stock share split.
|
|
499
501
|
|
|
500
502
|
##### offset: `Integer`<a id="offset-integer"></a>
|
|
501
503
|
An integer that specifies the starting point of the paginated results. Default
|
|
@@ -702,6 +704,8 @@ p result
|
|
|
702
704
|
|
|
703
705
|
**Deprecated.** Use the [get account details](/reference/Account%20Information/AccountInformation_getAccountDetails) endpoint instead, which supports all account types, including investment, deposit, line of credit, annuity, and mortgage accounts.
|
|
704
706
|
|
|
707
|
+
This endpoint will return HTTP 410 Gone for all customers that sign up after December 1, 2026.
|
|
708
|
+
|
|
705
709
|
Returns account detail known to SnapTrade for the specified account.
|
|
706
710
|
|
|
707
711
|
Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access:
|
|
@@ -1004,9 +1008,11 @@ p result
|
|
|
1004
1008
|
|
|
1005
1009
|
**Deprecated.** Use the [list all user accounts](/reference/Account%20Information/AccountInformation_listAllUserAccounts) endpoint instead, which returns all account types in a single response, including investment, deposit, line of credit, annuity, and mortgage accounts.
|
|
1006
1010
|
|
|
1011
|
+
This endpoint will return HTTP 410 Gone for all customers that sign up after December 1, 2026.
|
|
1012
|
+
|
|
1007
1013
|
Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user.
|
|
1008
1014
|
|
|
1009
|
-
This endpoint returns Daily data regardless of the customer's plan. Daily data is cached and refreshed once a day, which makes this endpoint fast and well-suited to listing accounts across all of a user's connections in a single call. Exact refresh timing may vary by brokerage. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/
|
|
1015
|
+
This endpoint returns Daily data regardless of the customer's plan. Daily data is cached and refreshed once a day, which makes this endpoint fast and well-suited to listing accounts across all of a user's connections in a single call. Exact refresh timing may vary by brokerage. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listConnectionAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
1010
1016
|
|
|
1011
1017
|
|
|
1012
1018
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
@@ -1418,6 +1424,11 @@ p result
|
|
|
1418
1424
|
|
|
1419
1425
|
|
|
1420
1426
|
### `snaptrade.connections.list_brokerage_authorization_accounts`<a id="snaptradeconnectionslist_brokerage_authorization_accounts"></a>
|
|
1427
|
+

|
|
1428
|
+
|
|
1429
|
+
**Deprecated.** Use the [list accounts](/reference/Connections/Connections_listConnectionAccounts) endpoint instead, which returns all account types in a single response, including investment, deposit, line of credit, annuity, and mortgage accounts.
|
|
1430
|
+
|
|
1431
|
+
This endpoint will return HTTP 410 Gone for all customers that sign up after December 1, 2026.
|
|
1421
1432
|
|
|
1422
1433
|
Returns all brokerage accounts that belong to the specified connection for the authenticated user.
|
|
1423
1434
|
|
|
@@ -1880,140 +1891,6 @@ p result
|
|
|
1880
1891
|
---
|
|
1881
1892
|
|
|
1882
1893
|
|
|
1883
|
-
### `snaptrade.experimental_endpoints.place_simple_order`<a id="snaptradeexperimental_endpointsplace_simple_order"></a>
|
|
1884
|
-
|
|
1885
|
-
**Beta.** Places a single-leg or multi-leg order using a common request format for equities, equity options, futures, and future options. This endpoint is experimental; breaking changes are possible during the experimental phase.
|
|
1886
|
-
|
|
1887
|
-
Equity and equity-option orders use the existing brokerage trading capabilities. Futures are supported on tastytrade, Webull US, and TradeStation (live and SIM); future options are supported on tastytrade and TradeStation (live and SIM). Order types, time in force, optional fields, and strategy combinations remain subject to brokerage support. See the [brokerage trading support page](https://support.snaptrade.com/brokerages).
|
|
1888
|
-
|
|
1889
|
-
An order may contain equity/option legs or future/future_option legs, but cannot mix those two families. Equity/option strategies must share the same underlying symbol. Each strategy is submitted as one brokerage order; unsupported strategies are never split into independent orders. Tastytrade supports single-leg outright futures and up to four future-option legs, and does not support multi-leg market orders.
|
|
1890
|
-
|
|
1891
|
-
Webull US supports single-leg futures orders with buy or sell actions and positive whole-contract quantities. Supported order types are market, limit, stop, and stop_limit, with day or gtc duration. Futures options, multi-leg futures, trailing stops, and Webull Canada futures trading are not supported. Webull determines contract availability, margin requirements, and valid price increments.
|
|
1892
|
-
|
|
1893
|
-
TradeStation and TradeStation SIM support single-leg futures and futures-option orders in Futures accounts, with positive whole-contract quantities. Supported order types are market, limit, stop, and stop_limit, with day, gtc, ioc, or fok duration, subject to the contract and route's supported combinations. Futures use buy/sell; futures options use the open/close option actions. Multi-leg futures-family strategies are not supported. Prices are forwarded without rounding; TradeStation determines contract availability, permissions, margin requirements, and valid price increments.
|
|
1894
|
-
|
|
1895
|
-
All string choices use lower snake_case and are case-sensitive. Symbols retain their native format: equity tickers, OCC equity-option symbols, or brokerage-native futures symbols. For tastytrade, use the exact BrokerageInstrument ticker, including any spaces. For Webull US, use a specific unprefixed futures contract symbol such as ESZ6; slash-prefixed aliases, continuous/root-only symbols, and whitespace are not accepted. For TradeStation, use a specific two-digit-year contract such as ESZ26 or @ESZ26, or a futures-option symbol such as `ESZ26 C6000`, preserving the space and any session alias. The optional @ prefix is supported for dated futures contracts and is forwarded unchanged. Slash-prefixed aliases and root-only continuous symbols such as @ES are not accepted. A futures symbol does not need to be present in SnapTrade's local instrument catalog to submit an order.
|
|
1896
|
-
|
|
1897
|
-
A successful response contains only the brokerage order ID. Use the existing order endpoints to retrieve order details.
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1901
|
-
|
|
1902
|
-
```ruby
|
|
1903
|
-
result = snaptrade.experimental_endpoints.place_simple_order(
|
|
1904
|
-
order_type: "stop_limit",
|
|
1905
|
-
time_in_force: "day",
|
|
1906
|
-
legs: [
|
|
1907
|
-
{
|
|
1908
|
-
"instrument" => {
|
|
1909
|
-
"kind" => "future",
|
|
1910
|
-
"symbol" => "/ESZ6",
|
|
1911
|
-
},
|
|
1912
|
-
"action" => "buy",
|
|
1913
|
-
"units" => "1.25",
|
|
1914
|
-
}
|
|
1915
|
-
],
|
|
1916
|
-
account_id: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
1917
|
-
user_id: "snaptrade-user-123",
|
|
1918
|
-
user_secret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
1919
|
-
limit_price: "1.25",
|
|
1920
|
-
stop_price: "1.25",
|
|
1921
|
-
price_effect: "debit",
|
|
1922
|
-
client_order_id: "550e8400-e29b-41d4-a716-446655440000",
|
|
1923
|
-
expiry_date: "2026-12-18T20:00:00Z",
|
|
1924
|
-
notional_value: "1.25",
|
|
1925
|
-
trading_session: "regular",
|
|
1926
|
-
)
|
|
1927
|
-
p result
|
|
1928
|
-
```
|
|
1929
|
-
|
|
1930
|
-
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
|
1931
|
-
|
|
1932
|
-
##### order_type: [`SimpleTradeFormOrderType`](./lib/snaptrade/models/simple_trade_form_order_type.rb)<a id="order_type-simpletradeformordertypelibsnaptrademodelssimple_trade_form_order_typerb"></a>
|
|
1933
|
-
##### time_in_force: [`SimpleTradeFormTimeInForce`](./lib/snaptrade/models/simple_trade_form_time_in_force.rb)<a id="time_in_force-simpletradeformtimeinforcelibsnaptrademodelssimple_trade_form_time_in_forcerb"></a>
|
|
1934
|
-
Order duration, subject to brokerage and execution-path support. gtd requires
|
|
1935
|
-
expiry_date and a non-market single-leg equity/option order. Existing single-leg
|
|
1936
|
-
option routing does not support ioc. Futures and multi-leg orders do not support
|
|
1937
|
-
gtd through this endpoint. Webull US futures only support day and gtc.
|
|
1938
|
-
TradeStation futures and futures options accept day, gtc, ioc, and fok, subject
|
|
1939
|
-
to the contract and route's supported combinations.
|
|
1940
|
-
|
|
1941
|
-
##### legs: Array<[`SimpleTradeLeg`](./lib/snaptrade/models/simple_trade_leg.rb)><a id="legs-array"></a>
|
|
1942
|
-
Legs of one brokerage order. Use equity/option legs or future/future_option
|
|
1943
|
-
legs, without mixing the two families. Brokerage strategy and leg-count limits
|
|
1944
|
-
apply.
|
|
1945
|
-
|
|
1946
|
-
##### account_id: `String`<a id="account_id-string"></a>
|
|
1947
|
-
The ID of the account to execute the trade on.
|
|
1948
|
-
|
|
1949
|
-
##### user_id: `String`<a id="user_id-string"></a>
|
|
1950
|
-
##### user_secret: `String`<a id="user_secret-string"></a>
|
|
1951
|
-
##### limit_price: [`Float`](./lib/snaptrade/models/float.rb)<a id="limit_price-floatlibsnaptrademodelsfloatrb"></a>
|
|
1952
|
-
Required for limit and stop_limit orders, except that multi-leg price_effect
|
|
1953
|
-
even implies zero. Must be omitted or null for market and stop orders. For
|
|
1954
|
-
multi-leg orders this is the net strategy price. Negative prices are accepted
|
|
1955
|
-
only for futures-family orders, subject to brokerage support.
|
|
1956
|
-
|
|
1957
|
-
##### stop_price: [`Float`](./lib/snaptrade/models/float.rb)<a id="stop_price-floatlibsnaptrademodelsfloatrb"></a>
|
|
1958
|
-
Required for stop and stop_limit orders. Must be omitted or null for market and
|
|
1959
|
-
limit orders. Must be positive for equity/option orders; futures-family trigger
|
|
1960
|
-
prices are subject to brokerage support.
|
|
1961
|
-
|
|
1962
|
-
##### price_effect: [`SimpleTradeFormPriceEffect`](./lib/snaptrade/models/simple_trade_form_price_effect.rb)<a id="price_effect-simpletradeformpriceeffectlibsnaptrademodelssimple_trade_form_price_effectrb"></a>
|
|
1963
|
-
Only applicable to multi-leg limit and stop_limit orders. Requirements and
|
|
1964
|
-
supported values depend on the brokerage; tastytrade requires credit or debit.
|
|
1965
|
-
even implies a zero limit_price, which may be omitted and must be zero if
|
|
1966
|
-
supplied. Single-leg price effects are derived from the action.
|
|
1967
|
-
|
|
1968
|
-
##### client_order_id: [`String`](./lib/snaptrade/models/string.rb)<a id="client_order_id-stringlibsnaptrademodelsstringrb"></a>
|
|
1969
|
-
Canonical UUID. Required for Wealthsimple multi-leg placement regardless of
|
|
1970
|
-
client-order-ID enablement; reuse it when retrying the same attempt.
|
|
1971
|
-
Wealthsimple multi-leg attempts retain the ID after success or failure, and
|
|
1972
|
-
reuse by the same user across accounts or placement endpoints returns 409
|
|
1973
|
-
without another submission. A 409 does not establish whether the original
|
|
1974
|
-
attempt was accepted; reconcile it before creating a new order with a new ID.
|
|
1975
|
-
Optional for other orders, forwarded where the existing execution path supports
|
|
1976
|
-
it and for tastytrade, Webull US, and TradeStation futures-family orders. Other
|
|
1977
|
-
orders require the existing client-order-ID enablement; when disabled the value
|
|
1978
|
-
is ignored. Brokerage behavior on duplicates varies. OAuth requests also reject
|
|
1979
|
-
a client_order_id the user has already used with 409. Tastytrade uses this as
|
|
1980
|
-
external-identifier for correlation and does not deduplicate submissions. For
|
|
1981
|
-
Webull US futures, SnapTrade converts the supplied UUID (or its generated order
|
|
1982
|
-
UUID) to lowercase 32-character hexadecimal without hyphens. The original
|
|
1983
|
-
supplied UUID remains in SnapTrade's trade audit; the converted value is
|
|
1984
|
-
returned as brokerage_order_id for subsequent order reads. For TradeStation live
|
|
1985
|
-
and SIM, SnapTrade encodes the supplied UUID (or its generated order UUID) as
|
|
1986
|
-
22-character URL-safe base64 without padding and sends it as OrderConfirmID for
|
|
1987
|
-
brokerage duplicate prevention; the response contains TradeStation's separate
|
|
1988
|
-
order ID.
|
|
1989
|
-
|
|
1990
|
-
##### expiry_date: `Time`<a id="expiry_date-time"></a>
|
|
1991
|
-
ISO 8601 expiry timestamp, required for gtd and invalid with other durations. A
|
|
1992
|
-
missing timezone is treated as UTC. Supported only through existing single-leg
|
|
1993
|
-
Public and Sandbox execution paths.
|
|
1994
|
-
|
|
1995
|
-
##### notional_value: [`Float`](./lib/snaptrade/models/float.rb)<a id="notional_value-floatlibsnaptrademodelsfloatrb"></a>
|
|
1996
|
-
Positive order value, supported only for a single-equity market order on
|
|
1997
|
-
eligible brokerages and partners. Mutually exclusive with leg units. Omit or set
|
|
1998
|
-
units to null when supplied.
|
|
1999
|
-
|
|
2000
|
-
##### trading_session: [`SimpleTradeFormTradingSession`](./lib/snaptrade/models/simple_trade_form_trading_session.rb)<a id="trading_session-simpletradeformtradingsessionlibsnaptrademodelssimple_trade_form_trading_sessionrb"></a>
|
|
2001
|
-
extended uses existing single-leg equity/option brokerage support and requires
|
|
2002
|
-
extended-hours enablement. Futures and multi-leg orders only accept regular.
|
|
2003
|
-
|
|
2004
|
-
#### 🔄 Return<a id="🔄-return"></a>
|
|
2005
|
-
|
|
2006
|
-
[SimpleTradeResponse](./lib/snaptrade/models/simple_trade_response.rb)
|
|
2007
|
-
|
|
2008
|
-
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
|
2009
|
-
|
|
2010
|
-
`/accounts/{accountId}/trading/simple` `POST`
|
|
2011
|
-
|
|
2012
|
-
[🔙 **Back to Table of Contents**](#table-of-contents)
|
|
2013
|
-
|
|
2014
|
-
---
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
1894
|
### `snaptrade.management.get_stats`<a id="snaptrademanagementget_stats"></a>
|
|
2018
1895
|
|
|
2019
1896
|
**Beta.** This endpoint and its response schema may change.
|
|
@@ -3092,6 +2969,140 @@ before responding to the request.
|
|
|
3092
2969
|
---
|
|
3093
2970
|
|
|
3094
2971
|
|
|
2972
|
+
### `snaptrade.trading.place_simple_order`<a id="snaptradetradingplace_simple_order"></a>
|
|
2973
|
+
|
|
2974
|
+
**Beta.** Places a single-leg or multi-leg order using a common request format for equities, equity options, futures, and future options. Breaking changes are possible while this endpoint is in beta.
|
|
2975
|
+
|
|
2976
|
+
Equity and equity-option orders use the existing brokerage trading capabilities. Futures are supported on tastytrade, Webull US, and TradeStation (live and SIM); future options are supported on tastytrade and TradeStation (live and SIM). Order types, time in force, optional fields, and strategy combinations remain subject to brokerage support. See the [brokerage trading support page](https://support.snaptrade.com/brokerages).
|
|
2977
|
+
|
|
2978
|
+
An order may contain equity/option legs or future/future_option legs, but cannot mix those two families. Equity/option strategies must share the same underlying symbol. Each strategy is submitted as one brokerage order; unsupported strategies are never split into independent orders. Tastytrade supports single-leg outright futures and up to four future-option legs, and does not support multi-leg market orders.
|
|
2979
|
+
|
|
2980
|
+
Webull US supports single-leg futures orders with buy or sell actions and positive whole-contract quantities. Supported order types are market, limit, stop, and stop_limit, with day or gtc duration. Futures options, multi-leg futures, trailing stops, and Webull Canada futures trading are not supported. Webull determines contract availability, margin requirements, and valid price increments.
|
|
2981
|
+
|
|
2982
|
+
TradeStation and TradeStation SIM support single-leg futures and futures-option orders in Futures accounts, with positive whole-contract quantities. Supported order types are market, limit, stop, and stop_limit, with day, gtc, ioc, or fok duration, subject to the contract and route's supported combinations. Futures use buy/sell; futures options use the open/close option actions. Multi-leg futures-family strategies are not supported. Prices are forwarded without rounding; TradeStation determines contract availability, permissions, margin requirements, and valid price increments.
|
|
2983
|
+
|
|
2984
|
+
All string choices use lower snake_case and are case-sensitive. Symbols retain their native format: equity tickers, OCC equity-option symbols, or brokerage-native futures symbols. For tastytrade, use the exact BrokerageInstrument ticker, including any spaces. For Webull US, use a specific unprefixed futures contract symbol such as ESZ6; slash-prefixed aliases, continuous/root-only symbols, and whitespace are not accepted. For TradeStation, use a specific two-digit-year contract such as ESZ26 or @ESZ26, or a futures-option symbol such as `ESZ26 C6000`, preserving the space and any session alias. The optional @ prefix is supported for dated futures contracts and is forwarded unchanged. Slash-prefixed aliases and root-only continuous symbols such as @ES are not accepted. A futures symbol does not need to be present in SnapTrade's local instrument catalog to submit an order.
|
|
2985
|
+
|
|
2986
|
+
A successful response contains only the brokerage order ID. Use the existing order endpoints to retrieve order details.
|
|
2987
|
+
|
|
2988
|
+
|
|
2989
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
2990
|
+
|
|
2991
|
+
```ruby
|
|
2992
|
+
result = snaptrade.trading.place_simple_order(
|
|
2993
|
+
order_type: "stop_limit",
|
|
2994
|
+
time_in_force: "day",
|
|
2995
|
+
legs: [
|
|
2996
|
+
{
|
|
2997
|
+
"instrument" => {
|
|
2998
|
+
"kind" => "future",
|
|
2999
|
+
"symbol" => "/ESZ6",
|
|
3000
|
+
},
|
|
3001
|
+
"action" => "buy",
|
|
3002
|
+
"units" => "1.25",
|
|
3003
|
+
}
|
|
3004
|
+
],
|
|
3005
|
+
account_id: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
3006
|
+
user_id: "snaptrade-user-123",
|
|
3007
|
+
user_secret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
3008
|
+
limit_price: "1.25",
|
|
3009
|
+
stop_price: "1.25",
|
|
3010
|
+
price_effect: "debit",
|
|
3011
|
+
client_order_id: "550e8400-e29b-41d4-a716-446655440000",
|
|
3012
|
+
expiry_date: "2026-12-18T20:00:00Z",
|
|
3013
|
+
notional_value: "1.25",
|
|
3014
|
+
trading_session: "regular",
|
|
3015
|
+
)
|
|
3016
|
+
p result
|
|
3017
|
+
```
|
|
3018
|
+
|
|
3019
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
|
3020
|
+
|
|
3021
|
+
##### order_type: [`SimpleTradeFormOrderType`](./lib/snaptrade/models/simple_trade_form_order_type.rb)<a id="order_type-simpletradeformordertypelibsnaptrademodelssimple_trade_form_order_typerb"></a>
|
|
3022
|
+
##### time_in_force: [`SimpleTradeFormTimeInForce`](./lib/snaptrade/models/simple_trade_form_time_in_force.rb)<a id="time_in_force-simpletradeformtimeinforcelibsnaptrademodelssimple_trade_form_time_in_forcerb"></a>
|
|
3023
|
+
Order duration, subject to brokerage and execution-path support. gtd requires
|
|
3024
|
+
expiry_date and a non-market single-leg equity/option order. Existing single-leg
|
|
3025
|
+
option routing does not support ioc. Futures and multi-leg orders do not support
|
|
3026
|
+
gtd through this endpoint. Webull US futures only support day and gtc.
|
|
3027
|
+
TradeStation futures and futures options accept day, gtc, ioc, and fok, subject
|
|
3028
|
+
to the contract and route's supported combinations.
|
|
3029
|
+
|
|
3030
|
+
##### legs: Array<[`SimpleTradeLeg`](./lib/snaptrade/models/simple_trade_leg.rb)><a id="legs-array"></a>
|
|
3031
|
+
Legs of one brokerage order. Use equity/option legs or future/future_option
|
|
3032
|
+
legs, without mixing the two families. Brokerage strategy and leg-count limits
|
|
3033
|
+
apply.
|
|
3034
|
+
|
|
3035
|
+
##### account_id: `String`<a id="account_id-string"></a>
|
|
3036
|
+
The ID of the account to execute the trade on.
|
|
3037
|
+
|
|
3038
|
+
##### user_id: `String`<a id="user_id-string"></a>
|
|
3039
|
+
##### user_secret: `String`<a id="user_secret-string"></a>
|
|
3040
|
+
##### limit_price: [`Float`](./lib/snaptrade/models/float.rb)<a id="limit_price-floatlibsnaptrademodelsfloatrb"></a>
|
|
3041
|
+
Required for limit and stop_limit orders, except that multi-leg price_effect
|
|
3042
|
+
even implies zero. Must be omitted or null for market and stop orders. For
|
|
3043
|
+
multi-leg orders this is the net strategy price. Negative prices are accepted
|
|
3044
|
+
only for futures-family orders, subject to brokerage support.
|
|
3045
|
+
|
|
3046
|
+
##### stop_price: [`Float`](./lib/snaptrade/models/float.rb)<a id="stop_price-floatlibsnaptrademodelsfloatrb"></a>
|
|
3047
|
+
Required for stop and stop_limit orders. Must be omitted or null for market and
|
|
3048
|
+
limit orders. Must be positive for equity/option orders; futures-family trigger
|
|
3049
|
+
prices are subject to brokerage support.
|
|
3050
|
+
|
|
3051
|
+
##### price_effect: [`SimpleTradeFormPriceEffect`](./lib/snaptrade/models/simple_trade_form_price_effect.rb)<a id="price_effect-simpletradeformpriceeffectlibsnaptrademodelssimple_trade_form_price_effectrb"></a>
|
|
3052
|
+
Only applicable to multi-leg limit and stop_limit orders. Requirements and
|
|
3053
|
+
supported values depend on the brokerage; tastytrade requires credit or debit.
|
|
3054
|
+
even implies a zero limit_price, which may be omitted and must be zero if
|
|
3055
|
+
supplied. Single-leg price effects are derived from the action.
|
|
3056
|
+
|
|
3057
|
+
##### client_order_id: [`String`](./lib/snaptrade/models/string.rb)<a id="client_order_id-stringlibsnaptrademodelsstringrb"></a>
|
|
3058
|
+
Canonical UUID. Required for Wealthsimple multi-leg placement regardless of
|
|
3059
|
+
client-order-ID enablement; reuse it when retrying the same attempt.
|
|
3060
|
+
Wealthsimple multi-leg attempts retain the ID after success or failure, and
|
|
3061
|
+
reuse by the same user across accounts or placement endpoints returns 409
|
|
3062
|
+
without another submission. A 409 does not establish whether the original
|
|
3063
|
+
attempt was accepted; reconcile it before creating a new order with a new ID.
|
|
3064
|
+
Optional for other orders, forwarded where the existing execution path supports
|
|
3065
|
+
it and for tastytrade, Webull US, and TradeStation futures-family orders. Other
|
|
3066
|
+
orders require the existing client-order-ID enablement; when disabled the value
|
|
3067
|
+
is ignored. Brokerage behavior on duplicates varies. OAuth requests also reject
|
|
3068
|
+
a client_order_id the user has already used with 409. Tastytrade uses this as
|
|
3069
|
+
external-identifier for correlation and does not deduplicate submissions. For
|
|
3070
|
+
Webull US futures, SnapTrade converts the supplied UUID (or its generated order
|
|
3071
|
+
UUID) to lowercase 32-character hexadecimal without hyphens. The original
|
|
3072
|
+
supplied UUID remains in SnapTrade's trade audit; the converted value is
|
|
3073
|
+
returned as brokerage_order_id for subsequent order reads. For TradeStation live
|
|
3074
|
+
and SIM, SnapTrade encodes the supplied UUID (or its generated order UUID) as
|
|
3075
|
+
22-character URL-safe base64 without padding and sends it as OrderConfirmID for
|
|
3076
|
+
brokerage duplicate prevention; the response contains TradeStation's separate
|
|
3077
|
+
order ID.
|
|
3078
|
+
|
|
3079
|
+
##### expiry_date: `Time`<a id="expiry_date-time"></a>
|
|
3080
|
+
ISO 8601 expiry timestamp, required for gtd and invalid with other durations. A
|
|
3081
|
+
missing timezone is treated as UTC. Supported only through existing single-leg
|
|
3082
|
+
Public and Sandbox execution paths.
|
|
3083
|
+
|
|
3084
|
+
##### notional_value: [`Float`](./lib/snaptrade/models/float.rb)<a id="notional_value-floatlibsnaptrademodelsfloatrb"></a>
|
|
3085
|
+
Positive order value, supported only for a single-equity market order on
|
|
3086
|
+
eligible brokerages and partners. Mutually exclusive with leg units. Omit or set
|
|
3087
|
+
units to null when supplied.
|
|
3088
|
+
|
|
3089
|
+
##### trading_session: [`SimpleTradeFormTradingSession`](./lib/snaptrade/models/simple_trade_form_trading_session.rb)<a id="trading_session-simpletradeformtradingsessionlibsnaptrademodelssimple_trade_form_trading_sessionrb"></a>
|
|
3090
|
+
extended uses existing single-leg equity/option brokerage support and requires
|
|
3091
|
+
extended-hours enablement. Futures and multi-leg orders only accept regular.
|
|
3092
|
+
|
|
3093
|
+
#### 🔄 Return<a id="🔄-return"></a>
|
|
3094
|
+
|
|
3095
|
+
[SimpleTradeResponse](./lib/snaptrade/models/simple_trade_response.rb)
|
|
3096
|
+
|
|
3097
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
|
3098
|
+
|
|
3099
|
+
`/accounts/{accountId}/trading/simple` `POST`
|
|
3100
|
+
|
|
3101
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
|
3102
|
+
|
|
3103
|
+
---
|
|
3104
|
+
|
|
3105
|
+
|
|
3095
3106
|
### `snaptrade.trading.preview_crypto_order`<a id="snaptradetradingpreview_crypto_order"></a>
|
|
3096
3107
|
|
|
3097
3108
|
Previews an order using the specified account.
|
|
@@ -38,7 +38,7 @@ module SnapTrade
|
|
|
38
38
|
# @param end_date [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`.
|
|
39
39
|
# @param offset [Integer] An integer that specifies the starting point of the paginated results. Default is 0.
|
|
40
40
|
# @param limit [Integer] An integer that specifies the maximum number of transactions to return. Default of 1000.
|
|
41
|
-
# @param type [String] 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` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
|
|
41
|
+
# @param type [String] 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` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CAPITAL_GAINS_LONG` - Long-term capital-gain distribution. - `CAPITAL_GAINS_SHORT` - Short-term capital-gain distribution. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
|
|
42
42
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
43
43
|
def get_account_activities(account_id:, user_id:, user_secret:, start_date: SENTINEL, end_date: SENTINEL, offset: SENTINEL, limit: SENTINEL, type: SENTINEL, extra: {})
|
|
44
44
|
extra[:start_date] = start_date if start_date != SENTINEL
|
|
@@ -71,7 +71,7 @@ module SnapTrade
|
|
|
71
71
|
# @param end_date [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`.
|
|
72
72
|
# @param offset [Integer] An integer that specifies the starting point of the paginated results. Default is 0.
|
|
73
73
|
# @param limit [Integer] An integer that specifies the maximum number of transactions to return. Default of 1000.
|
|
74
|
-
# @param type [String] 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` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
|
|
74
|
+
# @param type [String] 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` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CAPITAL_GAINS_LONG` - Long-term capital-gain distribution. - `CAPITAL_GAINS_SHORT` - Short-term capital-gain distribution. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
|
|
75
75
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
76
76
|
def get_account_activities_with_http_info(account_id:, user_id:, user_secret:, start_date: SENTINEL, end_date: SENTINEL, offset: SENTINEL, limit: SENTINEL, type: SENTINEL, extra: {})
|
|
77
77
|
extra[:start_date] = start_date if start_date != SENTINEL
|
|
@@ -92,7 +92,7 @@ module SnapTrade
|
|
|
92
92
|
# @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`.
|
|
93
93
|
# @option opts [Integer] :offset An integer that specifies the starting point of the paginated results. Default is 0.
|
|
94
94
|
# @option opts [Integer] :limit An integer that specifies the maximum number of transactions to return. Default of 1000.
|
|
95
|
-
# @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` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
|
|
95
|
+
# @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` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CAPITAL_GAINS_LONG` - Long-term capital-gain distribution. - `CAPITAL_GAINS_SHORT` - Short-term capital-gain distribution. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
|
|
96
96
|
# @return [PaginatedUniversalActivity]
|
|
97
97
|
private def get_account_activities_impl(account_id, user_id, user_secret, opts = {})
|
|
98
98
|
data, _status_code, _headers = get_account_activities_with_http_info(account_id, user_id, user_secret, opts)
|
|
@@ -109,7 +109,7 @@ module SnapTrade
|
|
|
109
109
|
# @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`.
|
|
110
110
|
# @option opts [Integer] :offset An integer that specifies the starting point of the paginated results. Default is 0.
|
|
111
111
|
# @option opts [Integer] :limit An integer that specifies the maximum number of transactions to return. Default of 1000.
|
|
112
|
-
# @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` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
|
|
112
|
+
# @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` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CAPITAL_GAINS_LONG` - Long-term capital-gain distribution. - `CAPITAL_GAINS_SHORT` - Short-term capital-gain distribution. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
|
|
113
113
|
# @return [Array<(PaginatedUniversalActivity, Integer, Hash)>] PaginatedUniversalActivity data, response status code and response headers
|
|
114
114
|
private def get_account_activities_with_http_info_impl(account_id, user_id, user_secret, opts = {})
|
|
115
115
|
if @api_client.config.debugging
|
|
@@ -670,7 +670,7 @@ module SnapTrade
|
|
|
670
670
|
# @param user_secret [String]
|
|
671
671
|
# @param start_date [Date] First date to include (UTC). Defaults to the earliest available transaction.
|
|
672
672
|
# @param end_date [Date] Last date to include (UTC). Defaults to the latest available transaction.
|
|
673
|
-
# @param type [String] 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` - Asset bought. - `SELL` - Asset sold. - `BUY_TO_OPEN` - Option bought to open a long position. - `BUY_TO_CLOSE` - Option bought to close a short position. - `SELL_TO_OPEN` - Option sold to open a short position. - `SELL_TO_CLOSE` - Option sold to close a long position. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
|
|
673
|
+
# @param type [String] 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` - Asset bought. - `SELL` - Asset sold. - `BUY_TO_OPEN` - Option bought to open a long position. - `BUY_TO_CLOSE` - Option bought to close a short position. - `SELL_TO_OPEN` - Option sold to open a short position. - `SELL_TO_CLOSE` - Option sold to close a long position. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CAPITAL_GAINS_LONG` - Long-term capital-gain distribution. - `CAPITAL_GAINS_SHORT` - Short-term capital-gain distribution. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
|
|
674
674
|
# @param offset [Integer] An integer that specifies the starting point of the paginated results. Default is 0.
|
|
675
675
|
# @param limit [Integer] An integer that specifies the maximum number of transactions to return. Default of 1000.
|
|
676
676
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
@@ -695,7 +695,7 @@ module SnapTrade
|
|
|
695
695
|
# @param user_secret [String]
|
|
696
696
|
# @param start_date [Date] First date to include (UTC). Defaults to the earliest available transaction.
|
|
697
697
|
# @param end_date [Date] Last date to include (UTC). Defaults to the latest available transaction.
|
|
698
|
-
# @param type [String] 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` - Asset bought. - `SELL` - Asset sold. - `BUY_TO_OPEN` - Option bought to open a long position. - `BUY_TO_CLOSE` - Option bought to close a short position. - `SELL_TO_OPEN` - Option sold to open a short position. - `SELL_TO_CLOSE` - Option sold to close a long position. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
|
|
698
|
+
# @param type [String] 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` - Asset bought. - `SELL` - Asset sold. - `BUY_TO_OPEN` - Option bought to open a long position. - `BUY_TO_CLOSE` - Option bought to close a short position. - `SELL_TO_OPEN` - Option sold to open a short position. - `SELL_TO_CLOSE` - Option sold to close a long position. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CAPITAL_GAINS_LONG` - Long-term capital-gain distribution. - `CAPITAL_GAINS_SHORT` - Short-term capital-gain distribution. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
|
|
699
699
|
# @param offset [Integer] An integer that specifies the starting point of the paginated results. Default is 0.
|
|
700
700
|
# @param limit [Integer] An integer that specifies the maximum number of transactions to return. Default of 1000.
|
|
701
701
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
@@ -716,7 +716,7 @@ module SnapTrade
|
|
|
716
716
|
# @param [Hash] opts the optional parameters
|
|
717
717
|
# @option opts [Date] :start_date First date to include (UTC). Defaults to the earliest available transaction.
|
|
718
718
|
# @option opts [Date] :end_date Last date to include (UTC). Defaults to the latest available transaction.
|
|
719
|
-
# @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` - Asset bought. - `SELL` - Asset sold. - `BUY_TO_OPEN` - Option bought to open a long position. - `BUY_TO_CLOSE` - Option bought to close a short position. - `SELL_TO_OPEN` - Option sold to open a short position. - `SELL_TO_CLOSE` - Option sold to close a long position. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
|
|
719
|
+
# @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` - Asset bought. - `SELL` - Asset sold. - `BUY_TO_OPEN` - Option bought to open a long position. - `BUY_TO_CLOSE` - Option bought to close a short position. - `SELL_TO_OPEN` - Option sold to open a short position. - `SELL_TO_CLOSE` - Option sold to close a long position. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CAPITAL_GAINS_LONG` - Long-term capital-gain distribution. - `CAPITAL_GAINS_SHORT` - Short-term capital-gain distribution. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
|
|
720
720
|
# @option opts [Integer] :offset An integer that specifies the starting point of the paginated results. Default is 0. (default to 0)
|
|
721
721
|
# @option opts [Integer] :limit An integer that specifies the maximum number of transactions to return. Default of 1000. (default to 1000)
|
|
722
722
|
# @return [AccountTransactionsResponse]
|
|
@@ -733,7 +733,7 @@ module SnapTrade
|
|
|
733
733
|
# @param [Hash] opts the optional parameters
|
|
734
734
|
# @option opts [Date] :start_date First date to include (UTC). Defaults to the earliest available transaction.
|
|
735
735
|
# @option opts [Date] :end_date Last date to include (UTC). Defaults to the latest available transaction.
|
|
736
|
-
# @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` - Asset bought. - `SELL` - Asset sold. - `BUY_TO_OPEN` - Option bought to open a long position. - `BUY_TO_CLOSE` - Option bought to close a short position. - `SELL_TO_OPEN` - Option sold to open a short position. - `SELL_TO_CLOSE` - Option sold to close a long position. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
|
|
736
|
+
# @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` - Asset bought. - `SELL` - Asset sold. - `BUY_TO_OPEN` - Option bought to open a long position. - `BUY_TO_CLOSE` - Option bought to close a short position. - `SELL_TO_OPEN` - Option sold to open a short position. - `SELL_TO_CLOSE` - Option sold to close a long position. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CAPITAL_GAINS_LONG` - Long-term capital-gain distribution. - `CAPITAL_GAINS_SHORT` - Short-term capital-gain distribution. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
|
|
737
737
|
# @option opts [Integer] :offset An integer that specifies the starting point of the paginated results. Default is 0. (default to 0)
|
|
738
738
|
# @option opts [Integer] :limit An integer that specifies the maximum number of transactions to return. Default of 1000. (default to 1000)
|
|
739
739
|
# @return [Array<(AccountTransactionsResponse, Integer, Hash)>] AccountTransactionsResponse data, response status code and response headers
|
|
@@ -1320,6 +1320,8 @@ module SnapTrade
|
|
|
1320
1320
|
#
|
|
1321
1321
|
# **Deprecated.** Use the [get account details](/reference/Account%20Information/AccountInformation_getAccountDetails) endpoint instead, which supports all account types, including investment, deposit, line of credit, annuity, and mortgage accounts.
|
|
1322
1322
|
#
|
|
1323
|
+
# This endpoint will return HTTP 410 Gone for all customers that sign up after December 1, 2026.
|
|
1324
|
+
#
|
|
1323
1325
|
# Returns account detail known to SnapTrade for the specified account.
|
|
1324
1326
|
#
|
|
1325
1327
|
# Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access:
|
|
@@ -1341,6 +1343,8 @@ module SnapTrade
|
|
|
1341
1343
|
#
|
|
1342
1344
|
# **Deprecated.** Use the [get account details](/reference/Account%20Information/AccountInformation_getAccountDetails) endpoint instead, which supports all account types, including investment, deposit, line of credit, annuity, and mortgage accounts.
|
|
1343
1345
|
#
|
|
1346
|
+
# This endpoint will return HTTP 410 Gone for all customers that sign up after December 1, 2026.
|
|
1347
|
+
#
|
|
1344
1348
|
# Returns account detail known to SnapTrade for the specified account.
|
|
1345
1349
|
#
|
|
1346
1350
|
# Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access:
|
|
@@ -1358,7 +1362,7 @@ module SnapTrade
|
|
|
1358
1362
|
end
|
|
1359
1363
|
|
|
1360
1364
|
# Get account detail
|
|
1361
|
-
# **Deprecated.** Use the [get account details](/reference/Account%20Information/AccountInformation_getAccountDetails) endpoint instead, which supports all account types, including investment, deposit, line of credit, annuity, and mortgage accounts. Returns account detail known to SnapTrade for the specified account. Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access: - If you do, this endpoint returns real-time data. - If you don't, Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint. 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.
|
|
1365
|
+
# **Deprecated.** Use the [get account details](/reference/Account%20Information/AccountInformation_getAccountDetails) endpoint instead, which supports all account types, including investment, deposit, line of credit, annuity, and mortgage accounts. This endpoint will return HTTP 410 Gone for all customers that sign up after December 1, 2026. Returns account detail known to SnapTrade for the specified account. Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access: - If you do, this endpoint returns real-time data. - If you don't, Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint. 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.
|
|
1362
1366
|
# @param user_id [String]
|
|
1363
1367
|
# @param user_secret [String]
|
|
1364
1368
|
# @param account_id [String]
|
|
@@ -1370,7 +1374,7 @@ module SnapTrade
|
|
|
1370
1374
|
end
|
|
1371
1375
|
|
|
1372
1376
|
# Get account detail
|
|
1373
|
-
# **Deprecated.** Use the [get account details](/reference/Account%20Information/AccountInformation_getAccountDetails) endpoint instead, which supports all account types, including investment, deposit, line of credit, annuity, and mortgage accounts. Returns account detail known to SnapTrade for the specified account. Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access: - If you do, this endpoint returns real-time data. - If you don't, Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint. 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.
|
|
1377
|
+
# **Deprecated.** Use the [get account details](/reference/Account%20Information/AccountInformation_getAccountDetails) endpoint instead, which supports all account types, including investment, deposit, line of credit, annuity, and mortgage accounts. This endpoint will return HTTP 410 Gone for all customers that sign up after December 1, 2026. Returns account detail known to SnapTrade for the specified account. Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access: - If you do, this endpoint returns real-time data. - If you don't, Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint. 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.
|
|
1374
1378
|
# @param user_id [String]
|
|
1375
1379
|
# @param user_secret [String]
|
|
1376
1380
|
# @param account_id [String]
|
|
@@ -2172,9 +2176,11 @@ module SnapTrade
|
|
|
2172
2176
|
#
|
|
2173
2177
|
# **Deprecated.** Use the [list all user accounts](/reference/Account%20Information/AccountInformation_listAllUserAccounts) endpoint instead, which returns all account types in a single response, including investment, deposit, line of credit, annuity, and mortgage accounts.
|
|
2174
2178
|
#
|
|
2179
|
+
# This endpoint will return HTTP 410 Gone for all customers that sign up after December 1, 2026.
|
|
2180
|
+
#
|
|
2175
2181
|
# Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user.
|
|
2176
2182
|
#
|
|
2177
|
-
# This endpoint returns Daily data regardless of the customer's plan. Daily data is cached and refreshed once a day, which makes this endpoint fast and well-suited to listing accounts across all of a user's connections in a single call. Exact refresh timing may vary by brokerage. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/
|
|
2183
|
+
# This endpoint returns Daily data regardless of the customer's plan. Daily data is cached and refreshed once a day, which makes this endpoint fast and well-suited to listing accounts across all of a user's connections in a single call. Exact refresh timing may vary by brokerage. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listConnectionAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
2178
2184
|
#
|
|
2179
2185
|
# @param user_id [String]
|
|
2180
2186
|
# @param user_secret [String]
|
|
@@ -2188,9 +2194,11 @@ module SnapTrade
|
|
|
2188
2194
|
#
|
|
2189
2195
|
# **Deprecated.** Use the [list all user accounts](/reference/Account%20Information/AccountInformation_listAllUserAccounts) endpoint instead, which returns all account types in a single response, including investment, deposit, line of credit, annuity, and mortgage accounts.
|
|
2190
2196
|
#
|
|
2197
|
+
# This endpoint will return HTTP 410 Gone for all customers that sign up after December 1, 2026.
|
|
2198
|
+
#
|
|
2191
2199
|
# Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user.
|
|
2192
2200
|
#
|
|
2193
|
-
# This endpoint returns Daily data regardless of the customer's plan. Daily data is cached and refreshed once a day, which makes this endpoint fast and well-suited to listing accounts across all of a user's connections in a single call. Exact refresh timing may vary by brokerage. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/
|
|
2201
|
+
# This endpoint returns Daily data regardless of the customer's plan. Daily data is cached and refreshed once a day, which makes this endpoint fast and well-suited to listing accounts across all of a user's connections in a single call. Exact refresh timing may vary by brokerage. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listConnectionAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
2194
2202
|
#
|
|
2195
2203
|
# @param user_id [String]
|
|
2196
2204
|
# @param user_secret [String]
|
|
@@ -2200,7 +2208,7 @@ module SnapTrade
|
|
|
2200
2208
|
end
|
|
2201
2209
|
|
|
2202
2210
|
# List user accounts
|
|
2203
|
-
# **Deprecated.** Use the [list all user accounts](/reference/Account%20Information/AccountInformation_listAllUserAccounts) endpoint instead, which returns all account types in a single response, including investment, deposit, line of credit, annuity, and mortgage accounts. Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user. This endpoint returns Daily data regardless of the customer's plan. Daily data is cached and refreshed once a day, which makes this endpoint fast and well-suited to listing accounts across all of a user's connections in a single call. Exact refresh timing may vary by brokerage. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/
|
|
2211
|
+
# **Deprecated.** Use the [list all user accounts](/reference/Account%20Information/AccountInformation_listAllUserAccounts) endpoint instead, which returns all account types in a single response, including investment, deposit, line of credit, annuity, and mortgage accounts. This endpoint will return HTTP 410 Gone for all customers that sign up after December 1, 2026. Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user. This endpoint returns Daily data regardless of the customer's plan. Daily data is cached and refreshed once a day, which makes this endpoint fast and well-suited to listing accounts across all of a user's connections in a single call. Exact refresh timing may vary by brokerage. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listConnectionAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
2204
2212
|
# @param user_id [String]
|
|
2205
2213
|
# @param user_secret [String]
|
|
2206
2214
|
# @param [Hash] opts the optional parameters
|
|
@@ -2211,7 +2219,7 @@ module SnapTrade
|
|
|
2211
2219
|
end
|
|
2212
2220
|
|
|
2213
2221
|
# List user accounts
|
|
2214
|
-
# **Deprecated.** Use the [list all user accounts](/reference/Account%20Information/AccountInformation_listAllUserAccounts) endpoint instead, which returns all account types in a single response, including investment, deposit, line of credit, annuity, and mortgage accounts. Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user. This endpoint returns Daily data regardless of the customer's plan. Daily data is cached and refreshed once a day, which makes this endpoint fast and well-suited to listing accounts across all of a user's connections in a single call. Exact refresh timing may vary by brokerage. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/
|
|
2222
|
+
# **Deprecated.** Use the [list all user accounts](/reference/Account%20Information/AccountInformation_listAllUserAccounts) endpoint instead, which returns all account types in a single response, including investment, deposit, line of credit, annuity, and mortgage accounts. This endpoint will return HTTP 410 Gone for all customers that sign up after December 1, 2026. Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user. This endpoint returns Daily data regardless of the customer's plan. Daily data is cached and refreshed once a day, which makes this endpoint fast and well-suited to listing accounts across all of a user's connections in a single call. Exact refresh timing may vary by brokerage. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listConnectionAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
2215
2223
|
# @param user_id [String]
|
|
2216
2224
|
# @param user_secret [String]
|
|
2217
2225
|
# @param [Hash] opts the optional parameters
|