snaptrade-typescript-sdk 12.2.21 → 12.2.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +121 -119
- package/dist/browser.umd.js +1 -1
- package/dist/index.cjs +253 -245
- package/dist/index.d.cts +143 -129
- package/dist/index.d.mts +143 -129
- package/dist/index.d.ts +143 -129
- package/dist/index.mjs +253 -245
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -491,6 +491,79 @@ const AccountInformationApiAxiosParamCreator = function(configuration) {
|
|
|
491
491
|
};
|
|
492
492
|
},
|
|
493
493
|
/**
|
|
494
|
+
* Returns the specified account for the authenticated user. The account can be an investment, deposit, or line of credit account. Use the `kind` discriminator to determine the schema for the account. On Pay as you Go / Real-time, this endpoint refreshes the 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. If the connection has become disabled, it can no longer access the latest data from the institution, 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.
|
|
495
|
+
* @summary Get account details
|
|
496
|
+
* @param {string} accountId
|
|
497
|
+
* @param {string} [userId]
|
|
498
|
+
* @param {string} [userSecret]
|
|
499
|
+
* @param {*} [options] Override http request option.
|
|
500
|
+
* @throws {RequiredError}
|
|
501
|
+
*/
|
|
502
|
+
getAccountDetails: async (accountId, userId, userSecret, options = {}) => {
|
|
503
|
+
assertParamExists("getAccountDetails", "accountId", accountId);
|
|
504
|
+
const localVarPath = `/accounts/{accountId}/details`.replace(`{accountId}`, encodeURIComponent(String(accountId !== void 0 ? accountId : `-accountId-`)));
|
|
505
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
506
|
+
let baseOptions;
|
|
507
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
508
|
+
const localVarRequestOptions = {
|
|
509
|
+
method: "GET",
|
|
510
|
+
...baseOptions,
|
|
511
|
+
...options
|
|
512
|
+
};
|
|
513
|
+
const localVarHeaderParameter = configuration && !isBrowser() ? { "User-Agent": configuration.userAgent } : {};
|
|
514
|
+
const localVarQueryParameter = {};
|
|
515
|
+
if (configuration?.authMode === "commercialApiKey") {
|
|
516
|
+
await setApiKeyToObject({
|
|
517
|
+
object: localVarQueryParameter,
|
|
518
|
+
key: "clientId",
|
|
519
|
+
keyParamName: "clientId",
|
|
520
|
+
configuration
|
|
521
|
+
});
|
|
522
|
+
if (userId !== void 0) localVarQueryParameter["userId"] = userId;
|
|
523
|
+
if (userSecret !== void 0) localVarQueryParameter["userSecret"] = userSecret;
|
|
524
|
+
}
|
|
525
|
+
if (configuration?.authMode === "personalApiKey") await setApiKeyToObject({
|
|
526
|
+
object: localVarQueryParameter,
|
|
527
|
+
key: "clientId",
|
|
528
|
+
keyParamName: "clientId",
|
|
529
|
+
configuration
|
|
530
|
+
});
|
|
531
|
+
const localVarOperationAuth = {
|
|
532
|
+
authModes: ["commercialApiKey", "personalApiKey"],
|
|
533
|
+
requestSigningByAuthMode: {
|
|
534
|
+
"commercialApiKey": {
|
|
535
|
+
secretParameter: "consumerKey",
|
|
536
|
+
signedSecuritySchemes: ["PartnerSignature", "PartnerTimestamp"]
|
|
537
|
+
},
|
|
538
|
+
"personalApiKey": {
|
|
539
|
+
secretParameter: "consumerKey",
|
|
540
|
+
signedSecuritySchemes: ["PersonalSignature", "PersonalTimestamp"]
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
selectedAuthMode: configuration?.authMode
|
|
544
|
+
};
|
|
545
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
546
|
+
localVarRequestOptions.headers = {
|
|
547
|
+
...localVarHeaderParameter,
|
|
548
|
+
...headersFromBaseOptions,
|
|
549
|
+
...options.headers
|
|
550
|
+
};
|
|
551
|
+
requestBeforeHook({
|
|
552
|
+
queryParameters: localVarQueryParameter,
|
|
553
|
+
requestConfig: localVarRequestOptions,
|
|
554
|
+
path: localVarPath,
|
|
555
|
+
configuration,
|
|
556
|
+
pathTemplate: "/accounts/{accountId}/details",
|
|
557
|
+
httpMethod: "GET",
|
|
558
|
+
operationAuth: localVarOperationAuth
|
|
559
|
+
});
|
|
560
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
561
|
+
return {
|
|
562
|
+
url: toPathString(localVarUrlObj),
|
|
563
|
+
options: localVarRequestOptions
|
|
564
|
+
};
|
|
565
|
+
},
|
|
566
|
+
/**
|
|
494
567
|
* 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, future option positions, CFD positions, and tokenized asset positions. Use the `instrument.kind` discriminator to determine the schema for each position\'s `instrument`. **Beta:** future option positions (`instrument.kind: future_option`) are in beta. They are currently returned only for tastytrade and Interactive Brokers connections, and only for partners they have been enabled for — please contact the SnapTrade team to enable them. The `FutureOptionInstrument` schema may change. 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.
|
|
495
568
|
* @summary List all account positions
|
|
496
569
|
* @param {string} accountId
|
|
@@ -637,12 +710,13 @@ const AccountInformationApiAxiosParamCreator = function(configuration) {
|
|
|
637
710
|
};
|
|
638
711
|
},
|
|
639
712
|
/**
|
|
640
|
-
* 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.
|
|
713
|
+
* **Deprecated.** Use the [get account details](/reference/Account%20Information/AccountInformation_getAccountDetails) endpoint instead, which supports all account types, including investment, deposit, and line of credit accounts. 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.
|
|
641
714
|
* @summary Get account detail
|
|
642
715
|
* @param {string} accountId
|
|
643
716
|
* @param {string} [userId]
|
|
644
717
|
* @param {string} [userSecret]
|
|
645
718
|
* @param {*} [options] Override http request option.
|
|
719
|
+
* @deprecated
|
|
646
720
|
* @throws {RequiredError}
|
|
647
721
|
*/
|
|
648
722
|
getUserAccountDetails: async (accountId, userId, userSecret, options = {}) => {
|
|
@@ -1089,11 +1163,83 @@ const AccountInformationApiAxiosParamCreator = function(configuration) {
|
|
|
1089
1163
|
};
|
|
1090
1164
|
},
|
|
1091
1165
|
/**
|
|
1092
|
-
* Returns all
|
|
1166
|
+
* Returns all accounts across all connections known to SnapTrade for the authenticated user. The `results` list can contain multiple account types in the same response, including investment, deposit, and line of credit accounts. Use the `kind` discriminator to determine the schema for each account. 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 institution. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listConnectionAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
1167
|
+
* @summary List all user accounts
|
|
1168
|
+
* @param {string} [userId]
|
|
1169
|
+
* @param {string} [userSecret]
|
|
1170
|
+
* @param {*} [options] Override http request option.
|
|
1171
|
+
* @throws {RequiredError}
|
|
1172
|
+
*/
|
|
1173
|
+
listAllUserAccounts: async (userId, userSecret, options = {}) => {
|
|
1174
|
+
const localVarPath = `/accounts/all`;
|
|
1175
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1176
|
+
let baseOptions;
|
|
1177
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
1178
|
+
const localVarRequestOptions = {
|
|
1179
|
+
method: "GET",
|
|
1180
|
+
...baseOptions,
|
|
1181
|
+
...options
|
|
1182
|
+
};
|
|
1183
|
+
const localVarHeaderParameter = configuration && !isBrowser() ? { "User-Agent": configuration.userAgent } : {};
|
|
1184
|
+
const localVarQueryParameter = {};
|
|
1185
|
+
if (configuration?.authMode === "commercialApiKey") {
|
|
1186
|
+
await setApiKeyToObject({
|
|
1187
|
+
object: localVarQueryParameter,
|
|
1188
|
+
key: "clientId",
|
|
1189
|
+
keyParamName: "clientId",
|
|
1190
|
+
configuration
|
|
1191
|
+
});
|
|
1192
|
+
if (userId !== void 0) localVarQueryParameter["userId"] = userId;
|
|
1193
|
+
if (userSecret !== void 0) localVarQueryParameter["userSecret"] = userSecret;
|
|
1194
|
+
}
|
|
1195
|
+
if (configuration?.authMode === "personalApiKey") await setApiKeyToObject({
|
|
1196
|
+
object: localVarQueryParameter,
|
|
1197
|
+
key: "clientId",
|
|
1198
|
+
keyParamName: "clientId",
|
|
1199
|
+
configuration
|
|
1200
|
+
});
|
|
1201
|
+
const localVarOperationAuth = {
|
|
1202
|
+
authModes: ["commercialApiKey", "personalApiKey"],
|
|
1203
|
+
requestSigningByAuthMode: {
|
|
1204
|
+
"commercialApiKey": {
|
|
1205
|
+
secretParameter: "consumerKey",
|
|
1206
|
+
signedSecuritySchemes: ["PartnerSignature", "PartnerTimestamp"]
|
|
1207
|
+
},
|
|
1208
|
+
"personalApiKey": {
|
|
1209
|
+
secretParameter: "consumerKey",
|
|
1210
|
+
signedSecuritySchemes: ["PersonalSignature", "PersonalTimestamp"]
|
|
1211
|
+
}
|
|
1212
|
+
},
|
|
1213
|
+
selectedAuthMode: configuration?.authMode
|
|
1214
|
+
};
|
|
1215
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1216
|
+
localVarRequestOptions.headers = {
|
|
1217
|
+
...localVarHeaderParameter,
|
|
1218
|
+
...headersFromBaseOptions,
|
|
1219
|
+
...options.headers
|
|
1220
|
+
};
|
|
1221
|
+
requestBeforeHook({
|
|
1222
|
+
queryParameters: localVarQueryParameter,
|
|
1223
|
+
requestConfig: localVarRequestOptions,
|
|
1224
|
+
path: localVarPath,
|
|
1225
|
+
configuration,
|
|
1226
|
+
pathTemplate: "/accounts/all",
|
|
1227
|
+
httpMethod: "GET",
|
|
1228
|
+
operationAuth: localVarOperationAuth
|
|
1229
|
+
});
|
|
1230
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1231
|
+
return {
|
|
1232
|
+
url: toPathString(localVarUrlObj),
|
|
1233
|
+
options: localVarRequestOptions
|
|
1234
|
+
};
|
|
1235
|
+
},
|
|
1236
|
+
/**
|
|
1237
|
+
* **Deprecated.** Use the [list all user accounts](/reference/Account%20Information/AccountInformation_listAllUserAccounts) endpoint instead, which returns all account types in a single response, including investment, deposit, and line of credit accounts. 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).
|
|
1093
1238
|
* @summary List user accounts
|
|
1094
1239
|
* @param {string} [userId]
|
|
1095
1240
|
* @param {string} [userSecret]
|
|
1096
1241
|
* @param {*} [options] Override http request option.
|
|
1242
|
+
* @deprecated
|
|
1097
1243
|
* @throws {RequiredError}
|
|
1098
1244
|
*/
|
|
1099
1245
|
listUserAccounts: async (userId, userSecret, options = {}) => {
|
|
@@ -1288,6 +1434,29 @@ const AccountInformationApiFp = function(configuration) {
|
|
|
1288
1434
|
});
|
|
1289
1435
|
},
|
|
1290
1436
|
/**
|
|
1437
|
+
* Returns the specified account for the authenticated user. The account can be an investment, deposit, or line of credit account. Use the `kind` discriminator to determine the schema for the account. On Pay as you Go / Real-time, this endpoint refreshes the 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. If the connection has become disabled, it can no longer access the latest data from the institution, 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.
|
|
1438
|
+
* @summary Get account details
|
|
1439
|
+
* @param {AccountInformationApiGetAccountDetailsRequest<TAuth>} requestParameters Request parameters.
|
|
1440
|
+
* @param {*} [options] Override http request option.
|
|
1441
|
+
* @throws {RequiredError}
|
|
1442
|
+
*/
|
|
1443
|
+
async getAccountDetails(...args) {
|
|
1444
|
+
const [requestParameters = {}, options] = args;
|
|
1445
|
+
return createRequestFunction(await localVarAxiosParamCreator.getAccountDetails(requestParameters.accountId, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
1446
|
+
authModes: ["commercialApiKey", "personalApiKey"],
|
|
1447
|
+
requestSigningByAuthMode: {
|
|
1448
|
+
"commercialApiKey": {
|
|
1449
|
+
secretParameter: "consumerKey",
|
|
1450
|
+
signedSecuritySchemes: ["PartnerSignature", "PartnerTimestamp"]
|
|
1451
|
+
},
|
|
1452
|
+
"personalApiKey": {
|
|
1453
|
+
secretParameter: "consumerKey",
|
|
1454
|
+
signedSecuritySchemes: ["PersonalSignature", "PersonalTimestamp"]
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
});
|
|
1458
|
+
},
|
|
1459
|
+
/**
|
|
1291
1460
|
* 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, future option positions, CFD positions, and tokenized asset positions. Use the `instrument.kind` discriminator to determine the schema for each position\'s `instrument`. **Beta:** future option positions (`instrument.kind: future_option`) are in beta. They are currently returned only for tastytrade and Interactive Brokers connections, and only for partners they have been enabled for — please contact the SnapTrade team to enable them. The `FutureOptionInstrument` schema may change. 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.
|
|
1292
1461
|
* @summary List all account positions
|
|
1293
1462
|
* @param {AccountInformationApiGetAllAccountPositionsRequest<TAuth>} requestParameters Request parameters.
|
|
@@ -1334,10 +1503,11 @@ const AccountInformationApiFp = function(configuration) {
|
|
|
1334
1503
|
});
|
|
1335
1504
|
},
|
|
1336
1505
|
/**
|
|
1337
|
-
* 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.
|
|
1506
|
+
* **Deprecated.** Use the [get account details](/reference/Account%20Information/AccountInformation_getAccountDetails) endpoint instead, which supports all account types, including investment, deposit, and line of credit accounts. 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.
|
|
1338
1507
|
* @summary Get account detail
|
|
1339
1508
|
* @param {AccountInformationApiGetUserAccountDetailsRequest<TAuth>} requestParameters Request parameters.
|
|
1340
1509
|
* @param {*} [options] Override http request option.
|
|
1510
|
+
* @deprecated
|
|
1341
1511
|
* @throws {RequiredError}
|
|
1342
1512
|
*/
|
|
1343
1513
|
async getUserAccountDetails(...args) {
|
|
@@ -1474,10 +1644,34 @@ const AccountInformationApiFp = function(configuration) {
|
|
|
1474
1644
|
});
|
|
1475
1645
|
},
|
|
1476
1646
|
/**
|
|
1477
|
-
* Returns all
|
|
1647
|
+
* Returns all accounts across all connections known to SnapTrade for the authenticated user. The `results` list can contain multiple account types in the same response, including investment, deposit, and line of credit accounts. Use the `kind` discriminator to determine the schema for each account. 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 institution. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listConnectionAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
1648
|
+
* @summary List all user accounts
|
|
1649
|
+
* @param {AccountInformationApiListAllUserAccountsRequest<TAuth>} requestParameters Request parameters.
|
|
1650
|
+
* @param {*} [options] Override http request option.
|
|
1651
|
+
* @throws {RequiredError}
|
|
1652
|
+
*/
|
|
1653
|
+
async listAllUserAccounts(...args) {
|
|
1654
|
+
const [requestParameters = {}, options] = args;
|
|
1655
|
+
return createRequestFunction(await localVarAxiosParamCreator.listAllUserAccounts(requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
1656
|
+
authModes: ["commercialApiKey", "personalApiKey"],
|
|
1657
|
+
requestSigningByAuthMode: {
|
|
1658
|
+
"commercialApiKey": {
|
|
1659
|
+
secretParameter: "consumerKey",
|
|
1660
|
+
signedSecuritySchemes: ["PartnerSignature", "PartnerTimestamp"]
|
|
1661
|
+
},
|
|
1662
|
+
"personalApiKey": {
|
|
1663
|
+
secretParameter: "consumerKey",
|
|
1664
|
+
signedSecuritySchemes: ["PersonalSignature", "PersonalTimestamp"]
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
});
|
|
1668
|
+
},
|
|
1669
|
+
/**
|
|
1670
|
+
* **Deprecated.** Use the [list all user accounts](/reference/Account%20Information/AccountInformation_listAllUserAccounts) endpoint instead, which returns all account types in a single response, including investment, deposit, and line of credit accounts. 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).
|
|
1478
1671
|
* @summary List user accounts
|
|
1479
1672
|
* @param {AccountInformationApiListUserAccountsRequest<TAuth>} requestParameters Request parameters.
|
|
1480
1673
|
* @param {*} [options] Override http request option.
|
|
1674
|
+
* @deprecated
|
|
1481
1675
|
* @throws {RequiredError}
|
|
1482
1676
|
*/
|
|
1483
1677
|
async listUserAccounts(...args) {
|
|
@@ -1549,6 +1743,16 @@ const AccountInformationApiFactory = function(configuration, basePath, axios$8)
|
|
|
1549
1743
|
return localVarFp.getAccountBalanceHistory(...args).then((request) => request(axios$8, basePath));
|
|
1550
1744
|
},
|
|
1551
1745
|
/**
|
|
1746
|
+
* Returns the specified account for the authenticated user. The account can be an investment, deposit, or line of credit account. Use the `kind` discriminator to determine the schema for the account. On Pay as you Go / Real-time, this endpoint refreshes the 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. If the connection has become disabled, it can no longer access the latest data from the institution, 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.
|
|
1747
|
+
* @summary Get account details
|
|
1748
|
+
* @param {AccountInformationApiGetAccountDetailsRequest<TAuth>} requestParameters Request parameters.
|
|
1749
|
+
* @param {*} [options] Override http request option.
|
|
1750
|
+
* @throws {RequiredError}
|
|
1751
|
+
*/
|
|
1752
|
+
getAccountDetails(...args) {
|
|
1753
|
+
return localVarFp.getAccountDetails(...args).then((request) => request(axios$8, basePath));
|
|
1754
|
+
},
|
|
1755
|
+
/**
|
|
1552
1756
|
* 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, future option positions, CFD positions, and tokenized asset positions. Use the `instrument.kind` discriminator to determine the schema for each position\'s `instrument`. **Beta:** future option positions (`instrument.kind: future_option`) are in beta. They are currently returned only for tastytrade and Interactive Brokers connections, and only for partners they have been enabled for — please contact the SnapTrade team to enable them. The `FutureOptionInstrument` schema may change. 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.
|
|
1553
1757
|
* @summary List all account positions
|
|
1554
1758
|
* @param {AccountInformationApiGetAllAccountPositionsRequest<TAuth>} requestParameters Request parameters.
|
|
@@ -1569,10 +1773,11 @@ const AccountInformationApiFactory = function(configuration, basePath, axios$8)
|
|
|
1569
1773
|
return localVarFp.getUserAccountBalance(...args).then((request) => request(axios$8, basePath));
|
|
1570
1774
|
},
|
|
1571
1775
|
/**
|
|
1572
|
-
* Returns account detail known to SnapTrade for the specified account. Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access: - If you do, this endpoint returns real-time data. - If you don\'t, Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
1776
|
+
* **Deprecated.** Use the [get account details](/reference/Account%20Information/AccountInformation_getAccountDetails) endpoint instead, which supports all account types, including investment, deposit, and line of credit accounts. 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.
|
|
1573
1777
|
* @summary Get account detail
|
|
1574
1778
|
* @param {AccountInformationApiGetUserAccountDetailsRequest<TAuth>} requestParameters Request parameters.
|
|
1575
1779
|
* @param {*} [options] Override http request option.
|
|
1780
|
+
* @deprecated
|
|
1576
1781
|
* @throws {RequiredError}
|
|
1577
1782
|
*/
|
|
1578
1783
|
getUserAccountDetails(...args) {
|
|
@@ -1630,10 +1835,21 @@ const AccountInformationApiFactory = function(configuration, basePath, axios$8)
|
|
|
1630
1835
|
return localVarFp.getUserHoldings(...args).then((request) => request(axios$8, basePath));
|
|
1631
1836
|
},
|
|
1632
1837
|
/**
|
|
1633
|
-
* Returns all
|
|
1838
|
+
* Returns all accounts across all connections known to SnapTrade for the authenticated user. The `results` list can contain multiple account types in the same response, including investment, deposit, and line of credit accounts. Use the `kind` discriminator to determine the schema for each account. 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 institution. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listConnectionAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
1839
|
+
* @summary List all user accounts
|
|
1840
|
+
* @param {AccountInformationApiListAllUserAccountsRequest<TAuth>} requestParameters Request parameters.
|
|
1841
|
+
* @param {*} [options] Override http request option.
|
|
1842
|
+
* @throws {RequiredError}
|
|
1843
|
+
*/
|
|
1844
|
+
listAllUserAccounts(...args) {
|
|
1845
|
+
return localVarFp.listAllUserAccounts(...args).then((request) => request(axios$8, basePath));
|
|
1846
|
+
},
|
|
1847
|
+
/**
|
|
1848
|
+
* **Deprecated.** Use the [list all user accounts](/reference/Account%20Information/AccountInformation_listAllUserAccounts) endpoint instead, which returns all account types in a single response, including investment, deposit, and line of credit accounts. 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).
|
|
1634
1849
|
* @summary List user accounts
|
|
1635
1850
|
* @param {AccountInformationApiListUserAccountsRequest<TAuth>} requestParameters Request parameters.
|
|
1636
1851
|
* @param {*} [options] Override http request option.
|
|
1852
|
+
* @deprecated
|
|
1637
1853
|
* @throws {RequiredError}
|
|
1638
1854
|
*/
|
|
1639
1855
|
listUserAccounts(...args) {
|
|
@@ -1681,6 +1897,17 @@ var AccountInformationApiGenerated = class extends BaseAPI {
|
|
|
1681
1897
|
return AccountInformationApiFp(this.configuration).getAccountBalanceHistory(...args).then((request) => request(this.axios, this.basePath));
|
|
1682
1898
|
}
|
|
1683
1899
|
/**
|
|
1900
|
+
* Returns the specified account for the authenticated user. The account can be an investment, deposit, or line of credit account. Use the `kind` discriminator to determine the schema for the account. On Pay as you Go / Real-time, this endpoint refreshes the 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. If the connection has become disabled, it can no longer access the latest data from the institution, 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.
|
|
1901
|
+
* @summary Get account details
|
|
1902
|
+
* @param {AccountInformationApiGetAccountDetailsRequest<TAuth>} requestParameters Request parameters.
|
|
1903
|
+
* @param {*} [options] Override http request option.
|
|
1904
|
+
* @throws {RequiredError}
|
|
1905
|
+
* @memberof AccountInformationApiGenerated
|
|
1906
|
+
*/
|
|
1907
|
+
getAccountDetails(...args) {
|
|
1908
|
+
return AccountInformationApiFp(this.configuration).getAccountDetails(...args).then((request) => request(this.axios, this.basePath));
|
|
1909
|
+
}
|
|
1910
|
+
/**
|
|
1684
1911
|
* 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, future option positions, CFD positions, and tokenized asset positions. Use the `instrument.kind` discriminator to determine the schema for each position\'s `instrument`. **Beta:** future option positions (`instrument.kind: future_option`) are in beta. They are currently returned only for tastytrade and Interactive Brokers connections, and only for partners they have been enabled for — please contact the SnapTrade team to enable them. The `FutureOptionInstrument` schema may change. 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.
|
|
1685
1912
|
* @summary List all account positions
|
|
1686
1913
|
* @param {AccountInformationApiGetAllAccountPositionsRequest<TAuth>} requestParameters Request parameters.
|
|
@@ -1703,10 +1930,11 @@ var AccountInformationApiGenerated = class extends BaseAPI {
|
|
|
1703
1930
|
return AccountInformationApiFp(this.configuration).getUserAccountBalance(...args).then((request) => request(this.axios, this.basePath));
|
|
1704
1931
|
}
|
|
1705
1932
|
/**
|
|
1706
|
-
* Returns account detail known to SnapTrade for the specified account. Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access: - If you do, this endpoint returns real-time data. - If you don\'t, Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
1933
|
+
* **Deprecated.** Use the [get account details](/reference/Account%20Information/AccountInformation_getAccountDetails) endpoint instead, which supports all account types, including investment, deposit, and line of credit accounts. 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.
|
|
1707
1934
|
* @summary Get account detail
|
|
1708
1935
|
* @param {AccountInformationApiGetUserAccountDetailsRequest<TAuth>} requestParameters Request parameters.
|
|
1709
1936
|
* @param {*} [options] Override http request option.
|
|
1937
|
+
* @deprecated
|
|
1710
1938
|
* @throws {RequiredError}
|
|
1711
1939
|
* @memberof AccountInformationApiGenerated
|
|
1712
1940
|
*/
|
|
@@ -1770,10 +1998,22 @@ var AccountInformationApiGenerated = class extends BaseAPI {
|
|
|
1770
1998
|
return AccountInformationApiFp(this.configuration).getUserHoldings(...args).then((request) => request(this.axios, this.basePath));
|
|
1771
1999
|
}
|
|
1772
2000
|
/**
|
|
1773
|
-
* Returns all
|
|
2001
|
+
* Returns all accounts across all connections known to SnapTrade for the authenticated user. The `results` list can contain multiple account types in the same response, including investment, deposit, and line of credit accounts. Use the `kind` discriminator to determine the schema for each account. 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 institution. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listConnectionAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
2002
|
+
* @summary List all user accounts
|
|
2003
|
+
* @param {AccountInformationApiListAllUserAccountsRequest<TAuth>} requestParameters Request parameters.
|
|
2004
|
+
* @param {*} [options] Override http request option.
|
|
2005
|
+
* @throws {RequiredError}
|
|
2006
|
+
* @memberof AccountInformationApiGenerated
|
|
2007
|
+
*/
|
|
2008
|
+
listAllUserAccounts(...args) {
|
|
2009
|
+
return AccountInformationApiFp(this.configuration).listAllUserAccounts(...args).then((request) => request(this.axios, this.basePath));
|
|
2010
|
+
}
|
|
2011
|
+
/**
|
|
2012
|
+
* **Deprecated.** Use the [list all user accounts](/reference/Account%20Information/AccountInformation_listAllUserAccounts) endpoint instead, which returns all account types in a single response, including investment, deposit, and line of credit accounts. 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).
|
|
1774
2013
|
* @summary List user accounts
|
|
1775
2014
|
* @param {AccountInformationApiListUserAccountsRequest<TAuth>} requestParameters Request parameters.
|
|
1776
2015
|
* @param {*} [options] Override http request option.
|
|
2016
|
+
* @deprecated
|
|
1777
2017
|
* @throws {RequiredError}
|
|
1778
2018
|
* @memberof AccountInformationApiGenerated
|
|
1779
2019
|
*/
|
|
@@ -2823,7 +3063,7 @@ const ConnectionsApiAxiosParamCreator = function(configuration) {
|
|
|
2823
3063
|
};
|
|
2824
3064
|
},
|
|
2825
3065
|
/**
|
|
2826
|
-
* Returns all accounts that belong to the specified connection for the authenticated user. The `results` list can contain multiple account
|
|
3066
|
+
* Returns all accounts that belong to the specified connection for the authenticated user. The `results` list can contain multiple account types in the same response, including investment, deposit, and line of credit accounts. Use the `kind` discriminator to determine the schema for each account. 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.
|
|
2827
3067
|
* @summary List accounts
|
|
2828
3068
|
* @param {string} connectionId
|
|
2829
3069
|
* @param {string} [userId]
|
|
@@ -3241,7 +3481,7 @@ const ConnectionsApiFp = function(configuration) {
|
|
|
3241
3481
|
});
|
|
3242
3482
|
},
|
|
3243
3483
|
/**
|
|
3244
|
-
* Returns all accounts that belong to the specified connection for the authenticated user. The `results` list can contain multiple account
|
|
3484
|
+
* Returns all accounts that belong to the specified connection for the authenticated user. The `results` list can contain multiple account types in the same response, including investment, deposit, and line of credit accounts. Use the `kind` discriminator to determine the schema for each account. 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.
|
|
3245
3485
|
* @summary List accounts
|
|
3246
3486
|
* @param {ConnectionsApiListConnectionAccountsRequest<TAuth>} requestParameters Request parameters.
|
|
3247
3487
|
* @param {*} [options] Override http request option.
|
|
@@ -3392,7 +3632,7 @@ const ConnectionsApiFactory = function(configuration, basePath, axios$5) {
|
|
|
3392
3632
|
return localVarFp.listBrokerageAuthorizations(...args).then((request) => request(axios$5, basePath));
|
|
3393
3633
|
},
|
|
3394
3634
|
/**
|
|
3395
|
-
* Returns all accounts that belong to the specified connection for the authenticated user. The `results` list can contain multiple account
|
|
3635
|
+
* Returns all accounts that belong to the specified connection for the authenticated user. The `results` list can contain multiple account types in the same response, including investment, deposit, and line of credit accounts. Use the `kind` discriminator to determine the schema for each account. 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.
|
|
3396
3636
|
* @summary List accounts
|
|
3397
3637
|
* @param {ConnectionsApiListConnectionAccountsRequest<TAuth>} requestParameters Request parameters.
|
|
3398
3638
|
* @param {*} [options] Override http request option.
|
|
@@ -3496,7 +3736,7 @@ var ConnectionsApiGenerated = class extends BaseAPI {
|
|
|
3496
3736
|
return ConnectionsApiFp(this.configuration).listBrokerageAuthorizations(...args).then((request) => request(this.axios, this.basePath));
|
|
3497
3737
|
}
|
|
3498
3738
|
/**
|
|
3499
|
-
* Returns all accounts that belong to the specified connection for the authenticated user. The `results` list can contain multiple account
|
|
3739
|
+
* Returns all accounts that belong to the specified connection for the authenticated user. The `results` list can contain multiple account types in the same response, including investment, deposit, and line of credit accounts. Use the `kind` discriminator to determine the schema for each account. 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.
|
|
3500
3740
|
* @summary List accounts
|
|
3501
3741
|
* @param {ConnectionsApiListConnectionAccountsRequest<TAuth>} requestParameters Request parameters.
|
|
3502
3742
|
* @param {*} [options] Override http request option.
|
|
@@ -3698,79 +3938,6 @@ const ExperimentalEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
3698
3938
|
};
|
|
3699
3939
|
},
|
|
3700
3940
|
/**
|
|
3701
|
-
* Experimental and subject to change without notice. Returns the specified account for the authenticated user, using the `kind`-discriminated account shape. Use the `kind` discriminator to determine the shape of the account, which can be an investment, deposit, or line of credit account. On Pay as you Go / Real-time, this endpoint refreshes the 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. If the connection has become disabled, it can no longer access the latest data from the institution, 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.
|
|
3702
|
-
* @summary Get account details
|
|
3703
|
-
* @param {string} accountId
|
|
3704
|
-
* @param {string} [userId]
|
|
3705
|
-
* @param {string} [userSecret]
|
|
3706
|
-
* @param {*} [options] Override http request option.
|
|
3707
|
-
* @throws {RequiredError}
|
|
3708
|
-
*/
|
|
3709
|
-
getAccountDetails: async (accountId, userId, userSecret, options = {}) => {
|
|
3710
|
-
assertParamExists("getAccountDetails", "accountId", accountId);
|
|
3711
|
-
const localVarPath = `/accounts/{accountId}/details`.replace(`{accountId}`, encodeURIComponent(String(accountId !== void 0 ? accountId : `-accountId-`)));
|
|
3712
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3713
|
-
let baseOptions;
|
|
3714
|
-
if (configuration) baseOptions = configuration.baseOptions;
|
|
3715
|
-
const localVarRequestOptions = {
|
|
3716
|
-
method: "GET",
|
|
3717
|
-
...baseOptions,
|
|
3718
|
-
...options
|
|
3719
|
-
};
|
|
3720
|
-
const localVarHeaderParameter = configuration && !isBrowser() ? { "User-Agent": configuration.userAgent } : {};
|
|
3721
|
-
const localVarQueryParameter = {};
|
|
3722
|
-
if (configuration?.authMode === "commercialApiKey") {
|
|
3723
|
-
await setApiKeyToObject({
|
|
3724
|
-
object: localVarQueryParameter,
|
|
3725
|
-
key: "clientId",
|
|
3726
|
-
keyParamName: "clientId",
|
|
3727
|
-
configuration
|
|
3728
|
-
});
|
|
3729
|
-
if (userId !== void 0) localVarQueryParameter["userId"] = userId;
|
|
3730
|
-
if (userSecret !== void 0) localVarQueryParameter["userSecret"] = userSecret;
|
|
3731
|
-
}
|
|
3732
|
-
if (configuration?.authMode === "personalApiKey") await setApiKeyToObject({
|
|
3733
|
-
object: localVarQueryParameter,
|
|
3734
|
-
key: "clientId",
|
|
3735
|
-
keyParamName: "clientId",
|
|
3736
|
-
configuration
|
|
3737
|
-
});
|
|
3738
|
-
const localVarOperationAuth = {
|
|
3739
|
-
authModes: ["commercialApiKey", "personalApiKey"],
|
|
3740
|
-
requestSigningByAuthMode: {
|
|
3741
|
-
"commercialApiKey": {
|
|
3742
|
-
secretParameter: "consumerKey",
|
|
3743
|
-
signedSecuritySchemes: ["PartnerSignature", "PartnerTimestamp"]
|
|
3744
|
-
},
|
|
3745
|
-
"personalApiKey": {
|
|
3746
|
-
secretParameter: "consumerKey",
|
|
3747
|
-
signedSecuritySchemes: ["PersonalSignature", "PersonalTimestamp"]
|
|
3748
|
-
}
|
|
3749
|
-
},
|
|
3750
|
-
selectedAuthMode: configuration?.authMode
|
|
3751
|
-
};
|
|
3752
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3753
|
-
localVarRequestOptions.headers = {
|
|
3754
|
-
...localVarHeaderParameter,
|
|
3755
|
-
...headersFromBaseOptions,
|
|
3756
|
-
...options.headers
|
|
3757
|
-
};
|
|
3758
|
-
requestBeforeHook({
|
|
3759
|
-
queryParameters: localVarQueryParameter,
|
|
3760
|
-
requestConfig: localVarRequestOptions,
|
|
3761
|
-
path: localVarPath,
|
|
3762
|
-
configuration,
|
|
3763
|
-
pathTemplate: "/accounts/{accountId}/details",
|
|
3764
|
-
httpMethod: "GET",
|
|
3765
|
-
operationAuth: localVarOperationAuth
|
|
3766
|
-
});
|
|
3767
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3768
|
-
return {
|
|
3769
|
-
url: toPathString(localVarUrlObj),
|
|
3770
|
-
options: localVarRequestOptions
|
|
3771
|
-
};
|
|
3772
|
-
},
|
|
3773
|
-
/**
|
|
3774
3941
|
* 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.
|
|
3775
3942
|
* @summary Get account order detail (V2)
|
|
3776
3943
|
* @param {string} accountId
|
|
@@ -3998,77 +4165,6 @@ const ExperimentalEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
3998
4165
|
};
|
|
3999
4166
|
},
|
|
4000
4167
|
/**
|
|
4001
|
-
* Experimental and subject to change without notice. Returns all accounts across all connections known to SnapTrade for the authenticated user. The `results` list can contain multiple account kinds in the same response, including investment, deposit, and line of credit accounts. Use the `kind` discriminator to determine the shape for each account. 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 institution. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listConnectionAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
4002
|
-
* @summary List all user accounts
|
|
4003
|
-
* @param {string} [userId]
|
|
4004
|
-
* @param {string} [userSecret]
|
|
4005
|
-
* @param {*} [options] Override http request option.
|
|
4006
|
-
* @throws {RequiredError}
|
|
4007
|
-
*/
|
|
4008
|
-
listAllUserAccounts: async (userId, userSecret, options = {}) => {
|
|
4009
|
-
const localVarPath = `/accounts/all`;
|
|
4010
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4011
|
-
let baseOptions;
|
|
4012
|
-
if (configuration) baseOptions = configuration.baseOptions;
|
|
4013
|
-
const localVarRequestOptions = {
|
|
4014
|
-
method: "GET",
|
|
4015
|
-
...baseOptions,
|
|
4016
|
-
...options
|
|
4017
|
-
};
|
|
4018
|
-
const localVarHeaderParameter = configuration && !isBrowser() ? { "User-Agent": configuration.userAgent } : {};
|
|
4019
|
-
const localVarQueryParameter = {};
|
|
4020
|
-
if (configuration?.authMode === "commercialApiKey") {
|
|
4021
|
-
await setApiKeyToObject({
|
|
4022
|
-
object: localVarQueryParameter,
|
|
4023
|
-
key: "clientId",
|
|
4024
|
-
keyParamName: "clientId",
|
|
4025
|
-
configuration
|
|
4026
|
-
});
|
|
4027
|
-
if (userId !== void 0) localVarQueryParameter["userId"] = userId;
|
|
4028
|
-
if (userSecret !== void 0) localVarQueryParameter["userSecret"] = userSecret;
|
|
4029
|
-
}
|
|
4030
|
-
if (configuration?.authMode === "personalApiKey") await setApiKeyToObject({
|
|
4031
|
-
object: localVarQueryParameter,
|
|
4032
|
-
key: "clientId",
|
|
4033
|
-
keyParamName: "clientId",
|
|
4034
|
-
configuration
|
|
4035
|
-
});
|
|
4036
|
-
const localVarOperationAuth = {
|
|
4037
|
-
authModes: ["commercialApiKey", "personalApiKey"],
|
|
4038
|
-
requestSigningByAuthMode: {
|
|
4039
|
-
"commercialApiKey": {
|
|
4040
|
-
secretParameter: "consumerKey",
|
|
4041
|
-
signedSecuritySchemes: ["PartnerSignature", "PartnerTimestamp"]
|
|
4042
|
-
},
|
|
4043
|
-
"personalApiKey": {
|
|
4044
|
-
secretParameter: "consumerKey",
|
|
4045
|
-
signedSecuritySchemes: ["PersonalSignature", "PersonalTimestamp"]
|
|
4046
|
-
}
|
|
4047
|
-
},
|
|
4048
|
-
selectedAuthMode: configuration?.authMode
|
|
4049
|
-
};
|
|
4050
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4051
|
-
localVarRequestOptions.headers = {
|
|
4052
|
-
...localVarHeaderParameter,
|
|
4053
|
-
...headersFromBaseOptions,
|
|
4054
|
-
...options.headers
|
|
4055
|
-
};
|
|
4056
|
-
requestBeforeHook({
|
|
4057
|
-
queryParameters: localVarQueryParameter,
|
|
4058
|
-
requestConfig: localVarRequestOptions,
|
|
4059
|
-
path: localVarPath,
|
|
4060
|
-
configuration,
|
|
4061
|
-
pathTemplate: "/accounts/all",
|
|
4062
|
-
httpMethod: "GET",
|
|
4063
|
-
operationAuth: localVarOperationAuth
|
|
4064
|
-
});
|
|
4065
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4066
|
-
return {
|
|
4067
|
-
url: toPathString(localVarUrlObj),
|
|
4068
|
-
options: localVarRequestOptions
|
|
4069
|
-
};
|
|
4070
|
-
},
|
|
4071
|
-
/**
|
|
4072
4168
|
* Returns active Trade Detection subscriptions for your Client ID. Cancelled subscriptions are not returned.
|
|
4073
4169
|
* @summary List active Trade Detection subscriptions
|
|
4074
4170
|
* @param {*} [options] Override http request option.
|
|
@@ -4272,29 +4368,6 @@ const ExperimentalEndpointsApiFp = function(configuration) {
|
|
|
4272
4368
|
});
|
|
4273
4369
|
},
|
|
4274
4370
|
/**
|
|
4275
|
-
* Experimental and subject to change without notice. Returns the specified account for the authenticated user, using the `kind`-discriminated account shape. Use the `kind` discriminator to determine the shape of the account, which can be an investment, deposit, or line of credit account. On Pay as you Go / Real-time, this endpoint refreshes the 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. If the connection has become disabled, it can no longer access the latest data from the institution, 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.
|
|
4276
|
-
* @summary Get account details
|
|
4277
|
-
* @param {ExperimentalEndpointsApiGetAccountDetailsRequest<TAuth>} requestParameters Request parameters.
|
|
4278
|
-
* @param {*} [options] Override http request option.
|
|
4279
|
-
* @throws {RequiredError}
|
|
4280
|
-
*/
|
|
4281
|
-
async getAccountDetails(...args) {
|
|
4282
|
-
const [requestParameters = {}, options] = args;
|
|
4283
|
-
return createRequestFunction(await localVarAxiosParamCreator.getAccountDetails(requestParameters.accountId, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
4284
|
-
authModes: ["commercialApiKey", "personalApiKey"],
|
|
4285
|
-
requestSigningByAuthMode: {
|
|
4286
|
-
"commercialApiKey": {
|
|
4287
|
-
secretParameter: "consumerKey",
|
|
4288
|
-
signedSecuritySchemes: ["PartnerSignature", "PartnerTimestamp"]
|
|
4289
|
-
},
|
|
4290
|
-
"personalApiKey": {
|
|
4291
|
-
secretParameter: "consumerKey",
|
|
4292
|
-
signedSecuritySchemes: ["PersonalSignature", "PersonalTimestamp"]
|
|
4293
|
-
}
|
|
4294
|
-
}
|
|
4295
|
-
});
|
|
4296
|
-
},
|
|
4297
|
-
/**
|
|
4298
4371
|
* 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.
|
|
4299
4372
|
* @summary Get account order detail (V2)
|
|
4300
4373
|
* @param {ExperimentalEndpointsApiGetUserAccountOrderDetailV2Request<TAuth>} requestParameters Request parameters.
|
|
@@ -4364,29 +4437,6 @@ const ExperimentalEndpointsApiFp = function(configuration) {
|
|
|
4364
4437
|
});
|
|
4365
4438
|
},
|
|
4366
4439
|
/**
|
|
4367
|
-
* Experimental and subject to change without notice. Returns all accounts across all connections known to SnapTrade for the authenticated user. The `results` list can contain multiple account kinds in the same response, including investment, deposit, and line of credit accounts. Use the `kind` discriminator to determine the shape for each account. 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 institution. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listConnectionAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
4368
|
-
* @summary List all user accounts
|
|
4369
|
-
* @param {ExperimentalEndpointsApiListAllUserAccountsRequest<TAuth>} requestParameters Request parameters.
|
|
4370
|
-
* @param {*} [options] Override http request option.
|
|
4371
|
-
* @throws {RequiredError}
|
|
4372
|
-
*/
|
|
4373
|
-
async listAllUserAccounts(...args) {
|
|
4374
|
-
const [requestParameters = {}, options] = args;
|
|
4375
|
-
return createRequestFunction(await localVarAxiosParamCreator.listAllUserAccounts(requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
4376
|
-
authModes: ["commercialApiKey", "personalApiKey"],
|
|
4377
|
-
requestSigningByAuthMode: {
|
|
4378
|
-
"commercialApiKey": {
|
|
4379
|
-
secretParameter: "consumerKey",
|
|
4380
|
-
signedSecuritySchemes: ["PartnerSignature", "PartnerTimestamp"]
|
|
4381
|
-
},
|
|
4382
|
-
"personalApiKey": {
|
|
4383
|
-
secretParameter: "consumerKey",
|
|
4384
|
-
signedSecuritySchemes: ["PersonalSignature", "PersonalTimestamp"]
|
|
4385
|
-
}
|
|
4386
|
-
}
|
|
4387
|
-
});
|
|
4388
|
-
},
|
|
4389
|
-
/**
|
|
4390
4440
|
* Returns active Trade Detection subscriptions for your Client ID. Cancelled subscriptions are not returned.
|
|
4391
4441
|
* @summary List active Trade Detection subscriptions
|
|
4392
4442
|
* @param {*} [options] Override http request option.
|
|
@@ -4473,16 +4523,6 @@ const ExperimentalEndpointsApiFactory = function(configuration, basePath, axios$
|
|
|
4473
4523
|
return localVarFp.cancelSubscription(...args).then((request) => request(axios$4, basePath));
|
|
4474
4524
|
},
|
|
4475
4525
|
/**
|
|
4476
|
-
* Experimental and subject to change without notice. Returns the specified account for the authenticated user, using the `kind`-discriminated account shape. Use the `kind` discriminator to determine the shape of the account, which can be an investment, deposit, or line of credit account. On Pay as you Go / Real-time, this endpoint refreshes the 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. If the connection has become disabled, it can no longer access the latest data from the institution, 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.
|
|
4477
|
-
* @summary Get account details
|
|
4478
|
-
* @param {ExperimentalEndpointsApiGetAccountDetailsRequest<TAuth>} requestParameters Request parameters.
|
|
4479
|
-
* @param {*} [options] Override http request option.
|
|
4480
|
-
* @throws {RequiredError}
|
|
4481
|
-
*/
|
|
4482
|
-
getAccountDetails(...args) {
|
|
4483
|
-
return localVarFp.getAccountDetails(...args).then((request) => request(axios$4, basePath));
|
|
4484
|
-
},
|
|
4485
|
-
/**
|
|
4486
4526
|
* 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.
|
|
4487
4527
|
* @summary Get account order detail (V2)
|
|
4488
4528
|
* @param {ExperimentalEndpointsApiGetUserAccountOrderDetailV2Request<TAuth>} requestParameters Request parameters.
|
|
@@ -4513,16 +4553,6 @@ const ExperimentalEndpointsApiFactory = function(configuration, basePath, axios$
|
|
|
4513
4553
|
return localVarFp.getUserAccountRecentOrdersV2(...args).then((request) => request(axios$4, basePath));
|
|
4514
4554
|
},
|
|
4515
4555
|
/**
|
|
4516
|
-
* Experimental and subject to change without notice. Returns all accounts across all connections known to SnapTrade for the authenticated user. The `results` list can contain multiple account kinds in the same response, including investment, deposit, and line of credit accounts. Use the `kind` discriminator to determine the shape for each account. 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 institution. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listConnectionAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
4517
|
-
* @summary List all user accounts
|
|
4518
|
-
* @param {ExperimentalEndpointsApiListAllUserAccountsRequest<TAuth>} requestParameters Request parameters.
|
|
4519
|
-
* @param {*} [options] Override http request option.
|
|
4520
|
-
* @throws {RequiredError}
|
|
4521
|
-
*/
|
|
4522
|
-
listAllUserAccounts(...args) {
|
|
4523
|
-
return localVarFp.listAllUserAccounts(...args).then((request) => request(axios$4, basePath));
|
|
4524
|
-
},
|
|
4525
|
-
/**
|
|
4526
4556
|
* Returns active Trade Detection subscriptions for your Client ID. Cancelled subscriptions are not returned.
|
|
4527
4557
|
* @summary List active Trade Detection subscriptions
|
|
4528
4558
|
* @param {*} [options] Override http request option.
|
|
@@ -4573,17 +4603,6 @@ var ExperimentalEndpointsApiGenerated = class extends BaseAPI {
|
|
|
4573
4603
|
return ExperimentalEndpointsApiFp(this.configuration).cancelSubscription(...args).then((request) => request(this.axios, this.basePath));
|
|
4574
4604
|
}
|
|
4575
4605
|
/**
|
|
4576
|
-
* Experimental and subject to change without notice. Returns the specified account for the authenticated user, using the `kind`-discriminated account shape. Use the `kind` discriminator to determine the shape of the account, which can be an investment, deposit, or line of credit account. On Pay as you Go / Real-time, this endpoint refreshes the 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. If the connection has become disabled, it can no longer access the latest data from the institution, 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.
|
|
4577
|
-
* @summary Get account details
|
|
4578
|
-
* @param {ExperimentalEndpointsApiGetAccountDetailsRequest<TAuth>} requestParameters Request parameters.
|
|
4579
|
-
* @param {*} [options] Override http request option.
|
|
4580
|
-
* @throws {RequiredError}
|
|
4581
|
-
* @memberof ExperimentalEndpointsApiGenerated
|
|
4582
|
-
*/
|
|
4583
|
-
getAccountDetails(...args) {
|
|
4584
|
-
return ExperimentalEndpointsApiFp(this.configuration).getAccountDetails(...args).then((request) => request(this.axios, this.basePath));
|
|
4585
|
-
}
|
|
4586
|
-
/**
|
|
4587
4606
|
* 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.
|
|
4588
4607
|
* @summary Get account order detail (V2)
|
|
4589
4608
|
* @param {ExperimentalEndpointsApiGetUserAccountOrderDetailV2Request<TAuth>} requestParameters Request parameters.
|
|
@@ -4617,17 +4636,6 @@ var ExperimentalEndpointsApiGenerated = class extends BaseAPI {
|
|
|
4617
4636
|
return ExperimentalEndpointsApiFp(this.configuration).getUserAccountRecentOrdersV2(...args).then((request) => request(this.axios, this.basePath));
|
|
4618
4637
|
}
|
|
4619
4638
|
/**
|
|
4620
|
-
* Experimental and subject to change without notice. Returns all accounts across all connections known to SnapTrade for the authenticated user. The `results` list can contain multiple account kinds in the same response, including investment, deposit, and line of credit accounts. Use the `kind` discriminator to determine the shape for each account. 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 institution. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listConnectionAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
4621
|
-
* @summary List all user accounts
|
|
4622
|
-
* @param {ExperimentalEndpointsApiListAllUserAccountsRequest<TAuth>} requestParameters Request parameters.
|
|
4623
|
-
* @param {*} [options] Override http request option.
|
|
4624
|
-
* @throws {RequiredError}
|
|
4625
|
-
* @memberof ExperimentalEndpointsApiGenerated
|
|
4626
|
-
*/
|
|
4627
|
-
listAllUserAccounts(...args) {
|
|
4628
|
-
return ExperimentalEndpointsApiFp(this.configuration).listAllUserAccounts(...args).then((request) => request(this.axios, this.basePath));
|
|
4629
|
-
}
|
|
4630
|
-
/**
|
|
4631
4639
|
* Returns active Trade Detection subscriptions for your Client ID. Cancelled subscriptions are not returned.
|
|
4632
4640
|
* @summary List active Trade Detection subscriptions
|
|
4633
4641
|
* @param {*} [options] Override http request option.
|
|
@@ -7517,7 +7525,7 @@ var Configuration = class {
|
|
|
7517
7525
|
}
|
|
7518
7526
|
this.basePath = param.basePath;
|
|
7519
7527
|
this.baseOptions = param.baseOptions ?? {};
|
|
7520
|
-
this.userAgent = param.userAgent === void 0 ? "Konfig/12.2.
|
|
7528
|
+
this.userAgent = param.userAgent === void 0 ? "Konfig/12.2.22/typescript" : param.userAgent;
|
|
7521
7529
|
this.formDataCtor = param.formDataCtor;
|
|
7522
7530
|
}
|
|
7523
7531
|
/**
|