snaptrade-typescript-sdk 9.0.32 → 9.0.34
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 +3 -1
- package/dist/api/account-information-api-generated.d.ts +4 -4
- package/dist/api/account-information-api-generated.js +4 -4
- package/dist/browser.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/models/account-holdings-account.d.ts +2 -2
- package/dist/models/account-order-record-option-symbol.d.ts +52 -0
- package/dist/models/account-order-record-status.d.ts +1 -1
- package/dist/models/account-order-record-universal-symbol.d.ts +73 -0
- package/dist/models/account-order-record.d.ts +26 -25
- package/dist/models/account.d.ts +4 -4
- package/dist/models/exchange.d.ts +9 -9
- package/dist/models/figi-instrument.d.ts +3 -3
- package/dist/models/index.d.ts +6 -32
- package/dist/models/index.js +6 -32
- package/dist/models/monthly-dividends.d.ts +1 -1
- package/dist/models/net-contributions.d.ts +1 -1
- package/dist/models/option-brokerage-symbol.d.ts +5 -3
- package/dist/models/options-position-currency.d.ts +1 -1
- package/dist/models/options-position.d.ts +2 -1
- package/dist/models/options-symbol.d.ts +7 -19
- package/dist/models/order-type-strict.d.ts +1 -1
- package/dist/models/past-value.d.ts +1 -1
- package/dist/models/position-symbol.d.ts +11 -6
- package/dist/models/security-type.d.ts +6 -5
- package/dist/models/snap-trade-holdings-account-account-id.d.ts +2 -3
- package/dist/models/strategy-order-record.d.ts +1 -1
- package/dist/models/sub-period-return-rate.d.ts +2 -2
- package/dist/models/symbol-figi-instrument.d.ts +2 -2
- package/dist/models/underlying-symbol-exchange.d.ts +61 -0
- package/dist/models/underlying-symbol-type.d.ts +32 -0
- package/dist/models/underlying-symbol.d.ts +22 -14
- package/dist/models/universal-symbol-currency.d.ts +25 -0
- package/dist/models/universal-symbol-exchange.d.ts +55 -0
- package/dist/models/universal-symbol.d.ts +14 -12
- package/package.json +1 -1
- package/dist/models/brokerage-authorization-type.d.ts +0 -16
- package/dist/models/brokerage-symbol-option-symbol.d.ts +0 -64
- package/dist/models/brokerage-symbol-symbol.d.ts +0 -71
- package/dist/models/brokerage-symbol.d.ts +0 -47
- package/dist/models/calculated-trade.d.ts +0 -21
- package/dist/models/cash-restriction.d.ts +0 -40
- package/dist/models/excluded-asset.d.ts +0 -15
- package/dist/models/excluded-asset.js +0 -2
- package/dist/models/jwt.d.ts +0 -14
- package/dist/models/jwt.js +0 -2
- package/dist/models/model-asset-class-details.d.ts +0 -22
- package/dist/models/model-asset-class-details.js +0 -2
- package/dist/models/model-asset-class-target.d.ts +0 -15
- package/dist/models/model-asset-class-target.js +0 -2
- package/dist/models/model-asset-class.d.ts +0 -20
- package/dist/models/model-asset-class.js +0 -2
- package/dist/models/model-portfolio-asset-class.d.ts +0 -21
- package/dist/models/model-portfolio-asset-class.js +0 -2
- package/dist/models/model-portfolio-details.d.ts +0 -29
- package/dist/models/model-portfolio-details.js +0 -2
- package/dist/models/model-portfolio-security.d.ts +0 -21
- package/dist/models/model-portfolio-security.js +0 -2
- package/dist/models/model-portfolio.d.ts +0 -28
- package/dist/models/model-portfolio.js +0 -2
- package/dist/models/portfolio-group-info.d.ts +0 -82
- package/dist/models/portfolio-group-info.js +0 -2
- package/dist/models/portfolio-group-position.d.ts +0 -27
- package/dist/models/portfolio-group-position.js +0 -2
- package/dist/models/portfolio-group-settings.d.ts +0 -39
- package/dist/models/portfolio-group-settings.js +0 -2
- package/dist/models/portfolio-group.d.ts +0 -20
- package/dist/models/portfolio-group.js +0 -2
- package/dist/models/redirect-tokenand-pin.d.ts +0 -20
- package/dist/models/redirect-tokenand-pin.js +0 -2
- package/dist/models/snap-trade-apidisclaimer-accept-status.d.ts +0 -20
- package/dist/models/snap-trade-apidisclaimer-accept-status.js +0 -2
- package/dist/models/strategy-impact-legs-inner.d.ts +0 -50
- package/dist/models/strategy-impact-legs-inner.js +0 -2
- package/dist/models/strategy-impact.d.ts +0 -75
- package/dist/models/strategy-impact.js +0 -2
- package/dist/models/strategy-order-place-orders-inner-legs-inner.d.ts +0 -50
- package/dist/models/strategy-order-place-orders-inner-legs-inner.js +0 -2
- package/dist/models/strategy-order-place-orders-inner.d.ts +0 -267
- package/dist/models/strategy-order-place-orders-inner.js +0 -2
- package/dist/models/strategy-order-place.d.ts +0 -21
- package/dist/models/strategy-order-place.js +0 -2
- package/dist/models/target-asset.d.ts +0 -47
- package/dist/models/target-asset.js +0 -2
- package/dist/models/trade-execution-status.d.ts +0 -70
- package/dist/models/trade-execution-status.js +0 -2
- package/dist/models/trade-impact.d.ts +0 -40
- package/dist/models/trade-impact.js +0 -2
- package/dist/models/trade.d.ts +0 -61
- package/dist/models/trade.js +0 -2
- package/dist/models/user-error-log.d.ts +0 -44
- package/dist/models/user-error-log.js +0 -2
- package/dist/models/user-settings.d.ts +0 -69
- package/dist/models/user-settings.js +0 -2
- /package/dist/models/{brokerage-authorization-type.js → account-order-record-option-symbol.js} +0 -0
- /package/dist/models/{brokerage-symbol-option-symbol.js → account-order-record-universal-symbol.js} +0 -0
- /package/dist/models/{brokerage-symbol-symbol.js → underlying-symbol-exchange.js} +0 -0
- /package/dist/models/{brokerage-symbol.js → underlying-symbol-type.js} +0 -0
- /package/dist/models/{calculated-trade.js → universal-symbol-currency.js} +0 -0
- /package/dist/models/{cash-restriction.js → universal-symbol-exchange.js} +0 -0
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Connect brokerage accounts to your app for live positions and trading
|
|
8
8
|
|
|
9
|
-
[](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/9.0.34)
|
|
10
10
|
[](https://snaptrade.com/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
@@ -388,6 +388,8 @@ The ID of the account to get positions.
|
|
|
388
388
|
|
|
389
389
|
Lists balances, positions, option 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.__
|
|
390
390
|
|
|
391
|
+
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**.
|
|
392
|
+
|
|
391
393
|
|
|
392
394
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
393
395
|
|
|
@@ -66,7 +66,7 @@ export declare const AccountInformationApiAxiosParamCreator: (configuration?: Co
|
|
|
66
66
|
*/
|
|
67
67
|
getUserAccountPositions: (userId: string, userSecret: string, accountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
68
68
|
/**
|
|
69
|
-
* Lists balances, positions, option 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.__
|
|
69
|
+
* Lists balances, positions, option 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**.
|
|
70
70
|
* @summary List account holdings
|
|
71
71
|
* @param {string} accountId
|
|
72
72
|
* @param {string} userId
|
|
@@ -142,7 +142,7 @@ export declare const AccountInformationApiFp: (configuration?: Configuration) =>
|
|
|
142
142
|
*/
|
|
143
143
|
getUserAccountPositions(requestParameters: AccountInformationApiGetUserAccountPositionsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Position>>>;
|
|
144
144
|
/**
|
|
145
|
-
* Lists balances, positions, option 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.__
|
|
145
|
+
* Lists balances, positions, option 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**.
|
|
146
146
|
* @summary List account holdings
|
|
147
147
|
* @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
|
|
148
148
|
* @param {*} [options] Override http request option.
|
|
@@ -213,7 +213,7 @@ export declare const AccountInformationApiFactory: (configuration?: Configuratio
|
|
|
213
213
|
*/
|
|
214
214
|
getUserAccountPositions(requestParameters: AccountInformationApiGetUserAccountPositionsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<Position>>;
|
|
215
215
|
/**
|
|
216
|
-
* Lists balances, positions, option 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.__
|
|
216
|
+
* Lists balances, positions, option 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**.
|
|
217
217
|
* @summary List account holdings
|
|
218
218
|
* @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
|
|
219
219
|
* @param {*} [options] Override http request option.
|
|
@@ -497,7 +497,7 @@ export declare class AccountInformationApiGenerated extends BaseAPI {
|
|
|
497
497
|
*/
|
|
498
498
|
getUserAccountPositions(requestParameters: AccountInformationApiGetUserAccountPositionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Position[], any>>;
|
|
499
499
|
/**
|
|
500
|
-
* Lists balances, positions, option 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.__
|
|
500
|
+
* Lists balances, positions, option 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**.
|
|
501
501
|
* @summary List account holdings
|
|
502
502
|
* @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
|
|
503
503
|
* @param {*} [options] Override http request option.
|
|
@@ -320,7 +320,7 @@ const AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
320
320
|
};
|
|
321
321
|
}),
|
|
322
322
|
/**
|
|
323
|
-
* Lists balances, positions, option 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.__
|
|
323
|
+
* Lists balances, positions, option 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
|
|
@@ -557,7 +557,7 @@ const AccountInformationApiFp = function (configuration) {
|
|
|
557
557
|
});
|
|
558
558
|
},
|
|
559
559
|
/**
|
|
560
|
-
* Lists balances, positions, option 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.__
|
|
560
|
+
* Lists balances, positions, option 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.
|
|
@@ -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
|
-
* Lists balances, positions, option 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.__
|
|
660
|
+
* Lists balances, positions, option 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.
|
|
@@ -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
|
-
* Lists balances, positions, option 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.__
|
|
756
|
+
* Lists balances, positions, option 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.
|