snaptrade-typescript-sdk 9.0.31 → 9.0.33

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.
Files changed (98) hide show
  1. package/README.md +4 -6
  2. package/dist/api/account-information-api-generated.d.ts +10 -10
  3. package/dist/api/account-information-api-generated.js +9 -9
  4. package/dist/browser.js +1 -1
  5. package/dist/configuration.js +1 -1
  6. package/dist/models/account-balance-total.d.ts +2 -2
  7. package/dist/models/account-balance.d.ts +1 -1
  8. package/dist/models/account-holdings-account.d.ts +5 -5
  9. package/dist/models/account-order-record-status.d.ts +1 -1
  10. package/dist/models/account-order-record.d.ts +5 -4
  11. package/dist/models/amount.d.ts +2 -2
  12. package/dist/models/balance.d.ts +3 -3
  13. package/dist/models/currency.d.ts +4 -4
  14. package/dist/models/exchange.d.ts +9 -9
  15. package/dist/models/figi-instrument.d.ts +3 -3
  16. package/dist/models/index.d.ts +4 -32
  17. package/dist/models/index.js +4 -32
  18. package/dist/models/option-brokerage-symbol.d.ts +5 -3
  19. package/dist/models/options-position-currency.d.ts +4 -4
  20. package/dist/models/options-position.d.ts +5 -4
  21. package/dist/models/options-symbol.d.ts +7 -19
  22. package/dist/models/position-symbol.d.ts +11 -6
  23. package/dist/models/position.d.ts +7 -6
  24. package/dist/models/security-type.d.ts +6 -5
  25. package/dist/models/snap-trade-holdings-account-account-id.d.ts +13 -10
  26. package/dist/models/snap-trade-holdings-total-value.d.ts +3 -3
  27. package/dist/models/symbol-figi-instrument.d.ts +2 -2
  28. package/dist/models/underlying-symbol-exchange.d.ts +61 -0
  29. package/dist/models/underlying-symbol-type.d.ts +32 -0
  30. package/dist/models/underlying-symbol.d.ts +22 -14
  31. package/dist/models/universal-symbol-currency.d.ts +25 -0
  32. package/dist/models/universal-symbol-exchange.d.ts +55 -0
  33. package/dist/models/universal-symbol.d.ts +14 -12
  34. package/package.json +1 -1
  35. package/dist/models/brokerage-authorization-type.d.ts +0 -16
  36. package/dist/models/brokerage-symbol-option-symbol.d.ts +0 -64
  37. package/dist/models/brokerage-symbol-symbol.d.ts +0 -71
  38. package/dist/models/brokerage-symbol.d.ts +0 -47
  39. package/dist/models/calculated-trade.d.ts +0 -21
  40. package/dist/models/calculated-trade.js +0 -2
  41. package/dist/models/excluded-asset.d.ts +0 -15
  42. package/dist/models/excluded-asset.js +0 -2
  43. package/dist/models/jwt.d.ts +0 -14
  44. package/dist/models/jwt.js +0 -2
  45. package/dist/models/model-asset-class-details.d.ts +0 -22
  46. package/dist/models/model-asset-class-details.js +0 -2
  47. package/dist/models/model-asset-class-target.d.ts +0 -15
  48. package/dist/models/model-asset-class-target.js +0 -2
  49. package/dist/models/model-asset-class.d.ts +0 -20
  50. package/dist/models/model-asset-class.js +0 -2
  51. package/dist/models/model-portfolio-asset-class.d.ts +0 -21
  52. package/dist/models/model-portfolio-asset-class.js +0 -2
  53. package/dist/models/model-portfolio-details.d.ts +0 -29
  54. package/dist/models/model-portfolio-details.js +0 -2
  55. package/dist/models/model-portfolio-security.d.ts +0 -21
  56. package/dist/models/model-portfolio-security.js +0 -2
  57. package/dist/models/model-portfolio.d.ts +0 -28
  58. package/dist/models/model-portfolio.js +0 -2
  59. package/dist/models/options-holdings.d.ts +0 -46
  60. package/dist/models/options-holdings.js +0 -2
  61. package/dist/models/portfolio-group-info.d.ts +0 -82
  62. package/dist/models/portfolio-group-info.js +0 -2
  63. package/dist/models/portfolio-group-position.d.ts +0 -27
  64. package/dist/models/portfolio-group-position.js +0 -2
  65. package/dist/models/portfolio-group-settings.d.ts +0 -39
  66. package/dist/models/portfolio-group-settings.js +0 -2
  67. package/dist/models/portfolio-group.d.ts +0 -20
  68. package/dist/models/portfolio-group.js +0 -2
  69. package/dist/models/redirect-tokenand-pin.d.ts +0 -20
  70. package/dist/models/redirect-tokenand-pin.js +0 -2
  71. package/dist/models/snap-trade-apidisclaimer-accept-status.d.ts +0 -20
  72. package/dist/models/snap-trade-apidisclaimer-accept-status.js +0 -2
  73. package/dist/models/strategy-impact-legs-inner.d.ts +0 -50
  74. package/dist/models/strategy-impact-legs-inner.js +0 -2
  75. package/dist/models/strategy-impact.d.ts +0 -75
  76. package/dist/models/strategy-impact.js +0 -2
  77. package/dist/models/strategy-order-place-orders-inner-legs-inner.d.ts +0 -50
  78. package/dist/models/strategy-order-place-orders-inner-legs-inner.js +0 -2
  79. package/dist/models/strategy-order-place-orders-inner.d.ts +0 -267
  80. package/dist/models/strategy-order-place-orders-inner.js +0 -2
  81. package/dist/models/strategy-order-place.d.ts +0 -21
  82. package/dist/models/strategy-order-place.js +0 -2
  83. package/dist/models/target-asset.d.ts +0 -47
  84. package/dist/models/target-asset.js +0 -2
  85. package/dist/models/trade-execution-status.d.ts +0 -70
  86. package/dist/models/trade-execution-status.js +0 -2
  87. package/dist/models/trade-impact.d.ts +0 -40
  88. package/dist/models/trade-impact.js +0 -2
  89. package/dist/models/trade.d.ts +0 -61
  90. package/dist/models/trade.js +0 -2
  91. package/dist/models/user-error-log.d.ts +0 -44
  92. package/dist/models/user-error-log.js +0 -2
  93. package/dist/models/user-settings.d.ts +0 -69
  94. package/dist/models/user-settings.js +0 -2
  95. /package/dist/models/{brokerage-authorization-type.js → underlying-symbol-exchange.js} +0 -0
  96. /package/dist/models/{brokerage-symbol-option-symbol.js → underlying-symbol-type.js} +0 -0
  97. /package/dist/models/{brokerage-symbol-symbol.js → universal-symbol-currency.js} +0 -0
  98. /package/dist/models/{brokerage-symbol.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
- [![npm](https://img.shields.io/badge/npm-v9.0.31-blue)](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/9.0.31)
9
+ [![npm](https://img.shields.io/badge/npm-v9.0.33-blue)](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/9.0.33)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -386,9 +386,9 @@ The ID of the account to get positions.
386
386
 
387
387
  ### `snaptrade.accountInformation.getUserHoldings`<a id="snaptradeaccountinformationgetuserholdings"></a>
388
388
 
389
- Lists balances, positions and orders for the specified account as well as
390
- option_positions and account metadata. The data returned is similar to the
391
- data returned over the more fine-grained **positions**, **orders** and **balances** endpoints.
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
+
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
392
 
393
393
 
394
394
  #### 🛠️ Usage<a id="🛠️-usage"></a>
@@ -406,8 +406,6 @@ const getUserHoldingsResponse =
406
406
 
407
407
  ##### accountId: `string`<a id="accountid-string"></a>
408
408
 
409
- The ID of the account to fetch holdings for.
410
-
411
409
  ##### userId: `string`<a id="userid-string"></a>
412
410
 
413
411
  ##### userSecret: `string`<a id="usersecret-string"></a>
@@ -66,9 +66,9 @@ 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 and orders for the specified account as well as option_positions and account metadata. The data returned is similar to the data returned over the more fine-grained **positions**, **orders** and **balances** endpoints.
70
- * @summary List balances, positions and orders for the specified account
71
- * @param {string} accountId The ID of the account to fetch holdings for.
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
+ * @summary List account holdings
71
+ * @param {string} accountId
72
72
  * @param {string} userId
73
73
  * @param {string} userSecret
74
74
  * @param {*} [options] Override http request option.
@@ -142,8 +142,8 @@ 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 and orders for the specified account as well as option_positions and account metadata. The data returned is similar to the data returned over the more fine-grained **positions**, **orders** and **balances** endpoints.
146
- * @summary List balances, positions and orders for the specified account
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
+ * @summary List account holdings
147
147
  * @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
148
148
  * @param {*} [options] Override http request option.
149
149
  * @throws {RequiredError}
@@ -213,8 +213,8 @@ export declare const AccountInformationApiFactory: (configuration?: Configuratio
213
213
  */
214
214
  getUserAccountPositions(requestParameters: AccountInformationApiGetUserAccountPositionsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<Position>>;
215
215
  /**
216
- * Lists balances, positions and orders for the specified account as well as option_positions and account metadata. The data returned is similar to the data returned over the more fine-grained **positions**, **orders** and **balances** endpoints.
217
- * @summary List balances, positions and orders for the specified account
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
+ * @summary List account holdings
218
218
  * @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
219
219
  * @param {*} [options] Override http request option.
220
220
  * @throws {RequiredError}
@@ -381,7 +381,7 @@ export type AccountInformationApiGetUserAccountPositionsRequest = {
381
381
  */
382
382
  export type AccountInformationApiGetUserHoldingsRequest = {
383
383
  /**
384
- * The ID of the account to fetch holdings for.
384
+ *
385
385
  * @type {string}
386
386
  * @memberof AccountInformationApiGetUserHoldings
387
387
  */
@@ -497,8 +497,8 @@ 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 and orders for the specified account as well as option_positions and account metadata. The data returned is similar to the data returned over the more fine-grained **positions**, **orders** and **balances** endpoints.
501
- * @summary List balances, positions and orders for the specified account
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
+ * @summary List account holdings
502
502
  * @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
503
503
  * @param {*} [options] Override http request option.
504
504
  * @throws {RequiredError}
@@ -320,9 +320,9 @@ const AccountInformationApiAxiosParamCreator = function (configuration) {
320
320
  };
321
321
  }),
322
322
  /**
323
- * Lists balances, positions and orders for the specified account as well as option_positions and account metadata. The data returned is similar to the data returned over the more fine-grained **positions**, **orders** and **balances** endpoints.
324
- * @summary List balances, positions and orders for the specified account
325
- * @param {string} accountId The ID of the account to fetch holdings for.
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
+ * @summary List account holdings
325
+ * @param {string} accountId
326
326
  * @param {string} userId
327
327
  * @param {string} userSecret
328
328
  * @param {*} [options] Override http request option.
@@ -557,8 +557,8 @@ const AccountInformationApiFp = function (configuration) {
557
557
  });
558
558
  },
559
559
  /**
560
- * Lists balances, positions and orders for the specified account as well as option_positions and account metadata. The data returned is similar to the data returned over the more fine-grained **positions**, **orders** and **balances** endpoints.
561
- * @summary List balances, positions and orders for the specified account
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
+ * @summary List account holdings
562
562
  * @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
563
563
  * @param {*} [options] Override http request option.
564
564
  * @throws {RequiredError}
@@ -657,8 +657,8 @@ 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 and orders for the specified account as well as option_positions and account metadata. The data returned is similar to the data returned over the more fine-grained **positions**, **orders** and **balances** endpoints.
661
- * @summary List balances, positions and orders for the specified account
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
+ * @summary List account holdings
662
662
  * @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
663
663
  * @param {*} [options] Override http request option.
664
664
  * @throws {RequiredError}
@@ -753,8 +753,8 @@ 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 and orders for the specified account as well as option_positions and account metadata. The data returned is similar to the data returned over the more fine-grained **positions**, **orders** and **balances** endpoints.
757
- * @summary List balances, positions and orders for the specified account
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
+ * @summary List account holdings
758
758
  * @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
759
759
  * @param {*} [options] Override http request option.
760
760
  * @throws {RequiredError}