snaptrade-typescript-sdk 12.2.3 → 12.2.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 +1391 -164
- package/dist/browser.umd.js +1 -1
- package/dist/index.cjs +299 -250
- package/dist/index.d.cts +250 -152
- package/dist/index.d.mts +250 -152
- package/dist/index.d.ts +250 -152
- package/dist/index.mjs +299 -250
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1248,7 +1248,8 @@ const AccountInformationApiFp = function(configuration) {
|
|
|
1248
1248
|
* @param {*} [options] Override http request option.
|
|
1249
1249
|
* @throws {RequiredError}
|
|
1250
1250
|
*/
|
|
1251
|
-
async getAccountActivities(
|
|
1251
|
+
async getAccountActivities(...args) {
|
|
1252
|
+
const [requestParameters = {}, options] = args;
|
|
1252
1253
|
return createRequestFunction(await localVarAxiosParamCreator.getAccountActivities(requestParameters.accountId, requestParameters.startDate, requestParameters.endDate, requestParameters.offset, requestParameters.limit, requestParameters.type, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
1253
1254
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
1254
1255
|
requestSigningByAuthMode: {
|
|
@@ -1270,7 +1271,8 @@ const AccountInformationApiFp = function(configuration) {
|
|
|
1270
1271
|
* @param {*} [options] Override http request option.
|
|
1271
1272
|
* @throws {RequiredError}
|
|
1272
1273
|
*/
|
|
1273
|
-
async getAccountBalanceHistory(
|
|
1274
|
+
async getAccountBalanceHistory(...args) {
|
|
1275
|
+
const [requestParameters = {}, options] = args;
|
|
1274
1276
|
return createRequestFunction(await localVarAxiosParamCreator.getAccountBalanceHistory(requestParameters.accountId, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
1275
1277
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
1276
1278
|
requestSigningByAuthMode: {
|
|
@@ -1292,7 +1294,8 @@ const AccountInformationApiFp = function(configuration) {
|
|
|
1292
1294
|
* @param {*} [options] Override http request option.
|
|
1293
1295
|
* @throws {RequiredError}
|
|
1294
1296
|
*/
|
|
1295
|
-
async getAllAccountPositions(
|
|
1297
|
+
async getAllAccountPositions(...args) {
|
|
1298
|
+
const [requestParameters = {}, options] = args;
|
|
1296
1299
|
return createRequestFunction(await localVarAxiosParamCreator.getAllAccountPositions(requestParameters.accountId, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
1297
1300
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
1298
1301
|
requestSigningByAuthMode: {
|
|
@@ -1314,7 +1317,8 @@ const AccountInformationApiFp = function(configuration) {
|
|
|
1314
1317
|
* @param {*} [options] Override http request option.
|
|
1315
1318
|
* @throws {RequiredError}
|
|
1316
1319
|
*/
|
|
1317
|
-
async getUserAccountBalance(
|
|
1320
|
+
async getUserAccountBalance(...args) {
|
|
1321
|
+
const [requestParameters = {}, options] = args;
|
|
1318
1322
|
return createRequestFunction(await localVarAxiosParamCreator.getUserAccountBalance(requestParameters.accountId, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
1319
1323
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
1320
1324
|
requestSigningByAuthMode: {
|
|
@@ -1336,7 +1340,8 @@ const AccountInformationApiFp = function(configuration) {
|
|
|
1336
1340
|
* @param {*} [options] Override http request option.
|
|
1337
1341
|
* @throws {RequiredError}
|
|
1338
1342
|
*/
|
|
1339
|
-
async getUserAccountDetails(
|
|
1343
|
+
async getUserAccountDetails(...args) {
|
|
1344
|
+
const [requestParameters = {}, options] = args;
|
|
1340
1345
|
return createRequestFunction(await localVarAxiosParamCreator.getUserAccountDetails(requestParameters.accountId, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
1341
1346
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
1342
1347
|
requestSigningByAuthMode: {
|
|
@@ -1358,7 +1363,8 @@ const AccountInformationApiFp = function(configuration) {
|
|
|
1358
1363
|
* @param {*} [options] Override http request option.
|
|
1359
1364
|
* @throws {RequiredError}
|
|
1360
1365
|
*/
|
|
1361
|
-
async getUserAccountOrderDetail(
|
|
1366
|
+
async getUserAccountOrderDetail(...args) {
|
|
1367
|
+
const [requestParameters = {}, options] = args;
|
|
1362
1368
|
const accountInformationGetUserAccountOrderDetailRequest = { brokerage_order_id: requestParameters.brokerage_order_id };
|
|
1363
1369
|
return createRequestFunction(await localVarAxiosParamCreator.getUserAccountOrderDetail(requestParameters.accountId, accountInformationGetUserAccountOrderDetailRequest, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
1364
1370
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
@@ -1381,7 +1387,8 @@ const AccountInformationApiFp = function(configuration) {
|
|
|
1381
1387
|
* @param {*} [options] Override http request option.
|
|
1382
1388
|
* @throws {RequiredError}
|
|
1383
1389
|
*/
|
|
1384
|
-
async getUserAccountOrders(
|
|
1390
|
+
async getUserAccountOrders(...args) {
|
|
1391
|
+
const [requestParameters = {}, options] = args;
|
|
1385
1392
|
return createRequestFunction(await localVarAxiosParamCreator.getUserAccountOrders(requestParameters.accountId, requestParameters.state, requestParameters.days, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
1386
1393
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
1387
1394
|
requestSigningByAuthMode: {
|
|
@@ -1403,7 +1410,8 @@ const AccountInformationApiFp = function(configuration) {
|
|
|
1403
1410
|
* @param {*} [options] Override http request option.
|
|
1404
1411
|
* @throws {RequiredError}
|
|
1405
1412
|
*/
|
|
1406
|
-
async getUserAccountRecentOrders(
|
|
1413
|
+
async getUserAccountRecentOrders(...args) {
|
|
1414
|
+
const [requestParameters = {}, options] = args;
|
|
1407
1415
|
return createRequestFunction(await localVarAxiosParamCreator.getUserAccountRecentOrders(requestParameters.accountId, requestParameters.onlyExecuted, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
1408
1416
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
1409
1417
|
requestSigningByAuthMode: {
|
|
@@ -1425,7 +1433,8 @@ const AccountInformationApiFp = function(configuration) {
|
|
|
1425
1433
|
* @param {*} [options] Override http request option.
|
|
1426
1434
|
* @throws {RequiredError}
|
|
1427
1435
|
*/
|
|
1428
|
-
async getUserAccountReturnRates(
|
|
1436
|
+
async getUserAccountReturnRates(...args) {
|
|
1437
|
+
const [requestParameters = {}, options] = args;
|
|
1429
1438
|
return createRequestFunction(await localVarAxiosParamCreator.getUserAccountReturnRates(requestParameters.accountId, requestParameters.timeframes, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
1430
1439
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
1431
1440
|
requestSigningByAuthMode: {
|
|
@@ -1448,7 +1457,8 @@ const AccountInformationApiFp = function(configuration) {
|
|
|
1448
1457
|
* @deprecated
|
|
1449
1458
|
* @throws {RequiredError}
|
|
1450
1459
|
*/
|
|
1451
|
-
async getUserHoldings(
|
|
1460
|
+
async getUserHoldings(...args) {
|
|
1461
|
+
const [requestParameters = {}, options] = args;
|
|
1452
1462
|
return createRequestFunction(await localVarAxiosParamCreator.getUserHoldings(requestParameters.accountId, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
1453
1463
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
1454
1464
|
requestSigningByAuthMode: {
|
|
@@ -1470,7 +1480,8 @@ const AccountInformationApiFp = function(configuration) {
|
|
|
1470
1480
|
* @param {*} [options] Override http request option.
|
|
1471
1481
|
* @throws {RequiredError}
|
|
1472
1482
|
*/
|
|
1473
|
-
async listUserAccounts(
|
|
1483
|
+
async listUserAccounts(...args) {
|
|
1484
|
+
const [requestParameters = {}, options] = args;
|
|
1474
1485
|
return createRequestFunction(await localVarAxiosParamCreator.listUserAccounts(requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
1475
1486
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
1476
1487
|
requestSigningByAuthMode: {
|
|
@@ -1492,7 +1503,8 @@ const AccountInformationApiFp = function(configuration) {
|
|
|
1492
1503
|
* @param {*} [options] Override http request option.
|
|
1493
1504
|
* @throws {RequiredError}
|
|
1494
1505
|
*/
|
|
1495
|
-
async updateUserAccount(
|
|
1506
|
+
async updateUserAccount(...args) {
|
|
1507
|
+
const [requestParameters = {}, options] = args;
|
|
1496
1508
|
return createRequestFunction(await localVarAxiosParamCreator.updateUserAccount(requestParameters.accountId, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
1497
1509
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
1498
1510
|
requestSigningByAuthMode: {
|
|
@@ -1523,8 +1535,8 @@ const AccountInformationApiFactory = function(configuration, basePath, axios$8)
|
|
|
1523
1535
|
* @param {*} [options] Override http request option.
|
|
1524
1536
|
* @throws {RequiredError}
|
|
1525
1537
|
*/
|
|
1526
|
-
getAccountActivities(
|
|
1527
|
-
return localVarFp.getAccountActivities(
|
|
1538
|
+
getAccountActivities(...args) {
|
|
1539
|
+
return localVarFp.getAccountActivities(...args).then((request) => request(axios$8, basePath));
|
|
1528
1540
|
},
|
|
1529
1541
|
/**
|
|
1530
1542
|
* An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year. Enable this feature for free in the Add-on section of the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)
|
|
@@ -1533,8 +1545,8 @@ const AccountInformationApiFactory = function(configuration, basePath, axios$8)
|
|
|
1533
1545
|
* @param {*} [options] Override http request option.
|
|
1534
1546
|
* @throws {RequiredError}
|
|
1535
1547
|
*/
|
|
1536
|
-
getAccountBalanceHistory(
|
|
1537
|
-
return localVarFp.getAccountBalanceHistory(
|
|
1548
|
+
getAccountBalanceHistory(...args) {
|
|
1549
|
+
return localVarFp.getAccountBalanceHistory(...args).then((request) => request(axios$8, basePath));
|
|
1538
1550
|
},
|
|
1539
1551
|
/**
|
|
1540
1552
|
* Returns a list of all positions in the specified account. The `results` list can contain multiple instrument types in the same response, including stocks, ADRs, ETFs, mutual funds, closed-end funds, bonds, crypto, futures, option positions, and CFD positions. Use the `instrument.kind` discriminator to determine the schema for each position\'s `instrument`. Positions counted in account cash balance or buying power include `cash_equivalent: true`. `stock`, `adr`, `etf`, `mutualfund`, and `crypto` positions may include `tax_lots` when tax lot data is enabled for the account. To see which institutions support tax lot data, please see our [supported institutions doc](https://support.snaptrade.com/brokerages). If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
@@ -1543,8 +1555,8 @@ const AccountInformationApiFactory = function(configuration, basePath, axios$8)
|
|
|
1543
1555
|
* @param {*} [options] Override http request option.
|
|
1544
1556
|
* @throws {RequiredError}
|
|
1545
1557
|
*/
|
|
1546
|
-
getAllAccountPositions(
|
|
1547
|
-
return localVarFp.getAllAccountPositions(
|
|
1558
|
+
getAllAccountPositions(...args) {
|
|
1559
|
+
return localVarFp.getAllAccountPositions(...args).then((request) => request(axios$8, basePath));
|
|
1548
1560
|
},
|
|
1549
1561
|
/**
|
|
1550
1562
|
* Returns a list of balances for the account. Each element of the list has a distinct currency. Some brokerages like Questrade [allows holding multiple currencies in the same account](https://www.questrade.com/learning/questrade-basics/balances-and-reports/understanding-your-account-balances). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access: - If you do, this endpoint returns real-time data. - If you don\'t, Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
@@ -1553,8 +1565,8 @@ const AccountInformationApiFactory = function(configuration, basePath, axios$8)
|
|
|
1553
1565
|
* @param {*} [options] Override http request option.
|
|
1554
1566
|
* @throws {RequiredError}
|
|
1555
1567
|
*/
|
|
1556
|
-
getUserAccountBalance(
|
|
1557
|
-
return localVarFp.getUserAccountBalance(
|
|
1568
|
+
getUserAccountBalance(...args) {
|
|
1569
|
+
return localVarFp.getUserAccountBalance(...args).then((request) => request(axios$8, basePath));
|
|
1558
1570
|
},
|
|
1559
1571
|
/**
|
|
1560
1572
|
* Returns account detail known to SnapTrade for the specified account. Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access: - If you do, this endpoint returns real-time data. - If you don\'t, Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
@@ -1563,8 +1575,8 @@ const AccountInformationApiFactory = function(configuration, basePath, axios$8)
|
|
|
1563
1575
|
* @param {*} [options] Override http request option.
|
|
1564
1576
|
* @throws {RequiredError}
|
|
1565
1577
|
*/
|
|
1566
|
-
getUserAccountDetails(
|
|
1567
|
-
return localVarFp.getUserAccountDetails(
|
|
1578
|
+
getUserAccountDetails(...args) {
|
|
1579
|
+
return localVarFp.getUserAccountDetails(...args).then((request) => request(axios$8, basePath));
|
|
1568
1580
|
},
|
|
1569
1581
|
/**
|
|
1570
1582
|
* Returns the detail of a single order using the external order ID provided in the request body. This endpoint only works for single-leg orders at this time. Support for multi-leg orders will be added in the future. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
|
@@ -1573,8 +1585,8 @@ const AccountInformationApiFactory = function(configuration, basePath, axios$8)
|
|
|
1573
1585
|
* @param {*} [options] Override http request option.
|
|
1574
1586
|
* @throws {RequiredError}
|
|
1575
1587
|
*/
|
|
1576
|
-
getUserAccountOrderDetail(
|
|
1577
|
-
return localVarFp.getUserAccountOrderDetail(
|
|
1588
|
+
getUserAccountOrderDetail(...args) {
|
|
1589
|
+
return localVarFp.getUserAccountOrderDetail(...args).then((request) => request(axios$8, basePath));
|
|
1578
1590
|
},
|
|
1579
1591
|
/**
|
|
1580
1592
|
* Returns a list of recent orders in the specified account. Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access: - If you do, this endpoint returns real-time data. - If you don\'t, Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
@@ -1583,8 +1595,8 @@ const AccountInformationApiFactory = function(configuration, basePath, axios$8)
|
|
|
1583
1595
|
* @param {*} [options] Override http request option.
|
|
1584
1596
|
* @throws {RequiredError}
|
|
1585
1597
|
*/
|
|
1586
|
-
getUserAccountOrders(
|
|
1587
|
-
return localVarFp.getUserAccountOrders(
|
|
1598
|
+
getUserAccountOrders(...args) {
|
|
1599
|
+
return localVarFp.getUserAccountOrders(...args).then((request) => request(axios$8, basePath));
|
|
1588
1600
|
},
|
|
1589
1601
|
/**
|
|
1590
1602
|
* A lightweight endpoint that returns the latest page of orders placed in the last 24 hours in the specified account. For most brokerages, the default page size is 100 meaning the endpoint will return a max of 100 orders. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders Differs from /orders in that it is always realtime, and only checks the last 24 hours By default only returns executed orders, but that can be changed by setting *only_executed* to false
|
|
@@ -1593,8 +1605,8 @@ const AccountInformationApiFactory = function(configuration, basePath, axios$8)
|
|
|
1593
1605
|
* @param {*} [options] Override http request option.
|
|
1594
1606
|
* @throws {RequiredError}
|
|
1595
1607
|
*/
|
|
1596
|
-
getUserAccountRecentOrders(
|
|
1597
|
-
return localVarFp.getUserAccountRecentOrders(
|
|
1608
|
+
getUserAccountRecentOrders(...args) {
|
|
1609
|
+
return localVarFp.getUserAccountRecentOrders(...args).then((request) => request(axios$8, basePath));
|
|
1598
1610
|
},
|
|
1599
1611
|
/**
|
|
1600
1612
|
* Returns a list of rate of return percents for a given account.
|
|
@@ -1603,8 +1615,8 @@ const AccountInformationApiFactory = function(configuration, basePath, axios$8)
|
|
|
1603
1615
|
* @param {*} [options] Override http request option.
|
|
1604
1616
|
* @throws {RequiredError}
|
|
1605
1617
|
*/
|
|
1606
|
-
getUserAccountReturnRates(
|
|
1607
|
-
return localVarFp.getUserAccountReturnRates(
|
|
1618
|
+
getUserAccountReturnRates(...args) {
|
|
1619
|
+
return localVarFp.getUserAccountReturnRates(...args).then((request) => request(axios$8, basePath));
|
|
1608
1620
|
},
|
|
1609
1621
|
/**
|
|
1610
1622
|
* **Deprecated.** Use the finer-grained account data endpoints instead: [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getAllAccountPositions), and [orders](/reference/Account%20Information/AccountInformation_getUserAccountOrders). This endpoint will return HTTP 410 Gone for all customers that sign up after May 11, 2026. Returns a list of balances, positions, and recent orders for the specified account. Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access: - If you do, this endpoint returns real-time data. - If you don\'t, Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
@@ -1614,8 +1626,8 @@ const AccountInformationApiFactory = function(configuration, basePath, axios$8)
|
|
|
1614
1626
|
* @deprecated
|
|
1615
1627
|
* @throws {RequiredError}
|
|
1616
1628
|
*/
|
|
1617
|
-
getUserHoldings(
|
|
1618
|
-
return localVarFp.getUserHoldings(
|
|
1629
|
+
getUserHoldings(...args) {
|
|
1630
|
+
return localVarFp.getUserHoldings(...args).then((request) => request(axios$8, basePath));
|
|
1619
1631
|
},
|
|
1620
1632
|
/**
|
|
1621
1633
|
* 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).
|
|
@@ -1624,8 +1636,8 @@ const AccountInformationApiFactory = function(configuration, basePath, axios$8)
|
|
|
1624
1636
|
* @param {*} [options] Override http request option.
|
|
1625
1637
|
* @throws {RequiredError}
|
|
1626
1638
|
*/
|
|
1627
|
-
listUserAccounts(
|
|
1628
|
-
return localVarFp.listUserAccounts(
|
|
1639
|
+
listUserAccounts(...args) {
|
|
1640
|
+
return localVarFp.listUserAccounts(...args).then((request) => request(axios$8, basePath));
|
|
1629
1641
|
},
|
|
1630
1642
|
/**
|
|
1631
1643
|
* Updates various properties of a specified account.
|
|
@@ -1634,8 +1646,8 @@ const AccountInformationApiFactory = function(configuration, basePath, axios$8)
|
|
|
1634
1646
|
* @param {*} [options] Override http request option.
|
|
1635
1647
|
* @throws {RequiredError}
|
|
1636
1648
|
*/
|
|
1637
|
-
updateUserAccount(
|
|
1638
|
-
return localVarFp.updateUserAccount(
|
|
1649
|
+
updateUserAccount(...args) {
|
|
1650
|
+
return localVarFp.updateUserAccount(...args).then((request) => request(axios$8, basePath));
|
|
1639
1651
|
}
|
|
1640
1652
|
};
|
|
1641
1653
|
};
|
|
@@ -1654,8 +1666,8 @@ var AccountInformationApiGenerated = class extends BaseAPI {
|
|
|
1654
1666
|
* @throws {RequiredError}
|
|
1655
1667
|
* @memberof AccountInformationApiGenerated
|
|
1656
1668
|
*/
|
|
1657
|
-
getAccountActivities(
|
|
1658
|
-
return AccountInformationApiFp(this.configuration).getAccountActivities(
|
|
1669
|
+
getAccountActivities(...args) {
|
|
1670
|
+
return AccountInformationApiFp(this.configuration).getAccountActivities(...args).then((request) => request(this.axios, this.basePath));
|
|
1659
1671
|
}
|
|
1660
1672
|
/**
|
|
1661
1673
|
* An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year. Enable this feature for free in the Add-on section of the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)
|
|
@@ -1665,8 +1677,8 @@ var AccountInformationApiGenerated = class extends BaseAPI {
|
|
|
1665
1677
|
* @throws {RequiredError}
|
|
1666
1678
|
* @memberof AccountInformationApiGenerated
|
|
1667
1679
|
*/
|
|
1668
|
-
getAccountBalanceHistory(
|
|
1669
|
-
return AccountInformationApiFp(this.configuration).getAccountBalanceHistory(
|
|
1680
|
+
getAccountBalanceHistory(...args) {
|
|
1681
|
+
return AccountInformationApiFp(this.configuration).getAccountBalanceHistory(...args).then((request) => request(this.axios, this.basePath));
|
|
1670
1682
|
}
|
|
1671
1683
|
/**
|
|
1672
1684
|
* Returns a list of all positions in the specified account. The `results` list can contain multiple instrument types in the same response, including stocks, ADRs, ETFs, mutual funds, closed-end funds, bonds, crypto, futures, option positions, and CFD positions. Use the `instrument.kind` discriminator to determine the schema for each position\'s `instrument`. Positions counted in account cash balance or buying power include `cash_equivalent: true`. `stock`, `adr`, `etf`, `mutualfund`, and `crypto` positions may include `tax_lots` when tax lot data is enabled for the account. To see which institutions support tax lot data, please see our [supported institutions doc](https://support.snaptrade.com/brokerages). If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
@@ -1676,8 +1688,8 @@ var AccountInformationApiGenerated = class extends BaseAPI {
|
|
|
1676
1688
|
* @throws {RequiredError}
|
|
1677
1689
|
* @memberof AccountInformationApiGenerated
|
|
1678
1690
|
*/
|
|
1679
|
-
getAllAccountPositions(
|
|
1680
|
-
return AccountInformationApiFp(this.configuration).getAllAccountPositions(
|
|
1691
|
+
getAllAccountPositions(...args) {
|
|
1692
|
+
return AccountInformationApiFp(this.configuration).getAllAccountPositions(...args).then((request) => request(this.axios, this.basePath));
|
|
1681
1693
|
}
|
|
1682
1694
|
/**
|
|
1683
1695
|
* Returns a list of balances for the account. Each element of the list has a distinct currency. Some brokerages like Questrade [allows holding multiple currencies in the same account](https://www.questrade.com/learning/questrade-basics/balances-and-reports/understanding-your-account-balances). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access: - If you do, this endpoint returns real-time data. - If you don\'t, Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
@@ -1687,8 +1699,8 @@ var AccountInformationApiGenerated = class extends BaseAPI {
|
|
|
1687
1699
|
* @throws {RequiredError}
|
|
1688
1700
|
* @memberof AccountInformationApiGenerated
|
|
1689
1701
|
*/
|
|
1690
|
-
getUserAccountBalance(
|
|
1691
|
-
return AccountInformationApiFp(this.configuration).getUserAccountBalance(
|
|
1702
|
+
getUserAccountBalance(...args) {
|
|
1703
|
+
return AccountInformationApiFp(this.configuration).getUserAccountBalance(...args).then((request) => request(this.axios, this.basePath));
|
|
1692
1704
|
}
|
|
1693
1705
|
/**
|
|
1694
1706
|
* Returns account detail known to SnapTrade for the specified account. Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access: - If you do, this endpoint returns real-time data. - If you don\'t, Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
@@ -1698,8 +1710,8 @@ var AccountInformationApiGenerated = class extends BaseAPI {
|
|
|
1698
1710
|
* @throws {RequiredError}
|
|
1699
1711
|
* @memberof AccountInformationApiGenerated
|
|
1700
1712
|
*/
|
|
1701
|
-
getUserAccountDetails(
|
|
1702
|
-
return AccountInformationApiFp(this.configuration).getUserAccountDetails(
|
|
1713
|
+
getUserAccountDetails(...args) {
|
|
1714
|
+
return AccountInformationApiFp(this.configuration).getUserAccountDetails(...args).then((request) => request(this.axios, this.basePath));
|
|
1703
1715
|
}
|
|
1704
1716
|
/**
|
|
1705
1717
|
* Returns the detail of a single order using the external order ID provided in the request body. This endpoint only works for single-leg orders at this time. Support for multi-leg orders will be added in the future. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
|
@@ -1709,8 +1721,8 @@ var AccountInformationApiGenerated = class extends BaseAPI {
|
|
|
1709
1721
|
* @throws {RequiredError}
|
|
1710
1722
|
* @memberof AccountInformationApiGenerated
|
|
1711
1723
|
*/
|
|
1712
|
-
getUserAccountOrderDetail(
|
|
1713
|
-
return AccountInformationApiFp(this.configuration).getUserAccountOrderDetail(
|
|
1724
|
+
getUserAccountOrderDetail(...args) {
|
|
1725
|
+
return AccountInformationApiFp(this.configuration).getUserAccountOrderDetail(...args).then((request) => request(this.axios, this.basePath));
|
|
1714
1726
|
}
|
|
1715
1727
|
/**
|
|
1716
1728
|
* Returns a list of recent orders in the specified account. Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access: - If you do, this endpoint returns real-time data. - If you don\'t, Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
@@ -1720,8 +1732,8 @@ var AccountInformationApiGenerated = class extends BaseAPI {
|
|
|
1720
1732
|
* @throws {RequiredError}
|
|
1721
1733
|
* @memberof AccountInformationApiGenerated
|
|
1722
1734
|
*/
|
|
1723
|
-
getUserAccountOrders(
|
|
1724
|
-
return AccountInformationApiFp(this.configuration).getUserAccountOrders(
|
|
1735
|
+
getUserAccountOrders(...args) {
|
|
1736
|
+
return AccountInformationApiFp(this.configuration).getUserAccountOrders(...args).then((request) => request(this.axios, this.basePath));
|
|
1725
1737
|
}
|
|
1726
1738
|
/**
|
|
1727
1739
|
* A lightweight endpoint that returns the latest page of orders placed in the last 24 hours in the specified account. For most brokerages, the default page size is 100 meaning the endpoint will return a max of 100 orders. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders Differs from /orders in that it is always realtime, and only checks the last 24 hours By default only returns executed orders, but that can be changed by setting *only_executed* to false
|
|
@@ -1731,8 +1743,8 @@ var AccountInformationApiGenerated = class extends BaseAPI {
|
|
|
1731
1743
|
* @throws {RequiredError}
|
|
1732
1744
|
* @memberof AccountInformationApiGenerated
|
|
1733
1745
|
*/
|
|
1734
|
-
getUserAccountRecentOrders(
|
|
1735
|
-
return AccountInformationApiFp(this.configuration).getUserAccountRecentOrders(
|
|
1746
|
+
getUserAccountRecentOrders(...args) {
|
|
1747
|
+
return AccountInformationApiFp(this.configuration).getUserAccountRecentOrders(...args).then((request) => request(this.axios, this.basePath));
|
|
1736
1748
|
}
|
|
1737
1749
|
/**
|
|
1738
1750
|
* Returns a list of rate of return percents for a given account.
|
|
@@ -1742,8 +1754,8 @@ var AccountInformationApiGenerated = class extends BaseAPI {
|
|
|
1742
1754
|
* @throws {RequiredError}
|
|
1743
1755
|
* @memberof AccountInformationApiGenerated
|
|
1744
1756
|
*/
|
|
1745
|
-
getUserAccountReturnRates(
|
|
1746
|
-
return AccountInformationApiFp(this.configuration).getUserAccountReturnRates(
|
|
1757
|
+
getUserAccountReturnRates(...args) {
|
|
1758
|
+
return AccountInformationApiFp(this.configuration).getUserAccountReturnRates(...args).then((request) => request(this.axios, this.basePath));
|
|
1747
1759
|
}
|
|
1748
1760
|
/**
|
|
1749
1761
|
* **Deprecated.** Use the finer-grained account data endpoints instead: [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getAllAccountPositions), and [orders](/reference/Account%20Information/AccountInformation_getUserAccountOrders). This endpoint will return HTTP 410 Gone for all customers that sign up after May 11, 2026. Returns a list of balances, positions, and recent orders for the specified account. Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access: - If you do, this endpoint returns real-time data. - If you don\'t, Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
@@ -1754,8 +1766,8 @@ var AccountInformationApiGenerated = class extends BaseAPI {
|
|
|
1754
1766
|
* @throws {RequiredError}
|
|
1755
1767
|
* @memberof AccountInformationApiGenerated
|
|
1756
1768
|
*/
|
|
1757
|
-
getUserHoldings(
|
|
1758
|
-
return AccountInformationApiFp(this.configuration).getUserHoldings(
|
|
1769
|
+
getUserHoldings(...args) {
|
|
1770
|
+
return AccountInformationApiFp(this.configuration).getUserHoldings(...args).then((request) => request(this.axios, this.basePath));
|
|
1759
1771
|
}
|
|
1760
1772
|
/**
|
|
1761
1773
|
* 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).
|
|
@@ -1765,8 +1777,8 @@ var AccountInformationApiGenerated = class extends BaseAPI {
|
|
|
1765
1777
|
* @throws {RequiredError}
|
|
1766
1778
|
* @memberof AccountInformationApiGenerated
|
|
1767
1779
|
*/
|
|
1768
|
-
listUserAccounts(
|
|
1769
|
-
return AccountInformationApiFp(this.configuration).listUserAccounts(
|
|
1780
|
+
listUserAccounts(...args) {
|
|
1781
|
+
return AccountInformationApiFp(this.configuration).listUserAccounts(...args).then((request) => request(this.axios, this.basePath));
|
|
1770
1782
|
}
|
|
1771
1783
|
/**
|
|
1772
1784
|
* Updates various properties of a specified account.
|
|
@@ -1776,8 +1788,8 @@ var AccountInformationApiGenerated = class extends BaseAPI {
|
|
|
1776
1788
|
* @throws {RequiredError}
|
|
1777
1789
|
* @memberof AccountInformationApiGenerated
|
|
1778
1790
|
*/
|
|
1779
|
-
updateUserAccount(
|
|
1780
|
-
return AccountInformationApiFp(this.configuration).updateUserAccount(
|
|
1791
|
+
updateUserAccount(...args) {
|
|
1792
|
+
return AccountInformationApiFp(this.configuration).updateUserAccount(...args).then((request) => request(this.axios, this.basePath));
|
|
1781
1793
|
}
|
|
1782
1794
|
};
|
|
1783
1795
|
//#endregion
|
|
@@ -2215,7 +2227,8 @@ const AuthenticationApiFp = function(configuration) {
|
|
|
2215
2227
|
* @param {*} [options] Override http request option.
|
|
2216
2228
|
* @throws {RequiredError}
|
|
2217
2229
|
*/
|
|
2218
|
-
async deleteSnapTradeUser(
|
|
2230
|
+
async deleteSnapTradeUser(...args) {
|
|
2231
|
+
const [requestParameters = {}, options] = args;
|
|
2219
2232
|
return createRequestFunction(await localVarAxiosParamCreator.deleteSnapTradeUser(requestParameters.userId, options), axios.default, BASE_PATH, configuration, {
|
|
2220
2233
|
authModes: ["commercialApiKey"],
|
|
2221
2234
|
requestSigningByAuthMode: { "commercialApiKey": {
|
|
@@ -2247,7 +2260,8 @@ const AuthenticationApiFp = function(configuration) {
|
|
|
2247
2260
|
* @param {*} [options] Override http request option.
|
|
2248
2261
|
* @throws {RequiredError}
|
|
2249
2262
|
*/
|
|
2250
|
-
async loginSnapTradeUser(
|
|
2263
|
+
async loginSnapTradeUser(...args) {
|
|
2264
|
+
const [requestParameters = {}, options] = args;
|
|
2251
2265
|
const snapTradeLoginUserRequestBody = {
|
|
2252
2266
|
broker: requestParameters.broker,
|
|
2253
2267
|
immediateRedirect: requestParameters.immediateRedirect,
|
|
@@ -2280,7 +2294,8 @@ const AuthenticationApiFp = function(configuration) {
|
|
|
2280
2294
|
* @param {*} [options] Override http request option.
|
|
2281
2295
|
* @throws {RequiredError}
|
|
2282
2296
|
*/
|
|
2283
|
-
async registerSnapTradeUser(
|
|
2297
|
+
async registerSnapTradeUser(...args) {
|
|
2298
|
+
const [requestParameters = {}, options] = args;
|
|
2284
2299
|
const snapTradeRegisterUserRequestBody = { userId: requestParameters.userId };
|
|
2285
2300
|
return createRequestFunction(await localVarAxiosParamCreator.registerSnapTradeUser(snapTradeRegisterUserRequestBody, options), axios.default, BASE_PATH, configuration, {
|
|
2286
2301
|
authModes: ["commercialApiKey"],
|
|
@@ -2297,7 +2312,8 @@ const AuthenticationApiFp = function(configuration) {
|
|
|
2297
2312
|
* @param {*} [options] Override http request option.
|
|
2298
2313
|
* @throws {RequiredError}
|
|
2299
2314
|
*/
|
|
2300
|
-
async resetSnapTradeUserSecret(
|
|
2315
|
+
async resetSnapTradeUserSecret(...args) {
|
|
2316
|
+
const [requestParameters = {}, options] = args;
|
|
2301
2317
|
const userIDandSecret = {
|
|
2302
2318
|
userId: requestParameters.userId,
|
|
2303
2319
|
userSecret: requestParameters.userSecret
|
|
@@ -2326,8 +2342,8 @@ const AuthenticationApiFactory = function(configuration, basePath, axios$6) {
|
|
|
2326
2342
|
* @param {*} [options] Override http request option.
|
|
2327
2343
|
* @throws {RequiredError}
|
|
2328
2344
|
*/
|
|
2329
|
-
deleteSnapTradeUser(
|
|
2330
|
-
return localVarFp.deleteSnapTradeUser(
|
|
2345
|
+
deleteSnapTradeUser(...args) {
|
|
2346
|
+
return localVarFp.deleteSnapTradeUser(...args).then((request) => request(axios$6, basePath));
|
|
2331
2347
|
},
|
|
2332
2348
|
/**
|
|
2333
2349
|
* Returns a list of all registered user IDs. Please note that the response is not currently paginated.
|
|
@@ -2345,8 +2361,8 @@ const AuthenticationApiFactory = function(configuration, basePath, axios$6) {
|
|
|
2345
2361
|
* @param {*} [options] Override http request option.
|
|
2346
2362
|
* @throws {RequiredError}
|
|
2347
2363
|
*/
|
|
2348
|
-
loginSnapTradeUser(
|
|
2349
|
-
return localVarFp.loginSnapTradeUser(
|
|
2364
|
+
loginSnapTradeUser(...args) {
|
|
2365
|
+
return localVarFp.loginSnapTradeUser(...args).then((request) => request(axios$6, basePath));
|
|
2350
2366
|
},
|
|
2351
2367
|
/**
|
|
2352
2368
|
* Registers a new SnapTrade user under your Client ID. A user secret will be automatically generated for you and must be properly stored in your system. Most SnapTrade operations require a user ID and user secret to be passed in as parameters.
|
|
@@ -2355,8 +2371,8 @@ const AuthenticationApiFactory = function(configuration, basePath, axios$6) {
|
|
|
2355
2371
|
* @param {*} [options] Override http request option.
|
|
2356
2372
|
* @throws {RequiredError}
|
|
2357
2373
|
*/
|
|
2358
|
-
registerSnapTradeUser(
|
|
2359
|
-
return localVarFp.registerSnapTradeUser(
|
|
2374
|
+
registerSnapTradeUser(...args) {
|
|
2375
|
+
return localVarFp.registerSnapTradeUser(...args).then((request) => request(axios$6, basePath));
|
|
2360
2376
|
},
|
|
2361
2377
|
/**
|
|
2362
2378
|
* Rotates the secret for a SnapTrade user. You might use this if `userSecret` is compromised. Please note that if you call this endpoint and fail to save the new secret, you\'ll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
|
|
@@ -2365,8 +2381,8 @@ const AuthenticationApiFactory = function(configuration, basePath, axios$6) {
|
|
|
2365
2381
|
* @param {*} [options] Override http request option.
|
|
2366
2382
|
* @throws {RequiredError}
|
|
2367
2383
|
*/
|
|
2368
|
-
resetSnapTradeUserSecret(
|
|
2369
|
-
return localVarFp.resetSnapTradeUserSecret(
|
|
2384
|
+
resetSnapTradeUserSecret(...args) {
|
|
2385
|
+
return localVarFp.resetSnapTradeUserSecret(...args).then((request) => request(axios$6, basePath));
|
|
2370
2386
|
}
|
|
2371
2387
|
};
|
|
2372
2388
|
};
|
|
@@ -2385,8 +2401,8 @@ var AuthenticationApiGenerated = class extends BaseAPI {
|
|
|
2385
2401
|
* @throws {RequiredError}
|
|
2386
2402
|
* @memberof AuthenticationApiGenerated
|
|
2387
2403
|
*/
|
|
2388
|
-
deleteSnapTradeUser(
|
|
2389
|
-
return AuthenticationApiFp(this.configuration).deleteSnapTradeUser(
|
|
2404
|
+
deleteSnapTradeUser(...args) {
|
|
2405
|
+
return AuthenticationApiFp(this.configuration).deleteSnapTradeUser(...args).then((request) => request(this.axios, this.basePath));
|
|
2390
2406
|
}
|
|
2391
2407
|
/**
|
|
2392
2408
|
* Returns a list of all registered user IDs. Please note that the response is not currently paginated.
|
|
@@ -2406,8 +2422,8 @@ var AuthenticationApiGenerated = class extends BaseAPI {
|
|
|
2406
2422
|
* @throws {RequiredError}
|
|
2407
2423
|
* @memberof AuthenticationApiGenerated
|
|
2408
2424
|
*/
|
|
2409
|
-
loginSnapTradeUser(
|
|
2410
|
-
return AuthenticationApiFp(this.configuration).loginSnapTradeUser(
|
|
2425
|
+
loginSnapTradeUser(...args) {
|
|
2426
|
+
return AuthenticationApiFp(this.configuration).loginSnapTradeUser(...args).then((request) => request(this.axios, this.basePath));
|
|
2411
2427
|
}
|
|
2412
2428
|
/**
|
|
2413
2429
|
* Registers a new SnapTrade user under your Client ID. A user secret will be automatically generated for you and must be properly stored in your system. Most SnapTrade operations require a user ID and user secret to be passed in as parameters.
|
|
@@ -2417,8 +2433,8 @@ var AuthenticationApiGenerated = class extends BaseAPI {
|
|
|
2417
2433
|
* @throws {RequiredError}
|
|
2418
2434
|
* @memberof AuthenticationApiGenerated
|
|
2419
2435
|
*/
|
|
2420
|
-
registerSnapTradeUser(
|
|
2421
|
-
return AuthenticationApiFp(this.configuration).registerSnapTradeUser(
|
|
2436
|
+
registerSnapTradeUser(...args) {
|
|
2437
|
+
return AuthenticationApiFp(this.configuration).registerSnapTradeUser(...args).then((request) => request(this.axios, this.basePath));
|
|
2422
2438
|
}
|
|
2423
2439
|
/**
|
|
2424
2440
|
* Rotates the secret for a SnapTrade user. You might use this if `userSecret` is compromised. Please note that if you call this endpoint and fail to save the new secret, you\'ll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
|
|
@@ -2428,8 +2444,8 @@ var AuthenticationApiGenerated = class extends BaseAPI {
|
|
|
2428
2444
|
* @throws {RequiredError}
|
|
2429
2445
|
* @memberof AuthenticationApiGenerated
|
|
2430
2446
|
*/
|
|
2431
|
-
resetSnapTradeUserSecret(
|
|
2432
|
-
return AuthenticationApiFp(this.configuration).resetSnapTradeUserSecret(
|
|
2447
|
+
resetSnapTradeUserSecret(...args) {
|
|
2448
|
+
return AuthenticationApiFp(this.configuration).resetSnapTradeUserSecret(...args).then((request) => request(this.axios, this.basePath));
|
|
2433
2449
|
}
|
|
2434
2450
|
};
|
|
2435
2451
|
//#endregion
|
|
@@ -3043,7 +3059,8 @@ const ConnectionsApiFp = function(configuration) {
|
|
|
3043
3059
|
* @param {*} [options] Override http request option.
|
|
3044
3060
|
* @throws {RequiredError}
|
|
3045
3061
|
*/
|
|
3046
|
-
async deleteConnection(
|
|
3062
|
+
async deleteConnection(...args) {
|
|
3063
|
+
const [requestParameters = {}, options] = args;
|
|
3047
3064
|
return createRequestFunction(await localVarAxiosParamCreator.deleteConnection(requestParameters.connectionId, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
3048
3065
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
3049
3066
|
requestSigningByAuthMode: {
|
|
@@ -3065,7 +3082,8 @@ const ConnectionsApiFp = function(configuration) {
|
|
|
3065
3082
|
* @param {*} [options] Override http request option.
|
|
3066
3083
|
* @throws {RequiredError}
|
|
3067
3084
|
*/
|
|
3068
|
-
async detailBrokerageAuthorization(
|
|
3085
|
+
async detailBrokerageAuthorization(...args) {
|
|
3086
|
+
const [requestParameters = {}, options] = args;
|
|
3069
3087
|
return createRequestFunction(await localVarAxiosParamCreator.detailBrokerageAuthorization(requestParameters.authorizationId, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
3070
3088
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
3071
3089
|
requestSigningByAuthMode: {
|
|
@@ -3087,7 +3105,8 @@ const ConnectionsApiFp = function(configuration) {
|
|
|
3087
3105
|
* @param {*} [options] Override http request option.
|
|
3088
3106
|
* @throws {RequiredError}
|
|
3089
3107
|
*/
|
|
3090
|
-
async disableBrokerageAuthorization(
|
|
3108
|
+
async disableBrokerageAuthorization(...args) {
|
|
3109
|
+
const [requestParameters = {}, options] = args;
|
|
3091
3110
|
return createRequestFunction(await localVarAxiosParamCreator.disableBrokerageAuthorization(requestParameters.authorizationId, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
3092
3111
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
3093
3112
|
requestSigningByAuthMode: {
|
|
@@ -3109,7 +3128,8 @@ const ConnectionsApiFp = function(configuration) {
|
|
|
3109
3128
|
* @param {*} [options] Override http request option.
|
|
3110
3129
|
* @throws {RequiredError}
|
|
3111
3130
|
*/
|
|
3112
|
-
async listBrokerageAuthorizationAccounts(
|
|
3131
|
+
async listBrokerageAuthorizationAccounts(...args) {
|
|
3132
|
+
const [requestParameters = {}, options] = args;
|
|
3113
3133
|
return createRequestFunction(await localVarAxiosParamCreator.listBrokerageAuthorizationAccounts(requestParameters.authorizationId, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
3114
3134
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
3115
3135
|
requestSigningByAuthMode: {
|
|
@@ -3131,7 +3151,8 @@ const ConnectionsApiFp = function(configuration) {
|
|
|
3131
3151
|
* @param {*} [options] Override http request option.
|
|
3132
3152
|
* @throws {RequiredError}
|
|
3133
3153
|
*/
|
|
3134
|
-
async listBrokerageAuthorizations(
|
|
3154
|
+
async listBrokerageAuthorizations(...args) {
|
|
3155
|
+
const [requestParameters = {}, options] = args;
|
|
3135
3156
|
return createRequestFunction(await localVarAxiosParamCreator.listBrokerageAuthorizations(requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
3136
3157
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
3137
3158
|
requestSigningByAuthMode: {
|
|
@@ -3153,7 +3174,8 @@ const ConnectionsApiFp = function(configuration) {
|
|
|
3153
3174
|
* @param {*} [options] Override http request option.
|
|
3154
3175
|
* @throws {RequiredError}
|
|
3155
3176
|
*/
|
|
3156
|
-
async refreshBrokerageAuthorization(
|
|
3177
|
+
async refreshBrokerageAuthorization(...args) {
|
|
3178
|
+
const [requestParameters = {}, options] = args;
|
|
3157
3179
|
return createRequestFunction(await localVarAxiosParamCreator.refreshBrokerageAuthorization(requestParameters.authorizationId, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
3158
3180
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
3159
3181
|
requestSigningByAuthMode: {
|
|
@@ -3175,7 +3197,8 @@ const ConnectionsApiFp = function(configuration) {
|
|
|
3175
3197
|
* @param {*} [options] Override http request option.
|
|
3176
3198
|
* @throws {RequiredError}
|
|
3177
3199
|
*/
|
|
3178
|
-
async returnRates(
|
|
3200
|
+
async returnRates(...args) {
|
|
3201
|
+
const [requestParameters = {}, options] = args;
|
|
3179
3202
|
return createRequestFunction(await localVarAxiosParamCreator.returnRates(requestParameters.authorizationId, requestParameters.timeframes, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
3180
3203
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
3181
3204
|
requestSigningByAuthMode: {
|
|
@@ -3197,7 +3220,8 @@ const ConnectionsApiFp = function(configuration) {
|
|
|
3197
3220
|
* @param {*} [options] Override http request option.
|
|
3198
3221
|
* @throws {RequiredError}
|
|
3199
3222
|
*/
|
|
3200
|
-
async syncBrokerageAuthorizationTransactions(
|
|
3223
|
+
async syncBrokerageAuthorizationTransactions(...args) {
|
|
3224
|
+
const [requestParameters = {}, options] = args;
|
|
3201
3225
|
return createRequestFunction(await localVarAxiosParamCreator.syncBrokerageAuthorizationTransactions(requestParameters.authorizationId, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
3202
3226
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
3203
3227
|
requestSigningByAuthMode: {
|
|
@@ -3228,8 +3252,8 @@ const ConnectionsApiFactory = function(configuration, basePath, axios$5) {
|
|
|
3228
3252
|
* @param {*} [options] Override http request option.
|
|
3229
3253
|
* @throws {RequiredError}
|
|
3230
3254
|
*/
|
|
3231
|
-
deleteConnection(
|
|
3232
|
-
return localVarFp.deleteConnection(
|
|
3255
|
+
deleteConnection(...args) {
|
|
3256
|
+
return localVarFp.deleteConnection(...args).then((request) => request(axios$5, basePath));
|
|
3233
3257
|
},
|
|
3234
3258
|
/**
|
|
3235
3259
|
* Returns a single connection for the specified ID.
|
|
@@ -3238,8 +3262,8 @@ const ConnectionsApiFactory = function(configuration, basePath, axios$5) {
|
|
|
3238
3262
|
* @param {*} [options] Override http request option.
|
|
3239
3263
|
* @throws {RequiredError}
|
|
3240
3264
|
*/
|
|
3241
|
-
detailBrokerageAuthorization(
|
|
3242
|
-
return localVarFp.detailBrokerageAuthorization(
|
|
3265
|
+
detailBrokerageAuthorization(...args) {
|
|
3266
|
+
return localVarFp.detailBrokerageAuthorization(...args).then((request) => request(axios$5, basePath));
|
|
3243
3267
|
},
|
|
3244
3268
|
/**
|
|
3245
3269
|
* Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](/docs/webhooks#webhooks-connection_broken) for the connection. This endpoint is available on test keys. If you would like it enabled on production keys as well, please contact support as it is disabled by default.
|
|
@@ -3248,8 +3272,8 @@ const ConnectionsApiFactory = function(configuration, basePath, axios$5) {
|
|
|
3248
3272
|
* @param {*} [options] Override http request option.
|
|
3249
3273
|
* @throws {RequiredError}
|
|
3250
3274
|
*/
|
|
3251
|
-
disableBrokerageAuthorization(
|
|
3252
|
-
return localVarFp.disableBrokerageAuthorization(
|
|
3275
|
+
disableBrokerageAuthorization(...args) {
|
|
3276
|
+
return localVarFp.disableBrokerageAuthorization(...args).then((request) => request(axios$5, basePath));
|
|
3253
3277
|
},
|
|
3254
3278
|
/**
|
|
3255
3279
|
* Returns all brokerage accounts that belong to the specified connection for the authenticated user. On Pay as you Go / Real-time, this endpoint refreshes each account\'s opening date, funding date, and total value live from the brokerage on each call. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
@@ -3258,8 +3282,8 @@ const ConnectionsApiFactory = function(configuration, basePath, axios$5) {
|
|
|
3258
3282
|
* @param {*} [options] Override http request option.
|
|
3259
3283
|
* @throws {RequiredError}
|
|
3260
3284
|
*/
|
|
3261
|
-
listBrokerageAuthorizationAccounts(
|
|
3262
|
-
return localVarFp.listBrokerageAuthorizationAccounts(
|
|
3285
|
+
listBrokerageAuthorizationAccounts(...args) {
|
|
3286
|
+
return localVarFp.listBrokerageAuthorizationAccounts(...args).then((request) => request(axios$5, basePath));
|
|
3263
3287
|
},
|
|
3264
3288
|
/**
|
|
3265
3289
|
* Returns a list of all connections for the specified user. Note that `Connection` and `Brokerage Authorization` are interchangeable, but the term `Connection` is preferred and used in the doc for consistency. A connection is usually tied to a single login at a brokerage. A single connection can contain multiple brokerage accounts. SnapTrade performs de-duping on connections for a given user. If the user has an existing connection with the brokerage, when connecting the brokerage with the same credentials, SnapTrade will return the existing connection instead of creating a new one.
|
|
@@ -3268,8 +3292,8 @@ const ConnectionsApiFactory = function(configuration, basePath, axios$5) {
|
|
|
3268
3292
|
* @param {*} [options] Override http request option.
|
|
3269
3293
|
* @throws {RequiredError}
|
|
3270
3294
|
*/
|
|
3271
|
-
listBrokerageAuthorizations(
|
|
3272
|
-
return localVarFp.listBrokerageAuthorizations(
|
|
3295
|
+
listBrokerageAuthorizations(...args) {
|
|
3296
|
+
return localVarFp.listBrokerageAuthorizations(...args).then((request) => request(axios$5, basePath));
|
|
3273
3297
|
},
|
|
3274
3298
|
/**
|
|
3275
3299
|
* Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Because of the cost of refreshing a connection, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)** **Please note this endpoint is disabled for Real-time plans (Personal and Pay as you go) unless SnapTrade uses delayed data for the connection. Real-time connections do not benefit from this feature since data is refreshed when calls are made. Refer to `data_freshness_mode.snaptrade` on a connection to determine this.**
|
|
@@ -3278,8 +3302,8 @@ const ConnectionsApiFactory = function(configuration, basePath, axios$5) {
|
|
|
3278
3302
|
* @param {*} [options] Override http request option.
|
|
3279
3303
|
* @throws {RequiredError}
|
|
3280
3304
|
*/
|
|
3281
|
-
refreshBrokerageAuthorization(
|
|
3282
|
-
return localVarFp.refreshBrokerageAuthorization(
|
|
3305
|
+
refreshBrokerageAuthorization(...args) {
|
|
3306
|
+
return localVarFp.refreshBrokerageAuthorization(...args).then((request) => request(axios$5, basePath));
|
|
3283
3307
|
},
|
|
3284
3308
|
/**
|
|
3285
3309
|
* Returns a list of rate of return percents for a given connection.
|
|
@@ -3288,8 +3312,8 @@ const ConnectionsApiFactory = function(configuration, basePath, axios$5) {
|
|
|
3288
3312
|
* @param {*} [options] Override http request option.
|
|
3289
3313
|
* @throws {RequiredError}
|
|
3290
3314
|
*/
|
|
3291
|
-
returnRates(
|
|
3292
|
-
return localVarFp.returnRates(
|
|
3315
|
+
returnRates(...args) {
|
|
3316
|
+
return localVarFp.returnRates(...args).then((request) => request(axios$5, basePath));
|
|
3293
3317
|
},
|
|
3294
3318
|
/**
|
|
3295
3319
|
* Trigger a transactions sync for all accounts under this connection. Updates will be queued asynchronously. Transactions are not updated intra-day, but calling this endpoint can ensure that the previous day\'s transactions have been synced. For more information on sync behaviour, see: https://docs.snaptrade.com/docs/syncing
|
|
@@ -3298,8 +3322,8 @@ const ConnectionsApiFactory = function(configuration, basePath, axios$5) {
|
|
|
3298
3322
|
* @param {*} [options] Override http request option.
|
|
3299
3323
|
* @throws {RequiredError}
|
|
3300
3324
|
*/
|
|
3301
|
-
syncBrokerageAuthorizationTransactions(
|
|
3302
|
-
return localVarFp.syncBrokerageAuthorizationTransactions(
|
|
3325
|
+
syncBrokerageAuthorizationTransactions(...args) {
|
|
3326
|
+
return localVarFp.syncBrokerageAuthorizationTransactions(...args).then((request) => request(axios$5, basePath));
|
|
3303
3327
|
}
|
|
3304
3328
|
};
|
|
3305
3329
|
};
|
|
@@ -3318,8 +3342,8 @@ var ConnectionsApiGenerated = class extends BaseAPI {
|
|
|
3318
3342
|
* @throws {RequiredError}
|
|
3319
3343
|
* @memberof ConnectionsApiGenerated
|
|
3320
3344
|
*/
|
|
3321
|
-
deleteConnection(
|
|
3322
|
-
return ConnectionsApiFp(this.configuration).deleteConnection(
|
|
3345
|
+
deleteConnection(...args) {
|
|
3346
|
+
return ConnectionsApiFp(this.configuration).deleteConnection(...args).then((request) => request(this.axios, this.basePath));
|
|
3323
3347
|
}
|
|
3324
3348
|
/**
|
|
3325
3349
|
* Returns a single connection for the specified ID.
|
|
@@ -3329,8 +3353,8 @@ var ConnectionsApiGenerated = class extends BaseAPI {
|
|
|
3329
3353
|
* @throws {RequiredError}
|
|
3330
3354
|
* @memberof ConnectionsApiGenerated
|
|
3331
3355
|
*/
|
|
3332
|
-
detailBrokerageAuthorization(
|
|
3333
|
-
return ConnectionsApiFp(this.configuration).detailBrokerageAuthorization(
|
|
3356
|
+
detailBrokerageAuthorization(...args) {
|
|
3357
|
+
return ConnectionsApiFp(this.configuration).detailBrokerageAuthorization(...args).then((request) => request(this.axios, this.basePath));
|
|
3334
3358
|
}
|
|
3335
3359
|
/**
|
|
3336
3360
|
* Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](/docs/webhooks#webhooks-connection_broken) for the connection. This endpoint is available on test keys. If you would like it enabled on production keys as well, please contact support as it is disabled by default.
|
|
@@ -3340,8 +3364,8 @@ var ConnectionsApiGenerated = class extends BaseAPI {
|
|
|
3340
3364
|
* @throws {RequiredError}
|
|
3341
3365
|
* @memberof ConnectionsApiGenerated
|
|
3342
3366
|
*/
|
|
3343
|
-
disableBrokerageAuthorization(
|
|
3344
|
-
return ConnectionsApiFp(this.configuration).disableBrokerageAuthorization(
|
|
3367
|
+
disableBrokerageAuthorization(...args) {
|
|
3368
|
+
return ConnectionsApiFp(this.configuration).disableBrokerageAuthorization(...args).then((request) => request(this.axios, this.basePath));
|
|
3345
3369
|
}
|
|
3346
3370
|
/**
|
|
3347
3371
|
* Returns all brokerage accounts that belong to the specified connection for the authenticated user. On Pay as you Go / Real-time, this endpoint refreshes each account\'s opening date, funding date, and total value live from the brokerage on each call. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
@@ -3351,8 +3375,8 @@ var ConnectionsApiGenerated = class extends BaseAPI {
|
|
|
3351
3375
|
* @throws {RequiredError}
|
|
3352
3376
|
* @memberof ConnectionsApiGenerated
|
|
3353
3377
|
*/
|
|
3354
|
-
listBrokerageAuthorizationAccounts(
|
|
3355
|
-
return ConnectionsApiFp(this.configuration).listBrokerageAuthorizationAccounts(
|
|
3378
|
+
listBrokerageAuthorizationAccounts(...args) {
|
|
3379
|
+
return ConnectionsApiFp(this.configuration).listBrokerageAuthorizationAccounts(...args).then((request) => request(this.axios, this.basePath));
|
|
3356
3380
|
}
|
|
3357
3381
|
/**
|
|
3358
3382
|
* Returns a list of all connections for the specified user. Note that `Connection` and `Brokerage Authorization` are interchangeable, but the term `Connection` is preferred and used in the doc for consistency. A connection is usually tied to a single login at a brokerage. A single connection can contain multiple brokerage accounts. SnapTrade performs de-duping on connections for a given user. If the user has an existing connection with the brokerage, when connecting the brokerage with the same credentials, SnapTrade will return the existing connection instead of creating a new one.
|
|
@@ -3362,8 +3386,8 @@ var ConnectionsApiGenerated = class extends BaseAPI {
|
|
|
3362
3386
|
* @throws {RequiredError}
|
|
3363
3387
|
* @memberof ConnectionsApiGenerated
|
|
3364
3388
|
*/
|
|
3365
|
-
listBrokerageAuthorizations(
|
|
3366
|
-
return ConnectionsApiFp(this.configuration).listBrokerageAuthorizations(
|
|
3389
|
+
listBrokerageAuthorizations(...args) {
|
|
3390
|
+
return ConnectionsApiFp(this.configuration).listBrokerageAuthorizations(...args).then((request) => request(this.axios, this.basePath));
|
|
3367
3391
|
}
|
|
3368
3392
|
/**
|
|
3369
3393
|
* Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Because of the cost of refreshing a connection, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)** **Please note this endpoint is disabled for Real-time plans (Personal and Pay as you go) unless SnapTrade uses delayed data for the connection. Real-time connections do not benefit from this feature since data is refreshed when calls are made. Refer to `data_freshness_mode.snaptrade` on a connection to determine this.**
|
|
@@ -3373,8 +3397,8 @@ var ConnectionsApiGenerated = class extends BaseAPI {
|
|
|
3373
3397
|
* @throws {RequiredError}
|
|
3374
3398
|
* @memberof ConnectionsApiGenerated
|
|
3375
3399
|
*/
|
|
3376
|
-
refreshBrokerageAuthorization(
|
|
3377
|
-
return ConnectionsApiFp(this.configuration).refreshBrokerageAuthorization(
|
|
3400
|
+
refreshBrokerageAuthorization(...args) {
|
|
3401
|
+
return ConnectionsApiFp(this.configuration).refreshBrokerageAuthorization(...args).then((request) => request(this.axios, this.basePath));
|
|
3378
3402
|
}
|
|
3379
3403
|
/**
|
|
3380
3404
|
* Returns a list of rate of return percents for a given connection.
|
|
@@ -3384,8 +3408,8 @@ var ConnectionsApiGenerated = class extends BaseAPI {
|
|
|
3384
3408
|
* @throws {RequiredError}
|
|
3385
3409
|
* @memberof ConnectionsApiGenerated
|
|
3386
3410
|
*/
|
|
3387
|
-
returnRates(
|
|
3388
|
-
return ConnectionsApiFp(this.configuration).returnRates(
|
|
3411
|
+
returnRates(...args) {
|
|
3412
|
+
return ConnectionsApiFp(this.configuration).returnRates(...args).then((request) => request(this.axios, this.basePath));
|
|
3389
3413
|
}
|
|
3390
3414
|
/**
|
|
3391
3415
|
* Trigger a transactions sync for all accounts under this connection. Updates will be queued asynchronously. Transactions are not updated intra-day, but calling this endpoint can ensure that the previous day\'s transactions have been synced. For more information on sync behaviour, see: https://docs.snaptrade.com/docs/syncing
|
|
@@ -3395,8 +3419,8 @@ var ConnectionsApiGenerated = class extends BaseAPI {
|
|
|
3395
3419
|
* @throws {RequiredError}
|
|
3396
3420
|
* @memberof ConnectionsApiGenerated
|
|
3397
3421
|
*/
|
|
3398
|
-
syncBrokerageAuthorizationTransactions(
|
|
3399
|
-
return ConnectionsApiFp(this.configuration).syncBrokerageAuthorizationTransactions(
|
|
3422
|
+
syncBrokerageAuthorizationTransactions(...args) {
|
|
3423
|
+
return ConnectionsApiFp(this.configuration).syncBrokerageAuthorizationTransactions(...args).then((request) => request(this.axios, this.basePath));
|
|
3400
3424
|
}
|
|
3401
3425
|
};
|
|
3402
3426
|
//#endregion
|
|
@@ -3937,7 +3961,8 @@ const ExperimentalEndpointsApiFp = function(configuration) {
|
|
|
3937
3961
|
* @param {*} [options] Override http request option.
|
|
3938
3962
|
* @throws {RequiredError}
|
|
3939
3963
|
*/
|
|
3940
|
-
async addSubscription(
|
|
3964
|
+
async addSubscription(...args) {
|
|
3965
|
+
const [requestParameters = {}, options] = args;
|
|
3941
3966
|
const tradeDetectionAddSubscriptionRequest = {
|
|
3942
3967
|
account_id: requestParameters.account_id,
|
|
3943
3968
|
check_interval_seconds: requestParameters.check_interval_seconds
|
|
@@ -3963,7 +3988,8 @@ const ExperimentalEndpointsApiFp = function(configuration) {
|
|
|
3963
3988
|
* @param {*} [options] Override http request option.
|
|
3964
3989
|
* @throws {RequiredError}
|
|
3965
3990
|
*/
|
|
3966
|
-
async cancelSubscription(
|
|
3991
|
+
async cancelSubscription(...args) {
|
|
3992
|
+
const [requestParameters = {}, options] = args;
|
|
3967
3993
|
const tradeDetectionCancelSubscriptionRequest = { account_id: requestParameters.account_id };
|
|
3968
3994
|
return createRequestFunction(await localVarAxiosParamCreator.cancelSubscription(tradeDetectionCancelSubscriptionRequest, options), axios.default, BASE_PATH, configuration, {
|
|
3969
3995
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
@@ -3986,7 +4012,8 @@ const ExperimentalEndpointsApiFp = function(configuration) {
|
|
|
3986
4012
|
* @param {*} [options] Override http request option.
|
|
3987
4013
|
* @throws {RequiredError}
|
|
3988
4014
|
*/
|
|
3989
|
-
async getUserAccountOrderDetailV2(
|
|
4015
|
+
async getUserAccountOrderDetailV2(...args) {
|
|
4016
|
+
const [requestParameters = {}, options] = args;
|
|
3990
4017
|
return createRequestFunction(await localVarAxiosParamCreator.getUserAccountOrderDetailV2(requestParameters.accountId, requestParameters.brokerageOrderId, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
3991
4018
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
3992
4019
|
requestSigningByAuthMode: {
|
|
@@ -4008,7 +4035,8 @@ const ExperimentalEndpointsApiFp = function(configuration) {
|
|
|
4008
4035
|
* @param {*} [options] Override http request option.
|
|
4009
4036
|
* @throws {RequiredError}
|
|
4010
4037
|
*/
|
|
4011
|
-
async getUserAccountOrdersV2(
|
|
4038
|
+
async getUserAccountOrdersV2(...args) {
|
|
4039
|
+
const [requestParameters = {}, options] = args;
|
|
4012
4040
|
return createRequestFunction(await localVarAxiosParamCreator.getUserAccountOrdersV2(requestParameters.accountId, requestParameters.state, requestParameters.days, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
4013
4041
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
4014
4042
|
requestSigningByAuthMode: {
|
|
@@ -4030,7 +4058,8 @@ const ExperimentalEndpointsApiFp = function(configuration) {
|
|
|
4030
4058
|
* @param {*} [options] Override http request option.
|
|
4031
4059
|
* @throws {RequiredError}
|
|
4032
4060
|
*/
|
|
4033
|
-
async getUserAccountRecentOrdersV2(
|
|
4061
|
+
async getUserAccountRecentOrdersV2(...args) {
|
|
4062
|
+
const [requestParameters = {}, options] = args;
|
|
4034
4063
|
return createRequestFunction(await localVarAxiosParamCreator.getUserAccountRecentOrdersV2(requestParameters.accountId, requestParameters.onlyExecuted, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
4035
4064
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
4036
4065
|
requestSigningByAuthMode: {
|
|
@@ -4052,7 +4081,8 @@ const ExperimentalEndpointsApiFp = function(configuration) {
|
|
|
4052
4081
|
* @param {*} [options] Override http request option.
|
|
4053
4082
|
* @throws {RequiredError}
|
|
4054
4083
|
*/
|
|
4055
|
-
async listConnectionAccounts(
|
|
4084
|
+
async listConnectionAccounts(...args) {
|
|
4085
|
+
const [requestParameters = {}, options] = args;
|
|
4056
4086
|
return createRequestFunction(await localVarAxiosParamCreator.listConnectionAccounts(requestParameters.connectionId, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
4057
4087
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
4058
4088
|
requestSigningByAuthMode: {
|
|
@@ -4105,8 +4135,8 @@ const ExperimentalEndpointsApiFactory = function(configuration, basePath, axios$
|
|
|
4105
4135
|
* @param {*} [options] Override http request option.
|
|
4106
4136
|
* @throws {RequiredError}
|
|
4107
4137
|
*/
|
|
4108
|
-
addSubscription(
|
|
4109
|
-
return localVarFp.addSubscription(
|
|
4138
|
+
addSubscription(...args) {
|
|
4139
|
+
return localVarFp.addSubscription(...args).then((request) => request(axios$4, basePath));
|
|
4110
4140
|
},
|
|
4111
4141
|
/**
|
|
4112
4142
|
* Cancels a Trade Detection subscription for a connected brokerage account. This endpoint requires partner signature authentication only and does not require `userId` or `userSecret`.
|
|
@@ -4115,8 +4145,8 @@ const ExperimentalEndpointsApiFactory = function(configuration, basePath, axios$
|
|
|
4115
4145
|
* @param {*} [options] Override http request option.
|
|
4116
4146
|
* @throws {RequiredError}
|
|
4117
4147
|
*/
|
|
4118
|
-
cancelSubscription(
|
|
4119
|
-
return localVarFp.cancelSubscription(
|
|
4148
|
+
cancelSubscription(...args) {
|
|
4149
|
+
return localVarFp.cancelSubscription(...args).then((request) => request(axios$4, basePath));
|
|
4120
4150
|
},
|
|
4121
4151
|
/**
|
|
4122
4152
|
* Returns the detail of a single order using the brokerage order ID provided as a path parameter. The V2 order response format includes all legs of the order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
|
@@ -4125,8 +4155,8 @@ const ExperimentalEndpointsApiFactory = function(configuration, basePath, axios$
|
|
|
4125
4155
|
* @param {*} [options] Override http request option.
|
|
4126
4156
|
* @throws {RequiredError}
|
|
4127
4157
|
*/
|
|
4128
|
-
getUserAccountOrderDetailV2(
|
|
4129
|
-
return localVarFp.getUserAccountOrderDetailV2(
|
|
4158
|
+
getUserAccountOrderDetailV2(...args) {
|
|
4159
|
+
return localVarFp.getUserAccountOrderDetailV2(...args).then((request) => request(axios$4, basePath));
|
|
4130
4160
|
},
|
|
4131
4161
|
/**
|
|
4132
4162
|
* Returns a list of recent orders in the specified account. The V2 order response format will include all legs of each order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
@@ -4135,8 +4165,8 @@ const ExperimentalEndpointsApiFactory = function(configuration, basePath, axios$
|
|
|
4135
4165
|
* @param {*} [options] Override http request option.
|
|
4136
4166
|
* @throws {RequiredError}
|
|
4137
4167
|
*/
|
|
4138
|
-
getUserAccountOrdersV2(
|
|
4139
|
-
return localVarFp.getUserAccountOrdersV2(
|
|
4168
|
+
getUserAccountOrdersV2(...args) {
|
|
4169
|
+
return localVarFp.getUserAccountOrdersV2(...args).then((request) => request(axios$4, basePath));
|
|
4140
4170
|
},
|
|
4141
4171
|
/**
|
|
4142
4172
|
* A lightweight endpoint that returns a list of orders executed in the last 24 hours in the specified account using the V2 order format. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders. Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days. By default only returns executed orders, but that can be changed by setting *only_executed* to false. **Because of the cost of realtime requests, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)**
|
|
@@ -4145,8 +4175,8 @@ const ExperimentalEndpointsApiFactory = function(configuration, basePath, axios$
|
|
|
4145
4175
|
* @param {*} [options] Override http request option.
|
|
4146
4176
|
* @throws {RequiredError}
|
|
4147
4177
|
*/
|
|
4148
|
-
getUserAccountRecentOrdersV2(
|
|
4149
|
-
return localVarFp.getUserAccountRecentOrdersV2(
|
|
4178
|
+
getUserAccountRecentOrdersV2(...args) {
|
|
4179
|
+
return localVarFp.getUserAccountRecentOrdersV2(...args).then((request) => request(axios$4, basePath));
|
|
4150
4180
|
},
|
|
4151
4181
|
/**
|
|
4152
4182
|
* Experimental and subject to change without notice. Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape. Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema. On Pay as you Go / Real-time, this endpoint refreshes each account\'s opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
@@ -4155,8 +4185,8 @@ const ExperimentalEndpointsApiFactory = function(configuration, basePath, axios$
|
|
|
4155
4185
|
* @param {*} [options] Override http request option.
|
|
4156
4186
|
* @throws {RequiredError}
|
|
4157
4187
|
*/
|
|
4158
|
-
listConnectionAccounts(
|
|
4159
|
-
return localVarFp.listConnectionAccounts(
|
|
4188
|
+
listConnectionAccounts(...args) {
|
|
4189
|
+
return localVarFp.listConnectionAccounts(...args).then((request) => request(axios$4, basePath));
|
|
4160
4190
|
},
|
|
4161
4191
|
/**
|
|
4162
4192
|
* Returns active Trade Detection subscriptions for your Client ID. Cancelled subscriptions are not returned.
|
|
@@ -4184,8 +4214,8 @@ var ExperimentalEndpointsApiGenerated = class extends BaseAPI {
|
|
|
4184
4214
|
* @throws {RequiredError}
|
|
4185
4215
|
* @memberof ExperimentalEndpointsApiGenerated
|
|
4186
4216
|
*/
|
|
4187
|
-
addSubscription(
|
|
4188
|
-
return ExperimentalEndpointsApiFp(this.configuration).addSubscription(
|
|
4217
|
+
addSubscription(...args) {
|
|
4218
|
+
return ExperimentalEndpointsApiFp(this.configuration).addSubscription(...args).then((request) => request(this.axios, this.basePath));
|
|
4189
4219
|
}
|
|
4190
4220
|
/**
|
|
4191
4221
|
* Cancels a Trade Detection subscription for a connected brokerage account. This endpoint requires partner signature authentication only and does not require `userId` or `userSecret`.
|
|
@@ -4195,8 +4225,8 @@ var ExperimentalEndpointsApiGenerated = class extends BaseAPI {
|
|
|
4195
4225
|
* @throws {RequiredError}
|
|
4196
4226
|
* @memberof ExperimentalEndpointsApiGenerated
|
|
4197
4227
|
*/
|
|
4198
|
-
cancelSubscription(
|
|
4199
|
-
return ExperimentalEndpointsApiFp(this.configuration).cancelSubscription(
|
|
4228
|
+
cancelSubscription(...args) {
|
|
4229
|
+
return ExperimentalEndpointsApiFp(this.configuration).cancelSubscription(...args).then((request) => request(this.axios, this.basePath));
|
|
4200
4230
|
}
|
|
4201
4231
|
/**
|
|
4202
4232
|
* Returns the detail of a single order using the brokerage order ID provided as a path parameter. The V2 order response format includes all legs of the order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
|
@@ -4206,8 +4236,8 @@ var ExperimentalEndpointsApiGenerated = class extends BaseAPI {
|
|
|
4206
4236
|
* @throws {RequiredError}
|
|
4207
4237
|
* @memberof ExperimentalEndpointsApiGenerated
|
|
4208
4238
|
*/
|
|
4209
|
-
getUserAccountOrderDetailV2(
|
|
4210
|
-
return ExperimentalEndpointsApiFp(this.configuration).getUserAccountOrderDetailV2(
|
|
4239
|
+
getUserAccountOrderDetailV2(...args) {
|
|
4240
|
+
return ExperimentalEndpointsApiFp(this.configuration).getUserAccountOrderDetailV2(...args).then((request) => request(this.axios, this.basePath));
|
|
4211
4241
|
}
|
|
4212
4242
|
/**
|
|
4213
4243
|
* Returns a list of recent orders in the specified account. The V2 order response format will include all legs of each order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
@@ -4217,8 +4247,8 @@ var ExperimentalEndpointsApiGenerated = class extends BaseAPI {
|
|
|
4217
4247
|
* @throws {RequiredError}
|
|
4218
4248
|
* @memberof ExperimentalEndpointsApiGenerated
|
|
4219
4249
|
*/
|
|
4220
|
-
getUserAccountOrdersV2(
|
|
4221
|
-
return ExperimentalEndpointsApiFp(this.configuration).getUserAccountOrdersV2(
|
|
4250
|
+
getUserAccountOrdersV2(...args) {
|
|
4251
|
+
return ExperimentalEndpointsApiFp(this.configuration).getUserAccountOrdersV2(...args).then((request) => request(this.axios, this.basePath));
|
|
4222
4252
|
}
|
|
4223
4253
|
/**
|
|
4224
4254
|
* A lightweight endpoint that returns a list of orders executed in the last 24 hours in the specified account using the V2 order format. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders. Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days. By default only returns executed orders, but that can be changed by setting *only_executed* to false. **Because of the cost of realtime requests, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)**
|
|
@@ -4228,8 +4258,8 @@ var ExperimentalEndpointsApiGenerated = class extends BaseAPI {
|
|
|
4228
4258
|
* @throws {RequiredError}
|
|
4229
4259
|
* @memberof ExperimentalEndpointsApiGenerated
|
|
4230
4260
|
*/
|
|
4231
|
-
getUserAccountRecentOrdersV2(
|
|
4232
|
-
return ExperimentalEndpointsApiFp(this.configuration).getUserAccountRecentOrdersV2(
|
|
4261
|
+
getUserAccountRecentOrdersV2(...args) {
|
|
4262
|
+
return ExperimentalEndpointsApiFp(this.configuration).getUserAccountRecentOrdersV2(...args).then((request) => request(this.axios, this.basePath));
|
|
4233
4263
|
}
|
|
4234
4264
|
/**
|
|
4235
4265
|
* Experimental and subject to change without notice. Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape. Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema. On Pay as you Go / Real-time, this endpoint refreshes each account\'s opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
@@ -4239,8 +4269,8 @@ var ExperimentalEndpointsApiGenerated = class extends BaseAPI {
|
|
|
4239
4269
|
* @throws {RequiredError}
|
|
4240
4270
|
* @memberof ExperimentalEndpointsApiGenerated
|
|
4241
4271
|
*/
|
|
4242
|
-
listConnectionAccounts(
|
|
4243
|
-
return ExperimentalEndpointsApiFp(this.configuration).listConnectionAccounts(
|
|
4272
|
+
listConnectionAccounts(...args) {
|
|
4273
|
+
return ExperimentalEndpointsApiFp(this.configuration).listConnectionAccounts(...args).then((request) => request(this.axios, this.basePath));
|
|
4244
4274
|
}
|
|
4245
4275
|
/**
|
|
4246
4276
|
* Returns active Trade Detection subscriptions for your Client ID. Cancelled subscriptions are not returned.
|
|
@@ -4866,7 +4896,8 @@ const ReferenceDataApiFp = function(configuration) {
|
|
|
4866
4896
|
* @param {*} [options] Override http request option.
|
|
4867
4897
|
* @throws {RequiredError}
|
|
4868
4898
|
*/
|
|
4869
|
-
async getSymbols(
|
|
4899
|
+
async getSymbols(...args) {
|
|
4900
|
+
const [requestParameters = {}, options] = args;
|
|
4870
4901
|
const symbolQuery = { substring: requestParameters.substring };
|
|
4871
4902
|
return createRequestFunction(await localVarAxiosParamCreator.getSymbols(symbolQuery, options), axios.default, BASE_PATH, configuration, {
|
|
4872
4903
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
@@ -4889,7 +4920,8 @@ const ReferenceDataApiFp = function(configuration) {
|
|
|
4889
4920
|
* @param {*} [options] Override http request option.
|
|
4890
4921
|
* @throws {RequiredError}
|
|
4891
4922
|
*/
|
|
4892
|
-
async getSymbolsByTicker(
|
|
4923
|
+
async getSymbolsByTicker(...args) {
|
|
4924
|
+
const [requestParameters = {}, options] = args;
|
|
4893
4925
|
return createRequestFunction(await localVarAxiosParamCreator.getSymbolsByTicker(requestParameters.query, options), axios.default, BASE_PATH, configuration, {
|
|
4894
4926
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
4895
4927
|
requestSigningByAuthMode: {
|
|
@@ -4911,7 +4943,8 @@ const ReferenceDataApiFp = function(configuration) {
|
|
|
4911
4943
|
* @param {*} [options] Override http request option.
|
|
4912
4944
|
* @throws {RequiredError}
|
|
4913
4945
|
*/
|
|
4914
|
-
async listAllBrokerageAuthorizationType(
|
|
4946
|
+
async listAllBrokerageAuthorizationType(...args) {
|
|
4947
|
+
const [requestParameters = {}, options] = args;
|
|
4915
4948
|
return createRequestFunction(await localVarAxiosParamCreator.listAllBrokerageAuthorizationType(requestParameters.brokerage, options), axios.default, BASE_PATH, configuration, {
|
|
4916
4949
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
4917
4950
|
requestSigningByAuthMode: {
|
|
@@ -4933,7 +4966,8 @@ const ReferenceDataApiFp = function(configuration) {
|
|
|
4933
4966
|
* @param {*} [options] Override http request option.
|
|
4934
4967
|
* @throws {RequiredError}
|
|
4935
4968
|
*/
|
|
4936
|
-
async listAllBrokerageInstruments(
|
|
4969
|
+
async listAllBrokerageInstruments(...args) {
|
|
4970
|
+
const [requestParameters = {}, options] = args;
|
|
4937
4971
|
return createRequestFunction(await localVarAxiosParamCreator.listAllBrokerageInstruments(requestParameters.slug, options), axios.default, BASE_PATH, configuration, {
|
|
4938
4972
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
4939
4973
|
requestSigningByAuthMode: {
|
|
@@ -4977,7 +5011,8 @@ const ReferenceDataApiFp = function(configuration) {
|
|
|
4977
5011
|
* @param {*} [options] Override http request option.
|
|
4978
5012
|
* @throws {RequiredError}
|
|
4979
5013
|
*/
|
|
4980
|
-
async symbolSearchUserAccount(
|
|
5014
|
+
async symbolSearchUserAccount(...args) {
|
|
5015
|
+
const [requestParameters = {}, options] = args;
|
|
4981
5016
|
const symbolQuery = { substring: requestParameters.substring };
|
|
4982
5017
|
return createRequestFunction(await localVarAxiosParamCreator.symbolSearchUserAccount(requestParameters.accountId, symbolQuery, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
4983
5018
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
@@ -5027,8 +5062,8 @@ const ReferenceDataApiFactory = function(configuration, basePath, axios$3) {
|
|
|
5027
5062
|
* @param {*} [options] Override http request option.
|
|
5028
5063
|
* @throws {RequiredError}
|
|
5029
5064
|
*/
|
|
5030
|
-
getSymbols(
|
|
5031
|
-
return localVarFp.getSymbols(
|
|
5065
|
+
getSymbols(...args) {
|
|
5066
|
+
return localVarFp.getSymbols(...args).then((request) => request(axios$3, basePath));
|
|
5032
5067
|
},
|
|
5033
5068
|
/**
|
|
5034
5069
|
* Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
|
|
@@ -5037,8 +5072,8 @@ const ReferenceDataApiFactory = function(configuration, basePath, axios$3) {
|
|
|
5037
5072
|
* @param {*} [options] Override http request option.
|
|
5038
5073
|
* @throws {RequiredError}
|
|
5039
5074
|
*/
|
|
5040
|
-
getSymbolsByTicker(
|
|
5041
|
-
return localVarFp.getSymbolsByTicker(
|
|
5075
|
+
getSymbolsByTicker(...args) {
|
|
5076
|
+
return localVarFp.getSymbolsByTicker(...args).then((request) => request(axios$3, basePath));
|
|
5042
5077
|
},
|
|
5043
5078
|
/**
|
|
5044
5079
|
* Returns a list of all defined Brokerage authorization Type objects.
|
|
@@ -5047,8 +5082,8 @@ const ReferenceDataApiFactory = function(configuration, basePath, axios$3) {
|
|
|
5047
5082
|
* @param {*} [options] Override http request option.
|
|
5048
5083
|
* @throws {RequiredError}
|
|
5049
5084
|
*/
|
|
5050
|
-
listAllBrokerageAuthorizationType(
|
|
5051
|
-
return localVarFp.listAllBrokerageAuthorizationType(
|
|
5085
|
+
listAllBrokerageAuthorizationType(...args) {
|
|
5086
|
+
return localVarFp.listAllBrokerageAuthorizationType(...args).then((request) => request(axios$3, basePath));
|
|
5052
5087
|
},
|
|
5053
5088
|
/**
|
|
5054
5089
|
* Returns a list of all brokerage instruments available for a given brokerage. Not all brokerages support this. The ones that don\'t will return an empty list.
|
|
@@ -5057,8 +5092,8 @@ const ReferenceDataApiFactory = function(configuration, basePath, axios$3) {
|
|
|
5057
5092
|
* @param {*} [options] Override http request option.
|
|
5058
5093
|
* @throws {RequiredError}
|
|
5059
5094
|
*/
|
|
5060
|
-
listAllBrokerageInstruments(
|
|
5061
|
-
return localVarFp.listAllBrokerageInstruments(
|
|
5095
|
+
listAllBrokerageInstruments(...args) {
|
|
5096
|
+
return localVarFp.listAllBrokerageInstruments(...args).then((request) => request(axios$3, basePath));
|
|
5062
5097
|
},
|
|
5063
5098
|
/**
|
|
5064
5099
|
* Returns a list of all defined Brokerage objects.
|
|
@@ -5076,8 +5111,8 @@ const ReferenceDataApiFactory = function(configuration, basePath, axios$3) {
|
|
|
5076
5111
|
* @param {*} [options] Override http request option.
|
|
5077
5112
|
* @throws {RequiredError}
|
|
5078
5113
|
*/
|
|
5079
|
-
symbolSearchUserAccount(
|
|
5080
|
-
return localVarFp.symbolSearchUserAccount(
|
|
5114
|
+
symbolSearchUserAccount(...args) {
|
|
5115
|
+
return localVarFp.symbolSearchUserAccount(...args).then((request) => request(axios$3, basePath));
|
|
5081
5116
|
}
|
|
5082
5117
|
};
|
|
5083
5118
|
};
|
|
@@ -5116,8 +5151,8 @@ var ReferenceDataApiGenerated = class extends BaseAPI {
|
|
|
5116
5151
|
* @throws {RequiredError}
|
|
5117
5152
|
* @memberof ReferenceDataApiGenerated
|
|
5118
5153
|
*/
|
|
5119
|
-
getSymbols(
|
|
5120
|
-
return ReferenceDataApiFp(this.configuration).getSymbols(
|
|
5154
|
+
getSymbols(...args) {
|
|
5155
|
+
return ReferenceDataApiFp(this.configuration).getSymbols(...args).then((request) => request(this.axios, this.basePath));
|
|
5121
5156
|
}
|
|
5122
5157
|
/**
|
|
5123
5158
|
* Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
|
|
@@ -5127,8 +5162,8 @@ var ReferenceDataApiGenerated = class extends BaseAPI {
|
|
|
5127
5162
|
* @throws {RequiredError}
|
|
5128
5163
|
* @memberof ReferenceDataApiGenerated
|
|
5129
5164
|
*/
|
|
5130
|
-
getSymbolsByTicker(
|
|
5131
|
-
return ReferenceDataApiFp(this.configuration).getSymbolsByTicker(
|
|
5165
|
+
getSymbolsByTicker(...args) {
|
|
5166
|
+
return ReferenceDataApiFp(this.configuration).getSymbolsByTicker(...args).then((request) => request(this.axios, this.basePath));
|
|
5132
5167
|
}
|
|
5133
5168
|
/**
|
|
5134
5169
|
* Returns a list of all defined Brokerage authorization Type objects.
|
|
@@ -5138,8 +5173,8 @@ var ReferenceDataApiGenerated = class extends BaseAPI {
|
|
|
5138
5173
|
* @throws {RequiredError}
|
|
5139
5174
|
* @memberof ReferenceDataApiGenerated
|
|
5140
5175
|
*/
|
|
5141
|
-
listAllBrokerageAuthorizationType(
|
|
5142
|
-
return ReferenceDataApiFp(this.configuration).listAllBrokerageAuthorizationType(
|
|
5176
|
+
listAllBrokerageAuthorizationType(...args) {
|
|
5177
|
+
return ReferenceDataApiFp(this.configuration).listAllBrokerageAuthorizationType(...args).then((request) => request(this.axios, this.basePath));
|
|
5143
5178
|
}
|
|
5144
5179
|
/**
|
|
5145
5180
|
* Returns a list of all brokerage instruments available for a given brokerage. Not all brokerages support this. The ones that don\'t will return an empty list.
|
|
@@ -5149,8 +5184,8 @@ var ReferenceDataApiGenerated = class extends BaseAPI {
|
|
|
5149
5184
|
* @throws {RequiredError}
|
|
5150
5185
|
* @memberof ReferenceDataApiGenerated
|
|
5151
5186
|
*/
|
|
5152
|
-
listAllBrokerageInstruments(
|
|
5153
|
-
return ReferenceDataApiFp(this.configuration).listAllBrokerageInstruments(
|
|
5187
|
+
listAllBrokerageInstruments(...args) {
|
|
5188
|
+
return ReferenceDataApiFp(this.configuration).listAllBrokerageInstruments(...args).then((request) => request(this.axios, this.basePath));
|
|
5154
5189
|
}
|
|
5155
5190
|
/**
|
|
5156
5191
|
* Returns a list of all defined Brokerage objects.
|
|
@@ -5170,8 +5205,8 @@ var ReferenceDataApiGenerated = class extends BaseAPI {
|
|
|
5170
5205
|
* @throws {RequiredError}
|
|
5171
5206
|
* @memberof ReferenceDataApiGenerated
|
|
5172
5207
|
*/
|
|
5173
|
-
symbolSearchUserAccount(
|
|
5174
|
-
return ReferenceDataApiFp(this.configuration).symbolSearchUserAccount(
|
|
5208
|
+
symbolSearchUserAccount(...args) {
|
|
5209
|
+
return ReferenceDataApiFp(this.configuration).symbolSearchUserAccount(...args).then((request) => request(this.axios, this.basePath));
|
|
5175
5210
|
}
|
|
5176
5211
|
};
|
|
5177
5212
|
//#endregion
|
|
@@ -5648,7 +5683,7 @@ const TradingApiAxiosParamCreator = function(configuration) {
|
|
|
5648
5683
|
};
|
|
5649
5684
|
},
|
|
5650
5685
|
/**
|
|
5651
|
-
* Places a complex conditional order (OCO, OTO, or OTOCO). 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.
|
|
5686
|
+
* Places a complex conditional order (OCO, OTO, or OTOCO). 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. Option OCO peers must trade the same OCC option symbol with the same closing action and positive whole-contract quantity. On tastytrade, option OCO supports closing an existing long or short option position with one `Limit` order and one `Stop` or `StopLimit` order. Both `PEER` orders must use `SELL_TO_CLOSE` or both must use `BUY_TO_CLOSE`, with `Day` or `GTC` time in force. Opening option OCOs are not supported. On enabled Webull US v3 accounts, option OCO supports closing an existing long option position with one `Limit` take-profit order and one `Stop` stop-loss order. Both `PEER` orders must use `SELL_TO_CLOSE`, `Day`, the same OCC option symbol, and the same positive whole-contract quantity. Webull receives these as `STOP_PROFIT` and `STOP_LOSS` orders sharing a combo ID, without a MASTER order. Opening option OCOs, `BUY_TO_CLOSE`, `StopLimit`, and other option order pairs are not supported on Webull. Equity complex-order behavior is unchanged.
|
|
5652
5687
|
* @summary Place complex order
|
|
5653
5688
|
* @param {string} accountId The ID of the account to execute the trade on.
|
|
5654
5689
|
* @param {ManualTradeFormComplex} manualTradeFormComplex
|
|
@@ -6283,7 +6318,8 @@ const TradingApiFp = function(configuration) {
|
|
|
6283
6318
|
* @param {*} [options] Override http request option.
|
|
6284
6319
|
* @throws {RequiredError}
|
|
6285
6320
|
*/
|
|
6286
|
-
async cancelOrder(
|
|
6321
|
+
async cancelOrder(...args) {
|
|
6322
|
+
const [requestParameters = {}, options] = args;
|
|
6287
6323
|
const accountInformationGetUserAccountOrderDetailRequest = { brokerage_order_id: requestParameters.brokerage_order_id };
|
|
6288
6324
|
return createRequestFunction(await localVarAxiosParamCreator.cancelOrder(requestParameters.accountId, accountInformationGetUserAccountOrderDetailRequest, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
6289
6325
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
@@ -6306,7 +6342,8 @@ const TradingApiFp = function(configuration) {
|
|
|
6306
6342
|
* @param {*} [options] Override http request option.
|
|
6307
6343
|
* @throws {RequiredError}
|
|
6308
6344
|
*/
|
|
6309
|
-
async getCryptocurrencyPairQuote(
|
|
6345
|
+
async getCryptocurrencyPairQuote(...args) {
|
|
6346
|
+
const [requestParameters = {}, options] = args;
|
|
6310
6347
|
return createRequestFunction(await localVarAxiosParamCreator.getCryptocurrencyPairQuote(requestParameters.accountId, requestParameters.instrumentSymbol, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
6311
6348
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
6312
6349
|
requestSigningByAuthMode: {
|
|
@@ -6328,7 +6365,8 @@ const TradingApiFp = function(configuration) {
|
|
|
6328
6365
|
* @param {*} [options] Override http request option.
|
|
6329
6366
|
* @throws {RequiredError}
|
|
6330
6367
|
*/
|
|
6331
|
-
async getOptionImpact(
|
|
6368
|
+
async getOptionImpact(...args) {
|
|
6369
|
+
const [requestParameters = {}, options] = args;
|
|
6332
6370
|
const mlegTradeForm = {
|
|
6333
6371
|
order_type: requestParameters.order_type,
|
|
6334
6372
|
time_in_force: requestParameters.time_in_force,
|
|
@@ -6358,7 +6396,8 @@ const TradingApiFp = function(configuration) {
|
|
|
6358
6396
|
* @param {*} [options] Override http request option.
|
|
6359
6397
|
* @throws {RequiredError}
|
|
6360
6398
|
*/
|
|
6361
|
-
async getOrderImpact(
|
|
6399
|
+
async getOrderImpact(...args) {
|
|
6400
|
+
const [requestParameters = {}, options] = args;
|
|
6362
6401
|
const manualTradeForm = {
|
|
6363
6402
|
account_id: requestParameters.account_id,
|
|
6364
6403
|
action: requestParameters.action,
|
|
@@ -6392,7 +6431,8 @@ const TradingApiFp = function(configuration) {
|
|
|
6392
6431
|
* @deprecated
|
|
6393
6432
|
* @throws {RequiredError}
|
|
6394
6433
|
*/
|
|
6395
|
-
async getUserAccountOptionQuotes(
|
|
6434
|
+
async getUserAccountOptionQuotes(...args) {
|
|
6435
|
+
const [requestParameters = {}, options] = args;
|
|
6396
6436
|
return createRequestFunction(await localVarAxiosParamCreator.getUserAccountOptionQuotes(requestParameters.accountId, requestParameters.symbol, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
6397
6437
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
6398
6438
|
requestSigningByAuthMode: {
|
|
@@ -6414,7 +6454,8 @@ const TradingApiFp = function(configuration) {
|
|
|
6414
6454
|
* @param {*} [options] Override http request option.
|
|
6415
6455
|
* @throws {RequiredError}
|
|
6416
6456
|
*/
|
|
6417
|
-
async getUserAccountQuotes(
|
|
6457
|
+
async getUserAccountQuotes(...args) {
|
|
6458
|
+
const [requestParameters = {}, options] = args;
|
|
6418
6459
|
return createRequestFunction(await localVarAxiosParamCreator.getUserAccountQuotes(requestParameters.symbols, requestParameters.accountId, requestParameters.useTicker, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
6419
6460
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
6420
6461
|
requestSigningByAuthMode: {
|
|
@@ -6430,13 +6471,14 @@ const TradingApiFp = function(configuration) {
|
|
|
6430
6471
|
});
|
|
6431
6472
|
},
|
|
6432
6473
|
/**
|
|
6433
|
-
* Places a complex conditional order (OCO, OTO, or OTOCO). 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.
|
|
6474
|
+
* Places a complex conditional order (OCO, OTO, or OTOCO). 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. Option OCO peers must trade the same OCC option symbol with the same closing action and positive whole-contract quantity. On tastytrade, option OCO supports closing an existing long or short option position with one `Limit` order and one `Stop` or `StopLimit` order. Both `PEER` orders must use `SELL_TO_CLOSE` or both must use `BUY_TO_CLOSE`, with `Day` or `GTC` time in force. Opening option OCOs are not supported. On enabled Webull US v3 accounts, option OCO supports closing an existing long option position with one `Limit` take-profit order and one `Stop` stop-loss order. Both `PEER` orders must use `SELL_TO_CLOSE`, `Day`, the same OCC option symbol, and the same positive whole-contract quantity. Webull receives these as `STOP_PROFIT` and `STOP_LOSS` orders sharing a combo ID, without a MASTER order. Opening option OCOs, `BUY_TO_CLOSE`, `StopLimit`, and other option order pairs are not supported on Webull. Equity complex-order behavior is unchanged.
|
|
6434
6475
|
* @summary Place complex order
|
|
6435
6476
|
* @param {TradingApiPlaceComplexOrderRequest<TAuth>} requestParameters Request parameters.
|
|
6436
6477
|
* @param {*} [options] Override http request option.
|
|
6437
6478
|
* @throws {RequiredError}
|
|
6438
6479
|
*/
|
|
6439
|
-
async placeComplexOrder(
|
|
6480
|
+
async placeComplexOrder(...args) {
|
|
6481
|
+
const [requestParameters = {}, options] = args;
|
|
6440
6482
|
const manualTradeFormComplex = {
|
|
6441
6483
|
type: requestParameters.type,
|
|
6442
6484
|
orders: requestParameters.orders,
|
|
@@ -6463,7 +6505,8 @@ const TradingApiFp = function(configuration) {
|
|
|
6463
6505
|
* @param {*} [options] Override http request option.
|
|
6464
6506
|
* @throws {RequiredError}
|
|
6465
6507
|
*/
|
|
6466
|
-
async placeCryptoOrder(
|
|
6508
|
+
async placeCryptoOrder(...args) {
|
|
6509
|
+
const [requestParameters = {}, options] = args;
|
|
6467
6510
|
const cryptoOrderForm = {
|
|
6468
6511
|
instrument: requestParameters.instrument,
|
|
6469
6512
|
side: requestParameters.side,
|
|
@@ -6496,7 +6539,8 @@ const TradingApiFp = function(configuration) {
|
|
|
6496
6539
|
* @param {*} [options] Override http request option.
|
|
6497
6540
|
* @throws {RequiredError}
|
|
6498
6541
|
*/
|
|
6499
|
-
async placeForceOrder(
|
|
6542
|
+
async placeForceOrder(...args) {
|
|
6543
|
+
const [requestParameters = {}, options] = args;
|
|
6500
6544
|
const manualTradeFormWithOptions = {
|
|
6501
6545
|
account_id: requestParameters.account_id,
|
|
6502
6546
|
action: requestParameters.action,
|
|
@@ -6533,7 +6577,8 @@ const TradingApiFp = function(configuration) {
|
|
|
6533
6577
|
* @param {*} [options] Override http request option.
|
|
6534
6578
|
* @throws {RequiredError}
|
|
6535
6579
|
*/
|
|
6536
|
-
async placeMlegOrder(
|
|
6580
|
+
async placeMlegOrder(...args) {
|
|
6581
|
+
const [requestParameters = {}, options] = args;
|
|
6537
6582
|
const mlegTradeForm = {
|
|
6538
6583
|
order_type: requestParameters.order_type,
|
|
6539
6584
|
time_in_force: requestParameters.time_in_force,
|
|
@@ -6563,7 +6608,8 @@ const TradingApiFp = function(configuration) {
|
|
|
6563
6608
|
* @param {*} [options] Override http request option.
|
|
6564
6609
|
* @throws {RequiredError}
|
|
6565
6610
|
*/
|
|
6566
|
-
async placeOrder(
|
|
6611
|
+
async placeOrder(...args) {
|
|
6612
|
+
const [requestParameters = {}, options] = args;
|
|
6567
6613
|
const validatedTradeBody = { wait_to_confirm: requestParameters.wait_to_confirm };
|
|
6568
6614
|
return createRequestFunction(await localVarAxiosParamCreator.placeOrder(requestParameters.tradeId, validatedTradeBody, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
6569
6615
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
@@ -6586,7 +6632,8 @@ const TradingApiFp = function(configuration) {
|
|
|
6586
6632
|
* @param {*} [options] Override http request option.
|
|
6587
6633
|
* @throws {RequiredError}
|
|
6588
6634
|
*/
|
|
6589
|
-
async previewCryptoOrder(
|
|
6635
|
+
async previewCryptoOrder(...args) {
|
|
6636
|
+
const [requestParameters = {}, options] = args;
|
|
6590
6637
|
const cryptoOrderForm = {
|
|
6591
6638
|
instrument: requestParameters.instrument,
|
|
6592
6639
|
side: requestParameters.side,
|
|
@@ -6619,7 +6666,8 @@ const TradingApiFp = function(configuration) {
|
|
|
6619
6666
|
* @param {*} [options] Override http request option.
|
|
6620
6667
|
* @throws {RequiredError}
|
|
6621
6668
|
*/
|
|
6622
|
-
async replaceOrder(
|
|
6669
|
+
async replaceOrder(...args) {
|
|
6670
|
+
const [requestParameters = {}, options] = args;
|
|
6623
6671
|
const manualTradeReplaceForm = {
|
|
6624
6672
|
brokerage_order_id: requestParameters.brokerage_order_id,
|
|
6625
6673
|
action: requestParameters.action,
|
|
@@ -6651,7 +6699,8 @@ const TradingApiFp = function(configuration) {
|
|
|
6651
6699
|
* @param {*} [options] Override http request option.
|
|
6652
6700
|
* @throws {RequiredError}
|
|
6653
6701
|
*/
|
|
6654
|
-
async searchCryptocurrencyPairInstruments(
|
|
6702
|
+
async searchCryptocurrencyPairInstruments(...args) {
|
|
6703
|
+
const [requestParameters = {}, options] = args;
|
|
6655
6704
|
return createRequestFunction(await localVarAxiosParamCreator.searchCryptocurrencyPairInstruments(requestParameters.accountId, requestParameters.base, requestParameters.quote, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
6656
6705
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
6657
6706
|
requestSigningByAuthMode: {
|
|
@@ -6682,8 +6731,8 @@ const TradingApiFactory = function(configuration, basePath, axios$2) {
|
|
|
6682
6731
|
* @param {*} [options] Override http request option.
|
|
6683
6732
|
* @throws {RequiredError}
|
|
6684
6733
|
*/
|
|
6685
|
-
cancelOrder(
|
|
6686
|
-
return localVarFp.cancelOrder(
|
|
6734
|
+
cancelOrder(...args) {
|
|
6735
|
+
return localVarFp.cancelOrder(...args).then((request) => request(axios$2, basePath));
|
|
6687
6736
|
},
|
|
6688
6737
|
/**
|
|
6689
6738
|
* Gets a quote for the specified account.
|
|
@@ -6692,8 +6741,8 @@ const TradingApiFactory = function(configuration, basePath, axios$2) {
|
|
|
6692
6741
|
* @param {*} [options] Override http request option.
|
|
6693
6742
|
* @throws {RequiredError}
|
|
6694
6743
|
*/
|
|
6695
|
-
getCryptocurrencyPairQuote(
|
|
6696
|
-
return localVarFp.getCryptocurrencyPairQuote(
|
|
6744
|
+
getCryptocurrencyPairQuote(...args) {
|
|
6745
|
+
return localVarFp.getCryptocurrencyPairQuote(...args).then((request) => request(axios$2, basePath));
|
|
6697
6746
|
},
|
|
6698
6747
|
/**
|
|
6699
6748
|
* Simulates an option order with up to 4 legs and returns the estimated cost and transaction fees without placing it. Only supported for certain enabled brokerages. Please refer to the [brokerage trading support page](https://support.snaptrade.com/brokerages) for more information on which brokerages support this endpoint.
|
|
@@ -6702,8 +6751,8 @@ const TradingApiFactory = function(configuration, basePath, axios$2) {
|
|
|
6702
6751
|
* @param {*} [options] Override http request option.
|
|
6703
6752
|
* @throws {RequiredError}
|
|
6704
6753
|
*/
|
|
6705
|
-
getOptionImpact(
|
|
6706
|
-
return localVarFp.getOptionImpact(
|
|
6754
|
+
getOptionImpact(...args) {
|
|
6755
|
+
return localVarFp.getOptionImpact(...args).then((request) => request(axios$2, basePath));
|
|
6707
6756
|
},
|
|
6708
6757
|
/**
|
|
6709
6758
|
* Simulates an order and its impact on the account. This endpoint does not place the order with the brokerage. If successful, it returns a `Trade` object and the ID of the object can be used to place the order with the brokerage using the [place checked order endpoint](/reference/Trading/Trading_placeOrder). Please note that the `Trade` object returned expires after 5 minutes. Any order placed using an expired `Trade` will be rejected.
|
|
@@ -6712,8 +6761,8 @@ const TradingApiFactory = function(configuration, basePath, axios$2) {
|
|
|
6712
6761
|
* @param {*} [options] Override http request option.
|
|
6713
6762
|
* @throws {RequiredError}
|
|
6714
6763
|
*/
|
|
6715
|
-
getOrderImpact(
|
|
6716
|
-
return localVarFp.getOrderImpact(
|
|
6764
|
+
getOrderImpact(...args) {
|
|
6765
|
+
return localVarFp.getOrderImpact(...args).then((request) => request(axios$2, basePath));
|
|
6717
6766
|
},
|
|
6718
6767
|
/**
|
|
6719
6768
|
* Returns a quote for a single option contract. The option contract is specified using in the 21 character OCC format. For example `AAPL 251114C00240000` represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format) **Note:** These are derived values and are not suitable for trading purposes. **This Endpoint is deprecated and will cease to return data as of October 1, 2026**
|
|
@@ -6723,8 +6772,8 @@ const TradingApiFactory = function(configuration, basePath, axios$2) {
|
|
|
6723
6772
|
* @deprecated
|
|
6724
6773
|
* @throws {RequiredError}
|
|
6725
6774
|
*/
|
|
6726
|
-
getUserAccountOptionQuotes(
|
|
6727
|
-
return localVarFp.getUserAccountOptionQuotes(
|
|
6775
|
+
getUserAccountOptionQuotes(...args) {
|
|
6776
|
+
return localVarFp.getUserAccountOptionQuotes(...args).then((request) => request(axios$2, basePath));
|
|
6728
6777
|
},
|
|
6729
6778
|
/**
|
|
6730
6779
|
* Returns a maximum of 10 quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. **This endpoint is not a substitute for a market data provider. Frequent polling of this endpoint may result in the disabling of your keys** This endpoint does not work for options quotes.
|
|
@@ -6733,18 +6782,18 @@ const TradingApiFactory = function(configuration, basePath, axios$2) {
|
|
|
6733
6782
|
* @param {*} [options] Override http request option.
|
|
6734
6783
|
* @throws {RequiredError}
|
|
6735
6784
|
*/
|
|
6736
|
-
getUserAccountQuotes(
|
|
6737
|
-
return localVarFp.getUserAccountQuotes(
|
|
6785
|
+
getUserAccountQuotes(...args) {
|
|
6786
|
+
return localVarFp.getUserAccountQuotes(...args).then((request) => request(axios$2, basePath));
|
|
6738
6787
|
},
|
|
6739
6788
|
/**
|
|
6740
|
-
* Places a complex conditional order (OCO, OTO, or OTOCO). 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.
|
|
6789
|
+
* Places a complex conditional order (OCO, OTO, or OTOCO). 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. Option OCO peers must trade the same OCC option symbol with the same closing action and positive whole-contract quantity. On tastytrade, option OCO supports closing an existing long or short option position with one `Limit` order and one `Stop` or `StopLimit` order. Both `PEER` orders must use `SELL_TO_CLOSE` or both must use `BUY_TO_CLOSE`, with `Day` or `GTC` time in force. Opening option OCOs are not supported. On enabled Webull US v3 accounts, option OCO supports closing an existing long option position with one `Limit` take-profit order and one `Stop` stop-loss order. Both `PEER` orders must use `SELL_TO_CLOSE`, `Day`, the same OCC option symbol, and the same positive whole-contract quantity. Webull receives these as `STOP_PROFIT` and `STOP_LOSS` orders sharing a combo ID, without a MASTER order. Opening option OCOs, `BUY_TO_CLOSE`, `StopLimit`, and other option order pairs are not supported on Webull. Equity complex-order behavior is unchanged.
|
|
6741
6790
|
* @summary Place complex order
|
|
6742
6791
|
* @param {TradingApiPlaceComplexOrderRequest<TAuth>} requestParameters Request parameters.
|
|
6743
6792
|
* @param {*} [options] Override http request option.
|
|
6744
6793
|
* @throws {RequiredError}
|
|
6745
6794
|
*/
|
|
6746
|
-
placeComplexOrder(
|
|
6747
|
-
return localVarFp.placeComplexOrder(
|
|
6795
|
+
placeComplexOrder(...args) {
|
|
6796
|
+
return localVarFp.placeComplexOrder(...args).then((request) => request(axios$2, basePath));
|
|
6748
6797
|
},
|
|
6749
6798
|
/**
|
|
6750
6799
|
* Places an order in the specified account. This endpoint does not compute the impact to the account balance from the order before submitting the order.
|
|
@@ -6753,8 +6802,8 @@ const TradingApiFactory = function(configuration, basePath, axios$2) {
|
|
|
6753
6802
|
* @param {*} [options] Override http request option.
|
|
6754
6803
|
* @throws {RequiredError}
|
|
6755
6804
|
*/
|
|
6756
|
-
placeCryptoOrder(
|
|
6757
|
-
return localVarFp.placeCryptoOrder(
|
|
6805
|
+
placeCryptoOrder(...args) {
|
|
6806
|
+
return localVarFp.placeCryptoOrder(...args).then((request) => request(axios$2, basePath));
|
|
6758
6807
|
},
|
|
6759
6808
|
/**
|
|
6760
6809
|
* Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds. This endpoint does not compute the impact to the account balance from the order and any potential commissions before submitting the order to the brokerage. If that is desired, you can use the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact). It\'s recommended to trigger a manual refresh of the account after placing an order to ensure the account is up to date. You can use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint for this.
|
|
@@ -6763,8 +6812,8 @@ const TradingApiFactory = function(configuration, basePath, axios$2) {
|
|
|
6763
6812
|
* @param {*} [options] Override http request option.
|
|
6764
6813
|
* @throws {RequiredError}
|
|
6765
6814
|
*/
|
|
6766
|
-
placeForceOrder(
|
|
6767
|
-
return localVarFp.placeForceOrder(
|
|
6815
|
+
placeForceOrder(...args) {
|
|
6816
|
+
return localVarFp.placeForceOrder(...args).then((request) => request(axios$2, basePath));
|
|
6768
6817
|
},
|
|
6769
6818
|
/**
|
|
6770
6819
|
* Places a multi-leg option order. Only supported on certain option trading brokerages. https://support.snaptrade.com/brokerages has information on brokerage trading support
|
|
@@ -6773,8 +6822,8 @@ const TradingApiFactory = function(configuration, basePath, axios$2) {
|
|
|
6773
6822
|
* @param {*} [options] Override http request option.
|
|
6774
6823
|
* @throws {RequiredError}
|
|
6775
6824
|
*/
|
|
6776
|
-
placeMlegOrder(
|
|
6777
|
-
return localVarFp.placeMlegOrder(
|
|
6825
|
+
placeMlegOrder(...args) {
|
|
6826
|
+
return localVarFp.placeMlegOrder(...args).then((request) => request(axios$2, basePath));
|
|
6778
6827
|
},
|
|
6779
6828
|
/**
|
|
6780
6829
|
* Places the previously checked order with the brokerage. The `tradeId` is obtained from the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact). If you prefer to place the order without checking for impact first, you can use the [place order endpoint](/reference/Trading/Trading_placeForceOrder). It\'s recommended to trigger a manual refresh of the account after placing an order to ensure the account is up to date. You can use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint for this.
|
|
@@ -6783,8 +6832,8 @@ const TradingApiFactory = function(configuration, basePath, axios$2) {
|
|
|
6783
6832
|
* @param {*} [options] Override http request option.
|
|
6784
6833
|
* @throws {RequiredError}
|
|
6785
6834
|
*/
|
|
6786
|
-
placeOrder(
|
|
6787
|
-
return localVarFp.placeOrder(
|
|
6835
|
+
placeOrder(...args) {
|
|
6836
|
+
return localVarFp.placeOrder(...args).then((request) => request(axios$2, basePath));
|
|
6788
6837
|
},
|
|
6789
6838
|
/**
|
|
6790
6839
|
* Previews an order using the specified account.
|
|
@@ -6793,8 +6842,8 @@ const TradingApiFactory = function(configuration, basePath, axios$2) {
|
|
|
6793
6842
|
* @param {*} [options] Override http request option.
|
|
6794
6843
|
* @throws {RequiredError}
|
|
6795
6844
|
*/
|
|
6796
|
-
previewCryptoOrder(
|
|
6797
|
-
return localVarFp.previewCryptoOrder(
|
|
6845
|
+
previewCryptoOrder(...args) {
|
|
6846
|
+
return localVarFp.previewCryptoOrder(...args).then((request) => request(axios$2, basePath));
|
|
6798
6847
|
},
|
|
6799
6848
|
/**
|
|
6800
6849
|
* Replaces an existing pending order with a new one. The way this works is brokerage dependent, but usually involves cancelling the existing order and placing a new one. The order\'s brokerage_order_id may or may not change, be sure to use the one returned in the response going forward. Only supported on some brokerages
|
|
@@ -6803,8 +6852,8 @@ const TradingApiFactory = function(configuration, basePath, axios$2) {
|
|
|
6803
6852
|
* @param {*} [options] Override http request option.
|
|
6804
6853
|
* @throws {RequiredError}
|
|
6805
6854
|
*/
|
|
6806
|
-
replaceOrder(
|
|
6807
|
-
return localVarFp.replaceOrder(
|
|
6855
|
+
replaceOrder(...args) {
|
|
6856
|
+
return localVarFp.replaceOrder(...args).then((request) => request(axios$2, basePath));
|
|
6808
6857
|
},
|
|
6809
6858
|
/**
|
|
6810
6859
|
* Searches cryptocurrency pairs instruments accessible to the specified account. Both `base` and `quote` are optional. Omit both for a full list of cryptocurrency pairs.
|
|
@@ -6813,8 +6862,8 @@ const TradingApiFactory = function(configuration, basePath, axios$2) {
|
|
|
6813
6862
|
* @param {*} [options] Override http request option.
|
|
6814
6863
|
* @throws {RequiredError}
|
|
6815
6864
|
*/
|
|
6816
|
-
searchCryptocurrencyPairInstruments(
|
|
6817
|
-
return localVarFp.searchCryptocurrencyPairInstruments(
|
|
6865
|
+
searchCryptocurrencyPairInstruments(...args) {
|
|
6866
|
+
return localVarFp.searchCryptocurrencyPairInstruments(...args).then((request) => request(axios$2, basePath));
|
|
6818
6867
|
}
|
|
6819
6868
|
};
|
|
6820
6869
|
};
|
|
@@ -6833,8 +6882,8 @@ var TradingApiGenerated = class extends BaseAPI {
|
|
|
6833
6882
|
* @throws {RequiredError}
|
|
6834
6883
|
* @memberof TradingApiGenerated
|
|
6835
6884
|
*/
|
|
6836
|
-
cancelOrder(
|
|
6837
|
-
return TradingApiFp(this.configuration).cancelOrder(
|
|
6885
|
+
cancelOrder(...args) {
|
|
6886
|
+
return TradingApiFp(this.configuration).cancelOrder(...args).then((request) => request(this.axios, this.basePath));
|
|
6838
6887
|
}
|
|
6839
6888
|
/**
|
|
6840
6889
|
* Gets a quote for the specified account.
|
|
@@ -6844,8 +6893,8 @@ var TradingApiGenerated = class extends BaseAPI {
|
|
|
6844
6893
|
* @throws {RequiredError}
|
|
6845
6894
|
* @memberof TradingApiGenerated
|
|
6846
6895
|
*/
|
|
6847
|
-
getCryptocurrencyPairQuote(
|
|
6848
|
-
return TradingApiFp(this.configuration).getCryptocurrencyPairQuote(
|
|
6896
|
+
getCryptocurrencyPairQuote(...args) {
|
|
6897
|
+
return TradingApiFp(this.configuration).getCryptocurrencyPairQuote(...args).then((request) => request(this.axios, this.basePath));
|
|
6849
6898
|
}
|
|
6850
6899
|
/**
|
|
6851
6900
|
* Simulates an option order with up to 4 legs and returns the estimated cost and transaction fees without placing it. Only supported for certain enabled brokerages. Please refer to the [brokerage trading support page](https://support.snaptrade.com/brokerages) for more information on which brokerages support this endpoint.
|
|
@@ -6855,8 +6904,8 @@ var TradingApiGenerated = class extends BaseAPI {
|
|
|
6855
6904
|
* @throws {RequiredError}
|
|
6856
6905
|
* @memberof TradingApiGenerated
|
|
6857
6906
|
*/
|
|
6858
|
-
getOptionImpact(
|
|
6859
|
-
return TradingApiFp(this.configuration).getOptionImpact(
|
|
6907
|
+
getOptionImpact(...args) {
|
|
6908
|
+
return TradingApiFp(this.configuration).getOptionImpact(...args).then((request) => request(this.axios, this.basePath));
|
|
6860
6909
|
}
|
|
6861
6910
|
/**
|
|
6862
6911
|
* Simulates an order and its impact on the account. This endpoint does not place the order with the brokerage. If successful, it returns a `Trade` object and the ID of the object can be used to place the order with the brokerage using the [place checked order endpoint](/reference/Trading/Trading_placeOrder). Please note that the `Trade` object returned expires after 5 minutes. Any order placed using an expired `Trade` will be rejected.
|
|
@@ -6866,8 +6915,8 @@ var TradingApiGenerated = class extends BaseAPI {
|
|
|
6866
6915
|
* @throws {RequiredError}
|
|
6867
6916
|
* @memberof TradingApiGenerated
|
|
6868
6917
|
*/
|
|
6869
|
-
getOrderImpact(
|
|
6870
|
-
return TradingApiFp(this.configuration).getOrderImpact(
|
|
6918
|
+
getOrderImpact(...args) {
|
|
6919
|
+
return TradingApiFp(this.configuration).getOrderImpact(...args).then((request) => request(this.axios, this.basePath));
|
|
6871
6920
|
}
|
|
6872
6921
|
/**
|
|
6873
6922
|
* Returns a quote for a single option contract. The option contract is specified using in the 21 character OCC format. For example `AAPL 251114C00240000` represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format) **Note:** These are derived values and are not suitable for trading purposes. **This Endpoint is deprecated and will cease to return data as of October 1, 2026**
|
|
@@ -6878,8 +6927,8 @@ var TradingApiGenerated = class extends BaseAPI {
|
|
|
6878
6927
|
* @throws {RequiredError}
|
|
6879
6928
|
* @memberof TradingApiGenerated
|
|
6880
6929
|
*/
|
|
6881
|
-
getUserAccountOptionQuotes(
|
|
6882
|
-
return TradingApiFp(this.configuration).getUserAccountOptionQuotes(
|
|
6930
|
+
getUserAccountOptionQuotes(...args) {
|
|
6931
|
+
return TradingApiFp(this.configuration).getUserAccountOptionQuotes(...args).then((request) => request(this.axios, this.basePath));
|
|
6883
6932
|
}
|
|
6884
6933
|
/**
|
|
6885
6934
|
* Returns a maximum of 10 quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. **This endpoint is not a substitute for a market data provider. Frequent polling of this endpoint may result in the disabling of your keys** This endpoint does not work for options quotes.
|
|
@@ -6889,19 +6938,19 @@ var TradingApiGenerated = class extends BaseAPI {
|
|
|
6889
6938
|
* @throws {RequiredError}
|
|
6890
6939
|
* @memberof TradingApiGenerated
|
|
6891
6940
|
*/
|
|
6892
|
-
getUserAccountQuotes(
|
|
6893
|
-
return TradingApiFp(this.configuration).getUserAccountQuotes(
|
|
6941
|
+
getUserAccountQuotes(...args) {
|
|
6942
|
+
return TradingApiFp(this.configuration).getUserAccountQuotes(...args).then((request) => request(this.axios, this.basePath));
|
|
6894
6943
|
}
|
|
6895
6944
|
/**
|
|
6896
|
-
* Places a complex conditional order (OCO, OTO, or OTOCO). 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.
|
|
6945
|
+
* Places a complex conditional order (OCO, OTO, or OTOCO). 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. Option OCO peers must trade the same OCC option symbol with the same closing action and positive whole-contract quantity. On tastytrade, option OCO supports closing an existing long or short option position with one `Limit` order and one `Stop` or `StopLimit` order. Both `PEER` orders must use `SELL_TO_CLOSE` or both must use `BUY_TO_CLOSE`, with `Day` or `GTC` time in force. Opening option OCOs are not supported. On enabled Webull US v3 accounts, option OCO supports closing an existing long option position with one `Limit` take-profit order and one `Stop` stop-loss order. Both `PEER` orders must use `SELL_TO_CLOSE`, `Day`, the same OCC option symbol, and the same positive whole-contract quantity. Webull receives these as `STOP_PROFIT` and `STOP_LOSS` orders sharing a combo ID, without a MASTER order. Opening option OCOs, `BUY_TO_CLOSE`, `StopLimit`, and other option order pairs are not supported on Webull. Equity complex-order behavior is unchanged.
|
|
6897
6946
|
* @summary Place complex order
|
|
6898
6947
|
* @param {TradingApiPlaceComplexOrderRequest<TAuth>} requestParameters Request parameters.
|
|
6899
6948
|
* @param {*} [options] Override http request option.
|
|
6900
6949
|
* @throws {RequiredError}
|
|
6901
6950
|
* @memberof TradingApiGenerated
|
|
6902
6951
|
*/
|
|
6903
|
-
placeComplexOrder(
|
|
6904
|
-
return TradingApiFp(this.configuration).placeComplexOrder(
|
|
6952
|
+
placeComplexOrder(...args) {
|
|
6953
|
+
return TradingApiFp(this.configuration).placeComplexOrder(...args).then((request) => request(this.axios, this.basePath));
|
|
6905
6954
|
}
|
|
6906
6955
|
/**
|
|
6907
6956
|
* Places an order in the specified account. This endpoint does not compute the impact to the account balance from the order before submitting the order.
|
|
@@ -6911,8 +6960,8 @@ var TradingApiGenerated = class extends BaseAPI {
|
|
|
6911
6960
|
* @throws {RequiredError}
|
|
6912
6961
|
* @memberof TradingApiGenerated
|
|
6913
6962
|
*/
|
|
6914
|
-
placeCryptoOrder(
|
|
6915
|
-
return TradingApiFp(this.configuration).placeCryptoOrder(
|
|
6963
|
+
placeCryptoOrder(...args) {
|
|
6964
|
+
return TradingApiFp(this.configuration).placeCryptoOrder(...args).then((request) => request(this.axios, this.basePath));
|
|
6916
6965
|
}
|
|
6917
6966
|
/**
|
|
6918
6967
|
* Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds. This endpoint does not compute the impact to the account balance from the order and any potential commissions before submitting the order to the brokerage. If that is desired, you can use the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact). It\'s recommended to trigger a manual refresh of the account after placing an order to ensure the account is up to date. You can use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint for this.
|
|
@@ -6922,8 +6971,8 @@ var TradingApiGenerated = class extends BaseAPI {
|
|
|
6922
6971
|
* @throws {RequiredError}
|
|
6923
6972
|
* @memberof TradingApiGenerated
|
|
6924
6973
|
*/
|
|
6925
|
-
placeForceOrder(
|
|
6926
|
-
return TradingApiFp(this.configuration).placeForceOrder(
|
|
6974
|
+
placeForceOrder(...args) {
|
|
6975
|
+
return TradingApiFp(this.configuration).placeForceOrder(...args).then((request) => request(this.axios, this.basePath));
|
|
6927
6976
|
}
|
|
6928
6977
|
/**
|
|
6929
6978
|
* Places a multi-leg option order. Only supported on certain option trading brokerages. https://support.snaptrade.com/brokerages has information on brokerage trading support
|
|
@@ -6933,8 +6982,8 @@ var TradingApiGenerated = class extends BaseAPI {
|
|
|
6933
6982
|
* @throws {RequiredError}
|
|
6934
6983
|
* @memberof TradingApiGenerated
|
|
6935
6984
|
*/
|
|
6936
|
-
placeMlegOrder(
|
|
6937
|
-
return TradingApiFp(this.configuration).placeMlegOrder(
|
|
6985
|
+
placeMlegOrder(...args) {
|
|
6986
|
+
return TradingApiFp(this.configuration).placeMlegOrder(...args).then((request) => request(this.axios, this.basePath));
|
|
6938
6987
|
}
|
|
6939
6988
|
/**
|
|
6940
6989
|
* Places the previously checked order with the brokerage. The `tradeId` is obtained from the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact). If you prefer to place the order without checking for impact first, you can use the [place order endpoint](/reference/Trading/Trading_placeForceOrder). It\'s recommended to trigger a manual refresh of the account after placing an order to ensure the account is up to date. You can use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint for this.
|
|
@@ -6944,8 +6993,8 @@ var TradingApiGenerated = class extends BaseAPI {
|
|
|
6944
6993
|
* @throws {RequiredError}
|
|
6945
6994
|
* @memberof TradingApiGenerated
|
|
6946
6995
|
*/
|
|
6947
|
-
placeOrder(
|
|
6948
|
-
return TradingApiFp(this.configuration).placeOrder(
|
|
6996
|
+
placeOrder(...args) {
|
|
6997
|
+
return TradingApiFp(this.configuration).placeOrder(...args).then((request) => request(this.axios, this.basePath));
|
|
6949
6998
|
}
|
|
6950
6999
|
/**
|
|
6951
7000
|
* Previews an order using the specified account.
|
|
@@ -6955,8 +7004,8 @@ var TradingApiGenerated = class extends BaseAPI {
|
|
|
6955
7004
|
* @throws {RequiredError}
|
|
6956
7005
|
* @memberof TradingApiGenerated
|
|
6957
7006
|
*/
|
|
6958
|
-
previewCryptoOrder(
|
|
6959
|
-
return TradingApiFp(this.configuration).previewCryptoOrder(
|
|
7007
|
+
previewCryptoOrder(...args) {
|
|
7008
|
+
return TradingApiFp(this.configuration).previewCryptoOrder(...args).then((request) => request(this.axios, this.basePath));
|
|
6960
7009
|
}
|
|
6961
7010
|
/**
|
|
6962
7011
|
* Replaces an existing pending order with a new one. The way this works is brokerage dependent, but usually involves cancelling the existing order and placing a new one. The order\'s brokerage_order_id may or may not change, be sure to use the one returned in the response going forward. Only supported on some brokerages
|
|
@@ -6966,8 +7015,8 @@ var TradingApiGenerated = class extends BaseAPI {
|
|
|
6966
7015
|
* @throws {RequiredError}
|
|
6967
7016
|
* @memberof TradingApiGenerated
|
|
6968
7017
|
*/
|
|
6969
|
-
replaceOrder(
|
|
6970
|
-
return TradingApiFp(this.configuration).replaceOrder(
|
|
7018
|
+
replaceOrder(...args) {
|
|
7019
|
+
return TradingApiFp(this.configuration).replaceOrder(...args).then((request) => request(this.axios, this.basePath));
|
|
6971
7020
|
}
|
|
6972
7021
|
/**
|
|
6973
7022
|
* Searches cryptocurrency pairs instruments accessible to the specified account. Both `base` and `quote` are optional. Omit both for a full list of cryptocurrency pairs.
|
|
@@ -6977,8 +7026,8 @@ var TradingApiGenerated = class extends BaseAPI {
|
|
|
6977
7026
|
* @throws {RequiredError}
|
|
6978
7027
|
* @memberof TradingApiGenerated
|
|
6979
7028
|
*/
|
|
6980
|
-
searchCryptocurrencyPairInstruments(
|
|
6981
|
-
return TradingApiFp(this.configuration).searchCryptocurrencyPairInstruments(
|
|
7029
|
+
searchCryptocurrencyPairInstruments(...args) {
|
|
7030
|
+
return TradingApiFp(this.configuration).searchCryptocurrencyPairInstruments(...args).then((request) => request(this.axios, this.basePath));
|
|
6982
7031
|
}
|
|
6983
7032
|
};
|
|
6984
7033
|
//#endregion
|
|
@@ -7031,7 +7080,7 @@ var Configuration = class {
|
|
|
7031
7080
|
}
|
|
7032
7081
|
this.basePath = param.basePath;
|
|
7033
7082
|
this.baseOptions = param.baseOptions ?? {};
|
|
7034
|
-
this.userAgent = param.userAgent === void 0 ? "Konfig/12.2.
|
|
7083
|
+
this.userAgent = param.userAgent === void 0 ? "Konfig/12.2.5/typescript" : param.userAgent;
|
|
7035
7084
|
this.formDataCtor = param.formDataCtor;
|
|
7036
7085
|
}
|
|
7037
7086
|
/**
|