snaptrade-typescript-sdk 9.0.188 → 9.0.189

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 (37) hide show
  1. package/README.md +55 -1
  2. package/dist/api/experimental-endpoints-api-generated.d.ts +75 -0
  3. package/dist/api/experimental-endpoints-api-generated.js +97 -0
  4. package/dist/browser.js +1 -1
  5. package/dist/configuration.js +1 -1
  6. package/dist/models/account-order-record-quote-universal-symbol.d.ts +3 -3
  7. package/dist/models/account-order-record-universal-symbol.d.ts +3 -3
  8. package/dist/models/account-position.d.ts +52 -0
  9. package/dist/models/account-universal-activity-symbol.d.ts +3 -3
  10. package/dist/models/all-account-positions-response.d.ts +33 -0
  11. package/dist/models/all-account-positions-response.js +2 -0
  12. package/dist/models/crypto-instrument.d.ts +59 -0
  13. package/dist/models/crypto-instrument.js +2 -0
  14. package/dist/models/etf-instrument.d.ts +59 -0
  15. package/dist/models/etf-instrument.js +2 -0
  16. package/dist/models/future-instrument.d.ts +64 -0
  17. package/dist/models/future-instrument.js +2 -0
  18. package/dist/models/index.d.ts +11 -1
  19. package/dist/models/index.js +11 -1
  20. package/dist/models/instrument.d.ts +24 -0
  21. package/dist/models/instrument.js +2 -0
  22. package/dist/models/option-instrument.d.ts +60 -0
  23. package/dist/models/option-instrument.js +2 -0
  24. package/dist/models/other-instrument.d.ts +59 -0
  25. package/dist/models/other-instrument.js +2 -0
  26. package/dist/models/{symbol-figi-instrument.d.ts → stock-instrument-figi-instrument.d.ts} +4 -4
  27. package/dist/models/stock-instrument-figi-instrument.js +2 -0
  28. package/dist/models/stock-instrument.d.ts +59 -0
  29. package/dist/models/stock-instrument.js +2 -0
  30. package/dist/models/symbol.d.ts +3 -3
  31. package/dist/models/underlying-option-instrument.d.ts +18 -0
  32. package/dist/models/underlying-option-instrument.js +2 -0
  33. package/dist/models/underlying-symbol.d.ts +3 -3
  34. package/dist/models/universal-symbol.d.ts +3 -3
  35. package/dist/operationParameterMap.js +19 -0
  36. package/package.json +1 -1
  37. /package/dist/models/{symbol-figi-instrument.js → account-position.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.188-blue)](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/9.0.188)
