snaptrade-typescript-sdk 10.0.4 → 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 +9 -13
- package/dist/index.cjs +9 -13
- package/dist/index.d.cts +8 -12
- package/dist/index.d.mts +8 -12
- package/dist/index.d.ts +8 -12
- package/dist/index.mjs +9 -13
- package/package.json +1 -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.
|
package/dist/index.browser.mjs
CHANGED
|
@@ -4257,12 +4257,11 @@ const AccountInformationApiAxiosParamCreator = function(configuration) {
|
|
|
4257
4257
|
};
|
|
4258
4258
|
},
|
|
4259
4259
|
/**
|
|
4260
|
-
*
|
|
4260
|
+
* 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).
|
|
4261
4261
|
* @summary List accounts
|
|
4262
4262
|
* @param {string} userId
|
|
4263
4263
|
* @param {string} userSecret
|
|
4264
4264
|
* @param {*} [options] Override http request option.
|
|
4265
|
-
* @deprecated
|
|
4266
4265
|
* @throws {RequiredError}
|
|
4267
4266
|
*/
|
|
4268
4267
|
listUserAccounts: async (userId, userSecret, options = {}) => {
|
|
@@ -4517,11 +4516,10 @@ const AccountInformationApiFp = function(configuration) {
|
|
|
4517
4516
|
return createRequestFunction(await localVarAxiosParamCreator.getUserHoldings(requestParameters.accountId, requestParameters.userId, requestParameters.userSecret, options), axios, BASE_PATH, configuration);
|
|
4518
4517
|
},
|
|
4519
4518
|
/**
|
|
4520
|
-
*
|
|
4519
|
+
* 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).
|
|
4521
4520
|
* @summary List accounts
|
|
4522
4521
|
* @param {AccountInformationApiListUserAccountsRequest} requestParameters Request parameters.
|
|
4523
4522
|
* @param {*} [options] Override http request option.
|
|
4524
|
-
* @deprecated
|
|
4525
4523
|
* @throws {RequiredError}
|
|
4526
4524
|
*/
|
|
4527
4525
|
async listUserAccounts(requestParameters, options) {
|
|
@@ -4670,11 +4668,10 @@ const AccountInformationApiFactory = function(configuration, basePath, axios) {
|
|
|
4670
4668
|
return localVarFp.getUserHoldings(requestParameters, options).then((request) => request(axios, basePath));
|
|
4671
4669
|
},
|
|
4672
4670
|
/**
|
|
4673
|
-
*
|
|
4671
|
+
* 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).
|
|
4674
4672
|
* @summary List accounts
|
|
4675
4673
|
* @param {AccountInformationApiListUserAccountsRequest} requestParameters Request parameters.
|
|
4676
4674
|
* @param {*} [options] Override http request option.
|
|
4677
|
-
* @deprecated
|
|
4678
4675
|
* @throws {RequiredError}
|
|
4679
4676
|
*/
|
|
4680
4677
|
listUserAccounts(requestParameters, options) {
|
|
@@ -4835,11 +4832,10 @@ var AccountInformationApiGenerated = class extends BaseAPI {
|
|
|
4835
4832
|
return AccountInformationApiFp(this.configuration).getUserHoldings(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
4836
4833
|
}
|
|
4837
4834
|
/**
|
|
4838
|
-
*
|
|
4835
|
+
* 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).
|
|
4839
4836
|
* @summary List accounts
|
|
4840
4837
|
* @param {AccountInformationApiListUserAccountsRequest} requestParameters Request parameters.
|
|
4841
4838
|
* @param {*} [options] Override http request option.
|
|
4842
|
-
* @deprecated
|
|
4843
4839
|
* @throws {RequiredError}
|
|
4844
4840
|
* @memberof AccountInformationApiGenerated
|
|
4845
4841
|
*/
|
|
@@ -8850,7 +8846,7 @@ const TradingApiAxiosParamCreator = function(configuration) {
|
|
|
8850
8846
|
};
|
|
8851
8847
|
},
|
|
8852
8848
|
/**
|
|
8853
|
-
* 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.
|
|
8849
|
+
* 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.
|
|
8854
8850
|
* @summary Place complex order
|
|
8855
8851
|
* @param {string} accountId The ID of the account to execute the trade on.
|
|
8856
8852
|
* @param {string} userId
|
|
@@ -9521,7 +9517,7 @@ const TradingApiFp = function(configuration) {
|
|
|
9521
9517
|
return createRequestFunction(await localVarAxiosParamCreator.placeBracketOrder(requestParameters.accountId, requestParameters.userId, requestParameters.userSecret, manualTradeFormBracket, options), axios, BASE_PATH, configuration);
|
|
9522
9518
|
},
|
|
9523
9519
|
/**
|
|
9524
|
-
* 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.
|
|
9520
|
+
* 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.
|
|
9525
9521
|
* @summary Place complex order
|
|
9526
9522
|
* @param {TradingApiPlaceComplexOrderRequest} requestParameters Request parameters.
|
|
9527
9523
|
* @param {*} [options] Override http request option.
|
|
@@ -9751,7 +9747,7 @@ const TradingApiFactory = function(configuration, basePath, axios) {
|
|
|
9751
9747
|
return localVarFp.placeBracketOrder(requestParameters, options).then((request) => request(axios, basePath));
|
|
9752
9748
|
},
|
|
9753
9749
|
/**
|
|
9754
|
-
* 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.
|
|
9750
|
+
* 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.
|
|
9755
9751
|
* @summary Place complex order
|
|
9756
9752
|
* @param {TradingApiPlaceComplexOrderRequest} requestParameters Request parameters.
|
|
9757
9753
|
* @param {*} [options] Override http request option.
|
|
@@ -9930,7 +9926,7 @@ var TradingApiGenerated = class extends BaseAPI {
|
|
|
9930
9926
|
return TradingApiFp(this.configuration).placeBracketOrder(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
9931
9927
|
}
|
|
9932
9928
|
/**
|
|
9933
|
-
* 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.
|
|
9929
|
+
* 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.
|
|
9934
9930
|
* @summary Place complex order
|
|
9935
9931
|
* @param {TradingApiPlaceComplexOrderRequest} requestParameters Request parameters.
|
|
9936
9932
|
* @param {*} [options] Override http request option.
|
|
@@ -10293,7 +10289,7 @@ var Configuration = class {
|
|
|
10293
10289
|
this.accessToken = param.accessToken;
|
|
10294
10290
|
this.basePath = param.basePath;
|
|
10295
10291
|
this.baseOptions = param.baseOptions ?? {};
|
|
10296
|
-
this.userAgent = param.userAgent === void 0 ? "Konfig/10.0.
|
|
10292
|
+
this.userAgent = param.userAgent === void 0 ? "Konfig/10.0.5/typescript" : param.userAgent;
|
|
10297
10293
|
this.formDataCtor = param.formDataCtor;
|
|
10298
10294
|
}
|
|
10299
10295
|
/**
|
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
|
/**
|
package/dist/index.d.cts
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.
|
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.
|
package/dist/index.d.ts
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.
|
package/dist/index.mjs
CHANGED
|
@@ -1063,12 +1063,11 @@ const AccountInformationApiAxiosParamCreator = function(configuration) {
|
|
|
1063
1063
|
};
|
|
1064
1064
|
},
|
|
1065
1065
|
/**
|
|
1066
|
-
*
|
|
1066
|
+
* 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).
|
|
1067
1067
|
* @summary List accounts
|
|
1068
1068
|
* @param {string} userId
|
|
1069
1069
|
* @param {string} userSecret
|
|
1070
1070
|
* @param {*} [options] Override http request option.
|
|
1071
|
-
* @deprecated
|
|
1072
1071
|
* @throws {RequiredError}
|
|
1073
1072
|
*/
|
|
1074
1073
|
listUserAccounts: async (userId, userSecret, options = {}) => {
|
|
@@ -1323,11 +1322,10 @@ const AccountInformationApiFp = function(configuration) {
|
|
|
1323
1322
|
return createRequestFunction(await localVarAxiosParamCreator.getUserHoldings(requestParameters.accountId, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration);
|
|
1324
1323
|
},
|
|
1325
1324
|
/**
|
|
1326
|
-
*
|
|
1325
|
+
* 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).
|
|
1327
1326
|
* @summary List accounts
|
|
1328
1327
|
* @param {AccountInformationApiListUserAccountsRequest} requestParameters Request parameters.
|
|
1329
1328
|
* @param {*} [options] Override http request option.
|
|
1330
|
-
* @deprecated
|
|
1331
1329
|
* @throws {RequiredError}
|
|
1332
1330
|
*/
|
|
1333
1331
|
async listUserAccounts(requestParameters, options) {
|
|
@@ -1476,11 +1474,10 @@ const AccountInformationApiFactory = function(configuration, basePath, axios) {
|
|
|
1476
1474
|
return localVarFp.getUserHoldings(requestParameters, options).then((request) => request(axios, basePath));
|
|
1477
1475
|
},
|
|
1478
1476
|
/**
|
|
1479
|
-
*
|
|
1477
|
+
* 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).
|
|
1480
1478
|
* @summary List accounts
|
|
1481
1479
|
* @param {AccountInformationApiListUserAccountsRequest} requestParameters Request parameters.
|
|
1482
1480
|
* @param {*} [options] Override http request option.
|
|
1483
|
-
* @deprecated
|
|
1484
1481
|
* @throws {RequiredError}
|
|
1485
1482
|
*/
|
|
1486
1483
|
listUserAccounts(requestParameters, options) {
|
|
@@ -1641,11 +1638,10 @@ var AccountInformationApiGenerated = class extends BaseAPI {
|
|
|
1641
1638
|
return AccountInformationApiFp(this.configuration).getUserHoldings(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
1642
1639
|
}
|
|
1643
1640
|
/**
|
|
1644
|
-
*
|
|
1641
|
+
* 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).
|
|
1645
1642
|
* @summary List accounts
|
|
1646
1643
|
* @param {AccountInformationApiListUserAccountsRequest} requestParameters Request parameters.
|
|
1647
1644
|
* @param {*} [options] Override http request option.
|
|
1648
|
-
* @deprecated
|
|
1649
1645
|
* @throws {RequiredError}
|
|
1650
1646
|
* @memberof AccountInformationApiGenerated
|
|
1651
1647
|
*/
|
|
@@ -5656,7 +5652,7 @@ const TradingApiAxiosParamCreator = function(configuration) {
|
|
|
5656
5652
|
};
|
|
5657
5653
|
},
|
|
5658
5654
|
/**
|
|
5659
|
-
* 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.
|
|
5655
|
+
* 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.
|
|
5660
5656
|
* @summary Place complex order
|
|
5661
5657
|
* @param {string} accountId The ID of the account to execute the trade on.
|
|
5662
5658
|
* @param {string} userId
|
|
@@ -6327,7 +6323,7 @@ const TradingApiFp = function(configuration) {
|
|
|
6327
6323
|
return createRequestFunction(await localVarAxiosParamCreator.placeBracketOrder(requestParameters.accountId, requestParameters.userId, requestParameters.userSecret, manualTradeFormBracket, options), globalAxios, BASE_PATH, configuration);
|
|
6328
6324
|
},
|
|
6329
6325
|
/**
|
|
6330
|
-
* 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.
|
|
6326
|
+
* 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.
|
|
6331
6327
|
* @summary Place complex order
|
|
6332
6328
|
* @param {TradingApiPlaceComplexOrderRequest} requestParameters Request parameters.
|
|
6333
6329
|
* @param {*} [options] Override http request option.
|
|
@@ -6557,7 +6553,7 @@ const TradingApiFactory = function(configuration, basePath, axios) {
|
|
|
6557
6553
|
return localVarFp.placeBracketOrder(requestParameters, options).then((request) => request(axios, basePath));
|
|
6558
6554
|
},
|
|
6559
6555
|
/**
|
|
6560
|
-
* 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.
|
|
6556
|
+
* 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.
|
|
6561
6557
|
* @summary Place complex order
|
|
6562
6558
|
* @param {TradingApiPlaceComplexOrderRequest} requestParameters Request parameters.
|
|
6563
6559
|
* @param {*} [options] Override http request option.
|
|
@@ -6736,7 +6732,7 @@ var TradingApiGenerated = class extends BaseAPI {
|
|
|
6736
6732
|
return TradingApiFp(this.configuration).placeBracketOrder(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
6737
6733
|
}
|
|
6738
6734
|
/**
|
|
6739
|
-
* 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.
|
|
6735
|
+
* 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.
|
|
6740
6736
|
* @summary Place complex order
|
|
6741
6737
|
* @param {TradingApiPlaceComplexOrderRequest} requestParameters Request parameters.
|
|
6742
6738
|
* @param {*} [options] Override http request option.
|
|
@@ -7099,7 +7095,7 @@ var Configuration = class {
|
|
|
7099
7095
|
this.accessToken = param.accessToken;
|
|
7100
7096
|
this.basePath = param.basePath;
|
|
7101
7097
|
this.baseOptions = param.baseOptions ?? {};
|
|
7102
|
-
this.userAgent = param.userAgent === void 0 ? "Konfig/10.0.
|
|
7098
|
+
this.userAgent = param.userAgent === void 0 ? "Konfig/10.0.5/typescript" : param.userAgent;
|
|
7103
7099
|
this.formDataCtor = param.formDataCtor;
|
|
7104
7100
|
}
|
|
7105
7101
|
/**
|