snaptrade 3.0.67 → 3.0.69
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 +27 -10
- data/lib/snaptrade/api/account_information_api.rb +42 -34
- data/lib/snaptrade/api/experimental_endpoints_api.rb +18 -6
- data/lib/snaptrade/version.rb +1 -1
- data/spec/api/account_information_api_spec.rb +9 -9
- data/spec/api/experimental_endpoints_api_spec.rb +3 -3
- metadata +297 -297
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 658dfe4418442cb3cdb4ff409164809b4994b45c3eba31844e667d087da95dfe
|
|
4
|
+
data.tar.gz: ddcb557dfc7a82a791bf74b79df772bbdf1b8a7f734ce7e4ae1ff576d71ce07d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8b885d2b1ae366622f23c23d77e1f2a1544255b5eb4fae084fd7793fa006e489bb263208596b206e1baed6ce2ce9de69f5a30d9091021381f65a2ec07a430ee9
|
|
7
|
+
data.tar.gz: 353392a9f9dd8baa4ff7532b318a87a0959c9834a7462073657a56c2c130ffee30380149c2c4d3fff1ce4f237b7c5968fd3df9238f921a807651c047ca194cb2
|
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.69)
|
|
67
67
|
[](https://snaptrade.com/)
|
|
68
68
|
|
|
69
69
|
</div>
|
|
@@ -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.69'
|
|
154
154
|
```
|
|
155
155
|
|
|
156
156
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -200,8 +200,11 @@ p.result[3] # [Faraday::Response] Raw HTTP response
|
|
|
200
200
|
|
|
201
201
|
|
|
202
202
|
### `snaptrade.account_information.get_account_activities`<a id="snaptradeaccount_informationget_account_activities"></a>
|
|
203
|
+

|
|
204
|
+
|
|
205
|
+
**Deprecated.** Use the [list account transactions](/reference/Account%20Information/AccountInformation_getAccountTransactions) endpoint instead. This endpoint currently has no planned sunset.
|
|
203
206
|
|
|
204
|
-
|
|
207
|
+
The `Deprecation: @1781222400` header (June 12, 2026) applies only to the legacy `/api/v1` path prefix. The canonical path for account activities is `/accounts/{accountId}/activities`.
|
|
205
208
|
|
|
206
209
|
Returns all historical transactions for the specified account.
|
|
207
210
|
|
|
@@ -413,8 +416,6 @@ This endpoint is always realtime and does not rely on cached data, except that a
|
|
|
413
416
|
|
|
414
417
|
This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
|
415
418
|
|
|
416
|
-
**Beta:** this endpoint and its response schema may change.
|
|
417
|
-
|
|
418
419
|
|
|
419
420
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
420
421
|
|
|
@@ -449,6 +450,8 @@ p result
|
|
|
449
450
|
|
|
450
451
|
### `snaptrade.account_information.get_account_transactions`<a id="snaptradeaccount_informationget_account_transactions"></a>
|
|
451
452
|
|
|
453
|
+
This endpoint replaces the deprecated [list account activities](/reference/Account%20Information/AccountInformation_getAccountActivities) endpoint.
|
|
454
|
+
|
|
452
455
|
Returns the account's cached transaction history, most recent date first. Transactions with the same timestamp are ordered by descending internal activity ID.
|
|
453
456
|
|
|
454
457
|
History refreshes daily. Timing and available history depend on the brokerage. A disabled connection continues to return its last cached history.
|
|
@@ -528,8 +531,6 @@ Every order carries a `legs` list with at least one leg. Each leg's `instrument`
|
|
|
528
531
|
|
|
529
532
|
`order_type` is an object discriminated by `kind`. Each kind declares the price fields it requires (`limit_price` on `limit`, `stop_price` on `stop`, both on `stop_limit`, `trail` on `trailing_stop`), so a consumer never has to null-check a price that cannot exist for that kind. When the brokerage reports an order type we cannot normalize, `kind` is `other` and the brokerage's own label is in `raw_type`.
|
|
530
533
|
|
|
531
|
-
**Beta:** this endpoint and its response schema may change.
|
|
532
|
-
|
|
533
534
|
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.
|
|
534
535
|
|
|
535
536
|
|
|
@@ -622,8 +623,6 @@ By default only returns executed orders, but that can be changed by setting *onl
|
|
|
622
623
|
|
|
623
624
|
Every order carries a `legs` list with at least one leg; switch on `legs[].instrument.kind` and `order_type.kind` to know which fields are present. `data_freshness.as_of` is the time of this live request.
|
|
624
625
|
|
|
625
|
-
**Beta:** this endpoint and its response schema may change.
|
|
626
|
-
|
|
627
626
|
|
|
628
627
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
629
628
|
|
|
@@ -745,6 +744,9 @@ p result
|
|
|
745
744
|
|
|
746
745
|
|
|
747
746
|
### `snaptrade.account_information.get_user_account_order_detail`<a id="snaptradeaccount_informationget_user_account_order_detail"></a>
|
|
747
|
+

|
|
748
|
+
|
|
749
|
+
**Deprecated.** Use the [get account order detail](/reference/Account%20Information/AccountInformation_getAccountOrder) endpoint instead.
|
|
748
750
|
|
|
749
751
|
Returns the detail of a single order using the external order ID provided in the request body.
|
|
750
752
|
|
|
@@ -790,6 +792,9 @@ the brokerage system.
|
|
|
790
792
|
|
|
791
793
|
|
|
792
794
|
### `snaptrade.account_information.get_user_account_orders`<a id="snaptradeaccount_informationget_user_account_orders"></a>
|
|
795
|
+

|
|
796
|
+
|
|
797
|
+
**Deprecated.** Use the [list all account orders](/reference/Account%20Information/AccountInformation_getAllAccountOrders) endpoint instead.
|
|
793
798
|
|
|
794
799
|
Returns a list of recent orders in the specified account.
|
|
795
800
|
|
|
@@ -839,6 +844,9 @@ Number of days in the past to fetch the most recent orders. Defaults to the last
|
|
|
839
844
|
|
|
840
845
|
|
|
841
846
|
### `snaptrade.account_information.get_user_account_recent_orders`<a id="snaptradeaccount_informationget_user_account_recent_orders"></a>
|
|
847
|
+

|
|
848
|
+
|
|
849
|
+
**Deprecated.** Use the [list all account recent orders](/reference/Account%20Information/AccountInformation_getAllAccountRecentOrders) endpoint instead.
|
|
842
850
|
|
|
843
851
|
A lightweight endpoint that returns the latest page of orders placed in the last 24 hours in the specified account. For most brokerages, the default page size is 100 meaning the endpoint will return a max of 100 orders.
|
|
844
852
|
This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders
|
|
@@ -923,7 +931,7 @@ returns all six supported timeframes.
|
|
|
923
931
|
### `snaptrade.account_information.get_user_holdings`<a id="snaptradeaccount_informationget_user_holdings"></a>
|
|
924
932
|

|
|
925
933
|
|
|
926
|
-
**Deprecated.** Use the finer-grained account data endpoints instead: [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getAllAccountPositions), and [orders](/reference/Account%20Information/
|
|
934
|
+
**Deprecated.** Use the finer-grained account data endpoints instead: [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getAllAccountPositions), and [orders](/reference/Account%20Information/AccountInformation_getAllAccountOrders).
|
|
927
935
|
|
|
928
936
|
This endpoint will return HTTP 410 Gone for all customers that sign up after May 11, 2026.
|
|
929
937
|
|
|
@@ -1736,6 +1744,9 @@ reference the account in SnapTrade.
|
|
|
1736
1744
|
|
|
1737
1745
|
|
|
1738
1746
|
### `snaptrade.experimental_endpoints.get_user_account_order_detail_v2`<a id="snaptradeexperimental_endpointsget_user_account_order_detail_v2"></a>
|
|
1747
|
+

|
|
1748
|
+
|
|
1749
|
+
**Deprecated.** Use the [get account order detail](/reference/Account%20Information/AccountInformation_getAccountOrder) endpoint instead.
|
|
1739
1750
|
|
|
1740
1751
|
Returns the detail of a single order using the brokerage order ID provided as a path parameter.
|
|
1741
1752
|
|
|
@@ -1779,6 +1790,9 @@ p result
|
|
|
1779
1790
|
|
|
1780
1791
|
|
|
1781
1792
|
### `snaptrade.experimental_endpoints.get_user_account_orders_v2`<a id="snaptradeexperimental_endpointsget_user_account_orders_v2"></a>
|
|
1793
|
+

|
|
1794
|
+
|
|
1795
|
+
**Deprecated.** Use the [list all account orders](/reference/Account%20Information/AccountInformation_getAllAccountOrders) endpoint instead.
|
|
1782
1796
|
|
|
1783
1797
|
Returns a list of recent orders in the specified account.
|
|
1784
1798
|
|
|
@@ -1826,6 +1840,9 @@ Number of days in the past to fetch the most recent orders. Defaults to the last
|
|
|
1826
1840
|
|
|
1827
1841
|
|
|
1828
1842
|
### `snaptrade.experimental_endpoints.get_user_account_recent_orders_v2`<a id="snaptradeexperimental_endpointsget_user_account_recent_orders_v2"></a>
|
|
1843
|
+

|
|
1844
|
+
|
|
1845
|
+
**Deprecated.** Use the [list all account recent orders](/reference/Account%20Information/AccountInformation_getAllAccountRecentOrders) endpoint instead.
|
|
1829
1846
|
|
|
1830
1847
|
A lightweight endpoint that returns a list of orders executed in the last 24 hours in the specified account using the V2 order format.
|
|
1831
1848
|
This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders.
|
|
@@ -19,7 +19,9 @@ module SnapTrade
|
|
|
19
19
|
|
|
20
20
|
# List account activities
|
|
21
21
|
#
|
|
22
|
-
#
|
|
22
|
+
# **Deprecated.** Use the [list account transactions](/reference/Account%20Information/AccountInformation_getAccountTransactions) endpoint instead. This endpoint currently has no planned sunset.
|
|
23
|
+
#
|
|
24
|
+
# The `Deprecation: @1781222400` header (June 12, 2026) applies only to the legacy `/api/v1` path prefix. The canonical path for account activities is `/accounts/{accountId}/activities`.
|
|
23
25
|
#
|
|
24
26
|
# Returns all historical transactions for the specified account.
|
|
25
27
|
#
|
|
@@ -52,7 +54,9 @@ module SnapTrade
|
|
|
52
54
|
|
|
53
55
|
# List account activities
|
|
54
56
|
#
|
|
55
|
-
#
|
|
57
|
+
# **Deprecated.** Use the [list account transactions](/reference/Account%20Information/AccountInformation_getAccountTransactions) endpoint instead. This endpoint currently has no planned sunset.
|
|
58
|
+
#
|
|
59
|
+
# The `Deprecation: @1781222400` header (June 12, 2026) applies only to the legacy `/api/v1` path prefix. The canonical path for account activities is `/accounts/{accountId}/activities`.
|
|
56
60
|
#
|
|
57
61
|
# Returns all historical transactions for the specified account.
|
|
58
62
|
#
|
|
@@ -83,7 +87,7 @@ module SnapTrade
|
|
|
83
87
|
end
|
|
84
88
|
|
|
85
89
|
# List account activities
|
|
86
|
-
#
|
|
90
|
+
# **Deprecated.** Use the [list account transactions](/reference/Account%20Information/AccountInformation_getAccountTransactions) endpoint instead. This endpoint currently has no planned sunset. The `Deprecation: @1781222400` header (June 12, 2026) applies only to the legacy `/api/v1` path prefix. The canonical path for account activities is `/accounts/{accountId}/activities`. Returns all historical transactions for the specified account. This endpoint is paginated with a default page size of 1000. The endpoint will return a maximum of 1000 transactions per request. See the query parameters for pagination options. Transaction are returned in reverse chronological order, using the `trade_date` field. This endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. 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.
|
|
87
91
|
# @param account_id [String]
|
|
88
92
|
# @param user_id [String]
|
|
89
93
|
# @param user_secret [String]
|
|
@@ -100,7 +104,7 @@ module SnapTrade
|
|
|
100
104
|
end
|
|
101
105
|
|
|
102
106
|
# List account activities
|
|
103
|
-
#
|
|
107
|
+
# **Deprecated.** Use the [list account transactions](/reference/Account%20Information/AccountInformation_getAccountTransactions) endpoint instead. This endpoint currently has no planned sunset. The `Deprecation: @1781222400` header (June 12, 2026) applies only to the legacy `/api/v1` path prefix. The canonical path for account activities is `/accounts/{accountId}/activities`. Returns all historical transactions for the specified account. This endpoint is paginated with a default page size of 1000. The endpoint will return a maximum of 1000 transactions per request. See the query parameters for pagination options. Transaction are returned in reverse chronological order, using the `trade_date` field. This endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. 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.
|
|
104
108
|
# @param account_id [String]
|
|
105
109
|
# @param user_id [String]
|
|
106
110
|
# @param user_secret [String]
|
|
@@ -541,8 +545,6 @@ module SnapTrade
|
|
|
541
545
|
# This endpoint is always realtime and does not rely on cached data, except that an order in a terminal state (executed, canceled, rejected, failed, expired, replaced) may be served from a short-lived cache since it can no longer change.
|
|
542
546
|
#
|
|
543
547
|
# This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
|
544
|
-
#
|
|
545
|
-
# **Beta:** this endpoint and its response schema may change.
|
|
546
548
|
#
|
|
547
549
|
# @param account_id [String]
|
|
548
550
|
# @param brokerage_order_id [String]
|
|
@@ -563,8 +565,6 @@ module SnapTrade
|
|
|
563
565
|
# This endpoint is always realtime and does not rely on cached data, except that an order in a terminal state (executed, canceled, rejected, failed, expired, replaced) may be served from a short-lived cache since it can no longer change.
|
|
564
566
|
#
|
|
565
567
|
# This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
|
566
|
-
#
|
|
567
|
-
# **Beta:** this endpoint and its response schema may change.
|
|
568
568
|
#
|
|
569
569
|
# @param account_id [String]
|
|
570
570
|
# @param brokerage_order_id [String]
|
|
@@ -576,7 +576,7 @@ module SnapTrade
|
|
|
576
576
|
end
|
|
577
577
|
|
|
578
578
|
# Get account order detail
|
|
579
|
-
# Returns the detail of a single order, identified by the brokerage order ID in the path, in the same `kind`-discriminated format as `/accounts/{accountId}/orders/all`. The order carries a `legs` list with at least one leg; switch on `legs[].instrument.kind` and `order_type.kind` to know which fields are present. Multi-leg orders are a single order with multiple legs. This endpoint is always realtime and does not rely on cached data, except that an order in a terminal state (executed, canceled, rejected, failed, expired, replaced) may be served from a short-lived cache since it can no longer change. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
|
579
|
+
# Returns the detail of a single order, identified by the brokerage order ID in the path, in the same `kind`-discriminated format as `/accounts/{accountId}/orders/all`. The order carries a `legs` list with at least one leg; switch on `legs[].instrument.kind` and `order_type.kind` to know which fields are present. Multi-leg orders are a single order with multiple legs. This endpoint is always realtime and does not rely on cached data, except that an order in a terminal state (executed, canceled, rejected, failed, expired, replaced) may be served from a short-lived cache since it can no longer change. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
|
580
580
|
# @param account_id [String]
|
|
581
581
|
# @param brokerage_order_id [String]
|
|
582
582
|
# @param user_id [String]
|
|
@@ -589,7 +589,7 @@ module SnapTrade
|
|
|
589
589
|
end
|
|
590
590
|
|
|
591
591
|
# Get account order detail
|
|
592
|
-
# Returns the detail of a single order, identified by the brokerage order ID in the path, in the same `kind`-discriminated format as `/accounts/{accountId}/orders/all`. The order carries a `legs` list with at least one leg; switch on `legs[].instrument.kind` and `order_type.kind` to know which fields are present. Multi-leg orders are a single order with multiple legs. This endpoint is always realtime and does not rely on cached data, except that an order in a terminal state (executed, canceled, rejected, failed, expired, replaced) may be served from a short-lived cache since it can no longer change. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
|
592
|
+
# Returns the detail of a single order, identified by the brokerage order ID in the path, in the same `kind`-discriminated format as `/accounts/{accountId}/orders/all`. The order carries a `legs` list with at least one leg; switch on `legs[].instrument.kind` and `order_type.kind` to know which fields are present. Multi-leg orders are a single order with multiple legs. This endpoint is always realtime and does not rely on cached data, except that an order in a terminal state (executed, canceled, rejected, failed, expired, replaced) may be served from a short-lived cache since it can no longer change. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
|
593
593
|
# @param account_id [String]
|
|
594
594
|
# @param brokerage_order_id [String]
|
|
595
595
|
# @param user_id [String]
|
|
@@ -661,6 +661,8 @@ module SnapTrade
|
|
|
661
661
|
|
|
662
662
|
# List account transactions
|
|
663
663
|
#
|
|
664
|
+
# This endpoint replaces the deprecated [list account activities](/reference/Account%20Information/AccountInformation_getAccountActivities) endpoint.
|
|
665
|
+
#
|
|
664
666
|
# Returns the account's cached transaction history, most recent date first. Transactions with the same timestamp are ordered by descending internal activity ID.
|
|
665
667
|
#
|
|
666
668
|
# History refreshes daily. Timing and available history depend on the brokerage. A disabled connection continues to return its last cached history.
|
|
@@ -686,6 +688,8 @@ module SnapTrade
|
|
|
686
688
|
|
|
687
689
|
# List account transactions
|
|
688
690
|
#
|
|
691
|
+
# This endpoint replaces the deprecated [list account activities](/reference/Account%20Information/AccountInformation_getAccountActivities) endpoint.
|
|
692
|
+
#
|
|
689
693
|
# Returns the account's cached transaction history, most recent date first. Transactions with the same timestamp are ordered by descending internal activity ID.
|
|
690
694
|
#
|
|
691
695
|
# History refreshes daily. Timing and available history depend on the brokerage. A disabled connection continues to return its last cached history.
|
|
@@ -709,7 +713,7 @@ module SnapTrade
|
|
|
709
713
|
end
|
|
710
714
|
|
|
711
715
|
# List account transactions
|
|
712
|
-
# Returns the account's cached transaction history, most recent date first. Transactions with the same timestamp are ordered by descending internal activity ID. History refreshes daily. Timing and available history depend on the brokerage. A disabled connection continues to return its last cached history.
|
|
716
|
+
# This endpoint replaces the deprecated [list account activities](/reference/Account%20Information/AccountInformation_getAccountActivities) endpoint. Returns the account's cached transaction history, most recent date first. Transactions with the same timestamp are ordered by descending internal activity ID. History refreshes daily. Timing and available history depend on the brokerage. A disabled connection continues to return its last cached history.
|
|
713
717
|
# @param account_id [String]
|
|
714
718
|
# @param user_id [String]
|
|
715
719
|
# @param user_secret [String]
|
|
@@ -726,7 +730,7 @@ module SnapTrade
|
|
|
726
730
|
end
|
|
727
731
|
|
|
728
732
|
# List account transactions
|
|
729
|
-
# Returns the account's cached transaction history, most recent date first. Transactions with the same timestamp are ordered by descending internal activity ID. History refreshes daily. Timing and available history depend on the brokerage. A disabled connection continues to return its last cached history.
|
|
733
|
+
# This endpoint replaces the deprecated [list account activities](/reference/Account%20Information/AccountInformation_getAccountActivities) endpoint. Returns the account's cached transaction history, most recent date first. Transactions with the same timestamp are ordered by descending internal activity ID. History refreshes daily. Timing and available history depend on the brokerage. A disabled connection continues to return its last cached history.
|
|
730
734
|
# @param account_id [String]
|
|
731
735
|
# @param user_id [String]
|
|
732
736
|
# @param user_secret [String]
|
|
@@ -821,8 +825,6 @@ module SnapTrade
|
|
|
821
825
|
#
|
|
822
826
|
# `order_type` is an object discriminated by `kind`. Each kind declares the price fields it requires (`limit_price` on `limit`, `stop_price` on `stop`, both on `stop_limit`, `trail` on `trailing_stop`), so a consumer never has to null-check a price that cannot exist for that kind. When the brokerage reports an order type we cannot normalize, `kind` is `other` and the brokerage's own label is in `raw_type`.
|
|
823
827
|
#
|
|
824
|
-
# **Beta:** this endpoint and its response schema may change.
|
|
825
|
-
#
|
|
826
828
|
# 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.
|
|
827
829
|
#
|
|
828
830
|
# @param user_id [String]
|
|
@@ -846,8 +848,6 @@ module SnapTrade
|
|
|
846
848
|
#
|
|
847
849
|
# `order_type` is an object discriminated by `kind`. Each kind declares the price fields it requires (`limit_price` on `limit`, `stop_price` on `stop`, both on `stop_limit`, `trail` on `trailing_stop`), so a consumer never has to null-check a price that cannot exist for that kind. When the brokerage reports an order type we cannot normalize, `kind` is `other` and the brokerage's own label is in `raw_type`.
|
|
848
850
|
#
|
|
849
|
-
# **Beta:** this endpoint and its response schema may change.
|
|
850
|
-
#
|
|
851
851
|
# 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.
|
|
852
852
|
#
|
|
853
853
|
# @param user_id [String]
|
|
@@ -863,7 +863,7 @@ module SnapTrade
|
|
|
863
863
|
end
|
|
864
864
|
|
|
865
865
|
# List all account orders
|
|
866
|
-
# Returns a list of recent orders in the specified account, in the same `kind`-discriminated format as `/accounts/{accountId}/positions/all`. Every order carries a `legs` list with at least one leg. Each leg's `instrument` uses the same `Instrument` union as positions; switch on `instrument.kind` to know which fields are present. Multi-leg orders (spreads, strangles, covered calls) are a single order with multiple legs. Orders that belong to a complex order group (OCO, OTO, OTOCO) share a `group.id`. `order_type` is an object discriminated by `kind`. Each kind declares the price fields it requires (`limit_price` on `limit`, `stop_price` on `stop`, both on `stop_limit`, `trail` on `trailing_stop`), so a consumer never has to null-check a price that cannot exist for that kind. When the brokerage reports an order type we cannot normalize, `kind` is `other` and the brokerage's own label is in `raw_type`.
|
|
866
|
+
# Returns a list of recent orders in the specified account, in the same `kind`-discriminated format as `/accounts/{accountId}/positions/all`. Every order carries a `legs` list with at least one leg. Each leg's `instrument` uses the same `Instrument` union as positions; switch on `instrument.kind` to know which fields are present. Multi-leg orders (spreads, strangles, covered calls) are a single order with multiple legs. Orders that belong to a complex order group (OCO, OTO, OTOCO) share a `group.id`. `order_type` is an object discriminated by `kind`. Each kind declares the price fields it requires (`limit_price` on `limit`, `stop_price` on `stop`, both on `stop_limit`, `trail` on `trailing_stop`), so a consumer never has to null-check a price that cannot exist for that kind. When the brokerage reports an order type we cannot normalize, `kind` is `other` and the brokerage's own label is in `raw_type`. 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.
|
|
867
867
|
# @param user_id [String]
|
|
868
868
|
# @param user_secret [String]
|
|
869
869
|
# @param account_id [String]
|
|
@@ -877,7 +877,7 @@ module SnapTrade
|
|
|
877
877
|
end
|
|
878
878
|
|
|
879
879
|
# List all account orders
|
|
880
|
-
# Returns a list of recent orders in the specified account, in the same `kind`-discriminated format as `/accounts/{accountId}/positions/all`. Every order carries a `legs` list with at least one leg. Each leg's `instrument` uses the same `Instrument` union as positions; switch on `instrument.kind` to know which fields are present. Multi-leg orders (spreads, strangles, covered calls) are a single order with multiple legs. Orders that belong to a complex order group (OCO, OTO, OTOCO) share a `group.id`. `order_type` is an object discriminated by `kind`. Each kind declares the price fields it requires (`limit_price` on `limit`, `stop_price` on `stop`, both on `stop_limit`, `trail` on `trailing_stop`), so a consumer never has to null-check a price that cannot exist for that kind. When the brokerage reports an order type we cannot normalize, `kind` is `other` and the brokerage's own label is in `raw_type`.
|
|
880
|
+
# Returns a list of recent orders in the specified account, in the same `kind`-discriminated format as `/accounts/{accountId}/positions/all`. Every order carries a `legs` list with at least one leg. Each leg's `instrument` uses the same `Instrument` union as positions; switch on `instrument.kind` to know which fields are present. Multi-leg orders (spreads, strangles, covered calls) are a single order with multiple legs. Orders that belong to a complex order group (OCO, OTO, OTOCO) share a `group.id`. `order_type` is an object discriminated by `kind`. Each kind declares the price fields it requires (`limit_price` on `limit`, `stop_price` on `stop`, both on `stop_limit`, `trail` on `trailing_stop`), so a consumer never has to null-check a price that cannot exist for that kind. When the brokerage reports an order type we cannot normalize, `kind` is `other` and the brokerage's own label is in `raw_type`. 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.
|
|
881
881
|
# @param user_id [String]
|
|
882
882
|
# @param user_secret [String]
|
|
883
883
|
# @param account_id [String]
|
|
@@ -1085,8 +1085,6 @@ module SnapTrade
|
|
|
1085
1085
|
# By default only returns executed orders, but that can be changed by setting *only_executed* to false.
|
|
1086
1086
|
#
|
|
1087
1087
|
# Every order carries a `legs` list with at least one leg; switch on `legs[].instrument.kind` and `order_type.kind` to know which fields are present. `data_freshness.as_of` is the time of this live request.
|
|
1088
|
-
#
|
|
1089
|
-
# **Beta:** this endpoint and its response schema may change.
|
|
1090
1088
|
#
|
|
1091
1089
|
# @param user_id [String]
|
|
1092
1090
|
# @param user_secret [String]
|
|
@@ -1107,8 +1105,6 @@ module SnapTrade
|
|
|
1107
1105
|
# By default only returns executed orders, but that can be changed by setting *only_executed* to false.
|
|
1108
1106
|
#
|
|
1109
1107
|
# Every order carries a `legs` list with at least one leg; switch on `legs[].instrument.kind` and `order_type.kind` to know which fields are present. `data_freshness.as_of` is the time of this live request.
|
|
1110
|
-
#
|
|
1111
|
-
# **Beta:** this endpoint and its response schema may change.
|
|
1112
1108
|
#
|
|
1113
1109
|
# @param user_id [String]
|
|
1114
1110
|
# @param user_secret [String]
|
|
@@ -1121,7 +1117,7 @@ module SnapTrade
|
|
|
1121
1117
|
end
|
|
1122
1118
|
|
|
1123
1119
|
# List all account recent orders (last 24 hours only)
|
|
1124
|
-
# A lightweight endpoint that returns the latest page of orders placed in the last 24 hours in the specified account, in the same `kind`-discriminated format as `/accounts/{accountId}/orders/all`. For most brokerages, the default page size is 100 meaning the endpoint will return a max of 100 orders. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders. Differs from `/accounts/{accountId}/orders/all` in that it is always realtime, and only checks the last 24 hours as opposed to the last 30 days. By default only returns executed orders, but that can be changed by setting *only_executed* to false. Every order carries a `legs` list with at least one leg; switch on `legs[].instrument.kind` and `order_type.kind` to know which fields are present. `data_freshness.as_of` is the time of this live request.
|
|
1120
|
+
# A lightweight endpoint that returns the latest page of orders placed in the last 24 hours in the specified account, in the same `kind`-discriminated format as `/accounts/{accountId}/orders/all`. For most brokerages, the default page size is 100 meaning the endpoint will return a max of 100 orders. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders. Differs from `/accounts/{accountId}/orders/all` in that it is always realtime, and only checks the last 24 hours as opposed to the last 30 days. By default only returns executed orders, but that can be changed by setting *only_executed* to false. Every order carries a `legs` list with at least one leg; switch on `legs[].instrument.kind` and `order_type.kind` to know which fields are present. `data_freshness.as_of` is the time of this live request.
|
|
1125
1121
|
# @param user_id [String]
|
|
1126
1122
|
# @param user_secret [String]
|
|
1127
1123
|
# @param account_id [String]
|
|
@@ -1134,7 +1130,7 @@ module SnapTrade
|
|
|
1134
1130
|
end
|
|
1135
1131
|
|
|
1136
1132
|
# List all account recent orders (last 24 hours only)
|
|
1137
|
-
# A lightweight endpoint that returns the latest page of orders placed in the last 24 hours in the specified account, in the same `kind`-discriminated format as `/accounts/{accountId}/orders/all`. For most brokerages, the default page size is 100 meaning the endpoint will return a max of 100 orders. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders. Differs from `/accounts/{accountId}/orders/all` in that it is always realtime, and only checks the last 24 hours as opposed to the last 30 days. By default only returns executed orders, but that can be changed by setting *only_executed* to false. Every order carries a `legs` list with at least one leg; switch on `legs[].instrument.kind` and `order_type.kind` to know which fields are present. `data_freshness.as_of` is the time of this live request.
|
|
1133
|
+
# A lightweight endpoint that returns the latest page of orders placed in the last 24 hours in the specified account, in the same `kind`-discriminated format as `/accounts/{accountId}/orders/all`. For most brokerages, the default page size is 100 meaning the endpoint will return a max of 100 orders. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders. Differs from `/accounts/{accountId}/orders/all` in that it is always realtime, and only checks the last 24 hours as opposed to the last 30 days. By default only returns executed orders, but that can be changed by setting *only_executed* to false. Every order carries a `legs` list with at least one leg; switch on `legs[].instrument.kind` and `order_type.kind` to know which fields are present. `data_freshness.as_of` is the time of this live request.
|
|
1138
1134
|
# @param user_id [String]
|
|
1139
1135
|
# @param user_secret [String]
|
|
1140
1136
|
# @param account_id [String]
|
|
@@ -1441,6 +1437,8 @@ module SnapTrade
|
|
|
1441
1437
|
|
|
1442
1438
|
# Get account order detail
|
|
1443
1439
|
#
|
|
1440
|
+
# **Deprecated.** Use the [get account order detail](/reference/Account%20Information/AccountInformation_getAccountOrder) endpoint instead.
|
|
1441
|
+
#
|
|
1444
1442
|
# Returns the detail of a single order using the external order ID provided in the request body.
|
|
1445
1443
|
#
|
|
1446
1444
|
# This endpoint only works for single-leg orders at this time. Support for multi-leg orders will be added in the future.
|
|
@@ -1465,6 +1463,8 @@ module SnapTrade
|
|
|
1465
1463
|
|
|
1466
1464
|
# Get account order detail
|
|
1467
1465
|
#
|
|
1466
|
+
# **Deprecated.** Use the [get account order detail](/reference/Account%20Information/AccountInformation_getAccountOrder) endpoint instead.
|
|
1467
|
+
#
|
|
1468
1468
|
# Returns the detail of a single order using the external order ID provided in the request body.
|
|
1469
1469
|
#
|
|
1470
1470
|
# This endpoint only works for single-leg orders at this time. Support for multi-leg orders will be added in the future.
|
|
@@ -1487,7 +1487,7 @@ module SnapTrade
|
|
|
1487
1487
|
end
|
|
1488
1488
|
|
|
1489
1489
|
# Get account order detail
|
|
1490
|
-
# Returns the detail of a single order using the external order ID provided in the request body. This endpoint only works for single-leg orders at this time. Support for multi-leg orders will be added in the future. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
|
1490
|
+
# **Deprecated.** Use the [get account order detail](/reference/Account%20Information/AccountInformation_getAccountOrder) endpoint instead. Returns the detail of a single order using the external order ID provided in the request body. This endpoint only works for single-leg orders at this time. Support for multi-leg orders will be added in the future. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
|
1491
1491
|
# @param account_id [String]
|
|
1492
1492
|
# @param user_id [String]
|
|
1493
1493
|
# @param user_secret [String]
|
|
@@ -1500,7 +1500,7 @@ module SnapTrade
|
|
|
1500
1500
|
end
|
|
1501
1501
|
|
|
1502
1502
|
# Get account order detail
|
|
1503
|
-
# Returns the detail of a single order using the external order ID provided in the request body. This endpoint only works for single-leg orders at this time. Support for multi-leg orders will be added in the future. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
|
1503
|
+
# **Deprecated.** Use the [get account order detail](/reference/Account%20Information/AccountInformation_getAccountOrder) endpoint instead. Returns the detail of a single order using the external order ID provided in the request body. This endpoint only works for single-leg orders at this time. Support for multi-leg orders will be added in the future. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
|
1504
1504
|
# @param account_id [String]
|
|
1505
1505
|
# @param user_id [String]
|
|
1506
1506
|
# @param user_secret [String]
|
|
@@ -1577,6 +1577,8 @@ module SnapTrade
|
|
|
1577
1577
|
|
|
1578
1578
|
# List account orders
|
|
1579
1579
|
#
|
|
1580
|
+
# **Deprecated.** Use the [list all account orders](/reference/Account%20Information/AccountInformation_getAllAccountOrders) endpoint instead.
|
|
1581
|
+
#
|
|
1580
1582
|
# Returns a list of recent orders in the specified account.
|
|
1581
1583
|
#
|
|
1582
1584
|
# 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:
|
|
@@ -1600,6 +1602,8 @@ module SnapTrade
|
|
|
1600
1602
|
|
|
1601
1603
|
# List account orders
|
|
1602
1604
|
#
|
|
1605
|
+
# **Deprecated.** Use the [list all account orders](/reference/Account%20Information/AccountInformation_getAllAccountOrders) endpoint instead.
|
|
1606
|
+
#
|
|
1603
1607
|
# Returns a list of recent orders in the specified account.
|
|
1604
1608
|
#
|
|
1605
1609
|
# 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:
|
|
@@ -1621,7 +1625,7 @@ module SnapTrade
|
|
|
1621
1625
|
end
|
|
1622
1626
|
|
|
1623
1627
|
# List account orders
|
|
1624
|
-
# Returns a list of recent orders in 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.
|
|
1628
|
+
# **Deprecated.** Use the [list all account orders](/reference/Account%20Information/AccountInformation_getAllAccountOrders) endpoint instead. Returns a list of recent orders in 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.
|
|
1625
1629
|
# @param user_id [String]
|
|
1626
1630
|
# @param user_secret [String]
|
|
1627
1631
|
# @param account_id [String]
|
|
@@ -1635,7 +1639,7 @@ module SnapTrade
|
|
|
1635
1639
|
end
|
|
1636
1640
|
|
|
1637
1641
|
# List account orders
|
|
1638
|
-
# Returns a list of recent orders in 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.
|
|
1642
|
+
# **Deprecated.** Use the [list all account orders](/reference/Account%20Information/AccountInformation_getAllAccountOrders) endpoint instead. Returns a list of recent orders in 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.
|
|
1639
1643
|
# @param user_id [String]
|
|
1640
1644
|
# @param user_secret [String]
|
|
1641
1645
|
# @param account_id [String]
|
|
@@ -1718,6 +1722,8 @@ module SnapTrade
|
|
|
1718
1722
|
|
|
1719
1723
|
# List account recent orders (last 24 hours only)
|
|
1720
1724
|
#
|
|
1725
|
+
# **Deprecated.** Use the [list all account recent orders](/reference/Account%20Information/AccountInformation_getAllAccountRecentOrders) endpoint instead.
|
|
1726
|
+
#
|
|
1721
1727
|
# A lightweight endpoint that returns the latest page of orders placed in the last 24 hours in the specified account. For most brokerages, the default page size is 100 meaning the endpoint will return a max of 100 orders.
|
|
1722
1728
|
# This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders
|
|
1723
1729
|
# Differs from /orders in that it is always realtime, and only checks the last 24 hours
|
|
@@ -1736,6 +1742,8 @@ module SnapTrade
|
|
|
1736
1742
|
|
|
1737
1743
|
# List account recent orders (last 24 hours only)
|
|
1738
1744
|
#
|
|
1745
|
+
# **Deprecated.** Use the [list all account recent orders](/reference/Account%20Information/AccountInformation_getAllAccountRecentOrders) endpoint instead.
|
|
1746
|
+
#
|
|
1739
1747
|
# A lightweight endpoint that returns the latest page of orders placed in the last 24 hours in the specified account. For most brokerages, the default page size is 100 meaning the endpoint will return a max of 100 orders.
|
|
1740
1748
|
# This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders
|
|
1741
1749
|
# Differs from /orders in that it is always realtime, and only checks the last 24 hours
|
|
@@ -1752,7 +1760,7 @@ module SnapTrade
|
|
|
1752
1760
|
end
|
|
1753
1761
|
|
|
1754
1762
|
# List account recent orders (last 24 hours only)
|
|
1755
|
-
# A lightweight endpoint that returns the latest page of orders placed in the last 24 hours in the specified account. For most brokerages, the default page size is 100 meaning the endpoint will return a max of 100 orders. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders Differs from /orders in that it is always realtime, and only checks the last 24 hours By default only returns executed orders, but that can be changed by setting *only_executed* to false
|
|
1763
|
+
# **Deprecated.** Use the [list all account recent orders](/reference/Account%20Information/AccountInformation_getAllAccountRecentOrders) endpoint instead. A lightweight endpoint that returns the latest page of orders placed in the last 24 hours in the specified account. For most brokerages, the default page size is 100 meaning the endpoint will return a max of 100 orders. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders Differs from /orders in that it is always realtime, and only checks the last 24 hours By default only returns executed orders, but that can be changed by setting *only_executed* to false
|
|
1756
1764
|
# @param user_id [String]
|
|
1757
1765
|
# @param user_secret [String]
|
|
1758
1766
|
# @param account_id [String]
|
|
@@ -1765,7 +1773,7 @@ module SnapTrade
|
|
|
1765
1773
|
end
|
|
1766
1774
|
|
|
1767
1775
|
# List account recent orders (last 24 hours only)
|
|
1768
|
-
# A lightweight endpoint that returns the latest page of orders placed in the last 24 hours in the specified account. For most brokerages, the default page size is 100 meaning the endpoint will return a max of 100 orders. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders Differs from /orders in that it is always realtime, and only checks the last 24 hours By default only returns executed orders, but that can be changed by setting *only_executed* to false
|
|
1776
|
+
# **Deprecated.** Use the [list all account recent orders](/reference/Account%20Information/AccountInformation_getAllAccountRecentOrders) endpoint instead. A lightweight endpoint that returns the latest page of orders placed in the last 24 hours in the specified account. For most brokerages, the default page size is 100 meaning the endpoint will return a max of 100 orders. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders Differs from /orders in that it is always realtime, and only checks the last 24 hours By default only returns executed orders, but that can be changed by setting *only_executed* to false
|
|
1769
1777
|
# @param user_id [String]
|
|
1770
1778
|
# @param user_secret [String]
|
|
1771
1779
|
# @param account_id [String]
|
|
@@ -1944,7 +1952,7 @@ module SnapTrade
|
|
|
1944
1952
|
|
|
1945
1953
|
# List account holdings
|
|
1946
1954
|
#
|
|
1947
|
-
# **Deprecated.** Use the finer-grained account data endpoints instead: [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getAllAccountPositions), and [orders](/reference/Account%20Information/
|
|
1955
|
+
# **Deprecated.** Use the finer-grained account data endpoints instead: [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getAllAccountPositions), and [orders](/reference/Account%20Information/AccountInformation_getAllAccountOrders).
|
|
1948
1956
|
#
|
|
1949
1957
|
# This endpoint will return HTTP 410 Gone for all customers that sign up after May 11, 2026.
|
|
1950
1958
|
#
|
|
@@ -1969,7 +1977,7 @@ module SnapTrade
|
|
|
1969
1977
|
|
|
1970
1978
|
# List account holdings
|
|
1971
1979
|
#
|
|
1972
|
-
# **Deprecated.** Use the finer-grained account data endpoints instead: [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getAllAccountPositions), and [orders](/reference/Account%20Information/
|
|
1980
|
+
# **Deprecated.** Use the finer-grained account data endpoints instead: [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getAllAccountPositions), and [orders](/reference/Account%20Information/AccountInformation_getAllAccountOrders).
|
|
1973
1981
|
#
|
|
1974
1982
|
# This endpoint will return HTTP 410 Gone for all customers that sign up after May 11, 2026.
|
|
1975
1983
|
#
|
|
@@ -1992,7 +2000,7 @@ module SnapTrade
|
|
|
1992
2000
|
end
|
|
1993
2001
|
|
|
1994
2002
|
# List account holdings
|
|
1995
|
-
# **Deprecated.** Use the finer-grained account data endpoints instead: [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getAllAccountPositions), and [orders](/reference/Account%20Information/
|
|
2003
|
+
# **Deprecated.** Use the finer-grained account data endpoints instead: [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getAllAccountPositions), and [orders](/reference/Account%20Information/AccountInformation_getAllAccountOrders). This endpoint will return HTTP 410 Gone for all customers that sign up after May 11, 2026. Returns a list of balances, positions, and recent orders 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. Concurrent live holdings requests for the same account fail immediately with HTTP 409 and error code `1166`. Wait for the in-flight request to complete before retrying.
|
|
1996
2004
|
# @param account_id [String]
|
|
1997
2005
|
# @param user_id [String]
|
|
1998
2006
|
# @param user_secret [String]
|
|
@@ -2004,7 +2012,7 @@ module SnapTrade
|
|
|
2004
2012
|
end
|
|
2005
2013
|
|
|
2006
2014
|
# List account holdings
|
|
2007
|
-
# **Deprecated.** Use the finer-grained account data endpoints instead: [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getAllAccountPositions), and [orders](/reference/Account%20Information/
|
|
2015
|
+
# **Deprecated.** Use the finer-grained account data endpoints instead: [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getAllAccountPositions), and [orders](/reference/Account%20Information/AccountInformation_getAllAccountOrders). This endpoint will return HTTP 410 Gone for all customers that sign up after May 11, 2026. Returns a list of balances, positions, and recent orders 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. Concurrent live holdings requests for the same account fail immediately with HTTP 409 and error code `1166`. Wait for the in-flight request to complete before retrying.
|
|
2008
2016
|
# @param account_id [String]
|
|
2009
2017
|
# @param user_id [String]
|
|
2010
2018
|
# @param user_secret [String]
|
|
@@ -241,6 +241,8 @@ module SnapTrade
|
|
|
241
241
|
|
|
242
242
|
# Get account order detail (V2)
|
|
243
243
|
#
|
|
244
|
+
# **Deprecated.** Use the [get account order detail](/reference/Account%20Information/AccountInformation_getAccountOrder) endpoint instead.
|
|
245
|
+
#
|
|
244
246
|
# Returns the detail of a single order using the brokerage order ID provided as a path parameter.
|
|
245
247
|
#
|
|
246
248
|
# The V2 order response format includes all legs of the order in the `legs` list field.
|
|
@@ -262,6 +264,8 @@ module SnapTrade
|
|
|
262
264
|
|
|
263
265
|
# Get account order detail (V2)
|
|
264
266
|
#
|
|
267
|
+
# **Deprecated.** Use the [get account order detail](/reference/Account%20Information/AccountInformation_getAccountOrder) endpoint instead.
|
|
268
|
+
#
|
|
265
269
|
# Returns the detail of a single order using the brokerage order ID provided as a path parameter.
|
|
266
270
|
#
|
|
267
271
|
# The V2 order response format includes all legs of the order in the `legs` list field.
|
|
@@ -281,7 +285,7 @@ module SnapTrade
|
|
|
281
285
|
end
|
|
282
286
|
|
|
283
287
|
# Get account order detail (V2)
|
|
284
|
-
# Returns the detail of a single order using the brokerage order ID provided as a path parameter. The V2 order response format includes all legs of the order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
|
288
|
+
# **Deprecated.** Use the [get account order detail](/reference/Account%20Information/AccountInformation_getAccountOrder) endpoint instead. Returns the detail of a single order using the brokerage order ID provided as a path parameter. The V2 order response format includes all legs of the order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
|
285
289
|
# @param account_id [String]
|
|
286
290
|
# @param brokerage_order_id [String]
|
|
287
291
|
# @param user_id [String]
|
|
@@ -294,7 +298,7 @@ module SnapTrade
|
|
|
294
298
|
end
|
|
295
299
|
|
|
296
300
|
# Get account order detail (V2)
|
|
297
|
-
# Returns the detail of a single order using the brokerage order ID provided as a path parameter. The V2 order response format includes all legs of the order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
|
301
|
+
# **Deprecated.** Use the [get account order detail](/reference/Account%20Information/AccountInformation_getAccountOrder) endpoint instead. Returns the detail of a single order using the brokerage order ID provided as a path parameter. The V2 order response format includes all legs of the order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
|
298
302
|
# @param account_id [String]
|
|
299
303
|
# @param brokerage_order_id [String]
|
|
300
304
|
# @param user_id [String]
|
|
@@ -366,6 +370,8 @@ module SnapTrade
|
|
|
366
370
|
|
|
367
371
|
# List account orders v2
|
|
368
372
|
#
|
|
373
|
+
# **Deprecated.** Use the [list all account orders](/reference/Account%20Information/AccountInformation_getAllAccountOrders) endpoint instead.
|
|
374
|
+
#
|
|
369
375
|
# Returns a list of recent orders in the specified account.
|
|
370
376
|
#
|
|
371
377
|
# The V2 order response format will include all legs of each order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg.
|
|
@@ -387,6 +393,8 @@ module SnapTrade
|
|
|
387
393
|
|
|
388
394
|
# List account orders v2
|
|
389
395
|
#
|
|
396
|
+
# **Deprecated.** Use the [list all account orders](/reference/Account%20Information/AccountInformation_getAllAccountOrders) endpoint instead.
|
|
397
|
+
#
|
|
390
398
|
# Returns a list of recent orders in the specified account.
|
|
391
399
|
#
|
|
392
400
|
# The V2 order response format will include all legs of each order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg.
|
|
@@ -406,7 +414,7 @@ module SnapTrade
|
|
|
406
414
|
end
|
|
407
415
|
|
|
408
416
|
# List account orders v2
|
|
409
|
-
# Returns a list of recent orders in the specified account. The V2 order response format will include all legs of each order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. 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.
|
|
417
|
+
# **Deprecated.** Use the [list all account orders](/reference/Account%20Information/AccountInformation_getAllAccountOrders) endpoint instead. Returns a list of recent orders in the specified account. The V2 order response format will include all legs of each order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. 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.
|
|
410
418
|
# @param user_id [String]
|
|
411
419
|
# @param user_secret [String]
|
|
412
420
|
# @param account_id [String]
|
|
@@ -420,7 +428,7 @@ module SnapTrade
|
|
|
420
428
|
end
|
|
421
429
|
|
|
422
430
|
# List account orders v2
|
|
423
|
-
# Returns a list of recent orders in the specified account. The V2 order response format will include all legs of each order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. 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.
|
|
431
|
+
# **Deprecated.** Use the [list all account orders](/reference/Account%20Information/AccountInformation_getAllAccountOrders) endpoint instead. Returns a list of recent orders in the specified account. The V2 order response format will include all legs of each order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. 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.
|
|
424
432
|
# @param user_id [String]
|
|
425
433
|
# @param user_secret [String]
|
|
426
434
|
# @param account_id [String]
|
|
@@ -503,6 +511,8 @@ module SnapTrade
|
|
|
503
511
|
|
|
504
512
|
# List account recent orders (V2, last 24 hours only)
|
|
505
513
|
#
|
|
514
|
+
# **Deprecated.** Use the [list all account recent orders](/reference/Account%20Information/AccountInformation_getAllAccountRecentOrders) endpoint instead.
|
|
515
|
+
#
|
|
506
516
|
# A lightweight endpoint that returns a list of orders executed in the last 24 hours in the specified account using the V2 order format.
|
|
507
517
|
# This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders.
|
|
508
518
|
# Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days.
|
|
@@ -521,6 +531,8 @@ module SnapTrade
|
|
|
521
531
|
|
|
522
532
|
# List account recent orders (V2, last 24 hours only)
|
|
523
533
|
#
|
|
534
|
+
# **Deprecated.** Use the [list all account recent orders](/reference/Account%20Information/AccountInformation_getAllAccountRecentOrders) endpoint instead.
|
|
535
|
+
#
|
|
524
536
|
# A lightweight endpoint that returns a list of orders executed in the last 24 hours in the specified account using the V2 order format.
|
|
525
537
|
# This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders.
|
|
526
538
|
# Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days.
|
|
@@ -537,7 +549,7 @@ module SnapTrade
|
|
|
537
549
|
end
|
|
538
550
|
|
|
539
551
|
# List account recent orders (V2, last 24 hours only)
|
|
540
|
-
# A lightweight endpoint that returns a list of orders executed in the last 24 hours in the specified account using the V2 order format. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders. Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days. By default only returns executed orders, but that can be changed by setting *only_executed* to false.
|
|
552
|
+
# **Deprecated.** Use the [list all account recent orders](/reference/Account%20Information/AccountInformation_getAllAccountRecentOrders) endpoint instead. A lightweight endpoint that returns a list of orders executed in the last 24 hours in the specified account using the V2 order format. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders. Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days. By default only returns executed orders, but that can be changed by setting *only_executed* to false.
|
|
541
553
|
# @param user_id [String]
|
|
542
554
|
# @param user_secret [String]
|
|
543
555
|
# @param account_id [String]
|
|
@@ -550,7 +562,7 @@ module SnapTrade
|
|
|
550
562
|
end
|
|
551
563
|
|
|
552
564
|
# List account recent orders (V2, last 24 hours only)
|
|
553
|
-
# A lightweight endpoint that returns a list of orders executed in the last 24 hours in the specified account using the V2 order format. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders. Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days. By default only returns executed orders, but that can be changed by setting *only_executed* to false.
|
|
565
|
+
# **Deprecated.** Use the [list all account recent orders](/reference/Account%20Information/AccountInformation_getAllAccountRecentOrders) endpoint instead. A lightweight endpoint that returns a list of orders executed in the last 24 hours in the specified account using the V2 order format. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders. Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days. By default only returns executed orders, but that can be changed by setting *only_executed* to false.
|
|
554
566
|
# @param user_id [String]
|
|
555
567
|
# @param user_secret [String]
|
|
556
568
|
# @param account_id [String]
|