9
+ [![npm](https://img.shields.io/badge/npm-v9.0.189-blue)](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/9.0.189)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -45,6 +45,7 @@ Connect brokerage accounts to your app for live positions and trading
45
45
  * [`snaptrade.connections.returnRates`](#snaptradeconnectionsreturnrates)
46
46
  * [`snaptrade.connections.sessionEvents`](#snaptradeconnectionssessionevents)
47
47
  * [`snaptrade.experimentalEndpoints.getAccountBalanceHistory`](#snaptradeexperimentalendpointsgetaccountbalancehistory)
48
+ * [`snaptrade.experimentalEndpoints.getAllAccountPositions`](#snaptradeexperimentalendpointsgetallaccountpositions)
48
49
  * [`snaptrade.experimentalEndpoints.getUserAccountOrderDetailV2`](#snaptradeexperimentalendpointsgetuseraccountorderdetailv2)
49
50
  * [`snaptrade.experimentalEndpoints.getUserAccountOrdersV2`](#snaptradeexperimentalendpointsgetuseraccountordersv2)
50
51
  * [`snaptrade.experimentalEndpoints.getUserAccountRecentOrdersV2`](#snaptradeexperimentalendpointsgetuseraccountrecentordersv2)
@@ -1308,6 +1309,59 @@ const getAccountBalanceHistoryResponse =
1308
1309
  ---
1309
1310
 
1310
1311
 
1312
+ ### `snaptrade.experimentalEndpoints.getAllAccountPositions`<a id="snaptradeexperimentalendpointsgetallaccountpositions"></a>
1313
+
1314
+ Returns a paginated list of all positions in the specified account.
1315
+
1316
+ The `results` list can contain multiple instrument types in the same response page, including stocks, ETFs, crypto, futures, and option positions. Use the `instrument.kind` discriminator to determine the schema for each position's `instrument`.
1317
+
1318
+ Stock positions may also include `cash_equivalent`, and may include `tax_lots` when tax lot data is enabled for the account.
1319
+
1320
+ If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
1321
+
1322
+
1323
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1324
+
1325
+ ```typescript
1326
+ const getAllAccountPositionsResponse =
1327
+ await snaptrade.experimentalEndpoints.getAllAccountPositions({
1328
+ userId: "snaptrade-user-123",
1329
+ userSecret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
1330
+ accountId: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
1331
+ page: 1,
1332
+ pageSize: 100,
1333
+ });
1334
+ ```
1335
+
1336
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1337
+
1338
+ ##### userId: `string`<a id="userid-string"></a>
1339
+
1340
+ ##### userSecret: `string`<a id="usersecret-string"></a>
1341
+
1342
+ ##### accountId: `string`<a id="accountid-string"></a>
1343
+
1344
+ ##### page: `number`<a id="page-number"></a>
1345
+
1346
+ The page number to return. Defaults to 1.
1347
+
1348
+ ##### pageSize: `number`<a id="pagesize-number"></a>
1349
+
1350
+ The number of positions to return per page. Defaults to 100 with a maximum of 1000.
1351
+
1352
+ #### 🔄 Return<a id="🔄-return"></a>
1353
+
1354
+ [AllAccountPositionsResponse](./models/all-account-positions-response.ts)
1355
+
1356
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1357
+
1358
+ `/accounts/{accountId}/positions/all` `GET`
1359
+
1360
+ [🔙 **Back to Table of Contents**](#table-of-contents)
1361
+
1362
+ ---
1363
+
1364
+
1311
1365
  ### `snaptrade.experimentalEndpoints.getUserAccountOrderDetailV2`<a id="snaptradeexperimentalendpointsgetuseraccountorderdetailv2"></a>
1312
1366
 
1313
1367
  Returns the detail of a single order using the brokerage order ID provided as a path parameter.
@@ -4,6 +4,7 @@ import { RequestArgs, BaseAPI } from '../base';
4
4
  import { AccountOrderRecordV2 } from '../models';
5
5
  import { AccountOrdersV2Response } from '../models';
6
6
  import { AccountValueHistoryResponse } from '../models';
7
+ import { AllAccountPositionsResponse } from '../models';
7
8
  import { BrokerageAuthorizationTransactionsSyncConfirmation } from '../models';
8
9
  /**
9
10
  * ExperimentalEndpointsApi - axios parameter creator
@@ -20,6 +21,18 @@ export declare const ExperimentalEndpointsApiAxiosParamCreator: (configuration?:
20
21
  * @throws {RequiredError}
21
22
  */
22
23
  getAccountBalanceHistory: (userId: string, userSecret: string, accountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
24
+ /**
25
+ * Returns a paginated list of all positions in the specified account. The `results` list can contain multiple instrument types in the same response page, including stocks, ETFs, crypto, futures, and option positions. Use the `instrument.kind` discriminator to determine the schema for each position\'s `instrument`. Stock positions may also include `cash_equivalent`, and may include `tax_lots` when tax lot data is enabled for the account. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
26
+ * @summary List all account positions
27
+ * @param {string} userId
28
+ * @param {string} userSecret
29
+ * @param {string} accountId
30
+ * @param {number} [page] The page number to return. Defaults to 1.
31
+ * @param {number} [pageSize] The number of positions to return per page. Defaults to 100 with a maximum of 1000.
32
+ * @param {*} [options] Override http request option.
33
+ * @throws {RequiredError}
34
+ */
35
+ getAllAccountPositions: (userId: string, userSecret: string, accountId: string, page?: number, pageSize?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
23
36
  /**
24
37
  * Returns the detail of a single order using the brokerage order ID provided as a path parameter. The V2 order response format includes all legs of the order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
25
38
  * @summary Get account order detail (V2)
@@ -78,6 +91,14 @@ export declare const ExperimentalEndpointsApiFp: (configuration?: Configuration)
78
91
  * @throws {RequiredError}
79
92
  */
80
93
  getAccountBalanceHistory(requestParameters: ExperimentalEndpointsApiGetAccountBalanceHistoryRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountValueHistoryResponse>>;
94
+ /**
95
+ * Returns a paginated list of all positions in the specified account. The `results` list can contain multiple instrument types in the same response page, including stocks, ETFs, crypto, futures, and option positions. Use the `instrument.kind` discriminator to determine the schema for each position\'s `instrument`. Stock positions may also include `cash_equivalent`, and may include `tax_lots` when tax lot data is enabled for the account. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
96
+ * @summary List all account positions
97
+ * @param {ExperimentalEndpointsApiGetAllAccountPositionsRequest} requestParameters Request parameters.
98
+ * @param {*} [options] Override http request option.
99
+ * @throws {RequiredError}
100
+ */
101
+ getAllAccountPositions(requestParameters: ExperimentalEndpointsApiGetAllAccountPositionsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllAccountPositionsResponse>>;
81
102
  /**
82
103
  * Returns the detail of a single order using the brokerage order ID provided as a path parameter. The V2 order response format includes all legs of the order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
83
104
  * @summary Get account order detail (V2)
@@ -124,6 +145,14 @@ export declare const ExperimentalEndpointsApiFactory: (configuration?: Configura
124
145
  * @throws {RequiredError}
125
146
  */
126
147
  getAccountBalanceHistory(requestParameters: ExperimentalEndpointsApiGetAccountBalanceHistoryRequest, options?: AxiosRequestConfig): AxiosPromise<AccountValueHistoryResponse>;
148
+ /**
149
+ * Returns a paginated list of all positions in the specified account. The `results` list can contain multiple instrument types in the same response page, including stocks, ETFs, crypto, futures, and option positions. Use the `instrument.kind` discriminator to determine the schema for each position\'s `instrument`. Stock positions may also include `cash_equivalent`, and may include `tax_lots` when tax lot data is enabled for the account. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
150
+ * @summary List all account positions
151
+ * @param {ExperimentalEndpointsApiGetAllAccountPositionsRequest} requestParameters Request parameters.
152
+ * @param {*} [options] Override http request option.
153
+ * @throws {RequiredError}
154
+ */
155
+ getAllAccountPositions(requestParameters: ExperimentalEndpointsApiGetAllAccountPositionsRequest, options?: AxiosRequestConfig): AxiosPromise<AllAccountPositionsResponse>;
127
156
  /**
128
157
  * Returns the detail of a single order using the brokerage order ID provided as a path parameter. The V2 order response format includes all legs of the order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
129
158
  * @summary Get account order detail (V2)
@@ -182,6 +211,43 @@ export type ExperimentalEndpointsApiGetAccountBalanceHistoryRequest = {
182
211
  */
183
212
  readonly accountId: string;
184
213
  };
214
+ /**
215
+ * Request parameters for getAllAccountPositions operation in ExperimentalEndpointsApi.
216
+ * @export
217
+ * @interface ExperimentalEndpointsApiGetAllAccountPositionsRequest
218
+ */
219
+ export type ExperimentalEndpointsApiGetAllAccountPositionsRequest = {
220
+ /**
221
+ *
222
+ * @type {string}
223
+ * @memberof ExperimentalEndpointsApiGetAllAccountPositions
224
+ */
225
+ readonly userId: string;
226
+ /**
227
+ *
228
+ * @type {string}
229
+ * @memberof ExperimentalEndpointsApiGetAllAccountPositions
230
+ */
231
+ readonly userSecret: string;
232
+ /**
233
+ *
234
+ * @type {string}
235
+ * @memberof ExperimentalEndpointsApiGetAllAccountPositions
236
+ */
237
+ readonly accountId: string;
238
+ /**
239
+ * The page number to return. Defaults to 1.
240
+ * @type {number}
241
+ * @memberof ExperimentalEndpointsApiGetAllAccountPositions
242
+ */
243
+ readonly page?: number;
244
+ /**
245
+ * The number of positions to return per page. Defaults to 100 with a maximum of 1000.
246
+ * @type {number}
247
+ * @memberof ExperimentalEndpointsApiGetAllAccountPositions
248
+ */
249
+ readonly pageSize?: number;
250
+ };
185
251
  /**
186
252
  * Request parameters for getUserAccountOrderDetailV2 operation in ExperimentalEndpointsApi.
187
253
  * @export
@@ -322,6 +388,15 @@ export declare class ExperimentalEndpointsApiGenerated extends BaseAPI {
322
388
  * @memberof ExperimentalEndpointsApiGenerated
323
389
  */
324
390
  getAccountBalanceHistory(requestParameters: ExperimentalEndpointsApiGetAccountBalanceHistoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountValueHistoryResponse, any, {}>>;
391
+ /**
392
+ * Returns a paginated list of all positions in the specified account. The `results` list can contain multiple instrument types in the same response page, including stocks, ETFs, crypto, futures, and option positions. Use the `instrument.kind` discriminator to determine the schema for each position\'s `instrument`. Stock positions may also include `cash_equivalent`, and may include `tax_lots` when tax lot data is enabled for the account. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
393
+ * @summary List all account positions
394
+ * @param {ExperimentalEndpointsApiGetAllAccountPositionsRequest} requestParameters Request parameters.
395
+ * @param {*} [options] Override http request option.
396
+ * @throws {RequiredError}
397
+ * @memberof ExperimentalEndpointsApiGenerated
398
+ */
399
+ getAllAccountPositions(requestParameters: ExperimentalEndpointsApiGetAllAccountPositionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AllAccountPositionsResponse, any, {}>>;
325
400
  /**
326
401
  * Returns the detail of a single order using the brokerage order ID provided as a path parameter. The V2 order response format includes all legs of the order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
327
402
  * @summary Get account order detail (V2)
@@ -90,6 +90,69 @@ const ExperimentalEndpointsApiAxiosParamCreator = function (configuration) {
90
90
  options: localVarRequestOptions,
91
91
  };
92
92
  }),
93
+ /**
94
+ * Returns a paginated list of all positions in the specified account. The `results` list can contain multiple instrument types in the same response page, including stocks, ETFs, crypto, futures, and option positions. Use the `instrument.kind` discriminator to determine the schema for each position\'s `instrument`. Stock positions may also include `cash_equivalent`, and may include `tax_lots` when tax lot data is enabled for the account. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
95
+ * @summary List all account positions
96
+ * @param {string} userId
97
+ * @param {string} userSecret
98
+ * @param {string} accountId
99
+ * @param {number} [page] The page number to return. Defaults to 1.
100
+ * @param {number} [pageSize] The number of positions to return per page. Defaults to 100 with a maximum of 1000.
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ */
104
+ getAllAccountPositions: (userId, userSecret, accountId, page, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
105
+ // verify required parameter 'userId' is not null or undefined
106
+ (0, common_1.assertParamExists)('getAllAccountPositions', 'userId', userId);
107
+ // verify required parameter 'userSecret' is not null or undefined
108
+ (0, common_1.assertParamExists)('getAllAccountPositions', 'userSecret', userSecret);
109
+ // verify required parameter 'accountId' is not null or undefined
110
+ (0, common_1.assertParamExists)('getAllAccountPositions', 'accountId', accountId);
111
+ const localVarPath = `/accounts/{accountId}/positions/all`
112
+ .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId !== undefined ? accountId : `-accountId-`)));
113
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
114
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
115
+ let baseOptions;
116
+ if (configuration) {
117
+ baseOptions = configuration.baseOptions;
118
+ }
119
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
120
+ const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
121
+ const localVarQueryParameter = {};
122
+ // authentication PartnerClientId required
123
+ yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
124
+ // authentication PartnerSignature required
125
+ yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
126
+ // authentication PartnerTimestamp required
127
+ yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
128
+ if (userId !== undefined) {
129
+ localVarQueryParameter['userId'] = userId;
130
+ }
131
+ if (userSecret !== undefined) {
132
+ localVarQueryParameter['userSecret'] = userSecret;
133
+ }
134
+ if (page !== undefined) {
135
+ localVarQueryParameter['page'] = page;
136
+ }
137
+ if (pageSize !== undefined) {
138
+ localVarQueryParameter['page_size'] = pageSize;
139
+ }
140
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
141
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
142
+ (0, requestBeforeHook_1.requestBeforeHook)({
143
+ queryParameters: localVarQueryParameter,
144
+ requestConfig: localVarRequestOptions,
145
+ path: localVarPath,
146
+ configuration,
147
+ pathTemplate: '/accounts/{accountId}/positions/all',
148
+ httpMethod: 'GET'
149
+ });
150
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
151
+ return {
152
+ url: (0, common_1.toPathString)(localVarUrlObj),
153
+ options: localVarRequestOptions,
154
+ };
155
+ }),
93
156
  /**
94
157
  * Returns the detail of a single order using the brokerage order ID provided as a path parameter. The V2 order response format includes all legs of the order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
95
158
  * @summary Get account order detail (V2)
@@ -349,6 +412,19 @@ const ExperimentalEndpointsApiFp = function (configuration) {
349
412
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
350
413
  });
351
414
  },
415
+ /**
416
+ * Returns a paginated list of all positions in the specified account. The `results` list can contain multiple instrument types in the same response page, including stocks, ETFs, crypto, futures, and option positions. Use the `instrument.kind` discriminator to determine the schema for each position\'s `instrument`. Stock positions may also include `cash_equivalent`, and may include `tax_lots` when tax lot data is enabled for the account. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
417
+ * @summary List all account positions
418
+ * @param {ExperimentalEndpointsApiGetAllAccountPositionsRequest} requestParameters Request parameters.
419
+ * @param {*} [options] Override http request option.
420
+ * @throws {RequiredError}
421
+ */
422
+ getAllAccountPositions(requestParameters, options) {
423
+ return __awaiter(this, void 0, void 0, function* () {
424
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllAccountPositions(requestParameters.userId, requestParameters.userSecret, requestParameters.accountId, requestParameters.page, requestParameters.pageSize, options);
425
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
426
+ });
427
+ },
352
428
  /**
353
429
  * Returns the detail of a single order using the brokerage order ID provided as a path parameter. The V2 order response format includes all legs of the order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
354
430
  * @summary Get account order detail (V2)
@@ -421,6 +497,16 @@ const ExperimentalEndpointsApiFactory = function (configuration, basePath, axios
421
497
  getAccountBalanceHistory(requestParameters, options) {
422
498
  return localVarFp.getAccountBalanceHistory(requestParameters, options).then((request) => request(axios, basePath));
423
499
  },
500
+ /**
501
+ * Returns a paginated list of all positions in the specified account. The `results` list can contain multiple instrument types in the same response page, including stocks, ETFs, crypto, futures, and option positions. Use the `instrument.kind` discriminator to determine the schema for each position\'s `instrument`. Stock positions may also include `cash_equivalent`, and may include `tax_lots` when tax lot data is enabled for the account. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
502
+ * @summary List all account positions
503
+ * @param {ExperimentalEndpointsApiGetAllAccountPositionsRequest} requestParameters Request parameters.
504
+ * @param {*} [options] Override http request option.
505
+ * @throws {RequiredError}
506
+ */
507
+ getAllAccountPositions(requestParameters, options) {
508
+ return localVarFp.getAllAccountPositions(requestParameters, options).then((request) => request(axios, basePath));
509
+ },
424
510
  /**
425
511
  * Returns the detail of a single order using the brokerage order ID provided as a path parameter. The V2 order response format includes all legs of the order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
426
512
  * @summary Get account order detail (V2)
@@ -482,6 +568,17 @@ class ExperimentalEndpointsApiGenerated extends base_1.BaseAPI {
482
568
  getAccountBalanceHistory(requestParameters, options) {
483
569
  return (0, exports.ExperimentalEndpointsApiFp)(this.configuration).getAccountBalanceHistory(requestParameters, options).then((request) => request(this.axios, this.basePath));
484
570
  }
571
+ /**
572
+ * Returns a paginated list of all positions in the specified account. The `results` list can contain multiple instrument types in the same response page, including stocks, ETFs, crypto, futures, and option positions. Use the `instrument.kind` discriminator to determine the schema for each position\'s `instrument`. Stock positions may also include `cash_equivalent`, and may include `tax_lots` when tax lot data is enabled for the account. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
573
+ * @summary List all account positions
574
+ * @param {ExperimentalEndpointsApiGetAllAccountPositionsRequest} requestParameters Request parameters.
575
+ * @param {*} [options] Override http request option.
576
+ * @throws {RequiredError}
577
+ * @memberof ExperimentalEndpointsApiGenerated
578
+ */
579
+ getAllAccountPositions(requestParameters, options) {
580
+ return (0, exports.ExperimentalEndpointsApiFp)(this.configuration).getAllAccountPositions(requestParameters, options).then((request) => request(this.axios, this.basePath));
581
+ }
485
582
  /**
486
583
  * Returns the detail of a single order using the brokerage order ID provided as a path parameter. The V2 order response format includes all legs of the order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
487
584
  * @summary Get account order detail (V2)