snaptrade-typescript-sdk 8.29.2 → 8.29.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.
@@ -45,15 +45,16 @@ export declare const AccountInformationApiAxiosParamCreator: (configuration?: Co
45
45
  getUserAccountDetails: (userId: string, userSecret: string, accountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
46
46
  /**
47
47
  * Fetch all recent orders from a user\'s account.
48
- * @summary Get history of orders placed in account
48
+ * @summary List account orders
49
49
  * @param {string} userId
50
50
  * @param {string} userSecret
51
51
  * @param {string} accountId The ID of the account to get orders.
52
52
  * @param {'all' | 'open' | 'executed'} [state] defaults value is set to \&quot;all\&quot;
53
+ * @param {number} [days] Number of days in the past to fetch the most recent orders. Defaults to the last 90 days if no value is passed in.
53
54
  * @param {*} [options] Override http request option.
54
55
  * @throws {RequiredError}
55
56
  */
56
- getUserAccountOrders: (userId: string, userSecret: string, accountId: string, state?: 'all' | 'open' | 'executed', options?: AxiosRequestConfig) => Promise<RequestArgs>;
57
+ getUserAccountOrders: (userId: string, userSecret: string, accountId: string, state?: 'all' | 'open' | 'executed', days?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
57
58
  /**
58
59
  *
59
60
  * @summary List account positions
@@ -126,7 +127,7 @@ export declare const AccountInformationApiFp: (configuration?: Configuration) =>
126
127
  getUserAccountDetails(requestParameters: AccountInformationApiGetUserAccountDetailsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Account>>;
127
128
  /**
128
129
  * Fetch all recent orders from a user\'s account.
129
- * @summary Get history of orders placed in account
130
+ * @summary List account orders
130
131
  * @param {AccountInformationApiGetUserAccountOrdersRequest} requestParameters Request parameters.
131
132
  * @param {*} [options] Override http request option.
132
133
  * @throws {RequiredError}
@@ -197,7 +198,7 @@ export declare const AccountInformationApiFactory: (configuration?: Configuratio
197
198
  getUserAccountDetails(requestParameters: AccountInformationApiGetUserAccountDetailsRequest, options?: AxiosRequestConfig): AxiosPromise<Account>;
198
199
  /**
199
200
  * Fetch all recent orders from a user\'s account.
200
- * @summary Get history of orders placed in account
201
+ * @summary List account orders
201
202
  * @param {AccountInformationApiGetUserAccountOrdersRequest} requestParameters Request parameters.
202
203
  * @param {*} [options] Override http request option.
203
204
  * @throws {RequiredError}
@@ -341,6 +342,12 @@ export type AccountInformationApiGetUserAccountOrdersRequest = {
341
342
  * @memberof AccountInformationApiGetUserAccountOrders
342
343
  */
343
344
  readonly state?: 'all' | 'open' | 'executed';
345
+ /**
346
+ * Number of days in the past to fetch the most recent orders. Defaults to the last 90 days if no value is passed in.
347
+ * @type {number}
348
+ * @memberof AccountInformationApiGetUserAccountOrders
349
+ */
350
+ readonly days?: number;
344
351
  };
345
352
  /**
346
353
  * Request parameters for getUserAccountPositions operation in AccountInformationApi.
@@ -473,7 +480,7 @@ export declare class AccountInformationApiGenerated extends BaseAPI {
473
480
  getUserAccountDetails(requestParameters: AccountInformationApiGetUserAccountDetailsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Account, any>>;
474
481
  /**
475
482
  * Fetch all recent orders from a user\'s account.
476
- * @summary Get history of orders placed in account
483
+ * @summary List account orders
477
484
  * @param {AccountInformationApiGetUserAccountOrdersRequest} requestParameters Request parameters.
478
485
  * @param {*} [options] Override http request option.
479
486
  * @throws {RequiredError}
@@ -197,15 +197,16 @@ const AccountInformationApiAxiosParamCreator = function (configuration) {
197
197
  }),
198
198
  /**
199
199
  * Fetch all recent orders from a user\'s account.
200
- * @summary Get history of orders placed in account
200
+ * @summary List account orders
201
201
  * @param {string} userId
202
202
  * @param {string} userSecret
203
203
  * @param {string} accountId The ID of the account to get orders.
204
204
  * @param {'all' | 'open' | 'executed'} [state] defaults value is set to \&quot;all\&quot;
205
+ * @param {number} [days] Number of days in the past to fetch the most recent orders. Defaults to the last 90 days if no value is passed in.
205
206
  * @param {*} [options] Override http request option.
206
207
  * @throws {RequiredError}
207
208
  */
208
- getUserAccountOrders: (userId, userSecret, accountId, state, options = {}) => __awaiter(this, void 0, void 0, function* () {
209
+ getUserAccountOrders: (userId, userSecret, accountId, state, days, options = {}) => __awaiter(this, void 0, void 0, function* () {
209
210
  // verify required parameter 'userId' is not null or undefined
210
211
  (0, common_1.assertParamExists)('getUserAccountOrders', 'userId', userId);
211
212
  // verify required parameter 'userSecret' is not null or undefined
@@ -238,6 +239,9 @@ const AccountInformationApiAxiosParamCreator = function (configuration) {
238
239
  if (state !== undefined) {
239
240
  localVarQueryParameter['state'] = state;
240
241
  }
242
+ if (days !== undefined) {
243
+ localVarQueryParameter['days'] = days;
244
+ }
241
245
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
242
246
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
243
247
  (0, requestBeforeHook_1.requestBeforeHook)({
@@ -512,14 +516,14 @@ const AccountInformationApiFp = function (configuration) {
512
516
  },
513
517
  /**
514
518
  * Fetch all recent orders from a user\'s account.
515
- * @summary Get history of orders placed in account
519
+ * @summary List account orders
516
520
  * @param {AccountInformationApiGetUserAccountOrdersRequest} requestParameters Request parameters.
517
521
  * @param {*} [options] Override http request option.
518
522
  * @throws {RequiredError}
519
523
  */
520
524
  getUserAccountOrders(requestParameters, options) {
521
525
  return __awaiter(this, void 0, void 0, function* () {
522
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserAccountOrders(requestParameters.userId, requestParameters.userSecret, requestParameters.accountId, requestParameters.state, options);
526
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserAccountOrders(requestParameters.userId, requestParameters.userSecret, requestParameters.accountId, requestParameters.state, requestParameters.days, options);
523
527
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
524
528
  });
525
529
  },
@@ -618,7 +622,7 @@ const AccountInformationApiFactory = function (configuration, basePath, axios) {
618
622
  },
619
623
  /**
620
624
  * Fetch all recent orders from a user\'s account.
621
- * @summary Get history of orders placed in account
625
+ * @summary List account orders
622
626
  * @param {AccountInformationApiGetUserAccountOrdersRequest} requestParameters Request parameters.
623
627
  * @param {*} [options] Override http request option.
624
628
  * @throws {RequiredError}
@@ -712,7 +716,7 @@ class AccountInformationApiGenerated extends base_1.BaseAPI {
712
716
  }
713
717
  /**
714
718
  * Fetch all recent orders from a user\'s account.
715
- * @summary Get history of orders placed in account
719
+ * @summary List account orders
716
720
  * @param {AccountInformationApiGetUserAccountOrdersRequest} requestParameters Request parameters.
717
721
  * @param {*} [options] Override http request option.
718
722
  * @throws {RequiredError}