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/dist/index.d.mts
CHANGED
|
@@ -6807,12 +6807,11 @@ declare const AccountInformationApiAxiosParamCreator: (configuration?: Configura
|
|
|
6807
6807
|
*/
|
|
6808
6808
|
getUserHoldings: (accountId: string, userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
6809
6809
|
/**
|
|
6810
|
-
*
|
|
6810
|
+
* 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_listBrokerageAuthorizationAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
6811
6811
|
* @summary List accounts
|
|
6812
6812
|
* @param {string} userId
|
|
6813
6813
|
* @param {string} userSecret
|
|
6814
6814
|
* @param {*} [options] Override http request option.
|
|
6815
|
-
* @deprecated
|
|
6816
6815
|
* @throws {RequiredError}
|
|
6817
6816
|
*/
|
|
6818
6817
|
listUserAccounts: (userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
@@ -6932,11 +6931,10 @@ declare const AccountInformationApiFp: (configuration?: Configuration) => {
|
|
|
6932
6931
|
*/
|
|
6933
6932
|
getUserHoldings(requestParameters: AccountInformationApiGetUserHoldingsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountHoldingsAccount>>;
|
|
6934
6933
|
/**
|
|
6935
|
-
*
|
|
6934
|
+
* 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_listBrokerageAuthorizationAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
6936
6935
|
* @summary List accounts
|
|
6937
6936
|
* @param {AccountInformationApiListUserAccountsRequest} requestParameters Request parameters.
|
|
6938
6937
|
* @param {*} [options] Override http request option.
|
|
6939
|
-
* @deprecated
|
|
6940
6938
|
* @throws {RequiredError}
|
|
6941
6939
|
*/
|
|
6942
6940
|
listUserAccounts(requestParameters: AccountInformationApiListUserAccountsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Account>>>;
|
|
@@ -7054,11 +7052,10 @@ declare const AccountInformationApiFactory: (configuration?: Configuration, base
|
|
|
7054
7052
|
*/
|
|
7055
7053
|
getUserHoldings(requestParameters: AccountInformationApiGetUserHoldingsRequest, options?: AxiosRequestConfig): AxiosPromise<AccountHoldingsAccount>;
|
|
7056
7054
|
/**
|
|
7057
|
-
*
|
|
7055
|
+
* 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_listBrokerageAuthorizationAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
7058
7056
|
* @summary List accounts
|
|
7059
7057
|
* @param {AccountInformationApiListUserAccountsRequest} requestParameters Request parameters.
|
|
7060
7058
|
* @param {*} [options] Override http request option.
|
|
7061
|
-
* @deprecated
|
|
7062
7059
|
* @throws {RequiredError}
|
|
7063
7060
|
*/
|
|
7064
7061
|
listUserAccounts(requestParameters: AccountInformationApiListUserAccountsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<Account>>;
|
|
@@ -7588,11 +7585,10 @@ declare class AccountInformationApiGenerated extends BaseAPI {
|
|
|
7588
7585
|
*/
|
|
7589
7586
|
getUserHoldings(requestParameters: AccountInformationApiGetUserHoldingsRequest, options?: AxiosRequestConfig): Promise<_$axios.AxiosResponse<AccountHoldingsAccount, any, {}>>;
|
|
7590
7587
|
/**
|
|
7591
|
-
*
|
|
7588
|
+
* 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_listBrokerageAuthorizationAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
7592
7589
|
* @summary List accounts
|
|
7593
7590
|
* @param {AccountInformationApiListUserAccountsRequest} requestParameters Request parameters.
|
|
7594
7591
|
* @param {*} [options] Override http request option.
|
|
7595
|
-
* @deprecated
|
|
7596
7592
|
* @throws {RequiredError}
|
|
7597
7593
|
* @memberof AccountInformationApiGenerated
|
|
7598
7594
|
*/
|
|
@@ -9580,7 +9576,7 @@ declare const TradingApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
|
9580
9576
|
*/
|
|
9581
9577
|
placeBracketOrder: (accountId: string, userId: string, userSecret: string, manualTradeFormBracket: ManualTradeFormBracket, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
9582
9578
|
/**
|
|
9583
|
-
* Places a complex conditional order (OCO, OTO, or OTOCO). Disabled by default — contact support to enable. Only supported on certain brokerages. - **OCO** (One Cancels the Other): Two peer orders; when one fills the other is cancelled. - **OTO** (One Triggers the Other): A trigger order that, when filled, activates a conditional order. - **OTOCO** (One Triggers a One Cancels the Other): A trigger order that, when filled, activates an OCO pair of two peer orders.
|
|
9579
|
+
* Places a complex conditional order (OCO, OTO, or OTOCO). Disabled by default — contact support to enable. Only supported on certain brokerages. 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. - **OCO** (One Cancels the Other): Two peer orders; when one fills the other is cancelled. - **OTO** (One Triggers the Other): A trigger order that, when filled, activates a conditional order. - **OTOCO** (One Triggers a One Cancels the Other): A trigger order that, when filled, activates an OCO pair of two peer orders.
|
|
9584
9580
|
* @summary Place complex order
|
|
9585
9581
|
* @param {string} accountId The ID of the account to execute the trade on.
|
|
9586
9582
|
* @param {string} userId
|
|
@@ -9740,7 +9736,7 @@ declare const TradingApiFp: (configuration?: Configuration) => {
|
|
|
9740
9736
|
*/
|
|
9741
9737
|
placeBracketOrder(requestParameters: TradingApiPlaceBracketOrderRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountOrderRecord>>;
|
|
9742
9738
|
/**
|
|
9743
|
-
* Places a complex conditional order (OCO, OTO, or OTOCO). Disabled by default — contact support to enable. Only supported on certain brokerages. - **OCO** (One Cancels the Other): Two peer orders; when one fills the other is cancelled. - **OTO** (One Triggers the Other): A trigger order that, when filled, activates a conditional order. - **OTOCO** (One Triggers a One Cancels the Other): A trigger order that, when filled, activates an OCO pair of two peer orders.
|
|
9739
|
+
* Places a complex conditional order (OCO, OTO, or OTOCO). Disabled by default — contact support to enable. Only supported on certain brokerages. 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. - **OCO** (One Cancels the Other): Two peer orders; when one fills the other is cancelled. - **OTO** (One Triggers the Other): A trigger order that, when filled, activates a conditional order. - **OTOCO** (One Triggers a One Cancels the Other): A trigger order that, when filled, activates an OCO pair of two peer orders.
|
|
9744
9740
|
* @summary Place complex order
|
|
9745
9741
|
* @param {TradingApiPlaceComplexOrderRequest} requestParameters Request parameters.
|
|
9746
9742
|
* @param {*} [options] Override http request option.
|
|
@@ -9876,7 +9872,7 @@ declare const TradingApiFactory: (configuration?: Configuration, basePath?: stri
|
|
|
9876
9872
|
*/
|
|
9877
9873
|
placeBracketOrder(requestParameters: TradingApiPlaceBracketOrderRequest, options?: AxiosRequestConfig): AxiosPromise<AccountOrderRecord>;
|
|
9878
9874
|
/**
|
|
9879
|
-
* Places a complex conditional order (OCO, OTO, or OTOCO). Disabled by default — contact support to enable. Only supported on certain brokerages. - **OCO** (One Cancels the Other): Two peer orders; when one fills the other is cancelled. - **OTO** (One Triggers the Other): A trigger order that, when filled, activates a conditional order. - **OTOCO** (One Triggers a One Cancels the Other): A trigger order that, when filled, activates an OCO pair of two peer orders.
|
|
9875
|
+
* Places a complex conditional order (OCO, OTO, or OTOCO). Disabled by default — contact support to enable. Only supported on certain brokerages. 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. - **OCO** (One Cancels the Other): Two peer orders; when one fills the other is cancelled. - **OTO** (One Triggers the Other): A trigger order that, when filled, activates a conditional order. - **OTOCO** (One Triggers a One Cancels the Other): A trigger order that, when filled, activates an OCO pair of two peer orders.
|
|
9880
9876
|
* @summary Place complex order
|
|
9881
9877
|
* @param {TradingApiPlaceComplexOrderRequest} requestParameters Request parameters.
|
|
9882
9878
|
* @param {*} [options] Override http request option.
|
|
@@ -10446,7 +10442,7 @@ declare class TradingApiGenerated extends BaseAPI {
|
|
|
10446
10442
|
*/
|
|
10447
10443
|
placeBracketOrder(requestParameters: TradingApiPlaceBracketOrderRequest, options?: AxiosRequestConfig): Promise<_$axios.AxiosResponse<AccountOrderRecord, any, {}>>;
|
|
10448
10444
|
/**
|
|
10449
|
-
* Places a complex conditional order (OCO, OTO, or OTOCO). Disabled by default — contact support to enable. Only supported on certain brokerages. - **OCO** (One Cancels the Other): Two peer orders; when one fills the other is cancelled. - **OTO** (One Triggers the Other): A trigger order that, when filled, activates a conditional order. - **OTOCO** (One Triggers a One Cancels the Other): A trigger order that, when filled, activates an OCO pair of two peer orders.
|
|
10445
|
+
* Places a complex conditional order (OCO, OTO, or OTOCO). Disabled by default — contact support to enable. Only supported on certain brokerages. 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. - **OCO** (One Cancels the Other): Two peer orders; when one fills the other is cancelled. - **OTO** (One Triggers the Other): A trigger order that, when filled, activates a conditional order. - **OTOCO** (One Triggers a One Cancels the Other): A trigger order that, when filled, activates an OCO pair of two peer orders.
|
|
10450
10446
|
* @summary Place complex order
|
|
10451
10447
|
* @param {TradingApiPlaceComplexOrderRequest} requestParameters Request parameters.
|
|
10452
10448
|
* @param {*} [options] Override http request option.
|