snaptrade-typescript-sdk 13.2.2 → 13.2.4

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/dist/index.cjs CHANGED
@@ -4251,6 +4251,81 @@ const ExperimentalEndpointsApiAxiosParamCreator = function(configuration) {
4251
4251
  };
4252
4252
  },
4253
4253
  /**
4254
+ * Returns the detail of a single order, identified by the brokerage order ID in the path, in the same `kind`-discriminated format as `/accounts/{accountId}/orders/all`. The order carries a `legs` list with at least one leg; switch on `legs[].instrument.kind` and `order_type.kind` to know which fields are present. Multi-leg orders are a single order with multiple legs. This endpoint is always realtime and does not rely on cached data, except that an order in a terminal state (executed, canceled, rejected, failed, expired, replaced) may be served from a short-lived cache since it can no longer change. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint. **Experimental:** this endpoint may change without notice.
4255
+ * @summary Get account order detail
4256
+ * @param {string} accountId
4257
+ * @param {string} brokerageOrderId
4258
+ * @param {string} [userId]
4259
+ * @param {string} [userSecret]
4260
+ * @param {*} [options] Override http request option.
4261
+ * @throws {RequiredError}
4262
+ */
4263
+ getAccountOrder: async (accountId, brokerageOrderId, userId, userSecret, options = {}) => {
4264
+ assertParamExists("getAccountOrder", "accountId", accountId);
4265
+ assertParamExists("getAccountOrder", "brokerageOrderId", brokerageOrderId);
4266
+ const localVarPath = `/accounts/{accountId}/orders/{brokerageOrderId}`.replace(`{accountId}`, encodeURIComponent(String(accountId !== void 0 ? accountId : `-accountId-`))).replace(`{brokerageOrderId}`, encodeURIComponent(String(brokerageOrderId !== void 0 ? brokerageOrderId : `-brokerageOrderId-`)));
4267
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4268
+ let baseOptions;
4269
+ if (configuration) baseOptions = configuration.baseOptions;
4270
+ const localVarRequestOptions = {
4271
+ method: "GET",
4272
+ ...baseOptions,
4273
+ ...options
4274
+ };
4275
+ const localVarHeaderParameter = configuration && !isBrowser() ? { "User-Agent": configuration.userAgent } : {};
4276
+ const localVarQueryParameter = {};
4277
+ if (configuration?.authMode === "commercialApiKey") {
4278
+ await setApiKeyToObject({
4279
+ object: localVarQueryParameter,
4280
+ key: "clientId",
4281
+ keyParamName: "clientId",
4282
+ configuration
4283
+ });
4284
+ if (userId !== void 0) localVarQueryParameter["userId"] = userId;
4285
+ if (userSecret !== void 0) localVarQueryParameter["userSecret"] = userSecret;
4286
+ }
4287
+ if (configuration?.authMode === "personalApiKey") await setApiKeyToObject({
4288
+ object: localVarQueryParameter,
4289
+ key: "clientId",
4290
+ keyParamName: "clientId",
4291
+ configuration
4292
+ });
4293
+ const localVarOperationAuth = {
4294
+ authModes: ["commercialApiKey", "personalApiKey"],
4295
+ requestSigningByAuthMode: {
4296
+ "commercialApiKey": {
4297
+ secretParameter: "consumerKey",
4298
+ signedSecuritySchemes: ["PartnerSignature", "PartnerTimestamp"]
4299
+ },
4300
+ "personalApiKey": {
4301
+ secretParameter: "consumerKey",
4302
+ signedSecuritySchemes: ["PersonalSignature", "PersonalTimestamp"]
4303
+ }
4304
+ },
4305
+ selectedAuthMode: configuration?.authMode
4306
+ };
4307
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4308
+ localVarRequestOptions.headers = {
4309
+ ...localVarHeaderParameter,
4310
+ ...headersFromBaseOptions,
4311
+ ...options.headers
4312
+ };
4313
+ requestBeforeHook({
4314
+ queryParameters: localVarQueryParameter,
4315
+ requestConfig: localVarRequestOptions,
4316
+ path: localVarPath,
4317
+ configuration,
4318
+ pathTemplate: "/accounts/{accountId}/orders/{brokerageOrderId}",
4319
+ httpMethod: "GET",
4320
+ operationAuth: localVarOperationAuth
4321
+ });
4322
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4323
+ return {
4324
+ url: toPathString(localVarUrlObj),
4325
+ options: localVarRequestOptions
4326
+ };
4327
+ },
4328
+ /**
4254
4329
  * Returns a list of recent orders in the specified account, in the same `kind`-discriminated format as `/accounts/{accountId}/positions/all`. Every order carries a `legs` list with at least one leg. Each leg\'s `instrument` uses the same `Instrument` union as positions; switch on `instrument.kind` to know which fields are present. Multi-leg orders (spreads, strangles, covered calls) are a single order with multiple legs. Orders that belong to a complex order group (OCO, OTO, OTOCO) share a `group.id`. `order_type` is an object discriminated by `kind`. Each kind declares the price fields it requires (`limit_price` on `limit`, `stop_price` on `stop`, both on `stop_limit`, `trail` on `trailing_stop`), so a consumer never has to null-check a price that cannot exist for that kind. When the brokerage reports an order type we cannot normalize, `kind` is `other` and the brokerage\'s own label is in `raw_type`. **Experimental:** this endpoint may change without notice. 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.
4255
4330
  * @summary List all account orders
4256
4331
  * @param {string} accountId
@@ -4328,6 +4403,81 @@ const ExperimentalEndpointsApiAxiosParamCreator = function(configuration) {
4328
4403
  };
4329
4404
  },
4330
4405
  /**
4406
+ * A lightweight endpoint that returns the latest page of orders placed in the last 24 hours in the specified account, in the same `kind`-discriminated format as `/accounts/{accountId}/orders/all`. For most brokerages, the default page size is 100 meaning the endpoint will return a max of 100 orders. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders. Differs from `/accounts/{accountId}/orders/all` in that it is always realtime, and only checks the last 24 hours as opposed to the last 30 days. By default only returns executed orders, but that can be changed by setting *only_executed* to false. Every order carries a `legs` list with at least one leg; switch on `legs[].instrument.kind` and `order_type.kind` to know which fields are present. `data_freshness.as_of` is the time of this live request. **Experimental:** this endpoint may change without notice. **Because of the cost of realtime requests, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)**
4407
+ * @summary List all account recent orders (last 24 hours only)
4408
+ * @param {string} accountId
4409
+ * @param {boolean} [onlyExecuted] Defaults to true. Indicates if request should fetch only executed orders. Set to false to retrieve non executed orders as well
4410
+ * @param {string} [userId]
4411
+ * @param {string} [userSecret]
4412
+ * @param {*} [options] Override http request option.
4413
+ * @throws {RequiredError}
4414
+ */
4415
+ getAllAccountRecentOrders: async (accountId, onlyExecuted, userId, userSecret, options = {}) => {
4416
+ assertParamExists("getAllAccountRecentOrders", "accountId", accountId);
4417
+ const localVarPath = `/accounts/{accountId}/orders/recent`.replace(`{accountId}`, encodeURIComponent(String(accountId !== void 0 ? accountId : `-accountId-`)));
4418
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4419
+ let baseOptions;
4420
+ if (configuration) baseOptions = configuration.baseOptions;
4421
+ const localVarRequestOptions = {
4422
+ method: "GET",
4423
+ ...baseOptions,
4424
+ ...options
4425
+ };
4426
+ const localVarHeaderParameter = configuration && !isBrowser() ? { "User-Agent": configuration.userAgent } : {};
4427
+ const localVarQueryParameter = {};
4428
+ if (configuration?.authMode === "commercialApiKey") {
4429
+ await setApiKeyToObject({
4430
+ object: localVarQueryParameter,
4431
+ key: "clientId",
4432
+ keyParamName: "clientId",
4433
+ configuration
4434
+ });
4435
+ if (userId !== void 0) localVarQueryParameter["userId"] = userId;
4436
+ if (userSecret !== void 0) localVarQueryParameter["userSecret"] = userSecret;
4437
+ }
4438
+ if (configuration?.authMode === "personalApiKey") await setApiKeyToObject({
4439
+ object: localVarQueryParameter,
4440
+ key: "clientId",
4441
+ keyParamName: "clientId",
4442
+ configuration
4443
+ });
4444
+ if (onlyExecuted !== void 0) localVarQueryParameter["only_executed"] = onlyExecuted;
4445
+ const localVarOperationAuth = {
4446
+ authModes: ["commercialApiKey", "personalApiKey"],
4447
+ requestSigningByAuthMode: {
4448
+ "commercialApiKey": {
4449
+ secretParameter: "consumerKey",
4450
+ signedSecuritySchemes: ["PartnerSignature", "PartnerTimestamp"]
4451
+ },
4452
+ "personalApiKey": {
4453
+ secretParameter: "consumerKey",
4454
+ signedSecuritySchemes: ["PersonalSignature", "PersonalTimestamp"]
4455
+ }
4456
+ },
4457
+ selectedAuthMode: configuration?.authMode
4458
+ };
4459
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4460
+ localVarRequestOptions.headers = {
4461
+ ...localVarHeaderParameter,
4462
+ ...headersFromBaseOptions,
4463
+ ...options.headers
4464
+ };
4465
+ requestBeforeHook({
4466
+ queryParameters: localVarQueryParameter,
4467
+ requestConfig: localVarRequestOptions,
4468
+ path: localVarPath,
4469
+ configuration,
4470
+ pathTemplate: "/accounts/{accountId}/orders/recent",
4471
+ httpMethod: "GET",
4472
+ operationAuth: localVarOperationAuth
4473
+ });
4474
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4475
+ return {
4476
+ url: toPathString(localVarUrlObj),
4477
+ options: localVarRequestOptions
4478
+ };
4479
+ },
4480
+ /**
4331
4481
  * 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.
4332
4482
  * @summary Get account order detail (V2)
4333
4483
  * @param {string} accountId
@@ -4778,6 +4928,29 @@ const ExperimentalEndpointsApiFp = function(configuration) {
4778
4928
  });
4779
4929
  },
4780
4930
  /**
4931
+ * Returns the detail of a single order, identified by the brokerage order ID in the path, in the same `kind`-discriminated format as `/accounts/{accountId}/orders/all`. The order carries a `legs` list with at least one leg; switch on `legs[].instrument.kind` and `order_type.kind` to know which fields are present. Multi-leg orders are a single order with multiple legs. This endpoint is always realtime and does not rely on cached data, except that an order in a terminal state (executed, canceled, rejected, failed, expired, replaced) may be served from a short-lived cache since it can no longer change. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint. **Experimental:** this endpoint may change without notice.
4932
+ * @summary Get account order detail
4933
+ * @param {ExperimentalEndpointsApiGetAccountOrderRequest<TAuth>} requestParameters Request parameters.
4934
+ * @param {*} [options] Override http request option.
4935
+ * @throws {RequiredError}
4936
+ */
4937
+ async getAccountOrder(...args) {
4938
+ const [requestParameters = {}, options] = args;
4939
+ return createRequestFunction(await localVarAxiosParamCreator.getAccountOrder(requestParameters.accountId, requestParameters.brokerageOrderId, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
4940
+ authModes: ["commercialApiKey", "personalApiKey"],
4941
+ requestSigningByAuthMode: {
4942
+ "commercialApiKey": {
4943
+ secretParameter: "consumerKey",
4944
+ signedSecuritySchemes: ["PartnerSignature", "PartnerTimestamp"]
4945
+ },
4946
+ "personalApiKey": {
4947
+ secretParameter: "consumerKey",
4948
+ signedSecuritySchemes: ["PersonalSignature", "PersonalTimestamp"]
4949
+ }
4950
+ }
4951
+ });
4952
+ },
4953
+ /**
4781
4954
  * Returns a list of recent orders in the specified account, in the same `kind`-discriminated format as `/accounts/{accountId}/positions/all`. Every order carries a `legs` list with at least one leg. Each leg\'s `instrument` uses the same `Instrument` union as positions; switch on `instrument.kind` to know which fields are present. Multi-leg orders (spreads, strangles, covered calls) are a single order with multiple legs. Orders that belong to a complex order group (OCO, OTO, OTOCO) share a `group.id`. `order_type` is an object discriminated by `kind`. Each kind declares the price fields it requires (`limit_price` on `limit`, `stop_price` on `stop`, both on `stop_limit`, `trail` on `trailing_stop`), so a consumer never has to null-check a price that cannot exist for that kind. When the brokerage reports an order type we cannot normalize, `kind` is `other` and the brokerage\'s own label is in `raw_type`. **Experimental:** this endpoint may change without notice. 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.
4782
4955
  * @summary List all account orders
4783
4956
  * @param {ExperimentalEndpointsApiGetAllAccountOrdersRequest<TAuth>} requestParameters Request parameters.
@@ -4801,6 +4974,29 @@ const ExperimentalEndpointsApiFp = function(configuration) {
4801
4974
  });
4802
4975
  },
4803
4976
  /**
4977
+ * A lightweight endpoint that returns the latest page of orders placed in the last 24 hours in the specified account, in the same `kind`-discriminated format as `/accounts/{accountId}/orders/all`. For most brokerages, the default page size is 100 meaning the endpoint will return a max of 100 orders. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders. Differs from `/accounts/{accountId}/orders/all` in that it is always realtime, and only checks the last 24 hours as opposed to the last 30 days. By default only returns executed orders, but that can be changed by setting *only_executed* to false. Every order carries a `legs` list with at least one leg; switch on `legs[].instrument.kind` and `order_type.kind` to know which fields are present. `data_freshness.as_of` is the time of this live request. **Experimental:** this endpoint may change without notice. **Because of the cost of realtime requests, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)**
4978
+ * @summary List all account recent orders (last 24 hours only)
4979
+ * @param {ExperimentalEndpointsApiGetAllAccountRecentOrdersRequest<TAuth>} requestParameters Request parameters.
4980
+ * @param {*} [options] Override http request option.
4981
+ * @throws {RequiredError}
4982
+ */
4983
+ async getAllAccountRecentOrders(...args) {
4984
+ const [requestParameters = {}, options] = args;
4985
+ return createRequestFunction(await localVarAxiosParamCreator.getAllAccountRecentOrders(requestParameters.accountId, requestParameters.onlyExecuted, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
4986
+ authModes: ["commercialApiKey", "personalApiKey"],
4987
+ requestSigningByAuthMode: {
4988
+ "commercialApiKey": {
4989
+ secretParameter: "consumerKey",
4990
+ signedSecuritySchemes: ["PartnerSignature", "PartnerTimestamp"]
4991
+ },
4992
+ "personalApiKey": {
4993
+ secretParameter: "consumerKey",
4994
+ signedSecuritySchemes: ["PersonalSignature", "PersonalTimestamp"]
4995
+ }
4996
+ }
4997
+ });
4998
+ },
4999
+ /**
4804
5000
  * 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.
4805
5001
  * @summary Get account order detail (V2)
4806
5002
  * @param {ExperimentalEndpointsApiGetUserAccountOrderDetailV2Request<TAuth>} requestParameters Request parameters.
@@ -4972,6 +5168,16 @@ const ExperimentalEndpointsApiFactory = function(configuration, basePath, axios$
4972
5168
  return localVarFp.cancelSubscription(...args).then((request) => request(axios$6, basePath));
4973
5169
  },
4974
5170
  /**
5171
+ * Returns the detail of a single order, identified by the brokerage order ID in the path, in the same `kind`-discriminated format as `/accounts/{accountId}/orders/all`. The order carries a `legs` list with at least one leg; switch on `legs[].instrument.kind` and `order_type.kind` to know which fields are present. Multi-leg orders are a single order with multiple legs. This endpoint is always realtime and does not rely on cached data, except that an order in a terminal state (executed, canceled, rejected, failed, expired, replaced) may be served from a short-lived cache since it can no longer change. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint. **Experimental:** this endpoint may change without notice.
5172
+ * @summary Get account order detail
5173
+ * @param {ExperimentalEndpointsApiGetAccountOrderRequest<TAuth>} requestParameters Request parameters.
5174
+ * @param {*} [options] Override http request option.
5175
+ * @throws {RequiredError}
5176
+ */
5177
+ getAccountOrder(...args) {
5178
+ return localVarFp.getAccountOrder(...args).then((request) => request(axios$6, basePath));
5179
+ },
5180
+ /**
4975
5181
  * Returns a list of recent orders in the specified account, in the same `kind`-discriminated format as `/accounts/{accountId}/positions/all`. Every order carries a `legs` list with at least one leg. Each leg\'s `instrument` uses the same `Instrument` union as positions; switch on `instrument.kind` to know which fields are present. Multi-leg orders (spreads, strangles, covered calls) are a single order with multiple legs. Orders that belong to a complex order group (OCO, OTO, OTOCO) share a `group.id`. `order_type` is an object discriminated by `kind`. Each kind declares the price fields it requires (`limit_price` on `limit`, `stop_price` on `stop`, both on `stop_limit`, `trail` on `trailing_stop`), so a consumer never has to null-check a price that cannot exist for that kind. When the brokerage reports an order type we cannot normalize, `kind` is `other` and the brokerage\'s own label is in `raw_type`. **Experimental:** this endpoint may change without notice. 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.
4976
5182
  * @summary List all account orders
4977
5183
  * @param {ExperimentalEndpointsApiGetAllAccountOrdersRequest<TAuth>} requestParameters Request parameters.
@@ -4982,6 +5188,16 @@ const ExperimentalEndpointsApiFactory = function(configuration, basePath, axios$
4982
5188
  return localVarFp.getAllAccountOrders(...args).then((request) => request(axios$6, basePath));
4983
5189
  },
4984
5190
  /**
5191
+ * A lightweight endpoint that returns the latest page of orders placed in the last 24 hours in the specified account, in the same `kind`-discriminated format as `/accounts/{accountId}/orders/all`. For most brokerages, the default page size is 100 meaning the endpoint will return a max of 100 orders. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders. Differs from `/accounts/{accountId}/orders/all` in that it is always realtime, and only checks the last 24 hours as opposed to the last 30 days. By default only returns executed orders, but that can be changed by setting *only_executed* to false. Every order carries a `legs` list with at least one leg; switch on `legs[].instrument.kind` and `order_type.kind` to know which fields are present. `data_freshness.as_of` is the time of this live request. **Experimental:** this endpoint may change without notice. **Because of the cost of realtime requests, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)**
5192
+ * @summary List all account recent orders (last 24 hours only)
5193
+ * @param {ExperimentalEndpointsApiGetAllAccountRecentOrdersRequest<TAuth>} requestParameters Request parameters.
5194
+ * @param {*} [options] Override http request option.
5195
+ * @throws {RequiredError}
5196
+ */
5197
+ getAllAccountRecentOrders(...args) {
5198
+ return localVarFp.getAllAccountRecentOrders(...args).then((request) => request(axios$6, basePath));
5199
+ },
5200
+ /**
4985
5201
  * 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.
4986
5202
  * @summary Get account order detail (V2)
4987
5203
  * @param {ExperimentalEndpointsApiGetUserAccountOrderDetailV2Request<TAuth>} requestParameters Request parameters.
@@ -5062,6 +5278,17 @@ var ExperimentalEndpointsApiGenerated = class extends BaseAPI {
5062
5278
  return ExperimentalEndpointsApiFp(this.configuration).cancelSubscription(...args).then((request) => request(this.axios, this.basePath));
5063
5279
  }
5064
5280
  /**
5281
+ * Returns the detail of a single order, identified by the brokerage order ID in the path, in the same `kind`-discriminated format as `/accounts/{accountId}/orders/all`. The order carries a `legs` list with at least one leg; switch on `legs[].instrument.kind` and `order_type.kind` to know which fields are present. Multi-leg orders are a single order with multiple legs. This endpoint is always realtime and does not rely on cached data, except that an order in a terminal state (executed, canceled, rejected, failed, expired, replaced) may be served from a short-lived cache since it can no longer change. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint. **Experimental:** this endpoint may change without notice.
5282
+ * @summary Get account order detail
5283
+ * @param {ExperimentalEndpointsApiGetAccountOrderRequest<TAuth>} requestParameters Request parameters.
5284
+ * @param {*} [options] Override http request option.
5285
+ * @throws {RequiredError}
5286
+ * @memberof ExperimentalEndpointsApiGenerated
5287
+ */
5288
+ getAccountOrder(...args) {
5289
+ return ExperimentalEndpointsApiFp(this.configuration).getAccountOrder(...args).then((request) => request(this.axios, this.basePath));
5290
+ }
5291
+ /**
5065
5292
  * Returns a list of recent orders in the specified account, in the same `kind`-discriminated format as `/accounts/{accountId}/positions/all`. Every order carries a `legs` list with at least one leg. Each leg\'s `instrument` uses the same `Instrument` union as positions; switch on `instrument.kind` to know which fields are present. Multi-leg orders (spreads, strangles, covered calls) are a single order with multiple legs. Orders that belong to a complex order group (OCO, OTO, OTOCO) share a `group.id`. `order_type` is an object discriminated by `kind`. Each kind declares the price fields it requires (`limit_price` on `limit`, `stop_price` on `stop`, both on `stop_limit`, `trail` on `trailing_stop`), so a consumer never has to null-check a price that cannot exist for that kind. When the brokerage reports an order type we cannot normalize, `kind` is `other` and the brokerage\'s own label is in `raw_type`. **Experimental:** this endpoint may change without notice. 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.
5066
5293
  * @summary List all account orders
5067
5294
  * @param {ExperimentalEndpointsApiGetAllAccountOrdersRequest<TAuth>} requestParameters Request parameters.
@@ -5073,6 +5300,17 @@ var ExperimentalEndpointsApiGenerated = class extends BaseAPI {
5073
5300
  return ExperimentalEndpointsApiFp(this.configuration).getAllAccountOrders(...args).then((request) => request(this.axios, this.basePath));
5074
5301
  }
5075
5302
  /**
5303
+ * A lightweight endpoint that returns the latest page of orders placed in the last 24 hours in the specified account, in the same `kind`-discriminated format as `/accounts/{accountId}/orders/all`. For most brokerages, the default page size is 100 meaning the endpoint will return a max of 100 orders. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders. Differs from `/accounts/{accountId}/orders/all` in that it is always realtime, and only checks the last 24 hours as opposed to the last 30 days. By default only returns executed orders, but that can be changed by setting *only_executed* to false. Every order carries a `legs` list with at least one leg; switch on `legs[].instrument.kind` and `order_type.kind` to know which fields are present. `data_freshness.as_of` is the time of this live request. **Experimental:** this endpoint may change without notice. **Because of the cost of realtime requests, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)**
5304
+ * @summary List all account recent orders (last 24 hours only)
5305
+ * @param {ExperimentalEndpointsApiGetAllAccountRecentOrdersRequest<TAuth>} requestParameters Request parameters.
5306
+ * @param {*} [options] Override http request option.
5307
+ * @throws {RequiredError}
5308
+ * @memberof ExperimentalEndpointsApiGenerated
5309
+ */
5310
+ getAllAccountRecentOrders(...args) {
5311
+ return ExperimentalEndpointsApiFp(this.configuration).getAllAccountRecentOrders(...args).then((request) => request(this.axios, this.basePath));
5312
+ }
5313
+ /**
5076
5314
  * 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.
5077
5315
  * @summary Get account order detail (V2)
5078
5316
  * @param {ExperimentalEndpointsApiGetUserAccountOrderDetailV2Request<TAuth>} requestParameters Request parameters.
@@ -8453,7 +8691,7 @@ var Configuration = class {
8453
8691
  if (param.auth.mode === "oauth") this.accessToken = param.auth.accessToken;
8454
8692
  this.basePath = param.basePath;
8455
8693
  this.baseOptions = param.baseOptions ?? {};
8456
- this.userAgent = param.userAgent === void 0 ? "Konfig/13.2.2/typescript" : param.userAgent;
8694
+ this.userAgent = param.userAgent === void 0 ? "Konfig/13.2.4/typescript" : param.userAgent;
8457
8695
  this.formDataCtor = param.formDataCtor;
8458
8696
  }
8459
8697
  /**