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/dist/index.mjs CHANGED
@@ -1224,7 +1224,8 @@ const AccountInformationApiFp = function(configuration) {
1224
1224
  * @param {*} [options] Override http request option.
1225
1225
  * @throws {RequiredError}
1226
1226
  */
1227
- async getAccountActivities(requestParameters, options) {
1227
+ async getAccountActivities(...args) {
1228
+ const [requestParameters = {}, options] = args;
1228
1229
  return createRequestFunction(await localVarAxiosParamCreator.getAccountActivities(requestParameters.accountId, requestParameters.startDate, requestParameters.endDate, requestParameters.offset, requestParameters.limit, requestParameters.type, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
1229
1230
  authModes: ["commercialApiKey", "personalApiKey"],
1230
1231
  requestSigningByAuthMode: {
@@ -1246,7 +1247,8 @@ const AccountInformationApiFp = function(configuration) {
1246
1247
  * @param {*} [options] Override http request option.
1247
1248
  * @throws {RequiredError}
1248
1249
  */
1249
- async getAccountBalanceHistory(requestParameters, options) {
1250
+ async getAccountBalanceHistory(...args) {
1251
+ const [requestParameters = {}, options] = args;
1250
1252
  return createRequestFunction(await localVarAxiosParamCreator.getAccountBalanceHistory(requestParameters.accountId, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
1251
1253
  authModes: ["commercialApiKey", "personalApiKey"],
1252
1254
  requestSigningByAuthMode: {
@@ -1268,7 +1270,8 @@ const AccountInformationApiFp = function(configuration) {
1268
1270
  * @param {*} [options] Override http request option.
1269
1271
  * @throws {RequiredError}
1270
1272
  */
1271
- async getAllAccountPositions(requestParameters, options) {
1273
+ async getAllAccountPositions(...args) {
1274
+ const [requestParameters = {}, options] = args;
1272
1275
  return createRequestFunction(await localVarAxiosParamCreator.getAllAccountPositions(requestParameters.accountId, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
1273
1276
  authModes: ["commercialApiKey", "personalApiKey"],
1274
1277
  requestSigningByAuthMode: {
@@ -1290,7 +1293,8 @@ const AccountInformationApiFp = function(configuration) {
1290
1293
  * @param {*} [options] Override http request option.
1291
1294
  * @throws {RequiredError}
1292
1295
  */
1293
- async getUserAccountBalance(requestParameters, options) {
1296
+ async getUserAccountBalance(...args) {
1297
+ const [requestParameters = {}, options] = args;
1294
1298
  return createRequestFunction(await localVarAxiosParamCreator.getUserAccountBalance(requestParameters.accountId, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
1295
1299
  authModes: ["commercialApiKey", "personalApiKey"],
1296
1300
  requestSigningByAuthMode: {
@@ -1312,7 +1316,8 @@ const AccountInformationApiFp = function(configuration) {
1312
1316
  * @param {*} [options] Override http request option.
1313
1317
  * @throws {RequiredError}
1314
1318
  */
1315
- async getUserAccountDetails(requestParameters, options) {
1319
+ async getUserAccountDetails(...args) {
1320
+ const [requestParameters = {}, options] = args;
1316
1321
  return createRequestFunction(await localVarAxiosParamCreator.getUserAccountDetails(requestParameters.accountId, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
1317
1322
  authModes: ["commercialApiKey", "personalApiKey"],
1318
1323
  requestSigningByAuthMode: {
@@ -1334,7 +1339,8 @@ const AccountInformationApiFp = function(configuration) {
1334
1339
  * @param {*} [options] Override http request option.
1335
1340
  * @throws {RequiredError}
1336
1341
  */
1337
- async getUserAccountOrderDetail(requestParameters, options) {
1342
+ async getUserAccountOrderDetail(...args) {
1343
+ const [requestParameters = {}, options] = args;
1338
1344
  const accountInformationGetUserAccountOrderDetailRequest = { brokerage_order_id: requestParameters.brokerage_order_id };
1339
1345
  return createRequestFunction(await localVarAxiosParamCreator.getUserAccountOrderDetail(requestParameters.accountId, accountInformationGetUserAccountOrderDetailRequest, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
1340
1346
  authModes: ["commercialApiKey", "personalApiKey"],
@@ -1357,7 +1363,8 @@ const AccountInformationApiFp = function(configuration) {
1357
1363
  * @param {*} [options] Override http request option.
1358
1364
  * @throws {RequiredError}
1359
1365
  */
1360
- async getUserAccountOrders(requestParameters, options) {
1366
+ async getUserAccountOrders(...args) {
1367
+ const [requestParameters = {}, options] = args;
1361
1368
  return createRequestFunction(await localVarAxiosParamCreator.getUserAccountOrders(requestParameters.accountId, requestParameters.state, requestParameters.days, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
1362
1369
  authModes: ["commercialApiKey", "personalApiKey"],
1363
1370
  requestSigningByAuthMode: {
@@ -1379,7 +1386,8 @@ const AccountInformationApiFp = function(configuration) {
1379
1386
  * @param {*} [options] Override http request option.
1380
1387
  * @throws {RequiredError}
1381
1388
  */
1382
- async getUserAccountRecentOrders(requestParameters, options) {
1389
+ async getUserAccountRecentOrders(...args) {
1390
+ const [requestParameters = {}, options] = args;
1383
1391
  return createRequestFunction(await localVarAxiosParamCreator.getUserAccountRecentOrders(requestParameters.accountId, requestParameters.onlyExecuted, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
1384
1392
  authModes: ["commercialApiKey", "personalApiKey"],
1385
1393
  requestSigningByAuthMode: {
@@ -1401,7 +1409,8 @@ const AccountInformationApiFp = function(configuration) {
1401
1409
  * @param {*} [options] Override http request option.
1402
1410
  * @throws {RequiredError}
1403
1411
  */
1404
- async getUserAccountReturnRates(requestParameters, options) {
1412
+ async getUserAccountReturnRates(...args) {
1413
+ const [requestParameters = {}, options] = args;
1405
1414
  return createRequestFunction(await localVarAxiosParamCreator.getUserAccountReturnRates(requestParameters.accountId, requestParameters.timeframes, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
1406
1415
  authModes: ["commercialApiKey", "personalApiKey"],
1407
1416
  requestSigningByAuthMode: {
@@ -1424,7 +1433,8 @@ const AccountInformationApiFp = function(configuration) {
1424
1433
  * @deprecated
1425
1434
  * @throws {RequiredError}
1426
1435
  */
1427
- async getUserHoldings(requestParameters, options) {
1436
+ async getUserHoldings(...args) {
1437
+ const [requestParameters = {}, options] = args;
1428
1438
  return createRequestFunction(await localVarAxiosParamCreator.getUserHoldings(requestParameters.accountId, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
1429
1439
  authModes: ["commercialApiKey", "personalApiKey"],
1430
1440
  requestSigningByAuthMode: {
@@ -1446,7 +1456,8 @@ const AccountInformationApiFp = function(configuration) {
1446
1456
  * @param {*} [options] Override http request option.
1447
1457
  * @throws {RequiredError}
1448
1458
  */
1449
- async listUserAccounts(requestParameters = {}, options) {
1459
+ async listUserAccounts(...args) {
1460
+ const [requestParameters = {}, options] = args;
1450
1461
  return createRequestFunction(await localVarAxiosParamCreator.listUserAccounts(requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
1451
1462
  authModes: ["commercialApiKey", "personalApiKey"],
1452
1463
  requestSigningByAuthMode: {
@@ -1468,7 +1479,8 @@ const AccountInformationApiFp = function(configuration) {
1468
1479
  * @param {*} [options] Override http request option.
1469
1480
  * @throws {RequiredError}
1470
1481
  */
1471
- async updateUserAccount(requestParameters, options) {
1482
+ async updateUserAccount(...args) {
1483
+ const [requestParameters = {}, options] = args;
1472
1484
  return createRequestFunction(await localVarAxiosParamCreator.updateUserAccount(requestParameters.accountId, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
1473
1485
  authModes: ["commercialApiKey", "personalApiKey"],
1474
1486
  requestSigningByAuthMode: {
@@ -1499,8 +1511,8 @@ const AccountInformationApiFactory = function(configuration, basePath, axios) {
1499
1511
  * @param {*} [options] Override http request option.
1500
1512
  * @throws {RequiredError}
1501
1513
  */
1502
- getAccountActivities(requestParameters, options) {
1503
- return localVarFp.getAccountActivities(requestParameters, options).then((request) => request(axios, basePath));
1514
+ getAccountActivities(...args) {
1515
+ return localVarFp.getAccountActivities(...args).then((request) => request(axios, basePath));
1504
1516
  },
1505
1517
  /**
1506
1518
  * 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)
@@ -1509,8 +1521,8 @@ const AccountInformationApiFactory = function(configuration, basePath, axios) {
1509
1521
  * @param {*} [options] Override http request option.
1510
1522
  * @throws {RequiredError}
1511
1523
  */
1512
- getAccountBalanceHistory(requestParameters, options) {
1513
- return localVarFp.getAccountBalanceHistory(requestParameters, options).then((request) => request(axios, basePath));
1524
+ getAccountBalanceHistory(...args) {
1525
+ return localVarFp.getAccountBalanceHistory(...args).then((request) => request(axios, basePath));
1514
1526
  },
1515
1527
  /**
1516
1528
  * 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.
@@ -1519,8 +1531,8 @@ const AccountInformationApiFactory = function(configuration, basePath, axios) {
1519
1531
  * @param {*} [options] Override http request option.
1520
1532
  * @throws {RequiredError}
1521
1533
  */
1522
- getAllAccountPositions(requestParameters, options) {
1523
- return localVarFp.getAllAccountPositions(requestParameters, options).then((request) => request(axios, basePath));
1534
+ getAllAccountPositions(...args) {
1535
+ return localVarFp.getAllAccountPositions(...args).then((request) => request(axios, basePath));
1524
1536
  },
1525
1537
  /**
1526
1538
  * 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.
@@ -1529,8 +1541,8 @@ const AccountInformationApiFactory = function(configuration, basePath, axios) {
1529
1541
  * @param {*} [options] Override http request option.
1530
1542
  * @throws {RequiredError}
1531
1543
  */
1532
- getUserAccountBalance(requestParameters, options) {
1533
- return localVarFp.getUserAccountBalance(requestParameters, options).then((request) => request(axios, basePath));
1544
+ getUserAccountBalance(...args) {
1545
+ return localVarFp.getUserAccountBalance(...args).then((request) => request(axios, basePath));
1534
1546
  },
1535
1547
  /**
1536
1548
  * 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.
@@ -1539,8 +1551,8 @@ const AccountInformationApiFactory = function(configuration, basePath, axios) {
1539
1551
  * @param {*} [options] Override http request option.
1540
1552
  * @throws {RequiredError}
1541
1553
  */
1542
- getUserAccountDetails(requestParameters, options) {
1543
- return localVarFp.getUserAccountDetails(requestParameters, options).then((request) => request(axios, basePath));
1554
+ getUserAccountDetails(...args) {
1555
+ return localVarFp.getUserAccountDetails(...args).then((request) => request(axios, basePath));
1544
1556
  },
1545
1557
  /**
1546
1558
  * 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.
@@ -1549,8 +1561,8 @@ const AccountInformationApiFactory = function(configuration, basePath, axios) {
1549
1561
  * @param {*} [options] Override http request option.
1550
1562
  * @throws {RequiredError}
1551
1563
  */
1552
- getUserAccountOrderDetail(requestParameters, options) {
1553
- return localVarFp.getUserAccountOrderDetail(requestParameters, options).then((request) => request(axios, basePath));
1564
+ getUserAccountOrderDetail(...args) {
1565
+ return localVarFp.getUserAccountOrderDetail(...args).then((request) => request(axios, basePath));
1554
1566
  },
1555
1567
  /**
1556
1568
  * 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.
@@ -1559,8 +1571,8 @@ const AccountInformationApiFactory = function(configuration, basePath, axios) {
1559
1571
  * @param {*} [options] Override http request option.
1560
1572
  * @throws {RequiredError}
1561
1573
  */
1562
- getUserAccountOrders(requestParameters, options) {
1563
- return localVarFp.getUserAccountOrders(requestParameters, options).then((request) => request(axios, basePath));
1574
+ getUserAccountOrders(...args) {
1575
+ return localVarFp.getUserAccountOrders(...args).then((request) => request(axios, basePath));
1564
1576
  },
1565
1577
  /**
1566
1578
  * 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
@@ -1569,8 +1581,8 @@ const AccountInformationApiFactory = function(configuration, basePath, axios) {
1569
1581
  * @param {*} [options] Override http request option.
1570
1582
  * @throws {RequiredError}
1571
1583
  */
1572
- getUserAccountRecentOrders(requestParameters, options) {
1573
- return localVarFp.getUserAccountRecentOrders(requestParameters, options).then((request) => request(axios, basePath));
1584
+ getUserAccountRecentOrders(...args) {
1585
+ return localVarFp.getUserAccountRecentOrders(...args).then((request) => request(axios, basePath));
1574
1586
  },
1575
1587
  /**
1576
1588
  * Returns a list of rate of return percents for a given account.
@@ -1579,8 +1591,8 @@ const AccountInformationApiFactory = function(configuration, basePath, axios) {
1579
1591
  * @param {*} [options] Override http request option.
1580
1592
  * @throws {RequiredError}
1581
1593
  */
1582
- getUserAccountReturnRates(requestParameters, options) {
1583
- return localVarFp.getUserAccountReturnRates(requestParameters, options).then((request) => request(axios, basePath));
1594
+ getUserAccountReturnRates(...args) {
1595
+ return localVarFp.getUserAccountReturnRates(...args).then((request) => request(axios, basePath));
1584
1596
  },
1585
1597
  /**
1586
1598
  * **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.
@@ -1590,8 +1602,8 @@ const AccountInformationApiFactory = function(configuration, basePath, axios) {
1590
1602
  * @deprecated
1591
1603
  * @throws {RequiredError}
1592
1604
  */
1593
- getUserHoldings(requestParameters, options) {
1594
- return localVarFp.getUserHoldings(requestParameters, options).then((request) => request(axios, basePath));
1605
+ getUserHoldings(...args) {
1606
+ return localVarFp.getUserHoldings(...args).then((request) => request(axios, basePath));
1595
1607
  },
1596
1608
  /**
1597
1609
  * 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).
@@ -1600,8 +1612,8 @@ const AccountInformationApiFactory = function(configuration, basePath, axios) {
1600
1612
  * @param {*} [options] Override http request option.
1601
1613
  * @throws {RequiredError}
1602
1614
  */
1603
- listUserAccounts(requestParameters = {}, options) {
1604
- return localVarFp.listUserAccounts(requestParameters, options).then((request) => request(axios, basePath));
1615
+ listUserAccounts(...args) {
1616
+ return localVarFp.listUserAccounts(...args).then((request) => request(axios, basePath));
1605
1617
  },
1606
1618
  /**
1607
1619
  * Updates various properties of a specified account.
@@ -1610,8 +1622,8 @@ const AccountInformationApiFactory = function(configuration, basePath, axios) {
1610
1622
  * @param {*} [options] Override http request option.
1611
1623
  * @throws {RequiredError}
1612
1624
  */
1613
- updateUserAccount(requestParameters, options) {
1614
- return localVarFp.updateUserAccount(requestParameters, options).then((request) => request(axios, basePath));
1625
+ updateUserAccount(...args) {
1626
+ return localVarFp.updateUserAccount(...args).then((request) => request(axios, basePath));
1615
1627
  }
1616
1628
  };
1617
1629
  };
@@ -1630,8 +1642,8 @@ var AccountInformationApiGenerated = class extends BaseAPI {
1630
1642
  * @throws {RequiredError}
1631
1643
  * @memberof AccountInformationApiGenerated
1632
1644
  */
1633
- getAccountActivities(requestParameters, options) {
1634
- return AccountInformationApiFp(this.configuration).getAccountActivities(requestParameters, options).then((request) => request(this.axios, this.basePath));
1645
+ getAccountActivities(...args) {
1646
+ return AccountInformationApiFp(this.configuration).getAccountActivities(...args).then((request) => request(this.axios, this.basePath));
1635
1647
  }
1636
1648
  /**
1637
1649
  * 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)
@@ -1641,8 +1653,8 @@ var AccountInformationApiGenerated = class extends BaseAPI {
1641
1653
  * @throws {RequiredError}
1642
1654
  * @memberof AccountInformationApiGenerated
1643
1655
  */
1644
- getAccountBalanceHistory(requestParameters, options) {
1645
- return AccountInformationApiFp(this.configuration).getAccountBalanceHistory(requestParameters, options).then((request) => request(this.axios, this.basePath));
1656
+ getAccountBalanceHistory(...args) {
1657
+ return AccountInformationApiFp(this.configuration).getAccountBalanceHistory(...args).then((request) => request(this.axios, this.basePath));
1646
1658
  }
1647
1659
  /**
1648
1660
  * 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.
@@ -1652,8 +1664,8 @@ var AccountInformationApiGenerated = class extends BaseAPI {
1652
1664
  * @throws {RequiredError}
1653
1665
  * @memberof AccountInformationApiGenerated
1654
1666
  */
1655
- getAllAccountPositions(requestParameters, options) {
1656
- return AccountInformationApiFp(this.configuration).getAllAccountPositions(requestParameters, options).then((request) => request(this.axios, this.basePath));
1667
+ getAllAccountPositions(...args) {
1668
+ return AccountInformationApiFp(this.configuration).getAllAccountPositions(...args).then((request) => request(this.axios, this.basePath));
1657
1669
  }
1658
1670
  /**
1659
1671
  * 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.
@@ -1663,8 +1675,8 @@ var AccountInformationApiGenerated = class extends BaseAPI {
1663
1675
  * @throws {RequiredError}
1664
1676
  * @memberof AccountInformationApiGenerated
1665
1677
  */
1666
- getUserAccountBalance(requestParameters, options) {
1667
- return AccountInformationApiFp(this.configuration).getUserAccountBalance(requestParameters, options).then((request) => request(this.axios, this.basePath));
1678
+ getUserAccountBalance(...args) {
1679
+ return AccountInformationApiFp(this.configuration).getUserAccountBalance(...args).then((request) => request(this.axios, this.basePath));
1668
1680
  }
1669
1681
  /**
1670
1682
  * 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.
@@ -1674,8 +1686,8 @@ var AccountInformationApiGenerated = class extends BaseAPI {
1674
1686
  * @throws {RequiredError}
1675
1687
  * @memberof AccountInformationApiGenerated
1676
1688
  */
1677
- getUserAccountDetails(requestParameters, options) {
1678
- return AccountInformationApiFp(this.configuration).getUserAccountDetails(requestParameters, options).then((request) => request(this.axios, this.basePath));
1689
+ getUserAccountDetails(...args) {
1690
+ return AccountInformationApiFp(this.configuration).getUserAccountDetails(...args).then((request) => request(this.axios, this.basePath));
1679
1691
  }
1680
1692
  /**
1681
1693
  * 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.
@@ -1685,8 +1697,8 @@ var AccountInformationApiGenerated = class extends BaseAPI {
1685
1697
  * @throws {RequiredError}
1686
1698
  * @memberof AccountInformationApiGenerated
1687
1699
  */
1688
- getUserAccountOrderDetail(requestParameters, options) {
1689
- return AccountInformationApiFp(this.configuration).getUserAccountOrderDetail(requestParameters, options).then((request) => request(this.axios, this.basePath));
1700
+ getUserAccountOrderDetail(...args) {
1701
+ return AccountInformationApiFp(this.configuration).getUserAccountOrderDetail(...args).then((request) => request(this.axios, this.basePath));
1690
1702
  }
1691
1703
  /**
1692
1704
  * 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.
@@ -1696,8 +1708,8 @@ var AccountInformationApiGenerated = class extends BaseAPI {
1696
1708
  * @throws {RequiredError}
1697
1709
  * @memberof AccountInformationApiGenerated
1698
1710
  */
1699
- getUserAccountOrders(requestParameters, options) {
1700
- return AccountInformationApiFp(this.configuration).getUserAccountOrders(requestParameters, options).then((request) => request(this.axios, this.basePath));
1711
+ getUserAccountOrders(...args) {
1712
+ return AccountInformationApiFp(this.configuration).getUserAccountOrders(...args).then((request) => request(this.axios, this.basePath));
1701
1713
  }
1702
1714
  /**
1703
1715
  * 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
@@ -1707,8 +1719,8 @@ var AccountInformationApiGenerated = class extends BaseAPI {
1707
1719
  * @throws {RequiredError}
1708
1720
  * @memberof AccountInformationApiGenerated
1709
1721
  */
1710
- getUserAccountRecentOrders(requestParameters, options) {
1711
- return AccountInformationApiFp(this.configuration).getUserAccountRecentOrders(requestParameters, options).then((request) => request(this.axios, this.basePath));
1722
+ getUserAccountRecentOrders(...args) {
1723
+ return AccountInformationApiFp(this.configuration).getUserAccountRecentOrders(...args).then((request) => request(this.axios, this.basePath));
1712
1724
  }
1713
1725
  /**
1714
1726
  * Returns a list of rate of return percents for a given account.
@@ -1718,8 +1730,8 @@ var AccountInformationApiGenerated = class extends BaseAPI {
1718
1730
  * @throws {RequiredError}
1719
1731
  * @memberof AccountInformationApiGenerated
1720
1732
  */
1721
- getUserAccountReturnRates(requestParameters, options) {
1722
- return AccountInformationApiFp(this.configuration).getUserAccountReturnRates(requestParameters, options).then((request) => request(this.axios, this.basePath));
1733
+ getUserAccountReturnRates(...args) {
1734
+ return AccountInformationApiFp(this.configuration).getUserAccountReturnRates(...args).then((request) => request(this.axios, this.basePath));
1723
1735
  }
1724
1736
  /**
1725
1737
  * **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.
@@ -1730,8 +1742,8 @@ var AccountInformationApiGenerated = class extends BaseAPI {
1730
1742
  * @throws {RequiredError}
1731
1743
  * @memberof AccountInformationApiGenerated
1732
1744
  */
1733
- getUserHoldings(requestParameters, options) {
1734
- return AccountInformationApiFp(this.configuration).getUserHoldings(requestParameters, options).then((request) => request(this.axios, this.basePath));
1745
+ getUserHoldings(...args) {
1746
+ return AccountInformationApiFp(this.configuration).getUserHoldings(...args).then((request) => request(this.axios, this.basePath));
1735
1747
  }
1736
1748
  /**
1737
1749
  * 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).
@@ -1741,8 +1753,8 @@ var AccountInformationApiGenerated = class extends BaseAPI {
1741
1753
  * @throws {RequiredError}
1742
1754
  * @memberof AccountInformationApiGenerated
1743
1755
  */
1744
- listUserAccounts(requestParameters = {}, options) {
1745
- return AccountInformationApiFp(this.configuration).listUserAccounts(requestParameters, options).then((request) => request(this.axios, this.basePath));
1756
+ listUserAccounts(...args) {
1757
+ return AccountInformationApiFp(this.configuration).listUserAccounts(...args).then((request) => request(this.axios, this.basePath));
1746
1758
  }
1747
1759
  /**
1748
1760
  * Updates various properties of a specified account.
@@ -1752,8 +1764,8 @@ var AccountInformationApiGenerated = class extends BaseAPI {
1752
1764
  * @throws {RequiredError}
1753
1765
  * @memberof AccountInformationApiGenerated
1754
1766
  */
1755
- updateUserAccount(requestParameters, options) {
1756
- return AccountInformationApiFp(this.configuration).updateUserAccount(requestParameters, options).then((request) => request(this.axios, this.basePath));
1767
+ updateUserAccount(...args) {
1768
+ return AccountInformationApiFp(this.configuration).updateUserAccount(...args).then((request) => request(this.axios, this.basePath));
1757
1769
  }
1758
1770
  };
1759
1771
  //#endregion
@@ -2191,7 +2203,8 @@ const AuthenticationApiFp = function(configuration) {
2191
2203
  * @param {*} [options] Override http request option.
2192
2204
  * @throws {RequiredError}
2193
2205
  */
2194
- async deleteSnapTradeUser(requestParameters, options) {
2206
+ async deleteSnapTradeUser(...args) {
2207
+ const [requestParameters = {}, options] = args;
2195
2208
  return createRequestFunction(await localVarAxiosParamCreator.deleteSnapTradeUser(requestParameters.userId, options), globalAxios, BASE_PATH, configuration, {
2196
2209
  authModes: ["commercialApiKey"],
2197
2210
  requestSigningByAuthMode: { "commercialApiKey": {
@@ -2223,7 +2236,8 @@ const AuthenticationApiFp = function(configuration) {
2223
2236
  * @param {*} [options] Override http request option.
2224
2237
  * @throws {RequiredError}
2225
2238
  */
2226
- async loginSnapTradeUser(requestParameters = {}, options) {
2239
+ async loginSnapTradeUser(...args) {
2240
+ const [requestParameters = {}, options] = args;
2227
2241
  const snapTradeLoginUserRequestBody = {
2228
2242
  broker: requestParameters.broker,
2229
2243
  immediateRedirect: requestParameters.immediateRedirect,
@@ -2256,7 +2270,8 @@ const AuthenticationApiFp = function(configuration) {
2256
2270
  * @param {*} [options] Override http request option.
2257
2271
  * @throws {RequiredError}
2258
2272
  */
2259
- async registerSnapTradeUser(requestParameters, options) {
2273
+ async registerSnapTradeUser(...args) {
2274
+ const [requestParameters = {}, options] = args;
2260
2275
  const snapTradeRegisterUserRequestBody = { userId: requestParameters.userId };
2261
2276
  return createRequestFunction(await localVarAxiosParamCreator.registerSnapTradeUser(snapTradeRegisterUserRequestBody, options), globalAxios, BASE_PATH, configuration, {
2262
2277
  authModes: ["commercialApiKey"],
@@ -2273,7 +2288,8 @@ const AuthenticationApiFp = function(configuration) {
2273
2288
  * @param {*} [options] Override http request option.
2274
2289
  * @throws {RequiredError}
2275
2290
  */
2276
- async resetSnapTradeUserSecret(requestParameters, options) {
2291
+ async resetSnapTradeUserSecret(...args) {
2292
+ const [requestParameters = {}, options] = args;
2277
2293
  const userIDandSecret = {
2278
2294
  userId: requestParameters.userId,
2279
2295
  userSecret: requestParameters.userSecret
@@ -2302,8 +2318,8 @@ const AuthenticationApiFactory = function(configuration, basePath, axios) {
2302
2318
  * @param {*} [options] Override http request option.
2303
2319
  * @throws {RequiredError}
2304
2320
  */
2305
- deleteSnapTradeUser(requestParameters, options) {
2306
- return localVarFp.deleteSnapTradeUser(requestParameters, options).then((request) => request(axios, basePath));
2321
+ deleteSnapTradeUser(...args) {
2322
+ return localVarFp.deleteSnapTradeUser(...args).then((request) => request(axios, basePath));
2307
2323
  },
2308
2324
  /**
2309
2325
  * Returns a list of all registered user IDs. Please note that the response is not currently paginated.
@@ -2321,8 +2337,8 @@ const AuthenticationApiFactory = function(configuration, basePath, axios) {
2321
2337
  * @param {*} [options] Override http request option.
2322
2338
  * @throws {RequiredError}
2323
2339
  */
2324
- loginSnapTradeUser(requestParameters = {}, options) {
2325
- return localVarFp.loginSnapTradeUser(requestParameters, options).then((request) => request(axios, basePath));
2340
+ loginSnapTradeUser(...args) {
2341
+ return localVarFp.loginSnapTradeUser(...args).then((request) => request(axios, basePath));
2326
2342
  },
2327
2343
  /**
2328
2344
  * 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.
@@ -2331,8 +2347,8 @@ const AuthenticationApiFactory = function(configuration, basePath, axios) {
2331
2347
  * @param {*} [options] Override http request option.
2332
2348
  * @throws {RequiredError}
2333
2349
  */
2334
- registerSnapTradeUser(requestParameters, options) {
2335
- return localVarFp.registerSnapTradeUser(requestParameters, options).then((request) => request(axios, basePath));
2350
+ registerSnapTradeUser(...args) {
2351
+ return localVarFp.registerSnapTradeUser(...args).then((request) => request(axios, basePath));
2336
2352
  },
2337
2353
  /**
2338
2354
  * 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.
@@ -2341,8 +2357,8 @@ const AuthenticationApiFactory = function(configuration, basePath, axios) {
2341
2357
  * @param {*} [options] Override http request option.
2342
2358
  * @throws {RequiredError}
2343
2359
  */
2344
- resetSnapTradeUserSecret(requestParameters, options) {
2345
- return localVarFp.resetSnapTradeUserSecret(requestParameters, options).then((request) => request(axios, basePath));
2360
+ resetSnapTradeUserSecret(...args) {
2361
+ return localVarFp.resetSnapTradeUserSecret(...args).then((request) => request(axios, basePath));
2346
2362
  }
2347
2363
  };
2348
2364
  };
@@ -2361,8 +2377,8 @@ var AuthenticationApiGenerated = class extends BaseAPI {
2361
2377
  * @throws {RequiredError}
2362
2378
  * @memberof AuthenticationApiGenerated
2363
2379
  */
2364
- deleteSnapTradeUser(requestParameters, options) {
2365
- return AuthenticationApiFp(this.configuration).deleteSnapTradeUser(requestParameters, options).then((request) => request(this.axios, this.basePath));
2380
+ deleteSnapTradeUser(...args) {
2381
+ return AuthenticationApiFp(this.configuration).deleteSnapTradeUser(...args).then((request) => request(this.axios, this.basePath));
2366
2382
  }
2367
2383
  /**
2368
2384
  * Returns a list of all registered user IDs. Please note that the response is not currently paginated.
@@ -2382,8 +2398,8 @@ var AuthenticationApiGenerated = class extends BaseAPI {
2382
2398
  * @throws {RequiredError}
2383
2399
  * @memberof AuthenticationApiGenerated
2384
2400
  */
2385
- loginSnapTradeUser(requestParameters = {}, options) {
2386
- return AuthenticationApiFp(this.configuration).loginSnapTradeUser(requestParameters, options).then((request) => request(this.axios, this.basePath));
2401
+ loginSnapTradeUser(...args) {
2402
+ return AuthenticationApiFp(this.configuration).loginSnapTradeUser(...args).then((request) => request(this.axios, this.basePath));
2387
2403
  }
2388
2404
  /**
2389
2405
  * 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.
@@ -2393,8 +2409,8 @@ var AuthenticationApiGenerated = class extends BaseAPI {
2393
2409
  * @throws {RequiredError}
2394
2410
  * @memberof AuthenticationApiGenerated
2395
2411
  */
2396
- registerSnapTradeUser(requestParameters, options) {
2397
- return AuthenticationApiFp(this.configuration).registerSnapTradeUser(requestParameters, options).then((request) => request(this.axios, this.basePath));
2412
+ registerSnapTradeUser(...args) {
2413
+ return AuthenticationApiFp(this.configuration).registerSnapTradeUser(...args).then((request) => request(this.axios, this.basePath));
2398
2414
  }
2399
2415
  /**
2400
2416
  * 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.
@@ -2404,8 +2420,8 @@ var AuthenticationApiGenerated = class extends BaseAPI {
2404
2420
  * @throws {RequiredError}
2405
2421
  * @memberof AuthenticationApiGenerated
2406
2422
  */
2407
- resetSnapTradeUserSecret(requestParameters, options) {
2408
- return AuthenticationApiFp(this.configuration).resetSnapTradeUserSecret(requestParameters, options).then((request) => request(this.axios, this.basePath));
2423
+ resetSnapTradeUserSecret(...args) {
2424
+ return AuthenticationApiFp(this.configuration).resetSnapTradeUserSecret(...args).then((request) => request(this.axios, this.basePath));
2409
2425
  }
2410
2426
  };
2411
2427
  //#endregion
@@ -3019,7 +3035,8 @@ const ConnectionsApiFp = function(configuration) {
3019
3035
  * @param {*} [options] Override http request option.
3020
3036
  * @throws {RequiredError}
3021
3037
  */
3022
- async deleteConnection(requestParameters, options) {
3038
+ async deleteConnection(...args) {
3039
+ const [requestParameters = {}, options] = args;
3023
3040
  return createRequestFunction(await localVarAxiosParamCreator.deleteConnection(requestParameters.connectionId, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
3024
3041
  authModes: ["commercialApiKey", "personalApiKey"],
3025
3042
  requestSigningByAuthMode: {
@@ -3041,7 +3058,8 @@ const ConnectionsApiFp = function(configuration) {
3041
3058
  * @param {*} [options] Override http request option.
3042
3059
  * @throws {RequiredError}
3043
3060
  */
3044
- async detailBrokerageAuthorization(requestParameters, options) {
3061
+ async detailBrokerageAuthorization(...args) {
3062
+ const [requestParameters = {}, options] = args;
3045
3063
  return createRequestFunction(await localVarAxiosParamCreator.detailBrokerageAuthorization(requestParameters.authorizationId, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
3046
3064
  authModes: ["commercialApiKey", "personalApiKey"],
3047
3065
  requestSigningByAuthMode: {
@@ -3063,7 +3081,8 @@ const ConnectionsApiFp = function(configuration) {
3063
3081
  * @param {*} [options] Override http request option.
3064
3082
  * @throws {RequiredError}
3065
3083
  */
3066
- async disableBrokerageAuthorization(requestParameters, options) {
3084
+ async disableBrokerageAuthorization(...args) {
3085
+ const [requestParameters = {}, options] = args;
3067
3086
  return createRequestFunction(await localVarAxiosParamCreator.disableBrokerageAuthorization(requestParameters.authorizationId, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
3068
3087
  authModes: ["commercialApiKey", "personalApiKey"],
3069
3088
  requestSigningByAuthMode: {
@@ -3085,7 +3104,8 @@ const ConnectionsApiFp = function(configuration) {
3085
3104
  * @param {*} [options] Override http request option.
3086
3105
  * @throws {RequiredError}
3087
3106
  */
3088
- async listBrokerageAuthorizationAccounts(requestParameters, options) {
3107
+ async listBrokerageAuthorizationAccounts(...args) {
3108
+ const [requestParameters = {}, options] = args;
3089
3109
  return createRequestFunction(await localVarAxiosParamCreator.listBrokerageAuthorizationAccounts(requestParameters.authorizationId, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
3090
3110
  authModes: ["commercialApiKey", "personalApiKey"],
3091
3111
  requestSigningByAuthMode: {
@@ -3107,7 +3127,8 @@ const ConnectionsApiFp = function(configuration) {
3107
3127
  * @param {*} [options] Override http request option.
3108
3128
  * @throws {RequiredError}
3109
3129
  */
3110
- async listBrokerageAuthorizations(requestParameters = {}, options) {
3130
+ async listBrokerageAuthorizations(...args) {
3131
+ const [requestParameters = {}, options] = args;
3111
3132
  return createRequestFunction(await localVarAxiosParamCreator.listBrokerageAuthorizations(requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
3112
3133
  authModes: ["commercialApiKey", "personalApiKey"],
3113
3134
  requestSigningByAuthMode: {
@@ -3129,7 +3150,8 @@ const ConnectionsApiFp = function(configuration) {
3129
3150
  * @param {*} [options] Override http request option.
3130
3151
  * @throws {RequiredError}
3131
3152
  */
3132
- async refreshBrokerageAuthorization(requestParameters, options) {
3153
+ async refreshBrokerageAuthorization(...args) {
3154
+ const [requestParameters = {}, options] = args;
3133
3155
  return createRequestFunction(await localVarAxiosParamCreator.refreshBrokerageAuthorization(requestParameters.authorizationId, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
3134
3156
  authModes: ["commercialApiKey", "personalApiKey"],
3135
3157
  requestSigningByAuthMode: {
@@ -3151,7 +3173,8 @@ const ConnectionsApiFp = function(configuration) {
3151
3173
  * @param {*} [options] Override http request option.
3152
3174
  * @throws {RequiredError}
3153
3175
  */
3154
- async returnRates(requestParameters, options) {
3176
+ async returnRates(...args) {
3177
+ const [requestParameters = {}, options] = args;
3155
3178
  return createRequestFunction(await localVarAxiosParamCreator.returnRates(requestParameters.authorizationId, requestParameters.timeframes, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
3156
3179
  authModes: ["commercialApiKey", "personalApiKey"],
3157
3180
  requestSigningByAuthMode: {
@@ -3173,7 +3196,8 @@ const ConnectionsApiFp = function(configuration) {
3173
3196
  * @param {*} [options] Override http request option.
3174
3197
  * @throws {RequiredError}
3175
3198
  */
3176
- async syncBrokerageAuthorizationTransactions(requestParameters, options) {
3199
+ async syncBrokerageAuthorizationTransactions(...args) {
3200
+ const [requestParameters = {}, options] = args;
3177
3201
  return createRequestFunction(await localVarAxiosParamCreator.syncBrokerageAuthorizationTransactions(requestParameters.authorizationId, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
3178
3202
  authModes: ["commercialApiKey", "personalApiKey"],
3179
3203
  requestSigningByAuthMode: {
@@ -3204,8 +3228,8 @@ const ConnectionsApiFactory = function(configuration, basePath, axios) {
3204
3228
  * @param {*} [options] Override http request option.
3205
3229
  * @throws {RequiredError}
3206
3230
  */
3207
- deleteConnection(requestParameters, options) {
3208
- return localVarFp.deleteConnection(requestParameters, options).then((request) => request(axios, basePath));
3231
+ deleteConnection(...args) {
3232
+ return localVarFp.deleteConnection(...args).then((request) => request(axios, basePath));
3209
3233
  },
3210
3234
  /**
3211
3235
  * Returns a single connection for the specified ID.
@@ -3214,8 +3238,8 @@ const ConnectionsApiFactory = function(configuration, basePath, axios) {
3214
3238
  * @param {*} [options] Override http request option.
3215
3239
  * @throws {RequiredError}
3216
3240
  */
3217
- detailBrokerageAuthorization(requestParameters, options) {
3218
- return localVarFp.detailBrokerageAuthorization(requestParameters, options).then((request) => request(axios, basePath));
3241
+ detailBrokerageAuthorization(...args) {
3242
+ return localVarFp.detailBrokerageAuthorization(...args).then((request) => request(axios, basePath));
3219
3243
  },
3220
3244
  /**
3221
3245
  * 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.
@@ -3224,8 +3248,8 @@ const ConnectionsApiFactory = function(configuration, basePath, axios) {
3224
3248
  * @param {*} [options] Override http request option.
3225
3249
  * @throws {RequiredError}
3226
3250
  */
3227
- disableBrokerageAuthorization(requestParameters, options) {
3228
- return localVarFp.disableBrokerageAuthorization(requestParameters, options).then((request) => request(axios, basePath));
3251
+ disableBrokerageAuthorization(...args) {
3252
+ return localVarFp.disableBrokerageAuthorization(...args).then((request) => request(axios, basePath));
3229
3253
  },
3230
3254
  /**
3231
3255
  * 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.
@@ -3234,8 +3258,8 @@ const ConnectionsApiFactory = function(configuration, basePath, axios) {
3234
3258
  * @param {*} [options] Override http request option.
3235
3259
  * @throws {RequiredError}
3236
3260
  */
3237
- listBrokerageAuthorizationAccounts(requestParameters, options) {
3238
- return localVarFp.listBrokerageAuthorizationAccounts(requestParameters, options).then((request) => request(axios, basePath));
3261
+ listBrokerageAuthorizationAccounts(...args) {
3262
+ return localVarFp.listBrokerageAuthorizationAccounts(...args).then((request) => request(axios, basePath));
3239
3263
  },
3240
3264
  /**
3241
3265
  * 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.
@@ -3244,8 +3268,8 @@ const ConnectionsApiFactory = function(configuration, basePath, axios) {
3244
3268
  * @param {*} [options] Override http request option.
3245
3269
  * @throws {RequiredError}
3246
3270
  */
3247
- listBrokerageAuthorizations(requestParameters = {}, options) {
3248
- return localVarFp.listBrokerageAuthorizations(requestParameters, options).then((request) => request(axios, basePath));
3271
+ listBrokerageAuthorizations(...args) {
3272
+ return localVarFp.listBrokerageAuthorizations(...args).then((request) => request(axios, basePath));
3249
3273
  },
3250
3274
  /**
3251
3275
  * 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.**
@@ -3254,8 +3278,8 @@ const ConnectionsApiFactory = function(configuration, basePath, axios) {
3254
3278
  * @param {*} [options] Override http request option.
3255
3279
  * @throws {RequiredError}
3256
3280
  */
3257
- refreshBrokerageAuthorization(requestParameters, options) {
3258
- return localVarFp.refreshBrokerageAuthorization(requestParameters, options).then((request) => request(axios, basePath));
3281
+ refreshBrokerageAuthorization(...args) {
3282
+ return localVarFp.refreshBrokerageAuthorization(...args).then((request) => request(axios, basePath));
3259
3283
  },
3260
3284
  /**
3261
3285
  * Returns a list of rate of return percents for a given connection.
@@ -3264,8 +3288,8 @@ const ConnectionsApiFactory = function(configuration, basePath, axios) {
3264
3288
  * @param {*} [options] Override http request option.
3265
3289
  * @throws {RequiredError}
3266
3290
  */
3267
- returnRates(requestParameters, options) {
3268
- return localVarFp.returnRates(requestParameters, options).then((request) => request(axios, basePath));
3291
+ returnRates(...args) {
3292
+ return localVarFp.returnRates(...args).then((request) => request(axios, basePath));
3269
3293
  },
3270
3294
  /**
3271
3295
  * 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
@@ -3274,8 +3298,8 @@ const ConnectionsApiFactory = function(configuration, basePath, axios) {
3274
3298
  * @param {*} [options] Override http request option.
3275
3299
  * @throws {RequiredError}
3276
3300
  */
3277
- syncBrokerageAuthorizationTransactions(requestParameters, options) {
3278
- return localVarFp.syncBrokerageAuthorizationTransactions(requestParameters, options).then((request) => request(axios, basePath));
3301
+ syncBrokerageAuthorizationTransactions(...args) {
3302
+ return localVarFp.syncBrokerageAuthorizationTransactions(...args).then((request) => request(axios, basePath));
3279
3303
  }
3280
3304
  };
3281
3305
  };
@@ -3294,8 +3318,8 @@ var ConnectionsApiGenerated = class extends BaseAPI {
3294
3318
  * @throws {RequiredError}
3295
3319
  * @memberof ConnectionsApiGenerated
3296
3320
  */
3297
- deleteConnection(requestParameters, options) {
3298
- return ConnectionsApiFp(this.configuration).deleteConnection(requestParameters, options).then((request) => request(this.axios, this.basePath));
3321
+ deleteConnection(...args) {
3322
+ return ConnectionsApiFp(this.configuration).deleteConnection(...args).then((request) => request(this.axios, this.basePath));
3299
3323
  }
3300
3324
  /**
3301
3325
  * Returns a single connection for the specified ID.
@@ -3305,8 +3329,8 @@ var ConnectionsApiGenerated = class extends BaseAPI {
3305
3329
  * @throws {RequiredError}
3306
3330
  * @memberof ConnectionsApiGenerated
3307
3331
  */
3308
- detailBrokerageAuthorization(requestParameters, options) {
3309
- return ConnectionsApiFp(this.configuration).detailBrokerageAuthorization(requestParameters, options).then((request) => request(this.axios, this.basePath));
3332
+ detailBrokerageAuthorization(...args) {
3333
+ return ConnectionsApiFp(this.configuration).detailBrokerageAuthorization(...args).then((request) => request(this.axios, this.basePath));
3310
3334
  }
3311
3335
  /**
3312
3336
  * 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.
@@ -3316,8 +3340,8 @@ var ConnectionsApiGenerated = class extends BaseAPI {
3316
3340
  * @throws {RequiredError}
3317
3341
  * @memberof ConnectionsApiGenerated
3318
3342
  */
3319
- disableBrokerageAuthorization(requestParameters, options) {
3320
- return ConnectionsApiFp(this.configuration).disableBrokerageAuthorization(requestParameters, options).then((request) => request(this.axios, this.basePath));
3343
+ disableBrokerageAuthorization(...args) {
3344
+ return ConnectionsApiFp(this.configuration).disableBrokerageAuthorization(...args).then((request) => request(this.axios, this.basePath));
3321
3345
  }
3322
3346
  /**
3323
3347
  * 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.
@@ -3327,8 +3351,8 @@ var ConnectionsApiGenerated = class extends BaseAPI {
3327
3351
  * @throws {RequiredError}
3328
3352
  * @memberof ConnectionsApiGenerated
3329
3353
  */
3330
- listBrokerageAuthorizationAccounts(requestParameters, options) {
3331
- return ConnectionsApiFp(this.configuration).listBrokerageAuthorizationAccounts(requestParameters, options).then((request) => request(this.axios, this.basePath));
3354
+ listBrokerageAuthorizationAccounts(...args) {
3355
+ return ConnectionsApiFp(this.configuration).listBrokerageAuthorizationAccounts(...args).then((request) => request(this.axios, this.basePath));
3332
3356
  }
3333
3357
  /**
3334
3358
  * 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.
@@ -3338,8 +3362,8 @@ var ConnectionsApiGenerated = class extends BaseAPI {
3338
3362
  * @throws {RequiredError}
3339
3363
  * @memberof ConnectionsApiGenerated
3340
3364
  */
3341
- listBrokerageAuthorizations(requestParameters = {}, options) {
3342
- return ConnectionsApiFp(this.configuration).listBrokerageAuthorizations(requestParameters, options).then((request) => request(this.axios, this.basePath));
3365
+ listBrokerageAuthorizations(...args) {
3366
+ return ConnectionsApiFp(this.configuration).listBrokerageAuthorizations(...args).then((request) => request(this.axios, this.basePath));
3343
3367
  }
3344
3368
  /**
3345
3369
  * 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.**
@@ -3349,8 +3373,8 @@ var ConnectionsApiGenerated = class extends BaseAPI {
3349
3373
  * @throws {RequiredError}
3350
3374
  * @memberof ConnectionsApiGenerated
3351
3375
  */
3352
- refreshBrokerageAuthorization(requestParameters, options) {
3353
- return ConnectionsApiFp(this.configuration).refreshBrokerageAuthorization(requestParameters, options).then((request) => request(this.axios, this.basePath));
3376
+ refreshBrokerageAuthorization(...args) {
3377
+ return ConnectionsApiFp(this.configuration).refreshBrokerageAuthorization(...args).then((request) => request(this.axios, this.basePath));
3354
3378
  }
3355
3379
  /**
3356
3380
  * Returns a list of rate of return percents for a given connection.
@@ -3360,8 +3384,8 @@ var ConnectionsApiGenerated = class extends BaseAPI {
3360
3384
  * @throws {RequiredError}
3361
3385
  * @memberof ConnectionsApiGenerated
3362
3386
  */
3363
- returnRates(requestParameters, options) {
3364
- return ConnectionsApiFp(this.configuration).returnRates(requestParameters, options).then((request) => request(this.axios, this.basePath));
3387
+ returnRates(...args) {
3388
+ return ConnectionsApiFp(this.configuration).returnRates(...args).then((request) => request(this.axios, this.basePath));
3365
3389
  }
3366
3390
  /**
3367
3391
  * 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
@@ -3371,8 +3395,8 @@ var ConnectionsApiGenerated = class extends BaseAPI {
3371
3395
  * @throws {RequiredError}
3372
3396
  * @memberof ConnectionsApiGenerated
3373
3397
  */
3374
- syncBrokerageAuthorizationTransactions(requestParameters, options) {
3375
- return ConnectionsApiFp(this.configuration).syncBrokerageAuthorizationTransactions(requestParameters, options).then((request) => request(this.axios, this.basePath));
3398
+ syncBrokerageAuthorizationTransactions(...args) {
3399
+ return ConnectionsApiFp(this.configuration).syncBrokerageAuthorizationTransactions(...args).then((request) => request(this.axios, this.basePath));
3376
3400
  }
3377
3401
  };
3378
3402
  //#endregion
@@ -3913,7 +3937,8 @@ const ExperimentalEndpointsApiFp = function(configuration) {
3913
3937
  * @param {*} [options] Override http request option.
3914
3938
  * @throws {RequiredError}
3915
3939
  */
3916
- async addSubscription(requestParameters, options) {
3940
+ async addSubscription(...args) {
3941
+ const [requestParameters = {}, options] = args;
3917
3942
  const tradeDetectionAddSubscriptionRequest = {
3918
3943
  account_id: requestParameters.account_id,
3919
3944
  check_interval_seconds: requestParameters.check_interval_seconds
@@ -3939,7 +3964,8 @@ const ExperimentalEndpointsApiFp = function(configuration) {
3939
3964
  * @param {*} [options] Override http request option.
3940
3965
  * @throws {RequiredError}
3941
3966
  */
3942
- async cancelSubscription(requestParameters, options) {
3967
+ async cancelSubscription(...args) {
3968
+ const [requestParameters = {}, options] = args;
3943
3969
  const tradeDetectionCancelSubscriptionRequest = { account_id: requestParameters.account_id };
3944
3970
  return createRequestFunction(await localVarAxiosParamCreator.cancelSubscription(tradeDetectionCancelSubscriptionRequest, options), globalAxios, BASE_PATH, configuration, {
3945
3971
  authModes: ["commercialApiKey", "personalApiKey"],
@@ -3962,7 +3988,8 @@ const ExperimentalEndpointsApiFp = function(configuration) {
3962
3988
  * @param {*} [options] Override http request option.
3963
3989
  * @throws {RequiredError}
3964
3990
  */
3965
- async getUserAccountOrderDetailV2(requestParameters, options) {
3991
+ async getUserAccountOrderDetailV2(...args) {
3992
+ const [requestParameters = {}, options] = args;
3966
3993
  return createRequestFunction(await localVarAxiosParamCreator.getUserAccountOrderDetailV2(requestParameters.accountId, requestParameters.brokerageOrderId, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
3967
3994
  authModes: ["commercialApiKey", "personalApiKey"],
3968
3995
  requestSigningByAuthMode: {
@@ -3984,7 +4011,8 @@ const ExperimentalEndpointsApiFp = function(configuration) {
3984
4011
  * @param {*} [options] Override http request option.
3985
4012
  * @throws {RequiredError}
3986
4013
  */
3987
- async getUserAccountOrdersV2(requestParameters, options) {
4014
+ async getUserAccountOrdersV2(...args) {
4015
+ const [requestParameters = {}, options] = args;
3988
4016
  return createRequestFunction(await localVarAxiosParamCreator.getUserAccountOrdersV2(requestParameters.accountId, requestParameters.state, requestParameters.days, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
3989
4017
  authModes: ["commercialApiKey", "personalApiKey"],
3990
4018
  requestSigningByAuthMode: {
@@ -4006,7 +4034,8 @@ const ExperimentalEndpointsApiFp = function(configuration) {
4006
4034
  * @param {*} [options] Override http request option.
4007
4035
  * @throws {RequiredError}
4008
4036
  */
4009
- async getUserAccountRecentOrdersV2(requestParameters, options) {
4037
+ async getUserAccountRecentOrdersV2(...args) {
4038
+ const [requestParameters = {}, options] = args;
4010
4039
  return createRequestFunction(await localVarAxiosParamCreator.getUserAccountRecentOrdersV2(requestParameters.accountId, requestParameters.onlyExecuted, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
4011
4040
  authModes: ["commercialApiKey", "personalApiKey"],
4012
4041
  requestSigningByAuthMode: {
@@ -4028,7 +4057,8 @@ const ExperimentalEndpointsApiFp = function(configuration) {
4028
4057
  * @param {*} [options] Override http request option.
4029
4058
  * @throws {RequiredError}
4030
4059
  */
4031
- async listConnectionAccounts(requestParameters, options) {
4060
+ async listConnectionAccounts(...args) {
4061
+ const [requestParameters = {}, options] = args;
4032
4062
  return createRequestFunction(await localVarAxiosParamCreator.listConnectionAccounts(requestParameters.connectionId, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
4033
4063
  authModes: ["commercialApiKey", "personalApiKey"],
4034
4064
  requestSigningByAuthMode: {
@@ -4081,8 +4111,8 @@ const ExperimentalEndpointsApiFactory = function(configuration, basePath, axios)
4081
4111
  * @param {*} [options] Override http request option.
4082
4112
  * @throws {RequiredError}
4083
4113
  */
4084
- addSubscription(requestParameters, options) {
4085
- return localVarFp.addSubscription(requestParameters, options).then((request) => request(axios, basePath));
4114
+ addSubscription(...args) {
4115
+ return localVarFp.addSubscription(...args).then((request) => request(axios, basePath));
4086
4116
  },
4087
4117
  /**
4088
4118
  * Cancels a Trade Detection subscription for a connected brokerage account. This endpoint requires partner signature authentication only and does not require `userId` or `userSecret`.
@@ -4091,8 +4121,8 @@ const ExperimentalEndpointsApiFactory = function(configuration, basePath, axios)
4091
4121
  * @param {*} [options] Override http request option.
4092
4122
  * @throws {RequiredError}
4093
4123
  */
4094
- cancelSubscription(requestParameters, options) {
4095
- return localVarFp.cancelSubscription(requestParameters, options).then((request) => request(axios, basePath));
4124
+ cancelSubscription(...args) {
4125
+ return localVarFp.cancelSubscription(...args).then((request) => request(axios, basePath));
4096
4126
  },
4097
4127
  /**
4098
4128
  * 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.
@@ -4101,8 +4131,8 @@ const ExperimentalEndpointsApiFactory = function(configuration, basePath, axios)
4101
4131
  * @param {*} [options] Override http request option.
4102
4132
  * @throws {RequiredError}
4103
4133
  */
4104
- getUserAccountOrderDetailV2(requestParameters, options) {
4105
- return localVarFp.getUserAccountOrderDetailV2(requestParameters, options).then((request) => request(axios, basePath));
4134
+ getUserAccountOrderDetailV2(...args) {
4135
+ return localVarFp.getUserAccountOrderDetailV2(...args).then((request) => request(axios, basePath));
4106
4136
  },
4107
4137
  /**
4108
4138
  * 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.
@@ -4111,8 +4141,8 @@ const ExperimentalEndpointsApiFactory = function(configuration, basePath, axios)
4111
4141
  * @param {*} [options] Override http request option.
4112
4142
  * @throws {RequiredError}
4113
4143
  */
4114
- getUserAccountOrdersV2(requestParameters, options) {
4115
- return localVarFp.getUserAccountOrdersV2(requestParameters, options).then((request) => request(axios, basePath));
4144
+ getUserAccountOrdersV2(...args) {
4145
+ return localVarFp.getUserAccountOrdersV2(...args).then((request) => request(axios, basePath));
4116
4146
  },
4117
4147
  /**
4118
4148
  * 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)**
@@ -4121,8 +4151,8 @@ const ExperimentalEndpointsApiFactory = function(configuration, basePath, axios)
4121
4151
  * @param {*} [options] Override http request option.
4122
4152
  * @throws {RequiredError}
4123
4153
  */
4124
- getUserAccountRecentOrdersV2(requestParameters, options) {
4125
- return localVarFp.getUserAccountRecentOrdersV2(requestParameters, options).then((request) => request(axios, basePath));
4154
+ getUserAccountRecentOrdersV2(...args) {
4155
+ return localVarFp.getUserAccountRecentOrdersV2(...args).then((request) => request(axios, basePath));
4126
4156
  },
4127
4157
  /**
4128
4158
  * 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.
@@ -4131,8 +4161,8 @@ const ExperimentalEndpointsApiFactory = function(configuration, basePath, axios)
4131
4161
  * @param {*} [options] Override http request option.
4132
4162
  * @throws {RequiredError}
4133
4163
  */
4134
- listConnectionAccounts(requestParameters, options) {
4135
- return localVarFp.listConnectionAccounts(requestParameters, options).then((request) => request(axios, basePath));
4164
+ listConnectionAccounts(...args) {
4165
+ return localVarFp.listConnectionAccounts(...args).then((request) => request(axios, basePath));
4136
4166
  },
4137
4167
  /**
4138
4168
  * Returns active Trade Detection subscriptions for your Client ID. Cancelled subscriptions are not returned.
@@ -4160,8 +4190,8 @@ var ExperimentalEndpointsApiGenerated = class extends BaseAPI {
4160
4190
  * @throws {RequiredError}
4161
4191
  * @memberof ExperimentalEndpointsApiGenerated
4162
4192
  */
4163
- addSubscription(requestParameters, options) {
4164
- return ExperimentalEndpointsApiFp(this.configuration).addSubscription(requestParameters, options).then((request) => request(this.axios, this.basePath));
4193
+ addSubscription(...args) {
4194
+ return ExperimentalEndpointsApiFp(this.configuration).addSubscription(...args).then((request) => request(this.axios, this.basePath));
4165
4195
  }
4166
4196
  /**
4167
4197
  * Cancels a Trade Detection subscription for a connected brokerage account. This endpoint requires partner signature authentication only and does not require `userId` or `userSecret`.
@@ -4171,8 +4201,8 @@ var ExperimentalEndpointsApiGenerated = class extends BaseAPI {
4171
4201
  * @throws {RequiredError}
4172
4202
  * @memberof ExperimentalEndpointsApiGenerated
4173
4203
  */
4174
- cancelSubscription(requestParameters, options) {
4175
- return ExperimentalEndpointsApiFp(this.configuration).cancelSubscription(requestParameters, options).then((request) => request(this.axios, this.basePath));
4204
+ cancelSubscription(...args) {
4205
+ return ExperimentalEndpointsApiFp(this.configuration).cancelSubscription(...args).then((request) => request(this.axios, this.basePath));
4176
4206
  }
4177
4207
  /**
4178
4208
  * 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.
@@ -4182,8 +4212,8 @@ var ExperimentalEndpointsApiGenerated = class extends BaseAPI {
4182
4212
  * @throws {RequiredError}
4183
4213
  * @memberof ExperimentalEndpointsApiGenerated
4184
4214
  */
4185
- getUserAccountOrderDetailV2(requestParameters, options) {
4186
- return ExperimentalEndpointsApiFp(this.configuration).getUserAccountOrderDetailV2(requestParameters, options).then((request) => request(this.axios, this.basePath));
4215
+ getUserAccountOrderDetailV2(...args) {
4216
+ return ExperimentalEndpointsApiFp(this.configuration).getUserAccountOrderDetailV2(...args).then((request) => request(this.axios, this.basePath));
4187
4217
  }
4188
4218
  /**
4189
4219
  * 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.
@@ -4193,8 +4223,8 @@ var ExperimentalEndpointsApiGenerated = class extends BaseAPI {
4193
4223
  * @throws {RequiredError}
4194
4224
  * @memberof ExperimentalEndpointsApiGenerated
4195
4225
  */
4196
- getUserAccountOrdersV2(requestParameters, options) {
4197
- return ExperimentalEndpointsApiFp(this.configuration).getUserAccountOrdersV2(requestParameters, options).then((request) => request(this.axios, this.basePath));
4226
+ getUserAccountOrdersV2(...args) {
4227
+ return ExperimentalEndpointsApiFp(this.configuration).getUserAccountOrdersV2(...args).then((request) => request(this.axios, this.basePath));
4198
4228
  }
4199
4229
  /**
4200
4230
  * 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)**
@@ -4204,8 +4234,8 @@ var ExperimentalEndpointsApiGenerated = class extends BaseAPI {
4204
4234
  * @throws {RequiredError}
4205
4235
  * @memberof ExperimentalEndpointsApiGenerated
4206
4236
  */
4207
- getUserAccountRecentOrdersV2(requestParameters, options) {
4208
- return ExperimentalEndpointsApiFp(this.configuration).getUserAccountRecentOrdersV2(requestParameters, options).then((request) => request(this.axios, this.basePath));
4237
+ getUserAccountRecentOrdersV2(...args) {
4238
+ return ExperimentalEndpointsApiFp(this.configuration).getUserAccountRecentOrdersV2(...args).then((request) => request(this.axios, this.basePath));
4209
4239
  }
4210
4240
  /**
4211
4241
  * 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.
@@ -4215,8 +4245,8 @@ var ExperimentalEndpointsApiGenerated = class extends BaseAPI {
4215
4245
  * @throws {RequiredError}
4216
4246
  * @memberof ExperimentalEndpointsApiGenerated
4217
4247
  */
4218
- listConnectionAccounts(requestParameters, options) {
4219
- return ExperimentalEndpointsApiFp(this.configuration).listConnectionAccounts(requestParameters, options).then((request) => request(this.axios, this.basePath));
4248
+ listConnectionAccounts(...args) {
4249
+ return ExperimentalEndpointsApiFp(this.configuration).listConnectionAccounts(...args).then((request) => request(this.axios, this.basePath));
4220
4250
  }
4221
4251
  /**
4222
4252
  * Returns active Trade Detection subscriptions for your Client ID. Cancelled subscriptions are not returned.
@@ -4842,7 +4872,8 @@ const ReferenceDataApiFp = function(configuration) {
4842
4872
  * @param {*} [options] Override http request option.
4843
4873
  * @throws {RequiredError}
4844
4874
  */
4845
- async getSymbols(requestParameters = {}, options) {
4875
+ async getSymbols(...args) {
4876
+ const [requestParameters = {}, options] = args;
4846
4877
  const symbolQuery = { substring: requestParameters.substring };
4847
4878
  return createRequestFunction(await localVarAxiosParamCreator.getSymbols(symbolQuery, options), globalAxios, BASE_PATH, configuration, {
4848
4879
  authModes: ["commercialApiKey", "personalApiKey"],
@@ -4865,7 +4896,8 @@ const ReferenceDataApiFp = function(configuration) {
4865
4896
  * @param {*} [options] Override http request option.
4866
4897
  * @throws {RequiredError}
4867
4898
  */
4868
- async getSymbolsByTicker(requestParameters, options) {
4899
+ async getSymbolsByTicker(...args) {
4900
+ const [requestParameters = {}, options] = args;
4869
4901
  return createRequestFunction(await localVarAxiosParamCreator.getSymbolsByTicker(requestParameters.query, options), globalAxios, BASE_PATH, configuration, {
4870
4902
  authModes: ["commercialApiKey", "personalApiKey"],
4871
4903
  requestSigningByAuthMode: {
@@ -4887,7 +4919,8 @@ const ReferenceDataApiFp = function(configuration) {
4887
4919
  * @param {*} [options] Override http request option.
4888
4920
  * @throws {RequiredError}
4889
4921
  */
4890
- async listAllBrokerageAuthorizationType(requestParameters = {}, options) {
4922
+ async listAllBrokerageAuthorizationType(...args) {
4923
+ const [requestParameters = {}, options] = args;
4891
4924
  return createRequestFunction(await localVarAxiosParamCreator.listAllBrokerageAuthorizationType(requestParameters.brokerage, options), globalAxios, BASE_PATH, configuration, {
4892
4925
  authModes: ["commercialApiKey", "personalApiKey"],
4893
4926
  requestSigningByAuthMode: {
@@ -4909,7 +4942,8 @@ const ReferenceDataApiFp = function(configuration) {
4909
4942
  * @param {*} [options] Override http request option.
4910
4943
  * @throws {RequiredError}
4911
4944
  */
4912
- async listAllBrokerageInstruments(requestParameters, options) {
4945
+ async listAllBrokerageInstruments(...args) {
4946
+ const [requestParameters = {}, options] = args;
4913
4947
  return createRequestFunction(await localVarAxiosParamCreator.listAllBrokerageInstruments(requestParameters.slug, options), globalAxios, BASE_PATH, configuration, {
4914
4948
  authModes: ["commercialApiKey", "personalApiKey"],
4915
4949
  requestSigningByAuthMode: {
@@ -4953,7 +4987,8 @@ const ReferenceDataApiFp = function(configuration) {
4953
4987
  * @param {*} [options] Override http request option.
4954
4988
  * @throws {RequiredError}
4955
4989
  */
4956
- async symbolSearchUserAccount(requestParameters, options) {
4990
+ async symbolSearchUserAccount(...args) {
4991
+ const [requestParameters = {}, options] = args;
4957
4992
  const symbolQuery = { substring: requestParameters.substring };
4958
4993
  return createRequestFunction(await localVarAxiosParamCreator.symbolSearchUserAccount(requestParameters.accountId, symbolQuery, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
4959
4994
  authModes: ["commercialApiKey", "personalApiKey"],
@@ -5003,8 +5038,8 @@ const ReferenceDataApiFactory = function(configuration, basePath, axios) {
5003
5038
  * @param {*} [options] Override http request option.
5004
5039
  * @throws {RequiredError}
5005
5040
  */
5006
- getSymbols(requestParameters = {}, options) {
5007
- return localVarFp.getSymbols(requestParameters, options).then((request) => request(axios, basePath));
5041
+ getSymbols(...args) {
5042
+ return localVarFp.getSymbols(...args).then((request) => request(axios, basePath));
5008
5043
  },
5009
5044
  /**
5010
5045
  * 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.
@@ -5013,8 +5048,8 @@ const ReferenceDataApiFactory = function(configuration, basePath, axios) {
5013
5048
  * @param {*} [options] Override http request option.
5014
5049
  * @throws {RequiredError}
5015
5050
  */
5016
- getSymbolsByTicker(requestParameters, options) {
5017
- return localVarFp.getSymbolsByTicker(requestParameters, options).then((request) => request(axios, basePath));
5051
+ getSymbolsByTicker(...args) {
5052
+ return localVarFp.getSymbolsByTicker(...args).then((request) => request(axios, basePath));
5018
5053
  },
5019
5054
  /**
5020
5055
  * Returns a list of all defined Brokerage authorization Type objects.
@@ -5023,8 +5058,8 @@ const ReferenceDataApiFactory = function(configuration, basePath, axios) {
5023
5058
  * @param {*} [options] Override http request option.
5024
5059
  * @throws {RequiredError}
5025
5060
  */
5026
- listAllBrokerageAuthorizationType(requestParameters = {}, options) {
5027
- return localVarFp.listAllBrokerageAuthorizationType(requestParameters, options).then((request) => request(axios, basePath));
5061
+ listAllBrokerageAuthorizationType(...args) {
5062
+ return localVarFp.listAllBrokerageAuthorizationType(...args).then((request) => request(axios, basePath));
5028
5063
  },
5029
5064
  /**
5030
5065
  * 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.
@@ -5033,8 +5068,8 @@ const ReferenceDataApiFactory = function(configuration, basePath, axios) {
5033
5068
  * @param {*} [options] Override http request option.
5034
5069
  * @throws {RequiredError}
5035
5070
  */
5036
- listAllBrokerageInstruments(requestParameters, options) {
5037
- return localVarFp.listAllBrokerageInstruments(requestParameters, options).then((request) => request(axios, basePath));
5071
+ listAllBrokerageInstruments(...args) {
5072
+ return localVarFp.listAllBrokerageInstruments(...args).then((request) => request(axios, basePath));
5038
5073
  },
5039
5074
  /**
5040
5075
  * Returns a list of all defined Brokerage objects.
@@ -5052,8 +5087,8 @@ const ReferenceDataApiFactory = function(configuration, basePath, axios) {
5052
5087
  * @param {*} [options] Override http request option.
5053
5088
  * @throws {RequiredError}
5054
5089
  */
5055
- symbolSearchUserAccount(requestParameters, options) {
5056
- return localVarFp.symbolSearchUserAccount(requestParameters, options).then((request) => request(axios, basePath));
5090
+ symbolSearchUserAccount(...args) {
5091
+ return localVarFp.symbolSearchUserAccount(...args).then((request) => request(axios, basePath));
5057
5092
  }
5058
5093
  };
5059
5094
  };
@@ -5092,8 +5127,8 @@ var ReferenceDataApiGenerated = class extends BaseAPI {
5092
5127
  * @throws {RequiredError}
5093
5128
  * @memberof ReferenceDataApiGenerated
5094
5129
  */
5095
- getSymbols(requestParameters = {}, options) {
5096
- return ReferenceDataApiFp(this.configuration).getSymbols(requestParameters, options).then((request) => request(this.axios, this.basePath));
5130
+ getSymbols(...args) {
5131
+ return ReferenceDataApiFp(this.configuration).getSymbols(...args).then((request) => request(this.axios, this.basePath));
5097
5132
  }
5098
5133
  /**
5099
5134
  * 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.
@@ -5103,8 +5138,8 @@ var ReferenceDataApiGenerated = class extends BaseAPI {
5103
5138
  * @throws {RequiredError}
5104
5139
  * @memberof ReferenceDataApiGenerated
5105
5140
  */
5106
- getSymbolsByTicker(requestParameters, options) {
5107
- return ReferenceDataApiFp(this.configuration).getSymbolsByTicker(requestParameters, options).then((request) => request(this.axios, this.basePath));
5141
+ getSymbolsByTicker(...args) {
5142
+ return ReferenceDataApiFp(this.configuration).getSymbolsByTicker(...args).then((request) => request(this.axios, this.basePath));
5108
5143
  }
5109
5144
  /**
5110
5145
  * Returns a list of all defined Brokerage authorization Type objects.
@@ -5114,8 +5149,8 @@ var ReferenceDataApiGenerated = class extends BaseAPI {
5114
5149
  * @throws {RequiredError}
5115
5150
  * @memberof ReferenceDataApiGenerated
5116
5151
  */
5117
- listAllBrokerageAuthorizationType(requestParameters = {}, options) {
5118
- return ReferenceDataApiFp(this.configuration).listAllBrokerageAuthorizationType(requestParameters, options).then((request) => request(this.axios, this.basePath));
5152
+ listAllBrokerageAuthorizationType(...args) {
5153
+ return ReferenceDataApiFp(this.configuration).listAllBrokerageAuthorizationType(...args).then((request) => request(this.axios, this.basePath));
5119
5154
  }
5120
5155
  /**
5121
5156
  * 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.
@@ -5125,8 +5160,8 @@ var ReferenceDataApiGenerated = class extends BaseAPI {
5125
5160
  * @throws {RequiredError}
5126
5161
  * @memberof ReferenceDataApiGenerated
5127
5162
  */
5128
- listAllBrokerageInstruments(requestParameters, options) {
5129
- return ReferenceDataApiFp(this.configuration).listAllBrokerageInstruments(requestParameters, options).then((request) => request(this.axios, this.basePath));
5163
+ listAllBrokerageInstruments(...args) {
5164
+ return ReferenceDataApiFp(this.configuration).listAllBrokerageInstruments(...args).then((request) => request(this.axios, this.basePath));
5130
5165
  }
5131
5166
  /**
5132
5167
  * Returns a list of all defined Brokerage objects.
@@ -5146,8 +5181,8 @@ var ReferenceDataApiGenerated = class extends BaseAPI {
5146
5181
  * @throws {RequiredError}
5147
5182
  * @memberof ReferenceDataApiGenerated
5148
5183
  */
5149
- symbolSearchUserAccount(requestParameters, options) {
5150
- return ReferenceDataApiFp(this.configuration).symbolSearchUserAccount(requestParameters, options).then((request) => request(this.axios, this.basePath));
5184
+ symbolSearchUserAccount(...args) {
5185
+ return ReferenceDataApiFp(this.configuration).symbolSearchUserAccount(...args).then((request) => request(this.axios, this.basePath));
5151
5186
  }
5152
5187
  };
5153
5188
  //#endregion
@@ -5624,7 +5659,7 @@ const TradingApiAxiosParamCreator = function(configuration) {
5624
5659
  };
5625
5660
  },
5626
5661
  /**
5627
- * 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.
5662
+ * 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.
5628
5663
  * @summary Place complex order
5629
5664
  * @param {string} accountId The ID of the account to execute the trade on.
5630
5665
  * @param {ManualTradeFormComplex} manualTradeFormComplex
@@ -6259,7 +6294,8 @@ const TradingApiFp = function(configuration) {
6259
6294
  * @param {*} [options] Override http request option.
6260
6295
  * @throws {RequiredError}
6261
6296
  */
6262
- async cancelOrder(requestParameters, options) {
6297
+ async cancelOrder(...args) {
6298
+ const [requestParameters = {}, options] = args;
6263
6299
  const accountInformationGetUserAccountOrderDetailRequest = { brokerage_order_id: requestParameters.brokerage_order_id };
6264
6300
  return createRequestFunction(await localVarAxiosParamCreator.cancelOrder(requestParameters.accountId, accountInformationGetUserAccountOrderDetailRequest, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
6265
6301
  authModes: ["commercialApiKey", "personalApiKey"],
@@ -6282,7 +6318,8 @@ const TradingApiFp = function(configuration) {
6282
6318
  * @param {*} [options] Override http request option.
6283
6319
  * @throws {RequiredError}
6284
6320
  */
6285
- async getCryptocurrencyPairQuote(requestParameters, options) {
6321
+ async getCryptocurrencyPairQuote(...args) {
6322
+ const [requestParameters = {}, options] = args;
6286
6323
  return createRequestFunction(await localVarAxiosParamCreator.getCryptocurrencyPairQuote(requestParameters.accountId, requestParameters.instrumentSymbol, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
6287
6324
  authModes: ["commercialApiKey", "personalApiKey"],
6288
6325
  requestSigningByAuthMode: {
@@ -6304,7 +6341,8 @@ const TradingApiFp = function(configuration) {
6304
6341
  * @param {*} [options] Override http request option.
6305
6342
  * @throws {RequiredError}
6306
6343
  */
6307
- async getOptionImpact(requestParameters, options) {
6344
+ async getOptionImpact(...args) {
6345
+ const [requestParameters = {}, options] = args;
6308
6346
  const mlegTradeForm = {
6309
6347
  order_type: requestParameters.order_type,
6310
6348
  time_in_force: requestParameters.time_in_force,
@@ -6334,7 +6372,8 @@ const TradingApiFp = function(configuration) {
6334
6372
  * @param {*} [options] Override http request option.
6335
6373
  * @throws {RequiredError}
6336
6374
  */
6337
- async getOrderImpact(requestParameters, options) {
6375
+ async getOrderImpact(...args) {
6376
+ const [requestParameters = {}, options] = args;
6338
6377
  const manualTradeForm = {
6339
6378
  account_id: requestParameters.account_id,
6340
6379
  action: requestParameters.action,
@@ -6368,7 +6407,8 @@ const TradingApiFp = function(configuration) {
6368
6407
  * @deprecated
6369
6408
  * @throws {RequiredError}
6370
6409
  */
6371
- async getUserAccountOptionQuotes(requestParameters, options) {
6410
+ async getUserAccountOptionQuotes(...args) {
6411
+ const [requestParameters = {}, options] = args;
6372
6412
  return createRequestFunction(await localVarAxiosParamCreator.getUserAccountOptionQuotes(requestParameters.accountId, requestParameters.symbol, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
6373
6413
  authModes: ["commercialApiKey", "personalApiKey"],
6374
6414
  requestSigningByAuthMode: {
@@ -6390,7 +6430,8 @@ const TradingApiFp = function(configuration) {
6390
6430
  * @param {*} [options] Override http request option.
6391
6431
  * @throws {RequiredError}
6392
6432
  */
6393
- async getUserAccountQuotes(requestParameters, options) {
6433
+ async getUserAccountQuotes(...args) {
6434
+ const [requestParameters = {}, options] = args;
6394
6435
  return createRequestFunction(await localVarAxiosParamCreator.getUserAccountQuotes(requestParameters.symbols, requestParameters.accountId, requestParameters.useTicker, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
6395
6436
  authModes: ["commercialApiKey", "personalApiKey"],
6396
6437
  requestSigningByAuthMode: {
@@ -6406,13 +6447,14 @@ const TradingApiFp = function(configuration) {
6406
6447
  });
6407
6448
  },
6408
6449
  /**
6409
- * 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.
6450
+ * 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.
6410
6451
  * @summary Place complex order
6411
6452
  * @param {TradingApiPlaceComplexOrderRequest<TAuth>} requestParameters Request parameters.
6412
6453
  * @param {*} [options] Override http request option.
6413
6454
  * @throws {RequiredError}
6414
6455
  */
6415
- async placeComplexOrder(requestParameters, options) {
6456
+ async placeComplexOrder(...args) {
6457
+ const [requestParameters = {}, options] = args;
6416
6458
  const manualTradeFormComplex = {
6417
6459
  type: requestParameters.type,
6418
6460
  orders: requestParameters.orders,
@@ -6439,7 +6481,8 @@ const TradingApiFp = function(configuration) {
6439
6481
  * @param {*} [options] Override http request option.
6440
6482
  * @throws {RequiredError}
6441
6483
  */
6442
- async placeCryptoOrder(requestParameters, options) {
6484
+ async placeCryptoOrder(...args) {
6485
+ const [requestParameters = {}, options] = args;
6443
6486
  const cryptoOrderForm = {
6444
6487
  instrument: requestParameters.instrument,
6445
6488
  side: requestParameters.side,
@@ -6472,7 +6515,8 @@ const TradingApiFp = function(configuration) {
6472
6515
  * @param {*} [options] Override http request option.
6473
6516
  * @throws {RequiredError}
6474
6517
  */
6475
- async placeForceOrder(requestParameters, options) {
6518
+ async placeForceOrder(...args) {
6519
+ const [requestParameters = {}, options] = args;
6476
6520
  const manualTradeFormWithOptions = {
6477
6521
  account_id: requestParameters.account_id,
6478
6522
  action: requestParameters.action,
@@ -6509,7 +6553,8 @@ const TradingApiFp = function(configuration) {
6509
6553
  * @param {*} [options] Override http request option.
6510
6554
  * @throws {RequiredError}
6511
6555
  */
6512
- async placeMlegOrder(requestParameters, options) {
6556
+ async placeMlegOrder(...args) {
6557
+ const [requestParameters = {}, options] = args;
6513
6558
  const mlegTradeForm = {
6514
6559
  order_type: requestParameters.order_type,
6515
6560
  time_in_force: requestParameters.time_in_force,
@@ -6539,7 +6584,8 @@ const TradingApiFp = function(configuration) {
6539
6584
  * @param {*} [options] Override http request option.
6540
6585
  * @throws {RequiredError}
6541
6586
  */
6542
- async placeOrder(requestParameters, options) {
6587
+ async placeOrder(...args) {
6588
+ const [requestParameters = {}, options] = args;
6543
6589
  const validatedTradeBody = { wait_to_confirm: requestParameters.wait_to_confirm };
6544
6590
  return createRequestFunction(await localVarAxiosParamCreator.placeOrder(requestParameters.tradeId, validatedTradeBody, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
6545
6591
  authModes: ["commercialApiKey", "personalApiKey"],
@@ -6562,7 +6608,8 @@ const TradingApiFp = function(configuration) {
6562
6608
  * @param {*} [options] Override http request option.
6563
6609
  * @throws {RequiredError}
6564
6610
  */
6565
- async previewCryptoOrder(requestParameters, options) {
6611
+ async previewCryptoOrder(...args) {
6612
+ const [requestParameters = {}, options] = args;
6566
6613
  const cryptoOrderForm = {
6567
6614
  instrument: requestParameters.instrument,
6568
6615
  side: requestParameters.side,
@@ -6595,7 +6642,8 @@ const TradingApiFp = function(configuration) {
6595
6642
  * @param {*} [options] Override http request option.
6596
6643
  * @throws {RequiredError}
6597
6644
  */
6598
- async replaceOrder(requestParameters, options) {
6645
+ async replaceOrder(...args) {
6646
+ const [requestParameters = {}, options] = args;
6599
6647
  const manualTradeReplaceForm = {
6600
6648
  brokerage_order_id: requestParameters.brokerage_order_id,
6601
6649
  action: requestParameters.action,
@@ -6627,7 +6675,8 @@ const TradingApiFp = function(configuration) {
6627
6675
  * @param {*} [options] Override http request option.
6628
6676
  * @throws {RequiredError}
6629
6677
  */
6630
- async searchCryptocurrencyPairInstruments(requestParameters, options) {
6678
+ async searchCryptocurrencyPairInstruments(...args) {
6679
+ const [requestParameters = {}, options] = args;
6631
6680
  return createRequestFunction(await localVarAxiosParamCreator.searchCryptocurrencyPairInstruments(requestParameters.accountId, requestParameters.base, requestParameters.quote, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
6632
6681
  authModes: ["commercialApiKey", "personalApiKey"],
6633
6682
  requestSigningByAuthMode: {
@@ -6658,8 +6707,8 @@ const TradingApiFactory = function(configuration, basePath, axios) {
6658
6707
  * @param {*} [options] Override http request option.
6659
6708
  * @throws {RequiredError}
6660
6709
  */
6661
- cancelOrder(requestParameters, options) {
6662
- return localVarFp.cancelOrder(requestParameters, options).then((request) => request(axios, basePath));
6710
+ cancelOrder(...args) {
6711
+ return localVarFp.cancelOrder(...args).then((request) => request(axios, basePath));
6663
6712
  },
6664
6713
  /**
6665
6714
  * Gets a quote for the specified account.
@@ -6668,8 +6717,8 @@ const TradingApiFactory = function(configuration, basePath, axios) {
6668
6717
  * @param {*} [options] Override http request option.
6669
6718
  * @throws {RequiredError}
6670
6719
  */
6671
- getCryptocurrencyPairQuote(requestParameters, options) {
6672
- return localVarFp.getCryptocurrencyPairQuote(requestParameters, options).then((request) => request(axios, basePath));
6720
+ getCryptocurrencyPairQuote(...args) {
6721
+ return localVarFp.getCryptocurrencyPairQuote(...args).then((request) => request(axios, basePath));
6673
6722
  },
6674
6723
  /**
6675
6724
  * 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.
@@ -6678,8 +6727,8 @@ const TradingApiFactory = function(configuration, basePath, axios) {
6678
6727
  * @param {*} [options] Override http request option.
6679
6728
  * @throws {RequiredError}
6680
6729
  */
6681
- getOptionImpact(requestParameters, options) {
6682
- return localVarFp.getOptionImpact(requestParameters, options).then((request) => request(axios, basePath));
6730
+ getOptionImpact(...args) {
6731
+ return localVarFp.getOptionImpact(...args).then((request) => request(axios, basePath));
6683
6732
  },
6684
6733
  /**
6685
6734
  * 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.
@@ -6688,8 +6737,8 @@ const TradingApiFactory = function(configuration, basePath, axios) {
6688
6737
  * @param {*} [options] Override http request option.
6689
6738
  * @throws {RequiredError}
6690
6739
  */
6691
- getOrderImpact(requestParameters, options) {
6692
- return localVarFp.getOrderImpact(requestParameters, options).then((request) => request(axios, basePath));
6740
+ getOrderImpact(...args) {
6741
+ return localVarFp.getOrderImpact(...args).then((request) => request(axios, basePath));
6693
6742
  },
6694
6743
  /**
6695
6744
  * 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**
@@ -6699,8 +6748,8 @@ const TradingApiFactory = function(configuration, basePath, axios) {
6699
6748
  * @deprecated
6700
6749
  * @throws {RequiredError}
6701
6750
  */
6702
- getUserAccountOptionQuotes(requestParameters, options) {
6703
- return localVarFp.getUserAccountOptionQuotes(requestParameters, options).then((request) => request(axios, basePath));
6751
+ getUserAccountOptionQuotes(...args) {
6752
+ return localVarFp.getUserAccountOptionQuotes(...args).then((request) => request(axios, basePath));
6704
6753
  },
6705
6754
  /**
6706
6755
  * 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.
@@ -6709,18 +6758,18 @@ const TradingApiFactory = function(configuration, basePath, axios) {
6709
6758
  * @param {*} [options] Override http request option.
6710
6759
  * @throws {RequiredError}
6711
6760
  */
6712
- getUserAccountQuotes(requestParameters, options) {
6713
- return localVarFp.getUserAccountQuotes(requestParameters, options).then((request) => request(axios, basePath));
6761
+ getUserAccountQuotes(...args) {
6762
+ return localVarFp.getUserAccountQuotes(...args).then((request) => request(axios, basePath));
6714
6763
  },
6715
6764
  /**
6716
- * 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.
6765
+ * 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.
6717
6766
  * @summary Place complex order
6718
6767
  * @param {TradingApiPlaceComplexOrderRequest<TAuth>} requestParameters Request parameters.
6719
6768
  * @param {*} [options] Override http request option.
6720
6769
  * @throws {RequiredError}
6721
6770
  */
6722
- placeComplexOrder(requestParameters, options) {
6723
- return localVarFp.placeComplexOrder(requestParameters, options).then((request) => request(axios, basePath));
6771
+ placeComplexOrder(...args) {
6772
+ return localVarFp.placeComplexOrder(...args).then((request) => request(axios, basePath));
6724
6773
  },
6725
6774
  /**
6726
6775
  * 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.
@@ -6729,8 +6778,8 @@ const TradingApiFactory = function(configuration, basePath, axios) {
6729
6778
  * @param {*} [options] Override http request option.
6730
6779
  * @throws {RequiredError}
6731
6780
  */
6732
- placeCryptoOrder(requestParameters, options) {
6733
- return localVarFp.placeCryptoOrder(requestParameters, options).then((request) => request(axios, basePath));
6781
+ placeCryptoOrder(...args) {
6782
+ return localVarFp.placeCryptoOrder(...args).then((request) => request(axios, basePath));
6734
6783
  },
6735
6784
  /**
6736
6785
  * 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.
@@ -6739,8 +6788,8 @@ const TradingApiFactory = function(configuration, basePath, axios) {
6739
6788
  * @param {*} [options] Override http request option.
6740
6789
  * @throws {RequiredError}
6741
6790
  */
6742
- placeForceOrder(requestParameters, options) {
6743
- return localVarFp.placeForceOrder(requestParameters, options).then((request) => request(axios, basePath));
6791
+ placeForceOrder(...args) {
6792
+ return localVarFp.placeForceOrder(...args).then((request) => request(axios, basePath));
6744
6793
  },
6745
6794
  /**
6746
6795
  * Places a multi-leg option order. Only supported on certain option trading brokerages. https://support.snaptrade.com/brokerages has information on brokerage trading support
@@ -6749,8 +6798,8 @@ const TradingApiFactory = function(configuration, basePath, axios) {
6749
6798
  * @param {*} [options] Override http request option.
6750
6799
  * @throws {RequiredError}
6751
6800
  */
6752
- placeMlegOrder(requestParameters, options) {
6753
- return localVarFp.placeMlegOrder(requestParameters, options).then((request) => request(axios, basePath));
6801
+ placeMlegOrder(...args) {
6802
+ return localVarFp.placeMlegOrder(...args).then((request) => request(axios, basePath));
6754
6803
  },
6755
6804
  /**
6756
6805
  * 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.
@@ -6759,8 +6808,8 @@ const TradingApiFactory = function(configuration, basePath, axios) {
6759
6808
  * @param {*} [options] Override http request option.
6760
6809
  * @throws {RequiredError}
6761
6810
  */
6762
- placeOrder(requestParameters, options) {
6763
- return localVarFp.placeOrder(requestParameters, options).then((request) => request(axios, basePath));
6811
+ placeOrder(...args) {
6812
+ return localVarFp.placeOrder(...args).then((request) => request(axios, basePath));
6764
6813
  },
6765
6814
  /**
6766
6815
  * Previews an order using the specified account.
@@ -6769,8 +6818,8 @@ const TradingApiFactory = function(configuration, basePath, axios) {
6769
6818
  * @param {*} [options] Override http request option.
6770
6819
  * @throws {RequiredError}
6771
6820
  */
6772
- previewCryptoOrder(requestParameters, options) {
6773
- return localVarFp.previewCryptoOrder(requestParameters, options).then((request) => request(axios, basePath));
6821
+ previewCryptoOrder(...args) {
6822
+ return localVarFp.previewCryptoOrder(...args).then((request) => request(axios, basePath));
6774
6823
  },
6775
6824
  /**
6776
6825
  * 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
@@ -6779,8 +6828,8 @@ const TradingApiFactory = function(configuration, basePath, axios) {
6779
6828
  * @param {*} [options] Override http request option.
6780
6829
  * @throws {RequiredError}
6781
6830
  */
6782
- replaceOrder(requestParameters, options) {
6783
- return localVarFp.replaceOrder(requestParameters, options).then((request) => request(axios, basePath));
6831
+ replaceOrder(...args) {
6832
+ return localVarFp.replaceOrder(...args).then((request) => request(axios, basePath));
6784
6833
  },
6785
6834
  /**
6786
6835
  * Searches cryptocurrency pairs instruments accessible to the specified account. Both `base` and `quote` are optional. Omit both for a full list of cryptocurrency pairs.
@@ -6789,8 +6838,8 @@ const TradingApiFactory = function(configuration, basePath, axios) {
6789
6838
  * @param {*} [options] Override http request option.
6790
6839
  * @throws {RequiredError}
6791
6840
  */
6792
- searchCryptocurrencyPairInstruments(requestParameters, options) {
6793
- return localVarFp.searchCryptocurrencyPairInstruments(requestParameters, options).then((request) => request(axios, basePath));
6841
+ searchCryptocurrencyPairInstruments(...args) {
6842
+ return localVarFp.searchCryptocurrencyPairInstruments(...args).then((request) => request(axios, basePath));
6794
6843
  }
6795
6844
  };
6796
6845
  };
@@ -6809,8 +6858,8 @@ var TradingApiGenerated = class extends BaseAPI {
6809
6858
  * @throws {RequiredError}
6810
6859
  * @memberof TradingApiGenerated
6811
6860
  */
6812
- cancelOrder(requestParameters, options) {
6813
- return TradingApiFp(this.configuration).cancelOrder(requestParameters, options).then((request) => request(this.axios, this.basePath));
6861
+ cancelOrder(...args) {
6862
+ return TradingApiFp(this.configuration).cancelOrder(...args).then((request) => request(this.axios, this.basePath));
6814
6863
  }
6815
6864
  /**
6816
6865
  * Gets a quote for the specified account.
@@ -6820,8 +6869,8 @@ var TradingApiGenerated = class extends BaseAPI {
6820
6869
  * @throws {RequiredError}
6821
6870
  * @memberof TradingApiGenerated
6822
6871
  */
6823
- getCryptocurrencyPairQuote(requestParameters, options) {
6824
- return TradingApiFp(this.configuration).getCryptocurrencyPairQuote(requestParameters, options).then((request) => request(this.axios, this.basePath));
6872
+ getCryptocurrencyPairQuote(...args) {
6873
+ return TradingApiFp(this.configuration).getCryptocurrencyPairQuote(...args).then((request) => request(this.axios, this.basePath));
6825
6874
  }
6826
6875
  /**
6827
6876
  * 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.
@@ -6831,8 +6880,8 @@ var TradingApiGenerated = class extends BaseAPI {
6831
6880
  * @throws {RequiredError}
6832
6881
  * @memberof TradingApiGenerated
6833
6882
  */
6834
- getOptionImpact(requestParameters, options) {
6835
- return TradingApiFp(this.configuration).getOptionImpact(requestParameters, options).then((request) => request(this.axios, this.basePath));
6883
+ getOptionImpact(...args) {
6884
+ return TradingApiFp(this.configuration).getOptionImpact(...args).then((request) => request(this.axios, this.basePath));
6836
6885
  }
6837
6886
  /**
6838
6887
  * 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.
@@ -6842,8 +6891,8 @@ var TradingApiGenerated = class extends BaseAPI {
6842
6891
  * @throws {RequiredError}
6843
6892
  * @memberof TradingApiGenerated
6844
6893
  */
6845
- getOrderImpact(requestParameters, options) {
6846
- return TradingApiFp(this.configuration).getOrderImpact(requestParameters, options).then((request) => request(this.axios, this.basePath));
6894
+ getOrderImpact(...args) {
6895
+ return TradingApiFp(this.configuration).getOrderImpact(...args).then((request) => request(this.axios, this.basePath));
6847
6896
  }
6848
6897
  /**
6849
6898
  * 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**
@@ -6854,8 +6903,8 @@ var TradingApiGenerated = class extends BaseAPI {
6854
6903
  * @throws {RequiredError}
6855
6904
  * @memberof TradingApiGenerated
6856
6905
  */
6857
- getUserAccountOptionQuotes(requestParameters, options) {
6858
- return TradingApiFp(this.configuration).getUserAccountOptionQuotes(requestParameters, options).then((request) => request(this.axios, this.basePath));
6906
+ getUserAccountOptionQuotes(...args) {
6907
+ return TradingApiFp(this.configuration).getUserAccountOptionQuotes(...args).then((request) => request(this.axios, this.basePath));
6859
6908
  }
6860
6909
  /**
6861
6910
  * 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.
@@ -6865,19 +6914,19 @@ var TradingApiGenerated = class extends BaseAPI {
6865
6914
  * @throws {RequiredError}
6866
6915
  * @memberof TradingApiGenerated
6867
6916
  */
6868
- getUserAccountQuotes(requestParameters, options) {
6869
- return TradingApiFp(this.configuration).getUserAccountQuotes(requestParameters, options).then((request) => request(this.axios, this.basePath));
6917
+ getUserAccountQuotes(...args) {
6918
+ return TradingApiFp(this.configuration).getUserAccountQuotes(...args).then((request) => request(this.axios, this.basePath));
6870
6919
  }
6871
6920
  /**
6872
- * 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.
6921
+ * 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.
6873
6922
  * @summary Place complex order
6874
6923
  * @param {TradingApiPlaceComplexOrderRequest<TAuth>} requestParameters Request parameters.
6875
6924
  * @param {*} [options] Override http request option.
6876
6925
  * @throws {RequiredError}
6877
6926
  * @memberof TradingApiGenerated
6878
6927
  */
6879
- placeComplexOrder(requestParameters, options) {
6880
- return TradingApiFp(this.configuration).placeComplexOrder(requestParameters, options).then((request) => request(this.axios, this.basePath));
6928
+ placeComplexOrder(...args) {
6929
+ return TradingApiFp(this.configuration).placeComplexOrder(...args).then((request) => request(this.axios, this.basePath));
6881
6930
  }
6882
6931
  /**
6883
6932
  * 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.
@@ -6887,8 +6936,8 @@ var TradingApiGenerated = class extends BaseAPI {
6887
6936
  * @throws {RequiredError}
6888
6937
  * @memberof TradingApiGenerated
6889
6938
  */
6890
- placeCryptoOrder(requestParameters, options) {
6891
- return TradingApiFp(this.configuration).placeCryptoOrder(requestParameters, options).then((request) => request(this.axios, this.basePath));
6939
+ placeCryptoOrder(...args) {
6940
+ return TradingApiFp(this.configuration).placeCryptoOrder(...args).then((request) => request(this.axios, this.basePath));
6892
6941
  }
6893
6942
  /**
6894
6943
  * 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.
@@ -6898,8 +6947,8 @@ var TradingApiGenerated = class extends BaseAPI {
6898
6947
  * @throws {RequiredError}
6899
6948
  * @memberof TradingApiGenerated
6900
6949
  */
6901
- placeForceOrder(requestParameters, options) {
6902
- return TradingApiFp(this.configuration).placeForceOrder(requestParameters, options).then((request) => request(this.axios, this.basePath));
6950
+ placeForceOrder(...args) {
6951
+ return TradingApiFp(this.configuration).placeForceOrder(...args).then((request) => request(this.axios, this.basePath));
6903
6952
  }
6904
6953
  /**
6905
6954
  * Places a multi-leg option order. Only supported on certain option trading brokerages. https://support.snaptrade.com/brokerages has information on brokerage trading support
@@ -6909,8 +6958,8 @@ var TradingApiGenerated = class extends BaseAPI {
6909
6958
  * @throws {RequiredError}
6910
6959
  * @memberof TradingApiGenerated
6911
6960
  */
6912
- placeMlegOrder(requestParameters, options) {
6913
- return TradingApiFp(this.configuration).placeMlegOrder(requestParameters, options).then((request) => request(this.axios, this.basePath));
6961
+ placeMlegOrder(...args) {
6962
+ return TradingApiFp(this.configuration).placeMlegOrder(...args).then((request) => request(this.axios, this.basePath));
6914
6963
  }
6915
6964
  /**
6916
6965
  * 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.
@@ -6920,8 +6969,8 @@ var TradingApiGenerated = class extends BaseAPI {
6920
6969
  * @throws {RequiredError}
6921
6970
  * @memberof TradingApiGenerated
6922
6971
  */
6923
- placeOrder(requestParameters, options) {
6924
- return TradingApiFp(this.configuration).placeOrder(requestParameters, options).then((request) => request(this.axios, this.basePath));
6972
+ placeOrder(...args) {
6973
+ return TradingApiFp(this.configuration).placeOrder(...args).then((request) => request(this.axios, this.basePath));
6925
6974
  }
6926
6975
  /**
6927
6976
  * Previews an order using the specified account.
@@ -6931,8 +6980,8 @@ var TradingApiGenerated = class extends BaseAPI {
6931
6980
  * @throws {RequiredError}
6932
6981
  * @memberof TradingApiGenerated
6933
6982
  */
6934
- previewCryptoOrder(requestParameters, options) {
6935
- return TradingApiFp(this.configuration).previewCryptoOrder(requestParameters, options).then((request) => request(this.axios, this.basePath));
6983
+ previewCryptoOrder(...args) {
6984
+ return TradingApiFp(this.configuration).previewCryptoOrder(...args).then((request) => request(this.axios, this.basePath));
6936
6985
  }
6937
6986
  /**
6938
6987
  * 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
@@ -6942,8 +6991,8 @@ var TradingApiGenerated = class extends BaseAPI {
6942
6991
  * @throws {RequiredError}
6943
6992
  * @memberof TradingApiGenerated
6944
6993
  */
6945
- replaceOrder(requestParameters, options) {
6946
- return TradingApiFp(this.configuration).replaceOrder(requestParameters, options).then((request) => request(this.axios, this.basePath));
6994
+ replaceOrder(...args) {
6995
+ return TradingApiFp(this.configuration).replaceOrder(...args).then((request) => request(this.axios, this.basePath));
6947
6996
  }
6948
6997
  /**
6949
6998
  * Searches cryptocurrency pairs instruments accessible to the specified account. Both `base` and `quote` are optional. Omit both for a full list of cryptocurrency pairs.
@@ -6953,8 +7002,8 @@ var TradingApiGenerated = class extends BaseAPI {
6953
7002
  * @throws {RequiredError}
6954
7003
  * @memberof TradingApiGenerated
6955
7004
  */
6956
- searchCryptocurrencyPairInstruments(requestParameters, options) {
6957
- return TradingApiFp(this.configuration).searchCryptocurrencyPairInstruments(requestParameters, options).then((request) => request(this.axios, this.basePath));
7005
+ searchCryptocurrencyPairInstruments(...args) {
7006
+ return TradingApiFp(this.configuration).searchCryptocurrencyPairInstruments(...args).then((request) => request(this.axios, this.basePath));
6958
7007
  }
6959
7008
  };
6960
7009
  //#endregion
@@ -7007,7 +7056,7 @@ var Configuration = class {
7007
7056
  }
7008
7057
  this.basePath = param.basePath;
7009
7058
  this.baseOptions = param.baseOptions ?? {};
7010
- this.userAgent = param.userAgent === void 0 ? "Konfig/12.2.3/typescript" : param.userAgent;
7059
+ this.userAgent = param.userAgent === void 0 ? "Konfig/12.2.5/typescript" : param.userAgent;
7011
7060
  this.formDataCtor = param.formDataCtor;
7012
7061
  }
7013
7062
  /**