snaptrade-typescript-sdk 9.0.34 → 9.0.36
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 +54 -41
- package/dist/api/account-information-api-generated.d.ts +42 -42
- package/dist/api/account-information-api-generated.js +37 -37
- package/dist/api/authentication-api-generated.d.ts +28 -28
- package/dist/api/authentication-api-generated.js +28 -28
- package/dist/api/connections-api-generated.d.ts +4 -4
- package/dist/api/connections-api-generated.js +2 -2
- package/dist/api/options-api-generated.d.ts +10 -10
- package/dist/api/options-api-generated.js +9 -9
- package/dist/api/transactions-and-reporting-api-generated.d.ts +16 -16
- package/dist/api/transactions-and-reporting-api-generated.js +10 -10
- package/dist/browser.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/models/account-balance-total.d.ts +1 -1
- package/dist/models/account-holdings-account.d.ts +3 -3
- package/dist/models/account-order-record-universal-symbol.d.ts +6 -6
- package/dist/models/account-order-record.d.ts +1 -1
- package/dist/models/account-simple.d.ts +4 -4
- package/dist/models/account-sync-status.d.ts +1 -1
- package/dist/models/account.d.ts +12 -10
- package/dist/models/balance-currency.d.ts +25 -0
- package/dist/models/balance.d.ts +3 -3
- package/dist/models/delete-user-response.d.ts +8 -2
- package/dist/models/holdings-status.d.ts +4 -4
- package/dist/models/index.d.ts +6 -5
- package/dist/models/index.js +6 -5
- package/dist/models/login-redirect-uri.d.ts +4 -4
- package/dist/models/snap-trade-login-user-request-body.d.ts +6 -6
- package/dist/models/{universal-symbol-currency.d.ts → symbol-currency.d.ts} +5 -5
- package/dist/models/{universal-symbol-exchange.d.ts → symbol-exchange.d.ts} +10 -10
- package/dist/models/symbol.d.ts +13 -13
- package/dist/models/transactions-status.d.ts +6 -6
- package/dist/models/underlying-symbol.d.ts +3 -3
- package/dist/models/universal-activity-currency.d.ts +25 -0
- package/dist/models/universal-activity-option-symbol.d.ts +52 -0
- package/dist/models/universal-activity-symbol.d.ts +65 -0
- package/dist/models/universal-activity-symbol.js +2 -0
- package/dist/models/universal-activity.d.ts +40 -40
- package/dist/models/universal-symbol.d.ts +6 -6
- package/dist/models/user-idand-secret.d.ts +1 -1
- package/package.json +1 -1
- package/dist/models/amount.d.ts +0 -19
- package/dist/models/snap-trade-holdings-account-account-id-balance.d.ts +0 -14
- package/dist/models/snap-trade-holdings-account-account-id.d.ts +0 -74
- /package/dist/models/{amount.js → balance-currency.js} +0 -0
- /package/dist/models/{snap-trade-holdings-account-account-id-balance.js → symbol-currency.js} +0 -0
- /package/dist/models/{snap-trade-holdings-account-account-id.js → symbol-exchange.js} +0 -0
- /package/dist/models/{universal-symbol-currency.js → universal-activity-currency.js} +0 -0
- /package/dist/models/{universal-symbol-exchange.js → universal-activity-option-symbol.js} +0 -0
|
@@ -40,7 +40,7 @@ const AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
40
40
|
* @summary List all accounts for the user, plus balances, positions, and orders for each account.
|
|
41
41
|
* @param {string} userId
|
|
42
42
|
* @param {string} userSecret
|
|
43
|
-
* @param {string} [brokerageAuthorizations] Optional. Comma
|
|
43
|
+
* @param {string} [brokerageAuthorizations] Optional. Comma separated list of authorization IDs (only use if filtering is needed on one or more authorizations).
|
|
44
44
|
* @param {*} [options] Override http request option.
|
|
45
45
|
* @deprecated
|
|
46
46
|
* @throws {RequiredError}
|
|
@@ -92,11 +92,11 @@ const AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
92
92
|
};
|
|
93
93
|
}),
|
|
94
94
|
/**
|
|
95
|
-
*
|
|
95
|
+
* 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). The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
96
96
|
* @summary List account balances
|
|
97
97
|
* @param {string} userId
|
|
98
98
|
* @param {string} userSecret
|
|
99
|
-
* @param {string} accountId
|
|
99
|
+
* @param {string} accountId
|
|
100
100
|
* @param {*} [options] Override http request option.
|
|
101
101
|
* @throws {RequiredError}
|
|
102
102
|
*/
|
|
@@ -147,11 +147,11 @@ const AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
147
147
|
};
|
|
148
148
|
}),
|
|
149
149
|
/**
|
|
150
|
-
* Returns
|
|
151
|
-
* @summary
|
|
150
|
+
* Returns account detail known to SnapTrade for the specified account. The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
151
|
+
* @summary Get account detail
|
|
152
152
|
* @param {string} userId
|
|
153
153
|
* @param {string} userSecret
|
|
154
|
-
* @param {string} accountId
|
|
154
|
+
* @param {string} accountId
|
|
155
155
|
* @param {*} [options] Override http request option.
|
|
156
156
|
* @throws {RequiredError}
|
|
157
157
|
*/
|
|
@@ -202,11 +202,11 @@ const AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
202
202
|
};
|
|
203
203
|
}),
|
|
204
204
|
/**
|
|
205
|
-
*
|
|
206
|
-
* @summary List account orders
|
|
205
|
+
* Returns a list of recent orders in the specified account. The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
206
|
+
* @summary List account recent orders
|
|
207
207
|
* @param {string} userId
|
|
208
208
|
* @param {string} userSecret
|
|
209
|
-
* @param {string} accountId
|
|
209
|
+
* @param {string} accountId
|
|
210
210
|
* @param {'all' | 'open' | 'executed'} [state] defaults value is set to \"all\"
|
|
211
211
|
* @param {number} [days] Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in.
|
|
212
212
|
* @param {*} [options] Override http request option.
|
|
@@ -265,11 +265,11 @@ const AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
265
265
|
};
|
|
266
266
|
}),
|
|
267
267
|
/**
|
|
268
|
-
* Returns a list of positions in the specified account.
|
|
268
|
+
* Returns a list of stock/ETF/crypto/mutual fund positions in the specified account. For option positions, please use the [options endpoint](/reference/Options/Options_listOptionHoldings). The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
269
269
|
* @summary List account positions
|
|
270
270
|
* @param {string} userId
|
|
271
271
|
* @param {string} userSecret
|
|
272
|
-
* @param {string} accountId
|
|
272
|
+
* @param {string} accountId
|
|
273
273
|
* @param {*} [options] Override http request option.
|
|
274
274
|
* @throws {RequiredError}
|
|
275
275
|
*/
|
|
@@ -320,7 +320,7 @@ const AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
320
320
|
};
|
|
321
321
|
}),
|
|
322
322
|
/**
|
|
323
|
-
*
|
|
323
|
+
* Returns a list of balances, positions, and recent orders for the specified account. The data returned is similar to the data returned over the more fine-grained [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getUserAccountPositions) and [orders](/reference/Account%20Information/AccountInformation_getUserAccountOrders) endpoints. __The finer-grained APIs are preferred. They are easier to work with, faster, and have better error handling than this coarse-grained API.__ The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
324
324
|
* @summary List account holdings
|
|
325
325
|
* @param {string} accountId
|
|
326
326
|
* @param {string} userId
|
|
@@ -375,7 +375,7 @@ const AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
375
375
|
};
|
|
376
376
|
}),
|
|
377
377
|
/**
|
|
378
|
-
*
|
|
378
|
+
* Returns all brokerage accounts known to SnapTrade for the authenticated user. The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
379
379
|
* @summary List accounts
|
|
380
380
|
* @param {string} userId
|
|
381
381
|
* @param {string} userSecret
|
|
@@ -505,7 +505,7 @@ const AccountInformationApiFp = function (configuration) {
|
|
|
505
505
|
});
|
|
506
506
|
},
|
|
507
507
|
/**
|
|
508
|
-
*
|
|
508
|
+
* 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). The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
509
509
|
* @summary List account balances
|
|
510
510
|
* @param {AccountInformationApiGetUserAccountBalanceRequest} requestParameters Request parameters.
|
|
511
511
|
* @param {*} [options] Override http request option.
|
|
@@ -518,8 +518,8 @@ const AccountInformationApiFp = function (configuration) {
|
|
|
518
518
|
});
|
|
519
519
|
},
|
|
520
520
|
/**
|
|
521
|
-
* Returns
|
|
522
|
-
* @summary
|
|
521
|
+
* Returns account detail known to SnapTrade for the specified account. The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
522
|
+
* @summary Get account detail
|
|
523
523
|
* @param {AccountInformationApiGetUserAccountDetailsRequest} requestParameters Request parameters.
|
|
524
524
|
* @param {*} [options] Override http request option.
|
|
525
525
|
* @throws {RequiredError}
|
|
@@ -531,8 +531,8 @@ const AccountInformationApiFp = function (configuration) {
|
|
|
531
531
|
});
|
|
532
532
|
},
|
|
533
533
|
/**
|
|
534
|
-
*
|
|
535
|
-
* @summary List account orders
|
|
534
|
+
* Returns a list of recent orders in the specified account. The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
535
|
+
* @summary List account recent orders
|
|
536
536
|
* @param {AccountInformationApiGetUserAccountOrdersRequest} requestParameters Request parameters.
|
|
537
537
|
* @param {*} [options] Override http request option.
|
|
538
538
|
* @throws {RequiredError}
|
|
@@ -544,7 +544,7 @@ const AccountInformationApiFp = function (configuration) {
|
|
|
544
544
|
});
|
|
545
545
|
},
|
|
546
546
|
/**
|
|
547
|
-
* Returns a list of positions in the specified account.
|
|
547
|
+
* Returns a list of stock/ETF/crypto/mutual fund positions in the specified account. For option positions, please use the [options endpoint](/reference/Options/Options_listOptionHoldings). The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
548
548
|
* @summary List account positions
|
|
549
549
|
* @param {AccountInformationApiGetUserAccountPositionsRequest} requestParameters Request parameters.
|
|
550
550
|
* @param {*} [options] Override http request option.
|
|
@@ -557,7 +557,7 @@ const AccountInformationApiFp = function (configuration) {
|
|
|
557
557
|
});
|
|
558
558
|
},
|
|
559
559
|
/**
|
|
560
|
-
*
|
|
560
|
+
* Returns a list of balances, positions, and recent orders for the specified account. The data returned is similar to the data returned over the more fine-grained [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getUserAccountPositions) and [orders](/reference/Account%20Information/AccountInformation_getUserAccountOrders) endpoints. __The finer-grained APIs are preferred. They are easier to work with, faster, and have better error handling than this coarse-grained API.__ The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
561
561
|
* @summary List account holdings
|
|
562
562
|
* @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
|
|
563
563
|
* @param {*} [options] Override http request option.
|
|
@@ -570,7 +570,7 @@ const AccountInformationApiFp = function (configuration) {
|
|
|
570
570
|
});
|
|
571
571
|
},
|
|
572
572
|
/**
|
|
573
|
-
*
|
|
573
|
+
* Returns all brokerage accounts known to SnapTrade for the authenticated user. The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
574
574
|
* @summary List accounts
|
|
575
575
|
* @param {AccountInformationApiListUserAccountsRequest} requestParameters Request parameters.
|
|
576
576
|
* @param {*} [options] Override http request option.
|
|
@@ -617,7 +617,7 @@ const AccountInformationApiFactory = function (configuration, basePath, axios) {
|
|
|
617
617
|
return localVarFp.getAllUserHoldings(requestParameters, options).then((request) => request(axios, basePath));
|
|
618
618
|
},
|
|
619
619
|
/**
|
|
620
|
-
*
|
|
620
|
+
* 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). The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
621
621
|
* @summary List account balances
|
|
622
622
|
* @param {AccountInformationApiGetUserAccountBalanceRequest} requestParameters Request parameters.
|
|
623
623
|
* @param {*} [options] Override http request option.
|
|
@@ -627,8 +627,8 @@ const AccountInformationApiFactory = function (configuration, basePath, axios) {
|
|
|
627
627
|
return localVarFp.getUserAccountBalance(requestParameters, options).then((request) => request(axios, basePath));
|
|
628
628
|
},
|
|
629
629
|
/**
|
|
630
|
-
* Returns
|
|
631
|
-
* @summary
|
|
630
|
+
* Returns account detail known to SnapTrade for the specified account. The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
631
|
+
* @summary Get account detail
|
|
632
632
|
* @param {AccountInformationApiGetUserAccountDetailsRequest} requestParameters Request parameters.
|
|
633
633
|
* @param {*} [options] Override http request option.
|
|
634
634
|
* @throws {RequiredError}
|
|
@@ -637,8 +637,8 @@ const AccountInformationApiFactory = function (configuration, basePath, axios) {
|
|
|
637
637
|
return localVarFp.getUserAccountDetails(requestParameters, options).then((request) => request(axios, basePath));
|
|
638
638
|
},
|
|
639
639
|
/**
|
|
640
|
-
*
|
|
641
|
-
* @summary List account orders
|
|
640
|
+
* Returns a list of recent orders in the specified account. The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
641
|
+
* @summary List account recent orders
|
|
642
642
|
* @param {AccountInformationApiGetUserAccountOrdersRequest} requestParameters Request parameters.
|
|
643
643
|
* @param {*} [options] Override http request option.
|
|
644
644
|
* @throws {RequiredError}
|
|
@@ -647,7 +647,7 @@ const AccountInformationApiFactory = function (configuration, basePath, axios) {
|
|
|
647
647
|
return localVarFp.getUserAccountOrders(requestParameters, options).then((request) => request(axios, basePath));
|
|
648
648
|
},
|
|
649
649
|
/**
|
|
650
|
-
* Returns a list of positions in the specified account.
|
|
650
|
+
* Returns a list of stock/ETF/crypto/mutual fund positions in the specified account. For option positions, please use the [options endpoint](/reference/Options/Options_listOptionHoldings). The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
651
651
|
* @summary List account positions
|
|
652
652
|
* @param {AccountInformationApiGetUserAccountPositionsRequest} requestParameters Request parameters.
|
|
653
653
|
* @param {*} [options] Override http request option.
|
|
@@ -657,7 +657,7 @@ const AccountInformationApiFactory = function (configuration, basePath, axios) {
|
|
|
657
657
|
return localVarFp.getUserAccountPositions(requestParameters, options).then((request) => request(axios, basePath));
|
|
658
658
|
},
|
|
659
659
|
/**
|
|
660
|
-
*
|
|
660
|
+
* Returns a list of balances, positions, and recent orders for the specified account. The data returned is similar to the data returned over the more fine-grained [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getUserAccountPositions) and [orders](/reference/Account%20Information/AccountInformation_getUserAccountOrders) endpoints. __The finer-grained APIs are preferred. They are easier to work with, faster, and have better error handling than this coarse-grained API.__ The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
661
661
|
* @summary List account holdings
|
|
662
662
|
* @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
|
|
663
663
|
* @param {*} [options] Override http request option.
|
|
@@ -667,7 +667,7 @@ const AccountInformationApiFactory = function (configuration, basePath, axios) {
|
|
|
667
667
|
return localVarFp.getUserHoldings(requestParameters, options).then((request) => request(axios, basePath));
|
|
668
668
|
},
|
|
669
669
|
/**
|
|
670
|
-
*
|
|
670
|
+
* Returns all brokerage accounts known to SnapTrade for the authenticated user. The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
671
671
|
* @summary List accounts
|
|
672
672
|
* @param {AccountInformationApiListUserAccountsRequest} requestParameters Request parameters.
|
|
673
673
|
* @param {*} [options] Override http request option.
|
|
@@ -709,7 +709,7 @@ class AccountInformationApiGenerated extends base_1.BaseAPI {
|
|
|
709
709
|
return (0, exports.AccountInformationApiFp)(this.configuration).getAllUserHoldings(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
710
710
|
}
|
|
711
711
|
/**
|
|
712
|
-
*
|
|
712
|
+
* 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). The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
713
713
|
* @summary List account balances
|
|
714
714
|
* @param {AccountInformationApiGetUserAccountBalanceRequest} requestParameters Request parameters.
|
|
715
715
|
* @param {*} [options] Override http request option.
|
|
@@ -720,8 +720,8 @@ class AccountInformationApiGenerated extends base_1.BaseAPI {
|
|
|
720
720
|
return (0, exports.AccountInformationApiFp)(this.configuration).getUserAccountBalance(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
721
721
|
}
|
|
722
722
|
/**
|
|
723
|
-
* Returns
|
|
724
|
-
* @summary
|
|
723
|
+
* Returns account detail known to SnapTrade for the specified account. The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
724
|
+
* @summary Get account detail
|
|
725
725
|
* @param {AccountInformationApiGetUserAccountDetailsRequest} requestParameters Request parameters.
|
|
726
726
|
* @param {*} [options] Override http request option.
|
|
727
727
|
* @throws {RequiredError}
|
|
@@ -731,8 +731,8 @@ class AccountInformationApiGenerated extends base_1.BaseAPI {
|
|
|
731
731
|
return (0, exports.AccountInformationApiFp)(this.configuration).getUserAccountDetails(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
732
732
|
}
|
|
733
733
|
/**
|
|
734
|
-
*
|
|
735
|
-
* @summary List account orders
|
|
734
|
+
* Returns a list of recent orders in the specified account. The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
735
|
+
* @summary List account recent orders
|
|
736
736
|
* @param {AccountInformationApiGetUserAccountOrdersRequest} requestParameters Request parameters.
|
|
737
737
|
* @param {*} [options] Override http request option.
|
|
738
738
|
* @throws {RequiredError}
|
|
@@ -742,7 +742,7 @@ class AccountInformationApiGenerated extends base_1.BaseAPI {
|
|
|
742
742
|
return (0, exports.AccountInformationApiFp)(this.configuration).getUserAccountOrders(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
743
743
|
}
|
|
744
744
|
/**
|
|
745
|
-
* Returns a list of positions in the specified account.
|
|
745
|
+
* Returns a list of stock/ETF/crypto/mutual fund positions in the specified account. For option positions, please use the [options endpoint](/reference/Options/Options_listOptionHoldings). The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
746
746
|
* @summary List account positions
|
|
747
747
|
* @param {AccountInformationApiGetUserAccountPositionsRequest} requestParameters Request parameters.
|
|
748
748
|
* @param {*} [options] Override http request option.
|
|
@@ -753,7 +753,7 @@ class AccountInformationApiGenerated extends base_1.BaseAPI {
|
|
|
753
753
|
return (0, exports.AccountInformationApiFp)(this.configuration).getUserAccountPositions(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
754
754
|
}
|
|
755
755
|
/**
|
|
756
|
-
*
|
|
756
|
+
* Returns a list of balances, positions, and recent orders for the specified account. The data returned is similar to the data returned over the more fine-grained [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getUserAccountPositions) and [orders](/reference/Account%20Information/AccountInformation_getUserAccountOrders) endpoints. __The finer-grained APIs are preferred. They are easier to work with, faster, and have better error handling than this coarse-grained API.__ The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
757
757
|
* @summary List account holdings
|
|
758
758
|
* @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
|
|
759
759
|
* @param {*} [options] Override http request option.
|
|
@@ -764,7 +764,7 @@ class AccountInformationApiGenerated extends base_1.BaseAPI {
|
|
|
764
764
|
return (0, exports.AccountInformationApiFp)(this.configuration).getUserHoldings(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
765
765
|
}
|
|
766
766
|
/**
|
|
767
|
-
*
|
|
767
|
+
* Returns all brokerage accounts known to SnapTrade for the authenticated user. The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
768
768
|
* @summary List accounts
|
|
769
769
|
* @param {AccountInformationApiListUserAccountsRequest} requestParameters Request parameters.
|
|
770
770
|
* @param {*} [options] Override http request option.
|
|
@@ -12,16 +12,16 @@ import { UserIDandSecret } from '../models';
|
|
|
12
12
|
*/
|
|
13
13
|
export declare const AuthenticationApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
14
14
|
/**
|
|
15
|
-
* Deletes a user
|
|
16
|
-
* @summary Delete
|
|
15
|
+
* Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
|
|
16
|
+
* @summary Delete user
|
|
17
17
|
* @param {string} userId
|
|
18
18
|
* @param {*} [options] Override http request option.
|
|
19
19
|
* @throws {RequiredError}
|
|
20
20
|
*/
|
|
21
21
|
deleteSnapTradeUser: (userId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
22
22
|
/**
|
|
23
|
-
* Returns a list of
|
|
24
|
-
* @summary List
|
|
23
|
+
* Returns a list of all registered user IDs.
|
|
24
|
+
* @summary List all users
|
|
25
25
|
* @param {*} [options] Override http request option.
|
|
26
26
|
* @throws {RequiredError}
|
|
27
27
|
*/
|
|
@@ -38,15 +38,15 @@ export declare const AuthenticationApiAxiosParamCreator: (configuration?: Config
|
|
|
38
38
|
loginSnapTradeUser: (userId: string, userSecret: string, snapTradeLoginUserRequestBody?: SnapTradeLoginUserRequestBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
39
39
|
/**
|
|
40
40
|
* Registers a new SnapTrade user under your ClientID. A user secret will be automatically generated for you and must be properly stored in your database. Most SnapTrade operations require a user ID and user secret to be passed as a parameter.
|
|
41
|
-
* @summary
|
|
41
|
+
* @summary Register user
|
|
42
42
|
* @param {SnapTradeRegisterUserRequestBody} snapTradeRegisterUserRequestBody
|
|
43
43
|
* @param {*} [options] Override http request option.
|
|
44
44
|
* @throws {RequiredError}
|
|
45
45
|
*/
|
|
46
46
|
registerSnapTradeUser: (snapTradeRegisterUserRequestBody: SnapTradeRegisterUserRequestBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
49
|
-
* @summary
|
|
48
|
+
* 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.
|
|
49
|
+
* @summary Rotate user secret
|
|
50
50
|
* @param {UserIDandSecret} userIDandSecret
|
|
51
51
|
* @param {*} [options] Override http request option.
|
|
52
52
|
* @throws {RequiredError}
|
|
@@ -59,16 +59,16 @@ export declare const AuthenticationApiAxiosParamCreator: (configuration?: Config
|
|
|
59
59
|
*/
|
|
60
60
|
export declare const AuthenticationApiFp: (configuration?: Configuration) => {
|
|
61
61
|
/**
|
|
62
|
-
* Deletes a user
|
|
63
|
-
* @summary Delete
|
|
62
|
+
* Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
|
|
63
|
+
* @summary Delete user
|
|
64
64
|
* @param {AuthenticationApiDeleteSnapTradeUserRequest} requestParameters Request parameters.
|
|
65
65
|
* @param {*} [options] Override http request option.
|
|
66
66
|
* @throws {RequiredError}
|
|
67
67
|
*/
|
|
68
68
|
deleteSnapTradeUser(requestParameters: AuthenticationApiDeleteSnapTradeUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteUserResponse>>;
|
|
69
69
|
/**
|
|
70
|
-
* Returns a list of
|
|
71
|
-
* @summary List
|
|
70
|
+
* Returns a list of all registered user IDs.
|
|
71
|
+
* @summary List all users
|
|
72
72
|
* @param {*} [options] Override http request option.
|
|
73
73
|
* @throws {RequiredError}
|
|
74
74
|
*/
|
|
@@ -83,15 +83,15 @@ export declare const AuthenticationApiFp: (configuration?: Configuration) => {
|
|
|
83
83
|
loginSnapTradeUser(requestParameters: AuthenticationApiLoginSnapTradeUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthenticationLoginSnapTradeUser200Response>>;
|
|
84
84
|
/**
|
|
85
85
|
* Registers a new SnapTrade user under your ClientID. A user secret will be automatically generated for you and must be properly stored in your database. Most SnapTrade operations require a user ID and user secret to be passed as a parameter.
|
|
86
|
-
* @summary
|
|
86
|
+
* @summary Register user
|
|
87
87
|
* @param {AuthenticationApiRegisterSnapTradeUserRequest} requestParameters Request parameters.
|
|
88
88
|
* @param {*} [options] Override http request option.
|
|
89
89
|
* @throws {RequiredError}
|
|
90
90
|
*/
|
|
91
91
|
registerSnapTradeUser(requestParameters: AuthenticationApiRegisterSnapTradeUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserIDandSecret>>;
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
94
|
-
* @summary
|
|
93
|
+
* 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.
|
|
94
|
+
* @summary Rotate user secret
|
|
95
95
|
* @param {AuthenticationApiResetSnapTradeUserSecretRequest} requestParameters Request parameters.
|
|
96
96
|
* @param {*} [options] Override http request option.
|
|
97
97
|
* @throws {RequiredError}
|
|
@@ -104,16 +104,16 @@ export declare const AuthenticationApiFp: (configuration?: Configuration) => {
|
|
|
104
104
|
*/
|
|
105
105
|
export declare const AuthenticationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
106
106
|
/**
|
|
107
|
-
* Deletes a user
|
|
108
|
-
* @summary Delete
|
|
107
|
+
* Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
|
|
108
|
+
* @summary Delete user
|
|
109
109
|
* @param {AuthenticationApiDeleteSnapTradeUserRequest} requestParameters Request parameters.
|
|
110
110
|
* @param {*} [options] Override http request option.
|
|
111
111
|
* @throws {RequiredError}
|
|
112
112
|
*/
|
|
113
113
|
deleteSnapTradeUser(requestParameters: AuthenticationApiDeleteSnapTradeUserRequest, options?: AxiosRequestConfig): AxiosPromise<DeleteUserResponse>;
|
|
114
114
|
/**
|
|
115
|
-
* Returns a list of
|
|
116
|
-
* @summary List
|
|
115
|
+
* Returns a list of all registered user IDs.
|
|
116
|
+
* @summary List all users
|
|
117
117
|
* @param {*} [options] Override http request option.
|
|
118
118
|
* @throws {RequiredError}
|
|
119
119
|
*/
|
|
@@ -128,15 +128,15 @@ export declare const AuthenticationApiFactory: (configuration?: Configuration, b
|
|
|
128
128
|
loginSnapTradeUser(requestParameters: AuthenticationApiLoginSnapTradeUserRequest, options?: AxiosRequestConfig): AxiosPromise<AuthenticationLoginSnapTradeUser200Response>;
|
|
129
129
|
/**
|
|
130
130
|
* Registers a new SnapTrade user under your ClientID. A user secret will be automatically generated for you and must be properly stored in your database. Most SnapTrade operations require a user ID and user secret to be passed as a parameter.
|
|
131
|
-
* @summary
|
|
131
|
+
* @summary Register user
|
|
132
132
|
* @param {AuthenticationApiRegisterSnapTradeUserRequest} requestParameters Request parameters.
|
|
133
133
|
* @param {*} [options] Override http request option.
|
|
134
134
|
* @throws {RequiredError}
|
|
135
135
|
*/
|
|
136
136
|
registerSnapTradeUser(requestParameters: AuthenticationApiRegisterSnapTradeUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserIDandSecret>;
|
|
137
137
|
/**
|
|
138
|
-
*
|
|
139
|
-
* @summary
|
|
138
|
+
* 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.
|
|
139
|
+
* @summary Rotate user secret
|
|
140
140
|
* @param {AuthenticationApiResetSnapTradeUserSecretRequest} requestParameters Request parameters.
|
|
141
141
|
* @param {*} [options] Override http request option.
|
|
142
142
|
* @throws {RequiredError}
|
|
@@ -195,8 +195,8 @@ export type AuthenticationApiResetSnapTradeUserSecretRequest = {} & UserIDandSec
|
|
|
195
195
|
*/
|
|
196
196
|
export declare class AuthenticationApiGenerated extends BaseAPI {
|
|
197
197
|
/**
|
|
198
|
-
* Deletes a user
|
|
199
|
-
* @summary Delete
|
|
198
|
+
* Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
|
|
199
|
+
* @summary Delete user
|
|
200
200
|
* @param {AuthenticationApiDeleteSnapTradeUserRequest} requestParameters Request parameters.
|
|
201
201
|
* @param {*} [options] Override http request option.
|
|
202
202
|
* @throws {RequiredError}
|
|
@@ -204,8 +204,8 @@ export declare class AuthenticationApiGenerated extends BaseAPI {
|
|
|
204
204
|
*/
|
|
205
205
|
deleteSnapTradeUser(requestParameters: AuthenticationApiDeleteSnapTradeUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteUserResponse, any>>;
|
|
206
206
|
/**
|
|
207
|
-
* Returns a list of
|
|
208
|
-
* @summary List
|
|
207
|
+
* Returns a list of all registered user IDs.
|
|
208
|
+
* @summary List all users
|
|
209
209
|
* @param {*} [options] Override http request option.
|
|
210
210
|
* @throws {RequiredError}
|
|
211
211
|
* @memberof AuthenticationApiGenerated
|
|
@@ -222,7 +222,7 @@ export declare class AuthenticationApiGenerated extends BaseAPI {
|
|
|
222
222
|
loginSnapTradeUser(requestParameters: AuthenticationApiLoginSnapTradeUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthenticationLoginSnapTradeUser200Response, any>>;
|
|
223
223
|
/**
|
|
224
224
|
* Registers a new SnapTrade user under your ClientID. A user secret will be automatically generated for you and must be properly stored in your database. Most SnapTrade operations require a user ID and user secret to be passed as a parameter.
|
|
225
|
-
* @summary
|
|
225
|
+
* @summary Register user
|
|
226
226
|
* @param {AuthenticationApiRegisterSnapTradeUserRequest} requestParameters Request parameters.
|
|
227
227
|
* @param {*} [options] Override http request option.
|
|
228
228
|
* @throws {RequiredError}
|
|
@@ -230,8 +230,8 @@ export declare class AuthenticationApiGenerated extends BaseAPI {
|
|
|
230
230
|
*/
|
|
231
231
|
registerSnapTradeUser(requestParameters: AuthenticationApiRegisterSnapTradeUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserIDandSecret, any>>;
|
|
232
232
|
/**
|
|
233
|
-
*
|
|
234
|
-
* @summary
|
|
233
|
+
* 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.
|
|
234
|
+
* @summary Rotate user secret
|
|
235
235
|
* @param {AuthenticationApiResetSnapTradeUserSecretRequest} requestParameters Request parameters.
|
|
236
236
|
* @param {*} [options] Override http request option.
|
|
237
237
|
* @throws {RequiredError}
|
|
@@ -36,8 +36,8 @@ const requestBeforeHook_1 = require("../requestBeforeHook");
|
|
|
36
36
|
const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
37
37
|
return {
|
|
38
38
|
/**
|
|
39
|
-
* Deletes a user
|
|
40
|
-
* @summary Delete
|
|
39
|
+
* Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
|
|
40
|
+
* @summary Delete user
|
|
41
41
|
* @param {string} userId
|
|
42
42
|
* @param {*} [options] Override http request option.
|
|
43
43
|
* @throws {RequiredError}
|
|
@@ -81,8 +81,8 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
81
81
|
};
|
|
82
82
|
}),
|
|
83
83
|
/**
|
|
84
|
-
* Returns a list of
|
|
85
|
-
* @summary List
|
|
84
|
+
* Returns a list of all registered user IDs.
|
|
85
|
+
* @summary List all users
|
|
86
86
|
* @param {*} [options] Override http request option.
|
|
87
87
|
* @throws {RequiredError}
|
|
88
88
|
*/
|
|
@@ -176,7 +176,7 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
176
176
|
}),
|
|
177
177
|
/**
|
|
178
178
|
* Registers a new SnapTrade user under your ClientID. A user secret will be automatically generated for you and must be properly stored in your database. Most SnapTrade operations require a user ID and user secret to be passed as a parameter.
|
|
179
|
-
* @summary
|
|
179
|
+
* @summary Register user
|
|
180
180
|
* @param {SnapTradeRegisterUserRequestBody} snapTradeRegisterUserRequestBody
|
|
181
181
|
* @param {*} [options] Override http request option.
|
|
182
182
|
* @throws {RequiredError}
|
|
@@ -220,8 +220,8 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
220
220
|
};
|
|
221
221
|
}),
|
|
222
222
|
/**
|
|
223
|
-
*
|
|
224
|
-
* @summary
|
|
223
|
+
* 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.
|
|
224
|
+
* @summary Rotate user secret
|
|
225
225
|
* @param {UserIDandSecret} userIDandSecret
|
|
226
226
|
* @param {*} [options] Override http request option.
|
|
227
227
|
* @throws {RequiredError}
|
|
@@ -275,8 +275,8 @@ const AuthenticationApiFp = function (configuration) {
|
|
|
275
275
|
const localVarAxiosParamCreator = (0, exports.AuthenticationApiAxiosParamCreator)(configuration);
|
|
276
276
|
return {
|
|
277
277
|
/**
|
|
278
|
-
* Deletes a user
|
|
279
|
-
* @summary Delete
|
|
278
|
+
* Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
|
|
279
|
+
* @summary Delete user
|
|
280
280
|
* @param {AuthenticationApiDeleteSnapTradeUserRequest} requestParameters Request parameters.
|
|
281
281
|
* @param {*} [options] Override http request option.
|
|
282
282
|
* @throws {RequiredError}
|
|
@@ -288,8 +288,8 @@ const AuthenticationApiFp = function (configuration) {
|
|
|
288
288
|
});
|
|
289
289
|
},
|
|
290
290
|
/**
|
|
291
|
-
* Returns a list of
|
|
292
|
-
* @summary List
|
|
291
|
+
* Returns a list of all registered user IDs.
|
|
292
|
+
* @summary List all users
|
|
293
293
|
* @param {*} [options] Override http request option.
|
|
294
294
|
* @throws {RequiredError}
|
|
295
295
|
*/
|
|
@@ -322,7 +322,7 @@ const AuthenticationApiFp = function (configuration) {
|
|
|
322
322
|
},
|
|
323
323
|
/**
|
|
324
324
|
* Registers a new SnapTrade user under your ClientID. A user secret will be automatically generated for you and must be properly stored in your database. Most SnapTrade operations require a user ID and user secret to be passed as a parameter.
|
|
325
|
-
* @summary
|
|
325
|
+
* @summary Register user
|
|
326
326
|
* @param {AuthenticationApiRegisterSnapTradeUserRequest} requestParameters Request parameters.
|
|
327
327
|
* @param {*} [options] Override http request option.
|
|
328
328
|
* @throws {RequiredError}
|
|
@@ -337,8 +337,8 @@ const AuthenticationApiFp = function (configuration) {
|
|
|
337
337
|
});
|
|
338
338
|
},
|
|
339
339
|
/**
|
|
340
|
-
*
|
|
341
|
-
* @summary
|
|
340
|
+
* 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.
|
|
341
|
+
* @summary Rotate user secret
|
|
342
342
|
* @param {AuthenticationApiResetSnapTradeUserSecretRequest} requestParameters Request parameters.
|
|
343
343
|
* @param {*} [options] Override http request option.
|
|
344
344
|
* @throws {RequiredError}
|
|
@@ -364,8 +364,8 @@ const AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
|
364
364
|
const localVarFp = (0, exports.AuthenticationApiFp)(configuration);
|
|
365
365
|
return {
|
|
366
366
|
/**
|
|
367
|
-
* Deletes a user
|
|
368
|
-
* @summary Delete
|
|
367
|
+
* Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
|
|
368
|
+
* @summary Delete user
|
|
369
369
|
* @param {AuthenticationApiDeleteSnapTradeUserRequest} requestParameters Request parameters.
|
|
370
370
|
* @param {*} [options] Override http request option.
|
|
371
371
|
* @throws {RequiredError}
|
|
@@ -374,8 +374,8 @@ const AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
|
374
374
|
return localVarFp.deleteSnapTradeUser(requestParameters, options).then((request) => request(axios, basePath));
|
|
375
375
|
},
|
|
376
376
|
/**
|
|
377
|
-
* Returns a list of
|
|
378
|
-
* @summary List
|
|
377
|
+
* Returns a list of all registered user IDs.
|
|
378
|
+
* @summary List all users
|
|
379
379
|
* @param {*} [options] Override http request option.
|
|
380
380
|
* @throws {RequiredError}
|
|
381
381
|
*/
|
|
@@ -394,7 +394,7 @@ const AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
|
394
394
|
},
|
|
395
395
|
/**
|
|
396
396
|
* Registers a new SnapTrade user under your ClientID. A user secret will be automatically generated for you and must be properly stored in your database. Most SnapTrade operations require a user ID and user secret to be passed as a parameter.
|
|
397
|
-
* @summary
|
|
397
|
+
* @summary Register user
|
|
398
398
|
* @param {AuthenticationApiRegisterSnapTradeUserRequest} requestParameters Request parameters.
|
|
399
399
|
* @param {*} [options] Override http request option.
|
|
400
400
|
* @throws {RequiredError}
|
|
@@ -403,8 +403,8 @@ const AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
|
403
403
|
return localVarFp.registerSnapTradeUser(requestParameters, options).then((request) => request(axios, basePath));
|
|
404
404
|
},
|
|
405
405
|
/**
|
|
406
|
-
*
|
|
407
|
-
* @summary
|
|
406
|
+
* 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.
|
|
407
|
+
* @summary Rotate user secret
|
|
408
408
|
* @param {AuthenticationApiResetSnapTradeUserSecretRequest} requestParameters Request parameters.
|
|
409
409
|
* @param {*} [options] Override http request option.
|
|
410
410
|
* @throws {RequiredError}
|
|
@@ -423,8 +423,8 @@ exports.AuthenticationApiFactory = AuthenticationApiFactory;
|
|
|
423
423
|
*/
|
|
424
424
|
class AuthenticationApiGenerated extends base_1.BaseAPI {
|
|
425
425
|
/**
|
|
426
|
-
* Deletes a user
|
|
427
|
-
* @summary Delete
|
|
426
|
+
* Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
|
|
427
|
+
* @summary Delete user
|
|
428
428
|
* @param {AuthenticationApiDeleteSnapTradeUserRequest} requestParameters Request parameters.
|
|
429
429
|
* @param {*} [options] Override http request option.
|
|
430
430
|
* @throws {RequiredError}
|
|
@@ -434,8 +434,8 @@ class AuthenticationApiGenerated extends base_1.BaseAPI {
|
|
|
434
434
|
return (0, exports.AuthenticationApiFp)(this.configuration).deleteSnapTradeUser(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
435
435
|
}
|
|
436
436
|
/**
|
|
437
|
-
* Returns a list of
|
|
438
|
-
* @summary List
|
|
437
|
+
* Returns a list of all registered user IDs.
|
|
438
|
+
* @summary List all users
|
|
439
439
|
* @param {*} [options] Override http request option.
|
|
440
440
|
* @throws {RequiredError}
|
|
441
441
|
* @memberof AuthenticationApiGenerated
|
|
@@ -456,7 +456,7 @@ class AuthenticationApiGenerated extends base_1.BaseAPI {
|
|
|
456
456
|
}
|
|
457
457
|
/**
|
|
458
458
|
* Registers a new SnapTrade user under your ClientID. A user secret will be automatically generated for you and must be properly stored in your database. Most SnapTrade operations require a user ID and user secret to be passed as a parameter.
|
|
459
|
-
* @summary
|
|
459
|
+
* @summary Register user
|
|
460
460
|
* @param {AuthenticationApiRegisterSnapTradeUserRequest} requestParameters Request parameters.
|
|
461
461
|
* @param {*} [options] Override http request option.
|
|
462
462
|
* @throws {RequiredError}
|
|
@@ -466,8 +466,8 @@ class AuthenticationApiGenerated extends base_1.BaseAPI {
|
|
|
466
466
|
return (0, exports.AuthenticationApiFp)(this.configuration).registerSnapTradeUser(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
467
467
|
}
|
|
468
468
|
/**
|
|
469
|
-
*
|
|
470
|
-
* @summary
|
|
469
|
+
* 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.
|
|
470
|
+
* @summary Rotate user secret
|
|
471
471
|
* @param {AuthenticationApiResetSnapTradeUserSecretRequest} requestParameters Request parameters.
|
|
472
472
|
* @param {*} [options] Override http request option.
|
|
473
473
|
* @throws {RequiredError}
|