snaptrade-typescript-sdk 9.0.34 → 9.0.35
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 +25 -20
- package/dist/api/account-information-api-generated.d.ts +40 -40
- package/dist/api/account-information-api-generated.js +36 -36
- package/dist/api/options-api-generated.d.ts +10 -10
- package/dist/api/options-api-generated.js +9 -9
- 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-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/holdings-status.d.ts +4 -4
- package/dist/models/index.d.ts +1 -3
- package/dist/models/index.js +1 -3
- package/dist/models/transactions-status.d.ts +6 -6
- 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-balance.js +0 -2
- package/dist/models/snap-trade-holdings-account-account-id.d.ts +0 -74
- package/dist/models/snap-trade-holdings-account-account-id.js +0 -2
- /package/dist/models/{amount.js → balance-currency.js} +0 -0
|
@@ -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.
|
|
@@ -46,11 +46,11 @@ export declare const OptionsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
46
46
|
*/
|
|
47
47
|
getOptionsStrategyQuote: (userId: string, userSecret: string, accountId: string, optionStrategyId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
48
48
|
/**
|
|
49
|
-
* Returns a list of
|
|
50
|
-
* @summary
|
|
49
|
+
* Returns a list of option positions in the specified account. For stock/ETF/crypto/mutual fund positions, please use the [positions endpoint](/reference/Account%20Information/AccountInformation_getUserAccountPositions). 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**.
|
|
50
|
+
* @summary List account option positions
|
|
51
51
|
* @param {string} userId
|
|
52
52
|
* @param {string} userSecret
|
|
53
|
-
* @param {string} accountId
|
|
53
|
+
* @param {string} accountId
|
|
54
54
|
* @param {*} [options] Override http request option.
|
|
55
55
|
* @throws {RequiredError}
|
|
56
56
|
*/
|
|
@@ -98,8 +98,8 @@ export declare const OptionsApiFp: (configuration?: Configuration) => {
|
|
|
98
98
|
*/
|
|
99
99
|
getOptionsStrategyQuote(requestParameters: OptionsApiGetOptionsStrategyQuoteRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StrategyQuotes>>;
|
|
100
100
|
/**
|
|
101
|
-
* Returns a list of
|
|
102
|
-
* @summary
|
|
101
|
+
* Returns a list of option positions in the specified account. For stock/ETF/crypto/mutual fund positions, please use the [positions endpoint](/reference/Account%20Information/AccountInformation_getUserAccountPositions). 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**.
|
|
102
|
+
* @summary List account option positions
|
|
103
103
|
* @param {OptionsApiListOptionHoldingsRequest} requestParameters Request parameters.
|
|
104
104
|
* @param {*} [options] Override http request option.
|
|
105
105
|
* @throws {RequiredError}
|
|
@@ -144,8 +144,8 @@ export declare const OptionsApiFactory: (configuration?: Configuration, basePath
|
|
|
144
144
|
*/
|
|
145
145
|
getOptionsStrategyQuote(requestParameters: OptionsApiGetOptionsStrategyQuoteRequest, options?: AxiosRequestConfig): AxiosPromise<StrategyQuotes>;
|
|
146
146
|
/**
|
|
147
|
-
* Returns a list of
|
|
148
|
-
* @summary
|
|
147
|
+
* Returns a list of option positions in the specified account. For stock/ETF/crypto/mutual fund positions, please use the [positions endpoint](/reference/Account%20Information/AccountInformation_getUserAccountPositions). 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**.
|
|
148
|
+
* @summary List account option positions
|
|
149
149
|
* @param {OptionsApiListOptionHoldingsRequest} requestParameters Request parameters.
|
|
150
150
|
* @param {*} [options] Override http request option.
|
|
151
151
|
* @throws {RequiredError}
|
|
@@ -266,7 +266,7 @@ export type OptionsApiListOptionHoldingsRequest = {
|
|
|
266
266
|
*/
|
|
267
267
|
readonly userSecret: string;
|
|
268
268
|
/**
|
|
269
|
-
*
|
|
269
|
+
*
|
|
270
270
|
* @type {string}
|
|
271
271
|
* @memberof OptionsApiListOptionHoldings
|
|
272
272
|
*/
|
|
@@ -338,8 +338,8 @@ export declare class OptionsApiGenerated extends BaseAPI {
|
|
|
338
338
|
*/
|
|
339
339
|
getOptionsStrategyQuote(requestParameters: OptionsApiGetOptionsStrategyQuoteRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<StrategyQuotes, any>>;
|
|
340
340
|
/**
|
|
341
|
-
* Returns a list of
|
|
342
|
-
* @summary
|
|
341
|
+
* Returns a list of option positions in the specified account. For stock/ETF/crypto/mutual fund positions, please use the [positions endpoint](/reference/Account%20Information/AccountInformation_getUserAccountPositions). 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**.
|
|
342
|
+
* @summary List account option positions
|
|
343
343
|
* @param {OptionsApiListOptionHoldingsRequest} requestParameters Request parameters.
|
|
344
344
|
* @param {*} [options] Override http request option.
|
|
345
345
|
* @throws {RequiredError}
|
|
@@ -217,11 +217,11 @@ const OptionsApiAxiosParamCreator = function (configuration) {
|
|
|
217
217
|
};
|
|
218
218
|
}),
|
|
219
219
|
/**
|
|
220
|
-
* Returns a list of
|
|
221
|
-
* @summary
|
|
220
|
+
* Returns a list of option positions in the specified account. For stock/ETF/crypto/mutual fund positions, please use the [positions endpoint](/reference/Account%20Information/AccountInformation_getUserAccountPositions). 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**.
|
|
221
|
+
* @summary List account option positions
|
|
222
222
|
* @param {string} userId
|
|
223
223
|
* @param {string} userSecret
|
|
224
|
-
* @param {string} accountId
|
|
224
|
+
* @param {string} accountId
|
|
225
225
|
* @param {*} [options] Override http request option.
|
|
226
226
|
* @throws {RequiredError}
|
|
227
227
|
*/
|
|
@@ -391,8 +391,8 @@ const OptionsApiFp = function (configuration) {
|
|
|
391
391
|
});
|
|
392
392
|
},
|
|
393
393
|
/**
|
|
394
|
-
* Returns a list of
|
|
395
|
-
* @summary
|
|
394
|
+
* Returns a list of option positions in the specified account. For stock/ETF/crypto/mutual fund positions, please use the [positions endpoint](/reference/Account%20Information/AccountInformation_getUserAccountPositions). 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**.
|
|
395
|
+
* @summary List account option positions
|
|
396
396
|
* @param {OptionsApiListOptionHoldingsRequest} requestParameters Request parameters.
|
|
397
397
|
* @param {*} [options] Override http request option.
|
|
398
398
|
* @throws {RequiredError}
|
|
@@ -462,8 +462,8 @@ const OptionsApiFactory = function (configuration, basePath, axios) {
|
|
|
462
462
|
return localVarFp.getOptionsStrategyQuote(requestParameters, options).then((request) => request(axios, basePath));
|
|
463
463
|
},
|
|
464
464
|
/**
|
|
465
|
-
* Returns a list of
|
|
466
|
-
* @summary
|
|
465
|
+
* Returns a list of option positions in the specified account. For stock/ETF/crypto/mutual fund positions, please use the [positions endpoint](/reference/Account%20Information/AccountInformation_getUserAccountPositions). 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**.
|
|
466
|
+
* @summary List account option positions
|
|
467
467
|
* @param {OptionsApiListOptionHoldingsRequest} requestParameters Request parameters.
|
|
468
468
|
* @param {*} [options] Override http request option.
|
|
469
469
|
* @throws {RequiredError}
|
|
@@ -525,8 +525,8 @@ class OptionsApiGenerated extends base_1.BaseAPI {
|
|
|
525
525
|
return (0, exports.OptionsApiFp)(this.configuration).getOptionsStrategyQuote(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
526
526
|
}
|
|
527
527
|
/**
|
|
528
|
-
* Returns a list of
|
|
529
|
-
* @summary
|
|
528
|
+
* Returns a list of option positions in the specified account. For stock/ETF/crypto/mutual fund positions, please use the [positions endpoint](/reference/Account%20Information/AccountInformation_getUserAccountPositions). 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**.
|
|
529
|
+
* @summary List account option positions
|
|
530
530
|
* @param {OptionsApiListOptionHoldingsRequest} requestParameters Request parameters.
|
|
531
531
|
* @param {*} [options] Override http request option.
|
|
532
532
|
* @throws {RequiredError}
|