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.cjs
CHANGED
|
@@ -1086,12 +1086,11 @@ const AccountInformationApiAxiosParamCreator = function(configuration) {
|
|
|
1086
1086
|
};
|
|
1087
1087
|
},
|
|
1088
1088
|
/**
|
|
1089
|
-
*
|
|
1089
|
+
* 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).
|
|
1090
1090
|
* @summary List accounts
|
|
1091
1091
|
* @param {string} userId
|
|
1092
1092
|
* @param {string} userSecret
|
|
1093
1093
|
* @param {*} [options] Override http request option.
|
|
1094
|
-
* @deprecated
|
|
1095
1094
|
* @throws {RequiredError}
|
|
1096
1095
|
*/
|
|
1097
1096
|
listUserAccounts: async (userId, userSecret, options = {}) => {
|
|
@@ -1346,11 +1345,10 @@ const AccountInformationApiFp = function(configuration) {
|
|
|
1346
1345
|
return createRequestFunction(await localVarAxiosParamCreator.getUserHoldings(requestParameters.accountId, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration);
|
|
1347
1346
|
},
|
|
1348
1347
|
/**
|
|
1349
|
-
*
|
|
1348
|
+
* 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).
|
|
1350
1349
|
* @summary List accounts
|
|
1351
1350
|
* @param {AccountInformationApiListUserAccountsRequest} requestParameters Request parameters.
|
|
1352
1351
|
* @param {*} [options] Override http request option.
|
|
1353
|
-
* @deprecated
|
|
1354
1352
|
* @throws {RequiredError}
|
|
1355
1353
|
*/
|
|
1356
1354
|
async listUserAccounts(requestParameters, options) {
|
|
@@ -1499,11 +1497,10 @@ const AccountInformationApiFactory = function(configuration, basePath, axios$9)
|
|
|
1499
1497
|
return localVarFp.getUserHoldings(requestParameters, options).then((request) => request(axios$9, basePath));
|
|
1500
1498
|
},
|
|
1501
1499
|
/**
|
|
1502
|
-
*
|
|
1500
|
+
* 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).
|
|
1503
1501
|
* @summary List accounts
|
|
1504
1502
|
* @param {AccountInformationApiListUserAccountsRequest} requestParameters Request parameters.
|
|
1505
1503
|
* @param {*} [options] Override http request option.
|
|
1506
|
-
* @deprecated
|
|
1507
1504
|
* @throws {RequiredError}
|
|
1508
1505
|
*/
|
|
1509
1506
|
listUserAccounts(requestParameters, options) {
|
|
@@ -1664,11 +1661,10 @@ var AccountInformationApiGenerated = class extends BaseAPI {
|
|
|
1664
1661
|
return AccountInformationApiFp(this.configuration).getUserHoldings(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
1665
1662
|
}
|
|
1666
1663
|
/**
|
|
1667
|
-
*
|
|
1664
|
+
* 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).
|
|
1668
1665
|
* @summary List accounts
|
|
1669
1666
|
* @param {AccountInformationApiListUserAccountsRequest} requestParameters Request parameters.
|
|
1670
1667
|
* @param {*} [options] Override http request option.
|
|
1671
|
-
* @deprecated
|
|
1672
1668
|
* @throws {RequiredError}
|
|
1673
1669
|
* @memberof AccountInformationApiGenerated
|
|
1674
1670
|
*/
|
|
@@ -5679,7 +5675,7 @@ const TradingApiAxiosParamCreator = function(configuration) {
|
|
|
5679
5675
|
};
|
|
5680
5676
|
},
|
|
5681
5677
|
/**
|
|
5682
|
-
* 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.
|
|
5678
|
+
* 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.
|
|
5683
5679
|
* @summary Place complex order
|
|
5684
5680
|
* @param {string} accountId The ID of the account to execute the trade on.
|
|
5685
5681
|
* @param {string} userId
|
|
@@ -6350,7 +6346,7 @@ const TradingApiFp = function(configuration) {
|
|
|
6350
6346
|
return createRequestFunction(await localVarAxiosParamCreator.placeBracketOrder(requestParameters.accountId, requestParameters.userId, requestParameters.userSecret, manualTradeFormBracket, options), axios.default, BASE_PATH, configuration);
|
|
6351
6347
|
},
|
|
6352
6348
|
/**
|
|
6353
|
-
* 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.
|
|
6349
|
+
* 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.
|
|
6354
6350
|
* @summary Place complex order
|
|
6355
6351
|
* @param {TradingApiPlaceComplexOrderRequest} requestParameters Request parameters.
|
|
6356
6352
|
* @param {*} [options] Override http request option.
|
|
@@ -6580,7 +6576,7 @@ const TradingApiFactory = function(configuration, basePath, axios$2) {
|
|
|
6580
6576
|
return localVarFp.placeBracketOrder(requestParameters, options).then((request) => request(axios$2, basePath));
|
|
6581
6577
|
},
|
|
6582
6578
|
/**
|
|
6583
|
-
* 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.
|
|
6579
|
+
* 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.
|
|
6584
6580
|
* @summary Place complex order
|
|
6585
6581
|
* @param {TradingApiPlaceComplexOrderRequest} requestParameters Request parameters.
|
|
6586
6582
|
* @param {*} [options] Override http request option.
|
|
@@ -6759,7 +6755,7 @@ var TradingApiGenerated = class extends BaseAPI {
|
|
|
6759
6755
|
return TradingApiFp(this.configuration).placeBracketOrder(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
6760
6756
|
}
|
|
6761
6757
|
/**
|
|
6762
|
-
* 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.
|
|
6758
|
+
* 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.
|
|
6763
6759
|
* @summary Place complex order
|
|
6764
6760
|
* @param {TradingApiPlaceComplexOrderRequest} requestParameters Request parameters.
|
|
6765
6761
|
* @param {*} [options] Override http request option.
|
|
@@ -7122,7 +7118,7 @@ var Configuration = class {
|
|
|
7122
7118
|
this.accessToken = param.accessToken;
|
|
7123
7119
|
this.basePath = param.basePath;
|
|
7124
7120
|
this.baseOptions = param.baseOptions ?? {};
|
|
7125
|
-
this.userAgent = param.userAgent === void 0 ? "Konfig/10.0.
|
|
7121
|
+
this.userAgent = param.userAgent === void 0 ? "Konfig/10.0.5/typescript" : param.userAgent;
|
|
7126
7122
|
this.formDataCtor = param.formDataCtor;
|
|
7127
7123
|
}
|
|
7128
7124
|
/**
|