snaptrade-typescript-sdk 9.0.32 → 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 (88) hide show
  1. package/README.md +3 -1
  2. package/dist/api/account-information-api-generated.d.ts +4 -4
  3. package/dist/api/account-information-api-generated.js +4 -4
  4. package/dist/browser.js +1 -1
  5. package/dist/configuration.js +1 -1
  6. package/dist/models/account-holdings-account.d.ts +1 -1
  7. package/dist/models/account-order-record-status.d.ts +1 -1
  8. package/dist/models/account-order-record.d.ts +5 -4
  9. package/dist/models/exchange.d.ts +9 -9
  10. package/dist/models/figi-instrument.d.ts +3 -3
  11. package/dist/models/index.d.ts +4 -31
  12. package/dist/models/index.js +4 -31
  13. package/dist/models/option-brokerage-symbol.d.ts +5 -3
  14. package/dist/models/options-position-currency.d.ts +1 -1
  15. package/dist/models/options-position.d.ts +2 -1
  16. package/dist/models/options-symbol.d.ts +7 -19
  17. package/dist/models/position-symbol.d.ts +11 -6
  18. package/dist/models/security-type.d.ts +6 -5
  19. package/dist/models/symbol-figi-instrument.d.ts +2 -2
  20. package/dist/models/underlying-symbol-exchange.d.ts +61 -0
  21. package/dist/models/underlying-symbol-type.d.ts +32 -0
  22. package/dist/models/underlying-symbol.d.ts +22 -14
  23. package/dist/models/universal-symbol-currency.d.ts +25 -0
  24. package/dist/models/universal-symbol-exchange.d.ts +55 -0
  25. package/dist/models/universal-symbol.d.ts +14 -12
  26. package/package.json +1 -1
  27. package/dist/models/brokerage-authorization-type.d.ts +0 -16
  28. package/dist/models/brokerage-symbol-option-symbol.d.ts +0 -64
  29. package/dist/models/brokerage-symbol-symbol.d.ts +0 -71
  30. package/dist/models/brokerage-symbol.d.ts +0 -47
  31. package/dist/models/calculated-trade.d.ts +0 -21
  32. package/dist/models/calculated-trade.js +0 -2
  33. package/dist/models/excluded-asset.d.ts +0 -15
  34. package/dist/models/excluded-asset.js +0 -2
  35. package/dist/models/jwt.d.ts +0 -14
  36. package/dist/models/jwt.js +0 -2
  37. package/dist/models/model-asset-class-details.d.ts +0 -22
  38. package/dist/models/model-asset-class-details.js +0 -2
  39. package/dist/models/model-asset-class-target.d.ts +0 -15
  40. package/dist/models/model-asset-class-target.js +0 -2
  41. package/dist/models/model-asset-class.d.ts +0 -20
  42. package/dist/models/model-asset-class.js +0 -2
  43. package/dist/models/model-portfolio-asset-class.d.ts +0 -21
  44. package/dist/models/model-portfolio-asset-class.js +0 -2
  45. package/dist/models/model-portfolio-details.d.ts +0 -29
  46. package/dist/models/model-portfolio-details.js +0 -2
  47. package/dist/models/model-portfolio-security.d.ts +0 -21
  48. package/dist/models/model-portfolio-security.js +0 -2
  49. package/dist/models/model-portfolio.d.ts +0 -28
  50. package/dist/models/model-portfolio.js +0 -2
  51. package/dist/models/portfolio-group-info.d.ts +0 -82
  52. package/dist/models/portfolio-group-info.js +0 -2
  53. package/dist/models/portfolio-group-position.d.ts +0 -27
  54. package/dist/models/portfolio-group-position.js +0 -2
  55. package/dist/models/portfolio-group-settings.d.ts +0 -39
  56. package/dist/models/portfolio-group-settings.js +0 -2
  57. package/dist/models/portfolio-group.d.ts +0 -20
  58. package/dist/models/portfolio-group.js +0 -2
  59. package/dist/models/redirect-tokenand-pin.d.ts +0 -20
  60. package/dist/models/redirect-tokenand-pin.js +0 -2
  61. package/dist/models/snap-trade-apidisclaimer-accept-status.d.ts +0 -20
  62. package/dist/models/snap-trade-apidisclaimer-accept-status.js +0 -2
  63. package/dist/models/strategy-impact-legs-inner.d.ts +0 -50
  64. package/dist/models/strategy-impact-legs-inner.js +0 -2
  65. package/dist/models/strategy-impact.d.ts +0 -75
  66. package/dist/models/strategy-impact.js +0 -2
  67. package/dist/models/strategy-order-place-orders-inner-legs-inner.d.ts +0 -50
  68. package/dist/models/strategy-order-place-orders-inner-legs-inner.js +0 -2
  69. package/dist/models/strategy-order-place-orders-inner.d.ts +0 -267
  70. package/dist/models/strategy-order-place-orders-inner.js +0 -2
  71. package/dist/models/strategy-order-place.d.ts +0 -21
  72. package/dist/models/strategy-order-place.js +0 -2
  73. package/dist/models/target-asset.d.ts +0 -47
  74. package/dist/models/target-asset.js +0 -2
  75. package/dist/models/trade-execution-status.d.ts +0 -70
  76. package/dist/models/trade-execution-status.js +0 -2
  77. package/dist/models/trade-impact.d.ts +0 -40
  78. package/dist/models/trade-impact.js +0 -2
  79. package/dist/models/trade.d.ts +0 -61
  80. package/dist/models/trade.js +0 -2
  81. package/dist/models/user-error-log.d.ts +0 -44
  82. package/dist/models/user-error-log.js +0 -2
  83. package/dist/models/user-settings.d.ts +0 -69
  84. package/dist/models/user-settings.js +0 -2
  85. /package/dist/models/{brokerage-authorization-type.js → underlying-symbol-exchange.js} +0 -0
  86. /package/dist/models/{brokerage-symbol-option-symbol.js → underlying-symbol-type.js} +0 -0
  87. /package/dist/models/{brokerage-symbol-symbol.js → universal-symbol-currency.js} +0 -0
  88. /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.32-blue)](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/9.0.32)
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>
@@ -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.