snaptrade-typescript-sdk 10.0.3 → 10.0.5
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.
- package/README.md +3 -5
- package/dist/index.browser.mjs +10332 -0
- package/dist/index.cjs +9 -13
- package/dist/index.d.cts +10802 -1
- package/dist/index.d.mts +8 -12
- package/dist/index.d.ts +10802 -1
- package/dist/index.mjs +9 -13
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Connect brokerage accounts to your app for live positions and trading
|
|
8
8
|
|
|
9
|
-
[](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/10.0.5)
|
|
10
10
|
[](https://snaptrade.com/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
@@ -771,13 +771,10 @@ const getUserHoldingsResponse =
|
|
|
771
771
|
|
|
772
772
|
|
|
773
773
|
### `snaptrade.accountInformation.listUserAccounts`<a id="snaptradeaccountinformationlistuseraccounts"></a>
|
|
774
|
-

|
|
775
|
-
|
|
776
|
-
**Deprecated, please use the [list accounts for a connection endpoint](/reference/Connections/Connections_listBrokerageAuthorizationAccounts) instead.**
|
|
777
774
|
|
|
778
775
|
Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user.
|
|
779
776
|
|
|
780
|
-
This endpoint returns Daily data regardless of the customer's plan. Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. To get real-time data on Pay as you Go / Real-time, use the connection
|
|
777
|
+
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_listBrokerageAuthorizationAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
781
778
|
|
|
782
779
|
|
|
783
780
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
@@ -2542,6 +2539,7 @@ Number of shares for the order. This can be a decimal for fractional orders. Mus
|
|
|
2542
2539
|
|
|
2543
2540
|
Places a complex conditional order (OCO, OTO, or OTOCO). Disabled by default — contact support to enable.
|
|
2544
2541
|
Only supported on certain brokerages.
|
|
2542
|
+
Please refer to the [brokerage trading support page](https://support.snaptrade.com/brokerages) for details on which brokerages support complex orders and which types they support.
|
|
2545
2543
|
|
|
2546
2544
|
- **OCO** (One Cancels the Other): Two peer orders; when one fills the other is cancelled.
|
|
2547
2545
|
- **OTO** (One Triggers the Other): A trigger order that, when filled, activates a conditional order.
|