@binance/simple-earn 12.0.2 → 12.0.3
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.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["localVarQueryParameter: Record<string, unknown>","localVarBodyParameter: Record<string, unknown>","_timeUnit: TimeUnit | undefined","localVarQueryParameter: Record<string, unknown>","localVarBodyParameter: Record<string, unknown>","_timeUnit: TimeUnit | undefined","localVarQueryParameter: Record<string, unknown>","localVarBodyParameter: Record<string, unknown>","_timeUnit: TimeUnit | undefined","ConfigurationRestAPI","SIMPLE_EARN_REST_API_PROD_URL"],"sources":["../package.json","../src/rest-api/modules/bfusd-api.ts","../src/rest-api/modules/flexible-locked-api.ts","../src/rest-api/modules/rwusd-api.ts","../src/rest-api/rest-api.ts","../src/rest-api/index.ts","../src/simple-earn.ts"],"sourcesContent":["{\n \"name\": \"@binance/simple-earn\",\n \"description\": \"Official Binance Simple Earn Connector - A lightweight library that provides a convenient interface to Binance's Simple Earn REST API.\",\n \"version\": \"12.0.2\",\n \"main\": \"./dist/index.js\",\n \"module\": \"./dist/index.mjs\",\n \"types\": \"./dist/index.d.ts\",\n \"exports\": {\n \".\": {\n \"require\": \"./dist/index.js\",\n \"import\": \"./dist/index.mjs\"\n }\n },\n \"scripts\": {\n \"prepublishOnly\": \"npm run build\",\n \"build\": \"npm run clean && tsdown\",\n \"typecheck\": \"tsc --noEmit\",\n \"clean\": \"rm -rf dist\",\n \"test\": \"npx jest --maxWorkers=4 --bail\",\n \"test:watch\": \"npx jest --watch\",\n \"format\": \"npx prettier --ignore-path .prettierignore --write .\",\n \"lint\": \"npx eslint '**/*.ts' --fix\"\n },\n \"keywords\": [\n \"Binance\",\n \"API\",\n \"Simple Earn\",\n \"Connector\",\n \"REST\",\n \"Trading\"\n ],\n \"author\": \"Binance\",\n \"license\": \"MIT\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/binance/binance-connector-js.git\"\n },\n \"bugs\": {\n \"url\": \"https://github.com/binance/binance-connector-js/issues\"\n },\n \"homepage\": \"https://github.com/binance/binance-connector-js#readme\",\n \"files\": [\n \"dist\"\n ],\n \"devDependencies\": {\n \"@types/jest\": \"^29.5.4\",\n \"@types/node\": \"^20.17.24\",\n \"eslint\": \"8.57.0\",\n \"jest\": \"^29.6.4\",\n \"json-with-bigint\": \"^3.4.4\",\n \"prettier\": \"^3.3.3\",\n \"ts-jest\": \"^29.1.1\",\n \"ts-node\": \"^10.9.1\",\n \"tsdown\": \"^0.16.5\",\n \"typescript\": \"^5.7.2\",\n \"typescript-eslint\": \"^8.24.0\"\n },\n \"dependencies\": {\n \"@binance/common\": \"2.3.3\",\n \"axios\": \"^1.7.4\"\n }\n}\n","/**\n * Binance Simple Earn REST API\n *\n * OpenAPI Specification for the Binance Simple Earn REST API\n *\n * The version of the OpenAPI document: 1.0.0\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport {\n ConfigurationRestAPI,\n TimeUnit,\n RestApiResponse,\n assertParamExists,\n sendRequest,\n type RequestArgs,\n} from '@binance/common';\nimport type {\n GetBfusdAccountResponse,\n GetBfusdQuotaDetailsResponse,\n GetBfusdRateHistoryResponse,\n GetBfusdRedemptionHistoryResponse,\n GetBfusdRewardsHistoryResponse,\n GetBfusdSubscriptionHistoryResponse,\n RedeemBfusdResponse,\n SubscribeBfusdResponse,\n} from '../types';\n\n/**\n * BfusdApi - axios parameter creator\n */\nconst BfusdApiAxiosParamCreator = function (configuration: ConfigurationRestAPI) {\n return {\n /**\n * Get BFUSD account information.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Account (USER_DATA)\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getBfusdAccount: async (recvWindow?: number | bigint): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/bfusd/account',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get BFUSD quota details including fast redemption quota and standard redemption quota.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Quota Details (USER_DATA)\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getBfusdQuotaDetails: async (recvWindow?: number | bigint): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/bfusd/quota',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get BFUSD rate history sorted by descending order.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Rate History (USER_DATA)\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getBfusdRateHistory: async (\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/bfusd/history/rateHistory',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get BFUSD redemption history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Redemption History (USER_DATA)\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getBfusdRedemptionHistory: async (\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/bfusd/history/redemptionHistory',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get BFUSD rewards history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Rewards History (USER_DATA)\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getBfusdRewardsHistory: async (\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/bfusd/history/rewardsHistory',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get BFUSD subscription history\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time advanced by one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD subscription history(USER_DATA)\n * @param {string} [asset] USDC or USDT\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getBfusdSubscriptionHistory: async (\n asset?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/bfusd/history/subscriptionHistory',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Redeem BFUSD to USDT\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Redeem BFUSD(TRADE)\n * @param {number} amount Amount\n * @param {string} type FAST or STANDARD, defaults to STANDARD\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n redeemBfusd: async (\n amount: number,\n type: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'amount' is not null or undefined\n assertParamExists('redeemBfusd', 'amount', amount);\n // verify required parameter 'type' is not null or undefined\n assertParamExists('redeemBfusd', 'type', type);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n if (type !== undefined && type !== null) {\n localVarQueryParameter['type'] = type;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/bfusd/redeem',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Subscribe BFUSD\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Subscribe BFUSD(TRADE)\n * @param {string} asset USDT or USDC (whichever is eligible)\n * @param {number} amount Amount\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n subscribeBfusd: async (\n asset: string,\n amount: number,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'asset' is not null or undefined\n assertParamExists('subscribeBfusd', 'asset', asset);\n // verify required parameter 'amount' is not null or undefined\n assertParamExists('subscribeBfusd', 'amount', amount);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/bfusd/subscribe',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n };\n};\n\n/**\n * BfusdApi - interface\n * @interface BfusdApi\n */\nexport interface BfusdApiInterface {\n /**\n * Get BFUSD account information.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Account (USER_DATA)\n * @param {GetBfusdAccountRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApiInterface\n */\n getBfusdAccount(\n requestParameters?: GetBfusdAccountRequest\n ): Promise<RestApiResponse<GetBfusdAccountResponse>>;\n /**\n * Get BFUSD quota details including fast redemption quota and standard redemption quota.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Quota Details (USER_DATA)\n * @param {GetBfusdQuotaDetailsRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApiInterface\n */\n getBfusdQuotaDetails(\n requestParameters?: GetBfusdQuotaDetailsRequest\n ): Promise<RestApiResponse<GetBfusdQuotaDetailsResponse>>;\n /**\n * Get BFUSD rate history sorted by descending order.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Rate History (USER_DATA)\n * @param {GetBfusdRateHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApiInterface\n */\n getBfusdRateHistory(\n requestParameters?: GetBfusdRateHistoryRequest\n ): Promise<RestApiResponse<GetBfusdRateHistoryResponse>>;\n /**\n * Get BFUSD redemption history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Redemption History (USER_DATA)\n * @param {GetBfusdRedemptionHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApiInterface\n */\n getBfusdRedemptionHistory(\n requestParameters?: GetBfusdRedemptionHistoryRequest\n ): Promise<RestApiResponse<GetBfusdRedemptionHistoryResponse>>;\n /**\n * Get BFUSD rewards history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Rewards History (USER_DATA)\n * @param {GetBfusdRewardsHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApiInterface\n */\n getBfusdRewardsHistory(\n requestParameters?: GetBfusdRewardsHistoryRequest\n ): Promise<RestApiResponse<GetBfusdRewardsHistoryResponse>>;\n /**\n * Get BFUSD subscription history\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time advanced by one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD subscription history(USER_DATA)\n * @param {GetBfusdSubscriptionHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApiInterface\n */\n getBfusdSubscriptionHistory(\n requestParameters?: GetBfusdSubscriptionHistoryRequest\n ): Promise<RestApiResponse<GetBfusdSubscriptionHistoryResponse>>;\n /**\n * Redeem BFUSD to USDT\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Redeem BFUSD(TRADE)\n * @param {RedeemBfusdRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApiInterface\n */\n redeemBfusd(\n requestParameters: RedeemBfusdRequest\n ): Promise<RestApiResponse<RedeemBfusdResponse>>;\n /**\n * Subscribe BFUSD\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Subscribe BFUSD(TRADE)\n * @param {SubscribeBfusdRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApiInterface\n */\n subscribeBfusd(\n requestParameters: SubscribeBfusdRequest\n ): Promise<RestApiResponse<SubscribeBfusdResponse>>;\n}\n\n/**\n * Request parameters for getBfusdAccount operation in BfusdApi.\n * @interface GetBfusdAccountRequest\n */\nexport interface GetBfusdAccountRequest {\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdAccount\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getBfusdQuotaDetails operation in BfusdApi.\n * @interface GetBfusdQuotaDetailsRequest\n */\nexport interface GetBfusdQuotaDetailsRequest {\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdQuotaDetails\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getBfusdRateHistory operation in BfusdApi.\n * @interface GetBfusdRateHistoryRequest\n */\nexport interface GetBfusdRateHistoryRequest {\n /**\n *\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRateHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRateHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRateHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRateHistory\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRateHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getBfusdRedemptionHistory operation in BfusdApi.\n * @interface GetBfusdRedemptionHistoryRequest\n */\nexport interface GetBfusdRedemptionHistoryRequest {\n /**\n *\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRedemptionHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRedemptionHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRedemptionHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRedemptionHistory\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRedemptionHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getBfusdRewardsHistory operation in BfusdApi.\n * @interface GetBfusdRewardsHistoryRequest\n */\nexport interface GetBfusdRewardsHistoryRequest {\n /**\n *\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRewardsHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRewardsHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRewardsHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRewardsHistory\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRewardsHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getBfusdSubscriptionHistory operation in BfusdApi.\n * @interface GetBfusdSubscriptionHistoryRequest\n */\nexport interface GetBfusdSubscriptionHistoryRequest {\n /**\n * USDC or USDT\n * @type {string}\n * @memberof BfusdApiGetBfusdSubscriptionHistory\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdSubscriptionHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdSubscriptionHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdSubscriptionHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdSubscriptionHistory\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdSubscriptionHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for redeemBfusd operation in BfusdApi.\n * @interface RedeemBfusdRequest\n */\nexport interface RedeemBfusdRequest {\n /**\n * Amount\n * @type {number}\n * @memberof BfusdApiRedeemBfusd\n */\n readonly amount: number;\n\n /**\n * FAST or STANDARD, defaults to STANDARD\n * @type {string}\n * @memberof BfusdApiRedeemBfusd\n */\n readonly type: string;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof BfusdApiRedeemBfusd\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for subscribeBfusd operation in BfusdApi.\n * @interface SubscribeBfusdRequest\n */\nexport interface SubscribeBfusdRequest {\n /**\n * USDT or USDC (whichever is eligible)\n * @type {string}\n * @memberof BfusdApiSubscribeBfusd\n */\n readonly asset: string;\n\n /**\n * Amount\n * @type {number}\n * @memberof BfusdApiSubscribeBfusd\n */\n readonly amount: number;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof BfusdApiSubscribeBfusd\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * BfusdApi - object-oriented interface\n * @class BfusdApi\n */\nexport class BfusdApi implements BfusdApiInterface {\n private readonly configuration: ConfigurationRestAPI;\n private localVarAxiosParamCreator;\n\n constructor(configuration: ConfigurationRestAPI) {\n this.configuration = configuration;\n this.localVarAxiosParamCreator = BfusdApiAxiosParamCreator(configuration);\n }\n\n /**\n * Get BFUSD account information.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Account (USER_DATA)\n * @param {GetBfusdAccountRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetBfusdAccountResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/account/ Binance API Documentation}\n */\n public async getBfusdAccount(\n requestParameters: GetBfusdAccountRequest = {}\n ): Promise<RestApiResponse<GetBfusdAccountResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBfusdAccount(\n requestParameters?.recvWindow\n );\n return sendRequest<GetBfusdAccountResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get BFUSD quota details including fast redemption quota and standard redemption quota.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Quota Details (USER_DATA)\n * @param {GetBfusdQuotaDetailsRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetBfusdQuotaDetailsResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/account/Get-BFUSD-Quota-Details Binance API Documentation}\n */\n public async getBfusdQuotaDetails(\n requestParameters: GetBfusdQuotaDetailsRequest = {}\n ): Promise<RestApiResponse<GetBfusdQuotaDetailsResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBfusdQuotaDetails(\n requestParameters?.recvWindow\n );\n return sendRequest<GetBfusdQuotaDetailsResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get BFUSD rate history sorted by descending order.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Rate History (USER_DATA)\n * @param {GetBfusdRateHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetBfusdRateHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/history/Get-BFUSD-Rate-History Binance API Documentation}\n */\n public async getBfusdRateHistory(\n requestParameters: GetBfusdRateHistoryRequest = {}\n ): Promise<RestApiResponse<GetBfusdRateHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBfusdRateHistory(\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetBfusdRateHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get BFUSD redemption history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Redemption History (USER_DATA)\n * @param {GetBfusdRedemptionHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetBfusdRedemptionHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/history/Get-BFUSD-Redemption-History Binance API Documentation}\n */\n public async getBfusdRedemptionHistory(\n requestParameters: GetBfusdRedemptionHistoryRequest = {}\n ): Promise<RestApiResponse<GetBfusdRedemptionHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBfusdRedemptionHistory(\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetBfusdRedemptionHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get BFUSD rewards history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Rewards History (USER_DATA)\n * @param {GetBfusdRewardsHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetBfusdRewardsHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/history/Get-BFUSD-Rewards-History Binance API Documentation}\n */\n public async getBfusdRewardsHistory(\n requestParameters: GetBfusdRewardsHistoryRequest = {}\n ): Promise<RestApiResponse<GetBfusdRewardsHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBfusdRewardsHistory(\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetBfusdRewardsHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get BFUSD subscription history\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time advanced by one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD subscription history(USER_DATA)\n * @param {GetBfusdSubscriptionHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetBfusdSubscriptionHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/history/Get-BFUSD-subscription-history Binance API Documentation}\n */\n public async getBfusdSubscriptionHistory(\n requestParameters: GetBfusdSubscriptionHistoryRequest = {}\n ): Promise<RestApiResponse<GetBfusdSubscriptionHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBfusdSubscriptionHistory(\n requestParameters?.asset,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetBfusdSubscriptionHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Redeem BFUSD to USDT\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Redeem BFUSD(TRADE)\n * @param {RedeemBfusdRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<RedeemBfusdResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/earn/Redeem-BFUSD Binance API Documentation}\n */\n public async redeemBfusd(\n requestParameters: RedeemBfusdRequest\n ): Promise<RestApiResponse<RedeemBfusdResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.redeemBfusd(\n requestParameters?.amount,\n requestParameters?.type,\n requestParameters?.recvWindow\n );\n return sendRequest<RedeemBfusdResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Subscribe BFUSD\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Subscribe BFUSD(TRADE)\n * @param {SubscribeBfusdRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<SubscribeBfusdResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/earn/Subscribe-BFUSD Binance API Documentation}\n */\n public async subscribeBfusd(\n requestParameters: SubscribeBfusdRequest\n ): Promise<RestApiResponse<SubscribeBfusdResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.subscribeBfusd(\n requestParameters?.asset,\n requestParameters?.amount,\n requestParameters?.recvWindow\n );\n return sendRequest<SubscribeBfusdResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n}\n","/**\n * Binance Simple Earn REST API\n *\n * OpenAPI Specification for the Binance Simple Earn REST API\n *\n * The version of the OpenAPI document: 1.0.0\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport {\n ConfigurationRestAPI,\n TimeUnit,\n RestApiResponse,\n assertParamExists,\n sendRequest,\n type RequestArgs,\n} from '@binance/common';\nimport type {\n GetCollateralRecordResponse,\n GetFlexiblePersonalLeftQuotaResponse,\n GetFlexibleProductPositionResponse,\n GetFlexibleRedemptionRecordResponse,\n GetFlexibleRewardsHistoryResponse,\n GetFlexibleSubscriptionPreviewResponse,\n GetFlexibleSubscriptionRecordResponse,\n GetLockedPersonalLeftQuotaResponse,\n GetLockedProductPositionResponse,\n GetLockedRedemptionRecordResponse,\n GetLockedRewardsHistoryResponse,\n GetLockedSubscriptionPreviewResponse,\n GetLockedSubscriptionRecordResponse,\n GetRateHistoryResponse,\n GetSimpleEarnFlexibleProductListResponse,\n GetSimpleEarnLockedProductListResponse,\n RedeemFlexibleProductResponse,\n RedeemLockedProductResponse,\n SetFlexibleAutoSubscribeResponse,\n SetLockedAutoSubscribeResponse,\n SetLockedProductRedeemOptionResponse,\n SimpleAccountResponse,\n SubscribeFlexibleProductResponse,\n SubscribeLockedProductResponse,\n} from '../types';\n\n/**\n * FlexibleLockedApi - axios parameter creator\n */\nconst FlexibleLockedApiAxiosParamCreator = function (configuration: ConfigurationRestAPI) {\n return {\n /**\n * Get Collateral Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 30 days.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 1\n *\n * @summary Get Collateral Record(USER_DATA)\n * @param {string} [productId]\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getCollateralRecord: async (\n productId?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/flexible/history/collateralRecord',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Flexible Personal Left Quota\n *\n * Weight: 150\n *\n * @summary Get Flexible Personal Left Quota(USER_DATA)\n * @param {string} productId\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getFlexiblePersonalLeftQuota: async (\n productId: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'productId' is not null or undefined\n assertParamExists('getFlexiblePersonalLeftQuota', 'productId', productId);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/flexible/personalLeftQuota',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Flexible Product Position\n *\n * Weight: 150\n *\n * @summary Get Flexible Product Position(USER_DATA)\n * @param {string} [asset] USDC or USDT\n * @param {string} [productId]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getFlexibleProductPosition: async (\n asset?: string,\n productId?: string,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/flexible/position',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Flexible Redemption Record\n *\n *\tThe time between `startTime` and `endTime` cannot be longer than 3 months.\n *\tIf `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n *\tIf `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n *\tIf `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Flexible Redemption Record(USER_DATA)\n * @param {string} [productId]\n * @param {string} [redeemId]\n * @param {string} [asset] USDC or USDT\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getFlexibleRedemptionRecord: async (\n productId?: string,\n redeemId?: string,\n asset?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n if (redeemId !== undefined && redeemId !== null) {\n localVarQueryParameter['redeemId'] = redeemId;\n }\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/flexible/history/redemptionRecord',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Flexible Rewards History\n *\n *\tThe time between `startTime` and `endTime` cannot be longer than 3 months.\n *\tIf `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n *\tIf `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n *\tIf `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Flexible Rewards History(USER_DATA)\n * @param {string} type FAST or STANDARD, defaults to STANDARD\n * @param {string} [productId]\n * @param {string} [asset] USDC or USDT\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getFlexibleRewardsHistory: async (\n type: string,\n productId?: string,\n asset?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'type' is not null or undefined\n assertParamExists('getFlexibleRewardsHistory', 'type', type);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (type !== undefined && type !== null) {\n localVarQueryParameter['type'] = type;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/flexible/history/rewardsRecord',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Flexible Subscription Preview\n *\n * Weight: 150\n *\n * @summary Get Flexible Subscription Preview(USER_DATA)\n * @param {string} productId\n * @param {number} amount Amount\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getFlexibleSubscriptionPreview: async (\n productId: string,\n amount: number,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'productId' is not null or undefined\n assertParamExists('getFlexibleSubscriptionPreview', 'productId', productId);\n // verify required parameter 'amount' is not null or undefined\n assertParamExists('getFlexibleSubscriptionPreview', 'amount', amount);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/flexible/subscriptionPreview',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Flexible Subscription Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Flexible Subscription Record(USER_DATA)\n * @param {string} [productId]\n * @param {string} [purchaseId]\n * @param {string} [asset] USDC or USDT\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getFlexibleSubscriptionRecord: async (\n productId?: string,\n purchaseId?: string,\n asset?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n if (purchaseId !== undefined && purchaseId !== null) {\n localVarQueryParameter['purchaseId'] = purchaseId;\n }\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/flexible/history/subscriptionRecord',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Locked Personal Left Quota\n *\n * Weight: 150\n *\n * @summary Get Locked Personal Left Quota(USER_DATA)\n * @param {string} projectId\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getLockedPersonalLeftQuota: async (\n projectId: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'projectId' is not null or undefined\n assertParamExists('getLockedPersonalLeftQuota', 'projectId', projectId);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (projectId !== undefined && projectId !== null) {\n localVarQueryParameter['projectId'] = projectId;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/locked/personalLeftQuota',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Locked Product Position\n *\n * Weight: 150\n *\n * @summary Get Locked Product Position\n * @param {string} [asset] USDC or USDT\n * @param {number | bigint} [positionId]\n * @param {string} [projectId]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getLockedProductPosition: async (\n asset?: string,\n positionId?: number | bigint,\n projectId?: string,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (positionId !== undefined && positionId !== null) {\n localVarQueryParameter['positionId'] = positionId;\n }\n if (projectId !== undefined && projectId !== null) {\n localVarQueryParameter['projectId'] = projectId;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/locked/position',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Locked Redemption Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Locked Redemption Record(USER_DATA)\n * @param {number | bigint} [positionId]\n * @param {string} [redeemId]\n * @param {string} [asset] USDC or USDT\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getLockedRedemptionRecord: async (\n positionId?: number | bigint,\n redeemId?: string,\n asset?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (positionId !== undefined && positionId !== null) {\n localVarQueryParameter['positionId'] = positionId;\n }\n if (redeemId !== undefined && redeemId !== null) {\n localVarQueryParameter['redeemId'] = redeemId;\n }\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/locked/history/redemptionRecord',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Locked Rewards History\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Locked Rewards History(USER_DATA)\n * @param {number | bigint} [positionId]\n * @param {string} [asset] USDC or USDT\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getLockedRewardsHistory: async (\n positionId?: number | bigint,\n asset?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (positionId !== undefined && positionId !== null) {\n localVarQueryParameter['positionId'] = positionId;\n }\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/locked/history/rewardsRecord',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Locked Subscription Preview\n *\n * Weight: 150\n *\n * @summary Get Locked Subscription Preview(USER_DATA)\n * @param {string} projectId\n * @param {number} amount Amount\n * @param {boolean} [autoSubscribe] true or false, default true.\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getLockedSubscriptionPreview: async (\n projectId: string,\n amount: number,\n autoSubscribe?: boolean,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'projectId' is not null or undefined\n assertParamExists('getLockedSubscriptionPreview', 'projectId', projectId);\n // verify required parameter 'amount' is not null or undefined\n assertParamExists('getLockedSubscriptionPreview', 'amount', amount);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (projectId !== undefined && projectId !== null) {\n localVarQueryParameter['projectId'] = projectId;\n }\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n if (autoSubscribe !== undefined && autoSubscribe !== null) {\n localVarQueryParameter['autoSubscribe'] = autoSubscribe;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/locked/subscriptionPreview',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Locked Subscription Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Locked Subscription Record(USER_DATA)\n * @param {string} [purchaseId]\n * @param {string} [asset] USDC or USDT\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getLockedSubscriptionRecord: async (\n purchaseId?: string,\n asset?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (purchaseId !== undefined && purchaseId !== null) {\n localVarQueryParameter['purchaseId'] = purchaseId;\n }\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/locked/history/subscriptionRecord',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Rate History\n *\n * The time between startTime and endTime cannot be longer than 1 year.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Rate History(USER_DATA)\n * @param {string} productId\n * @param {string} [aprPeriod] \"DAY\",\"YEAR\",default\"DAY\"\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getRateHistory: async (\n productId: string,\n aprPeriod?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'productId' is not null or undefined\n assertParamExists('getRateHistory', 'productId', productId);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n if (aprPeriod !== undefined && aprPeriod !== null) {\n localVarQueryParameter['aprPeriod'] = aprPeriod;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/flexible/history/rateHistory',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get available Simple Earn flexible product list\n *\n * Weight: 150\n *\n * @summary Get Simple Earn Flexible Product List(USER_DATA)\n * @param {string} [asset] USDC or USDT\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getSimpleEarnFlexibleProductList: async (\n asset?: string,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/flexible/list',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Simple Earn Locked Product List\n *\n * Get available Simple Earn locked product list\n *\n * Weight: 150\n *\n * @summary Get Simple Earn Locked Product List(USER_DATA)\n * @param {string} [asset] USDC or USDT\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getSimpleEarnLockedProductList: async (\n asset?: string,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/locked/list',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Redeem Flexible Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1\n *\n * @summary Redeem Flexible Product(TRADE)\n * @param {string} productId\n * @param {boolean} [redeemAll] true or false, default to false\n * @param {number} [amount] if redeemAll is false, amount is mandatory\n * @param {string} [destAccount] `SPOT`,`FUND`, default `SPOT`\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n redeemFlexibleProduct: async (\n productId: string,\n redeemAll?: boolean,\n amount?: number,\n destAccount?: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'productId' is not null or undefined\n assertParamExists('redeemFlexibleProduct', 'productId', productId);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n if (redeemAll !== undefined && redeemAll !== null) {\n localVarQueryParameter['redeemAll'] = redeemAll;\n }\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n if (destAccount !== undefined && destAccount !== null) {\n localVarQueryParameter['destAccount'] = destAccount;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/flexible/redeem',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Redeem Locked Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1/3s per account\n *\n * @summary Redeem Locked Product(TRADE)\n * @param {string} positionId\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n redeemLockedProduct: async (\n positionId: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'positionId' is not null or undefined\n assertParamExists('redeemLockedProduct', 'positionId', positionId);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (positionId !== undefined && positionId !== null) {\n localVarQueryParameter['positionId'] = positionId;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/locked/redeem',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Set Flexible Auto Subscribe\n *\n * Weight: 150\n *\n * @summary Set Flexible Auto Subscribe(USER_DATA)\n * @param {string} productId\n * @param {boolean} autoSubscribe true or false\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n setFlexibleAutoSubscribe: async (\n productId: string,\n autoSubscribe: boolean,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'productId' is not null or undefined\n assertParamExists('setFlexibleAutoSubscribe', 'productId', productId);\n // verify required parameter 'autoSubscribe' is not null or undefined\n assertParamExists('setFlexibleAutoSubscribe', 'autoSubscribe', autoSubscribe);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n if (autoSubscribe !== undefined && autoSubscribe !== null) {\n localVarQueryParameter['autoSubscribe'] = autoSubscribe;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/flexible/setAutoSubscribe',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Set locked auto subscribe\n *\n * Weight: 150\n *\n * @summary Set Locked Auto Subscribe(USER_DATA)\n * @param {string} positionId\n * @param {boolean} autoSubscribe true or false\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n setLockedAutoSubscribe: async (\n positionId: string,\n autoSubscribe: boolean,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'positionId' is not null or undefined\n assertParamExists('setLockedAutoSubscribe', 'positionId', positionId);\n // verify required parameter 'autoSubscribe' is not null or undefined\n assertParamExists('setLockedAutoSubscribe', 'autoSubscribe', autoSubscribe);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (positionId !== undefined && positionId !== null) {\n localVarQueryParameter['positionId'] = positionId;\n }\n if (autoSubscribe !== undefined && autoSubscribe !== null) {\n localVarQueryParameter['autoSubscribe'] = autoSubscribe;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/locked/setAutoSubscribe',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Set redeem option for Locked product\n *\n * Weight: 50\n *\n * @summary Set Locked Product Redeem Option(USER_DATA)\n * @param {string} positionId\n * @param {string} redeemTo `SPOT`,'FLEXIBLE'\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n setLockedProductRedeemOption: async (\n positionId: string,\n redeemTo: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'positionId' is not null or undefined\n assertParamExists('setLockedProductRedeemOption', 'positionId', positionId);\n // verify required parameter 'redeemTo' is not null or undefined\n assertParamExists('setLockedProductRedeemOption', 'redeemTo', redeemTo);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (positionId !== undefined && positionId !== null) {\n localVarQueryParameter['positionId'] = positionId;\n }\n if (redeemTo !== undefined && redeemTo !== null) {\n localVarQueryParameter['redeemTo'] = redeemTo;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/locked/setRedeemOption',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Simple Account query\n *\n * Weight: 150\n *\n * @summary Simple Account(USER_DATA)\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n simpleAccount: async (recvWindow?: number | bigint): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/account',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Subscribe Flexible Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1\n *\n * @summary Subscribe Flexible Product(TRADE)\n * @param {string} productId\n * @param {number} amount Amount\n * @param {boolean} [autoSubscribe] true or false, default true.\n * @param {string} [sourceAccount] `SPOT`,`FUND`,`ALL`, default `SPOT`\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n subscribeFlexibleProduct: async (\n productId: string,\n amount: number,\n autoSubscribe?: boolean,\n sourceAccount?: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'productId' is not null or undefined\n assertParamExists('subscribeFlexibleProduct', 'productId', productId);\n // verify required parameter 'amount' is not null or undefined\n assertParamExists('subscribeFlexibleProduct', 'amount', amount);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n if (autoSubscribe !== undefined && autoSubscribe !== null) {\n localVarQueryParameter['autoSubscribe'] = autoSubscribe;\n }\n if (sourceAccount !== undefined && sourceAccount !== null) {\n localVarQueryParameter['sourceAccount'] = sourceAccount;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/flexible/subscribe',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Subscribe Locked Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1\n *\n * @summary Subscribe Locked Product(TRADE)\n * @param {string} projectId\n * @param {number} amount Amount\n * @param {boolean} [autoSubscribe] true or false, default true.\n * @param {string} [sourceAccount] `SPOT`,`FUND`,`ALL`, default `SPOT`\n * @param {string} [redeemTo] `SPOT`,`FLEXIBLE`, default `SPOT`\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n subscribeLockedProduct: async (\n projectId: string,\n amount: number,\n autoSubscribe?: boolean,\n sourceAccount?: string,\n redeemTo?: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'projectId' is not null or undefined\n assertParamExists('subscribeLockedProduct', 'projectId', projectId);\n // verify required parameter 'amount' is not null or undefined\n assertParamExists('subscribeLockedProduct', 'amount', amount);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (projectId !== undefined && projectId !== null) {\n localVarQueryParameter['projectId'] = projectId;\n }\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n if (autoSubscribe !== undefined && autoSubscribe !== null) {\n localVarQueryParameter['autoSubscribe'] = autoSubscribe;\n }\n if (sourceAccount !== undefined && sourceAccount !== null) {\n localVarQueryParameter['sourceAccount'] = sourceAccount;\n }\n if (redeemTo !== undefined && redeemTo !== null) {\n localVarQueryParameter['redeemTo'] = redeemTo;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/locked/subscribe',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n };\n};\n\n/**\n * FlexibleLockedApi - interface\n * @interface FlexibleLockedApi\n */\nexport interface FlexibleLockedApiInterface {\n /**\n * Get Collateral Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 30 days.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 1\n *\n * @summary Get Collateral Record(USER_DATA)\n * @param {GetCollateralRecordRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getCollateralRecord(\n requestParameters?: GetCollateralRecordRequest\n ): Promise<RestApiResponse<GetCollateralRecordResponse>>;\n /**\n * Get Flexible Personal Left Quota\n *\n * Weight: 150\n *\n * @summary Get Flexible Personal Left Quota(USER_DATA)\n * @param {GetFlexiblePersonalLeftQuotaRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getFlexiblePersonalLeftQuota(\n requestParameters: GetFlexiblePersonalLeftQuotaRequest\n ): Promise<RestApiResponse<GetFlexiblePersonalLeftQuotaResponse>>;\n /**\n * Get Flexible Product Position\n *\n * Weight: 150\n *\n * @summary Get Flexible Product Position(USER_DATA)\n * @param {GetFlexibleProductPositionRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getFlexibleProductPosition(\n requestParameters?: GetFlexibleProductPositionRequest\n ): Promise<RestApiResponse<GetFlexibleProductPositionResponse>>;\n /**\n * Get Flexible Redemption Record\n *\n *\tThe time between `startTime` and `endTime` cannot be longer than 3 months.\n *\tIf `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n *\tIf `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n *\tIf `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Flexible Redemption Record(USER_DATA)\n * @param {GetFlexibleRedemptionRecordRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getFlexibleRedemptionRecord(\n requestParameters?: GetFlexibleRedemptionRecordRequest\n ): Promise<RestApiResponse<GetFlexibleRedemptionRecordResponse>>;\n /**\n * Get Flexible Rewards History\n *\n *\tThe time between `startTime` and `endTime` cannot be longer than 3 months.\n *\tIf `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n *\tIf `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n *\tIf `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Flexible Rewards History(USER_DATA)\n * @param {GetFlexibleRewardsHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getFlexibleRewardsHistory(\n requestParameters: GetFlexibleRewardsHistoryRequest\n ): Promise<RestApiResponse<GetFlexibleRewardsHistoryResponse>>;\n /**\n * Get Flexible Subscription Preview\n *\n * Weight: 150\n *\n * @summary Get Flexible Subscription Preview(USER_DATA)\n * @param {GetFlexibleSubscriptionPreviewRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getFlexibleSubscriptionPreview(\n requestParameters: GetFlexibleSubscriptionPreviewRequest\n ): Promise<RestApiResponse<GetFlexibleSubscriptionPreviewResponse>>;\n /**\n * Get Flexible Subscription Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Flexible Subscription Record(USER_DATA)\n * @param {GetFlexibleSubscriptionRecordRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getFlexibleSubscriptionRecord(\n requestParameters?: GetFlexibleSubscriptionRecordRequest\n ): Promise<RestApiResponse<GetFlexibleSubscriptionRecordResponse>>;\n /**\n * Get Locked Personal Left Quota\n *\n * Weight: 150\n *\n * @summary Get Locked Personal Left Quota(USER_DATA)\n * @param {GetLockedPersonalLeftQuotaRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getLockedPersonalLeftQuota(\n requestParameters: GetLockedPersonalLeftQuotaRequest\n ): Promise<RestApiResponse<GetLockedPersonalLeftQuotaResponse>>;\n /**\n * Get Locked Product Position\n *\n * Weight: 150\n *\n * @summary Get Locked Product Position\n * @param {GetLockedProductPositionRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getLockedProductPosition(\n requestParameters?: GetLockedProductPositionRequest\n ): Promise<RestApiResponse<GetLockedProductPositionResponse>>;\n /**\n * Get Locked Redemption Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Locked Redemption Record(USER_DATA)\n * @param {GetLockedRedemptionRecordRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getLockedRedemptionRecord(\n requestParameters?: GetLockedRedemptionRecordRequest\n ): Promise<RestApiResponse<GetLockedRedemptionRecordResponse>>;\n /**\n * Get Locked Rewards History\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Locked Rewards History(USER_DATA)\n * @param {GetLockedRewardsHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getLockedRewardsHistory(\n requestParameters?: GetLockedRewardsHistoryRequest\n ): Promise<RestApiResponse<GetLockedRewardsHistoryResponse>>;\n /**\n * Get Locked Subscription Preview\n *\n * Weight: 150\n *\n * @summary Get Locked Subscription Preview(USER_DATA)\n * @param {GetLockedSubscriptionPreviewRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getLockedSubscriptionPreview(\n requestParameters: GetLockedSubscriptionPreviewRequest\n ): Promise<RestApiResponse<GetLockedSubscriptionPreviewResponse>>;\n /**\n * Get Locked Subscription Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Locked Subscription Record(USER_DATA)\n * @param {GetLockedSubscriptionRecordRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getLockedSubscriptionRecord(\n requestParameters?: GetLockedSubscriptionRecordRequest\n ): Promise<RestApiResponse<GetLockedSubscriptionRecordResponse>>;\n /**\n * Get Rate History\n *\n * The time between startTime and endTime cannot be longer than 1 year.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Rate History(USER_DATA)\n * @param {GetRateHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getRateHistory(\n requestParameters: GetRateHistoryRequest\n ): Promise<RestApiResponse<GetRateHistoryResponse>>;\n /**\n * Get available Simple Earn flexible product list\n *\n * Weight: 150\n *\n * @summary Get Simple Earn Flexible Product List(USER_DATA)\n * @param {GetSimpleEarnFlexibleProductListRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getSimpleEarnFlexibleProductList(\n requestParameters?: GetSimpleEarnFlexibleProductListRequest\n ): Promise<RestApiResponse<GetSimpleEarnFlexibleProductListResponse>>;\n /**\n * Get Simple Earn Locked Product List\n *\n * Get available Simple Earn locked product list\n *\n * Weight: 150\n *\n * @summary Get Simple Earn Locked Product List(USER_DATA)\n * @param {GetSimpleEarnLockedProductListRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getSimpleEarnLockedProductList(\n requestParameters?: GetSimpleEarnLockedProductListRequest\n ): Promise<RestApiResponse<GetSimpleEarnLockedProductListResponse>>;\n /**\n * Redeem Flexible Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1\n *\n * @summary Redeem Flexible Product(TRADE)\n * @param {RedeemFlexibleProductRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n redeemFlexibleProduct(\n requestParameters: RedeemFlexibleProductRequest\n ): Promise<RestApiResponse<RedeemFlexibleProductResponse>>;\n /**\n * Redeem Locked Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1/3s per account\n *\n * @summary Redeem Locked Product(TRADE)\n * @param {RedeemLockedProductRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n redeemLockedProduct(\n requestParameters: RedeemLockedProductRequest\n ): Promise<RestApiResponse<RedeemLockedProductResponse>>;\n /**\n * Set Flexible Auto Subscribe\n *\n * Weight: 150\n *\n * @summary Set Flexible Auto Subscribe(USER_DATA)\n * @param {SetFlexibleAutoSubscribeRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n setFlexibleAutoSubscribe(\n requestParameters: SetFlexibleAutoSubscribeRequest\n ): Promise<RestApiResponse<SetFlexibleAutoSubscribeResponse>>;\n /**\n * Set locked auto subscribe\n *\n * Weight: 150\n *\n * @summary Set Locked Auto Subscribe(USER_DATA)\n * @param {SetLockedAutoSubscribeRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n setLockedAutoSubscribe(\n requestParameters: SetLockedAutoSubscribeRequest\n ): Promise<RestApiResponse<SetLockedAutoSubscribeResponse>>;\n /**\n * Set redeem option for Locked product\n *\n * Weight: 50\n *\n * @summary Set Locked Product Redeem Option(USER_DATA)\n * @param {SetLockedProductRedeemOptionRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n setLockedProductRedeemOption(\n requestParameters: SetLockedProductRedeemOptionRequest\n ): Promise<RestApiResponse<SetLockedProductRedeemOptionResponse>>;\n /**\n * Simple Account query\n *\n * Weight: 150\n *\n * @summary Simple Account(USER_DATA)\n * @param {SimpleAccountRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n simpleAccount(\n requestParameters?: SimpleAccountRequest\n ): Promise<RestApiResponse<SimpleAccountResponse>>;\n /**\n * Subscribe Flexible Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1\n *\n * @summary Subscribe Flexible Product(TRADE)\n * @param {SubscribeFlexibleProductRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n subscribeFlexibleProduct(\n requestParameters: SubscribeFlexibleProductRequest\n ): Promise<RestApiResponse<SubscribeFlexibleProductResponse>>;\n /**\n * Subscribe Locked Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1\n *\n * @summary Subscribe Locked Product(TRADE)\n * @param {SubscribeLockedProductRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n subscribeLockedProduct(\n requestParameters: SubscribeLockedProductRequest\n ): Promise<RestApiResponse<SubscribeLockedProductResponse>>;\n}\n\n/**\n * Request parameters for getCollateralRecord operation in FlexibleLockedApi.\n * @interface GetCollateralRecordRequest\n */\nexport interface GetCollateralRecordRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetCollateralRecord\n */\n readonly productId?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetCollateralRecord\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetCollateralRecord\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetCollateralRecord\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetCollateralRecord\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetCollateralRecord\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexiblePersonalLeftQuota operation in FlexibleLockedApi.\n * @interface GetFlexiblePersonalLeftQuotaRequest\n */\nexport interface GetFlexiblePersonalLeftQuotaRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexiblePersonalLeftQuota\n */\n readonly productId: string;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexiblePersonalLeftQuota\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleProductPosition operation in FlexibleLockedApi.\n * @interface GetFlexibleProductPositionRequest\n */\nexport interface GetFlexibleProductPositionRequest {\n /**\n * USDC or USDT\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexibleProductPosition\n */\n readonly asset?: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexibleProductPosition\n */\n readonly productId?: string;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleProductPosition\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleProductPosition\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleProductPosition\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleRedemptionRecord operation in FlexibleLockedApi.\n * @interface GetFlexibleRedemptionRecordRequest\n */\nexport interface GetFlexibleRedemptionRecordRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexibleRedemptionRecord\n */\n readonly productId?: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexibleRedemptionRecord\n */\n readonly redeemId?: string;\n\n /**\n * USDC or USDT\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexibleRedemptionRecord\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleRedemptionRecord\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleRedemptionRecord\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleRedemptionRecord\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleRedemptionRecord\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleRedemptionRecord\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleRewardsHistory operation in FlexibleLockedApi.\n * @interface GetFlexibleRewardsHistoryRequest\n */\nexport interface GetFlexibleRewardsHistoryRequest {\n /**\n * FAST or STANDARD, defaults to STANDARD\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexibleRewardsHistory\n */\n readonly type: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexibleRewardsHistory\n */\n readonly productId?: string;\n\n /**\n * USDC or USDT\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexibleRewardsHistory\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleRewardsHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleRewardsHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleRewardsHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleRewardsHistory\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleRewardsHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleSubscriptionPreview operation in FlexibleLockedApi.\n * @interface GetFlexibleSubscriptionPreviewRequest\n */\nexport interface GetFlexibleSubscriptionPreviewRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionPreview\n */\n readonly productId: string;\n\n /**\n * Amount\n * @type {number}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionPreview\n */\n readonly amount: number;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionPreview\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleSubscriptionRecord operation in FlexibleLockedApi.\n * @interface GetFlexibleSubscriptionRecordRequest\n */\nexport interface GetFlexibleSubscriptionRecordRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionRecord\n */\n readonly productId?: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionRecord\n */\n readonly purchaseId?: string;\n\n /**\n * USDC or USDT\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionRecord\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionRecord\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionRecord\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionRecord\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionRecord\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionRecord\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getLockedPersonalLeftQuota operation in FlexibleLockedApi.\n * @interface GetLockedPersonalLeftQuotaRequest\n */\nexport interface GetLockedPersonalLeftQuotaRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetLockedPersonalLeftQuota\n */\n readonly projectId: string;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedPersonalLeftQuota\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getLockedProductPosition operation in FlexibleLockedApi.\n * @interface GetLockedProductPositionRequest\n */\nexport interface GetLockedProductPositionRequest {\n /**\n * USDC or USDT\n * @type {string}\n * @memberof FlexibleLockedApiGetLockedProductPosition\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedProductPosition\n */\n readonly positionId?: number | bigint;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetLockedProductPosition\n */\n readonly projectId?: string;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedProductPosition\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedProductPosition\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedProductPosition\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getLockedRedemptionRecord operation in FlexibleLockedApi.\n * @interface GetLockedRedemptionRecordRequest\n */\nexport interface GetLockedRedemptionRecordRequest {\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedRedemptionRecord\n */\n readonly positionId?: number | bigint;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetLockedRedemptionRecord\n */\n readonly redeemId?: string;\n\n /**\n * USDC or USDT\n * @type {string}\n * @memberof FlexibleLockedApiGetLockedRedemptionRecord\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedRedemptionRecord\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedRedemptionRecord\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedRedemptionRecord\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedRedemptionRecord\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedRedemptionRecord\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getLockedRewardsHistory operation in FlexibleLockedApi.\n * @interface GetLockedRewardsHistoryRequest\n */\nexport interface GetLockedRewardsHistoryRequest {\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedRewardsHistory\n */\n readonly positionId?: number | bigint;\n\n /**\n * USDC or USDT\n * @type {string}\n * @memberof FlexibleLockedApiGetLockedRewardsHistory\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedRewardsHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedRewardsHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedRewardsHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedRewardsHistory\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedRewardsHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getLockedSubscriptionPreview operation in FlexibleLockedApi.\n * @interface GetLockedSubscriptionPreviewRequest\n */\nexport interface GetLockedSubscriptionPreviewRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetLockedSubscriptionPreview\n */\n readonly projectId: string;\n\n /**\n * Amount\n * @type {number}\n * @memberof FlexibleLockedApiGetLockedSubscriptionPreview\n */\n readonly amount: number;\n\n /**\n * true or false, default true.\n * @type {boolean}\n * @memberof FlexibleLockedApiGetLockedSubscriptionPreview\n */\n readonly autoSubscribe?: boolean;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedSubscriptionPreview\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getLockedSubscriptionRecord operation in FlexibleLockedApi.\n * @interface GetLockedSubscriptionRecordRequest\n */\nexport interface GetLockedSubscriptionRecordRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetLockedSubscriptionRecord\n */\n readonly purchaseId?: string;\n\n /**\n * USDC or USDT\n * @type {string}\n * @memberof FlexibleLockedApiGetLockedSubscriptionRecord\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedSubscriptionRecord\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedSubscriptionRecord\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedSubscriptionRecord\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedSubscriptionRecord\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedSubscriptionRecord\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getRateHistory operation in FlexibleLockedApi.\n * @interface GetRateHistoryRequest\n */\nexport interface GetRateHistoryRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetRateHistory\n */\n readonly productId: string;\n\n /**\n * \"DAY\",\"YEAR\",default\"DAY\"\n * @type {string}\n * @memberof FlexibleLockedApiGetRateHistory\n */\n readonly aprPeriod?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetRateHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetRateHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetRateHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetRateHistory\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetRateHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getSimpleEarnFlexibleProductList operation in FlexibleLockedApi.\n * @interface GetSimpleEarnFlexibleProductListRequest\n */\nexport interface GetSimpleEarnFlexibleProductListRequest {\n /**\n * USDC or USDT\n * @type {string}\n * @memberof FlexibleLockedApiGetSimpleEarnFlexibleProductList\n */\n readonly asset?: string;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetSimpleEarnFlexibleProductList\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetSimpleEarnFlexibleProductList\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetSimpleEarnFlexibleProductList\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getSimpleEarnLockedProductList operation in FlexibleLockedApi.\n * @interface GetSimpleEarnLockedProductListRequest\n */\nexport interface GetSimpleEarnLockedProductListRequest {\n /**\n * USDC or USDT\n * @type {string}\n * @memberof FlexibleLockedApiGetSimpleEarnLockedProductList\n */\n readonly asset?: string;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetSimpleEarnLockedProductList\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetSimpleEarnLockedProductList\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetSimpleEarnLockedProductList\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for redeemFlexibleProduct operation in FlexibleLockedApi.\n * @interface RedeemFlexibleProductRequest\n */\nexport interface RedeemFlexibleProductRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiRedeemFlexibleProduct\n */\n readonly productId: string;\n\n /**\n * true or false, default to false\n * @type {boolean}\n * @memberof FlexibleLockedApiRedeemFlexibleProduct\n */\n readonly redeemAll?: boolean;\n\n /**\n * if redeemAll is false, amount is mandatory\n * @type {number}\n * @memberof FlexibleLockedApiRedeemFlexibleProduct\n */\n readonly amount?: number;\n\n /**\n * `SPOT`,`FUND`, default `SPOT`\n * @type {string}\n * @memberof FlexibleLockedApiRedeemFlexibleProduct\n */\n readonly destAccount?: string;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiRedeemFlexibleProduct\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for redeemLockedProduct operation in FlexibleLockedApi.\n * @interface RedeemLockedProductRequest\n */\nexport interface RedeemLockedProductRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiRedeemLockedProduct\n */\n readonly positionId: string;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiRedeemLockedProduct\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for setFlexibleAutoSubscribe operation in FlexibleLockedApi.\n * @interface SetFlexibleAutoSubscribeRequest\n */\nexport interface SetFlexibleAutoSubscribeRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiSetFlexibleAutoSubscribe\n */\n readonly productId: string;\n\n /**\n * true or false\n * @type {boolean}\n * @memberof FlexibleLockedApiSetFlexibleAutoSubscribe\n */\n readonly autoSubscribe: boolean;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiSetFlexibleAutoSubscribe\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for setLockedAutoSubscribe operation in FlexibleLockedApi.\n * @interface SetLockedAutoSubscribeRequest\n */\nexport interface SetLockedAutoSubscribeRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiSetLockedAutoSubscribe\n */\n readonly positionId: string;\n\n /**\n * true or false\n * @type {boolean}\n * @memberof FlexibleLockedApiSetLockedAutoSubscribe\n */\n readonly autoSubscribe: boolean;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiSetLockedAutoSubscribe\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for setLockedProductRedeemOption operation in FlexibleLockedApi.\n * @interface SetLockedProductRedeemOptionRequest\n */\nexport interface SetLockedProductRedeemOptionRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiSetLockedProductRedeemOption\n */\n readonly positionId: string;\n\n /**\n * `SPOT`,'FLEXIBLE'\n * @type {string}\n * @memberof FlexibleLockedApiSetLockedProductRedeemOption\n */\n readonly redeemTo: string;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiSetLockedProductRedeemOption\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for simpleAccount operation in FlexibleLockedApi.\n * @interface SimpleAccountRequest\n */\nexport interface SimpleAccountRequest {\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiSimpleAccount\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for subscribeFlexibleProduct operation in FlexibleLockedApi.\n * @interface SubscribeFlexibleProductRequest\n */\nexport interface SubscribeFlexibleProductRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiSubscribeFlexibleProduct\n */\n readonly productId: string;\n\n /**\n * Amount\n * @type {number}\n * @memberof FlexibleLockedApiSubscribeFlexibleProduct\n */\n readonly amount: number;\n\n /**\n * true or false, default true.\n * @type {boolean}\n * @memberof FlexibleLockedApiSubscribeFlexibleProduct\n */\n readonly autoSubscribe?: boolean;\n\n /**\n * `SPOT`,`FUND`,`ALL`, default `SPOT`\n * @type {string}\n * @memberof FlexibleLockedApiSubscribeFlexibleProduct\n */\n readonly sourceAccount?: string;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiSubscribeFlexibleProduct\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for subscribeLockedProduct operation in FlexibleLockedApi.\n * @interface SubscribeLockedProductRequest\n */\nexport interface SubscribeLockedProductRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiSubscribeLockedProduct\n */\n readonly projectId: string;\n\n /**\n * Amount\n * @type {number}\n * @memberof FlexibleLockedApiSubscribeLockedProduct\n */\n readonly amount: number;\n\n /**\n * true or false, default true.\n * @type {boolean}\n * @memberof FlexibleLockedApiSubscribeLockedProduct\n */\n readonly autoSubscribe?: boolean;\n\n /**\n * `SPOT`,`FUND`,`ALL`, default `SPOT`\n * @type {string}\n * @memberof FlexibleLockedApiSubscribeLockedProduct\n */\n readonly sourceAccount?: string;\n\n /**\n * `SPOT`,`FLEXIBLE`, default `SPOT`\n * @type {string}\n * @memberof FlexibleLockedApiSubscribeLockedProduct\n */\n readonly redeemTo?: string;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiSubscribeLockedProduct\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * FlexibleLockedApi - object-oriented interface\n * @class FlexibleLockedApi\n */\nexport class FlexibleLockedApi implements FlexibleLockedApiInterface {\n private readonly configuration: ConfigurationRestAPI;\n private localVarAxiosParamCreator;\n\n constructor(configuration: ConfigurationRestAPI) {\n this.configuration = configuration;\n this.localVarAxiosParamCreator = FlexibleLockedApiAxiosParamCreator(configuration);\n }\n\n /**\n * Get Collateral Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 30 days.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 1\n *\n * @summary Get Collateral Record(USER_DATA)\n * @param {GetCollateralRecordRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetCollateralRecordResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Collateral-Record Binance API Documentation}\n */\n public async getCollateralRecord(\n requestParameters: GetCollateralRecordRequest = {}\n ): Promise<RestApiResponse<GetCollateralRecordResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCollateralRecord(\n requestParameters?.productId,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetCollateralRecordResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Flexible Personal Left Quota\n *\n * Weight: 150\n *\n * @summary Get Flexible Personal Left Quota(USER_DATA)\n * @param {GetFlexiblePersonalLeftQuotaRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexiblePersonalLeftQuotaResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Flexible-Personal-Left-Quota Binance API Documentation}\n */\n public async getFlexiblePersonalLeftQuota(\n requestParameters: GetFlexiblePersonalLeftQuotaRequest\n ): Promise<RestApiResponse<GetFlexiblePersonalLeftQuotaResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexiblePersonalLeftQuota(\n requestParameters?.productId,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexiblePersonalLeftQuotaResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Flexible Product Position\n *\n * Weight: 150\n *\n * @summary Get Flexible Product Position(USER_DATA)\n * @param {GetFlexibleProductPositionRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleProductPositionResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Flexible-Product-Position Binance API Documentation}\n */\n public async getFlexibleProductPosition(\n requestParameters: GetFlexibleProductPositionRequest = {}\n ): Promise<RestApiResponse<GetFlexibleProductPositionResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleProductPosition(\n requestParameters?.asset,\n requestParameters?.productId,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexibleProductPositionResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Flexible Redemption Record\n *\n *\tThe time between `startTime` and `endTime` cannot be longer than 3 months.\n *\tIf `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n *\tIf `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n *\tIf `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Flexible Redemption Record(USER_DATA)\n * @param {GetFlexibleRedemptionRecordRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleRedemptionRecordResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Flexible-Redemption-Record Binance API Documentation}\n */\n public async getFlexibleRedemptionRecord(\n requestParameters: GetFlexibleRedemptionRecordRequest = {}\n ): Promise<RestApiResponse<GetFlexibleRedemptionRecordResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleRedemptionRecord(\n requestParameters?.productId,\n requestParameters?.redeemId,\n requestParameters?.asset,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexibleRedemptionRecordResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Flexible Rewards History\n *\n *\tThe time between `startTime` and `endTime` cannot be longer than 3 months.\n *\tIf `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n *\tIf `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n *\tIf `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Flexible Rewards History(USER_DATA)\n * @param {GetFlexibleRewardsHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleRewardsHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Flexible-Rewards-History Binance API Documentation}\n */\n public async getFlexibleRewardsHistory(\n requestParameters: GetFlexibleRewardsHistoryRequest\n ): Promise<RestApiResponse<GetFlexibleRewardsHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleRewardsHistory(\n requestParameters?.type,\n requestParameters?.productId,\n requestParameters?.asset,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexibleRewardsHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Flexible Subscription Preview\n *\n * Weight: 150\n *\n * @summary Get Flexible Subscription Preview(USER_DATA)\n * @param {GetFlexibleSubscriptionPreviewRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleSubscriptionPreviewResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Get-Flexible-Subscription-Preview Binance API Documentation}\n */\n public async getFlexibleSubscriptionPreview(\n requestParameters: GetFlexibleSubscriptionPreviewRequest\n ): Promise<RestApiResponse<GetFlexibleSubscriptionPreviewResponse>> {\n const localVarAxiosArgs =\n await this.localVarAxiosParamCreator.getFlexibleSubscriptionPreview(\n requestParameters?.productId,\n requestParameters?.amount,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexibleSubscriptionPreviewResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Flexible Subscription Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Flexible Subscription Record(USER_DATA)\n * @param {GetFlexibleSubscriptionRecordRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleSubscriptionRecordResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Flexible-Subscription-Record Binance API Documentation}\n */\n public async getFlexibleSubscriptionRecord(\n requestParameters: GetFlexibleSubscriptionRecordRequest = {}\n ): Promise<RestApiResponse<GetFlexibleSubscriptionRecordResponse>> {\n const localVarAxiosArgs =\n await this.localVarAxiosParamCreator.getFlexibleSubscriptionRecord(\n requestParameters?.productId,\n requestParameters?.purchaseId,\n requestParameters?.asset,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexibleSubscriptionRecordResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Locked Personal Left Quota\n *\n * Weight: 150\n *\n * @summary Get Locked Personal Left Quota(USER_DATA)\n * @param {GetLockedPersonalLeftQuotaRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetLockedPersonalLeftQuotaResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Locked-Personal-Left-Quota Binance API Documentation}\n */\n public async getLockedPersonalLeftQuota(\n requestParameters: GetLockedPersonalLeftQuotaRequest\n ): Promise<RestApiResponse<GetLockedPersonalLeftQuotaResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedPersonalLeftQuota(\n requestParameters?.projectId,\n requestParameters?.recvWindow\n );\n return sendRequest<GetLockedPersonalLeftQuotaResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Locked Product Position\n *\n * Weight: 150\n *\n * @summary Get Locked Product Position\n * @param {GetLockedProductPositionRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetLockedProductPositionResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Locked-Product-Position Binance API Documentation}\n */\n public async getLockedProductPosition(\n requestParameters: GetLockedProductPositionRequest = {}\n ): Promise<RestApiResponse<GetLockedProductPositionResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedProductPosition(\n requestParameters?.asset,\n requestParameters?.positionId,\n requestParameters?.projectId,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetLockedProductPositionResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Locked Redemption Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Locked Redemption Record(USER_DATA)\n * @param {GetLockedRedemptionRecordRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetLockedRedemptionRecordResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Locked-Redemption-Record Binance API Documentation}\n */\n public async getLockedRedemptionRecord(\n requestParameters: GetLockedRedemptionRecordRequest = {}\n ): Promise<RestApiResponse<GetLockedRedemptionRecordResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedRedemptionRecord(\n requestParameters?.positionId,\n requestParameters?.redeemId,\n requestParameters?.asset,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetLockedRedemptionRecordResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Locked Rewards History\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Locked Rewards History(USER_DATA)\n * @param {GetLockedRewardsHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetLockedRewardsHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Locked-Rewards-History Binance API Documentation}\n */\n public async getLockedRewardsHistory(\n requestParameters: GetLockedRewardsHistoryRequest = {}\n ): Promise<RestApiResponse<GetLockedRewardsHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedRewardsHistory(\n requestParameters?.positionId,\n requestParameters?.asset,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetLockedRewardsHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Locked Subscription Preview\n *\n * Weight: 150\n *\n * @summary Get Locked Subscription Preview(USER_DATA)\n * @param {GetLockedSubscriptionPreviewRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetLockedSubscriptionPreviewResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Get-Locked-Subscription-Preview Binance API Documentation}\n */\n public async getLockedSubscriptionPreview(\n requestParameters: GetLockedSubscriptionPreviewRequest\n ): Promise<RestApiResponse<GetLockedSubscriptionPreviewResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedSubscriptionPreview(\n requestParameters?.projectId,\n requestParameters?.amount,\n requestParameters?.autoSubscribe,\n requestParameters?.recvWindow\n );\n return sendRequest<GetLockedSubscriptionPreviewResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Locked Subscription Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Locked Subscription Record(USER_DATA)\n * @param {GetLockedSubscriptionRecordRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetLockedSubscriptionRecordResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Locked-Subscription-Record Binance API Documentation}\n */\n public async getLockedSubscriptionRecord(\n requestParameters: GetLockedSubscriptionRecordRequest = {}\n ): Promise<RestApiResponse<GetLockedSubscriptionRecordResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedSubscriptionRecord(\n requestParameters?.purchaseId,\n requestParameters?.asset,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetLockedSubscriptionRecordResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Rate History\n *\n * The time between startTime and endTime cannot be longer than 1 year.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Rate History(USER_DATA)\n * @param {GetRateHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetRateHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Rate-History Binance API Documentation}\n */\n public async getRateHistory(\n requestParameters: GetRateHistoryRequest\n ): Promise<RestApiResponse<GetRateHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRateHistory(\n requestParameters?.productId,\n requestParameters?.aprPeriod,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetRateHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get available Simple Earn flexible product list\n *\n * Weight: 150\n *\n * @summary Get Simple Earn Flexible Product List(USER_DATA)\n * @param {GetSimpleEarnFlexibleProductListRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetSimpleEarnFlexibleProductListResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Simple-Earn-Flexible-Product-List Binance API Documentation}\n */\n public async getSimpleEarnFlexibleProductList(\n requestParameters: GetSimpleEarnFlexibleProductListRequest = {}\n ): Promise<RestApiResponse<GetSimpleEarnFlexibleProductListResponse>> {\n const localVarAxiosArgs =\n await this.localVarAxiosParamCreator.getSimpleEarnFlexibleProductList(\n requestParameters?.asset,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetSimpleEarnFlexibleProductListResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Simple Earn Locked Product List\n *\n * Get available Simple Earn locked product list\n *\n * Weight: 150\n *\n * @summary Get Simple Earn Locked Product List(USER_DATA)\n * @param {GetSimpleEarnLockedProductListRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetSimpleEarnLockedProductListResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Simple-Earn-Locked-Product-List Binance API Documentation}\n */\n public async getSimpleEarnLockedProductList(\n requestParameters: GetSimpleEarnLockedProductListRequest = {}\n ): Promise<RestApiResponse<GetSimpleEarnLockedProductListResponse>> {\n const localVarAxiosArgs =\n await this.localVarAxiosParamCreator.getSimpleEarnLockedProductList(\n requestParameters?.asset,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetSimpleEarnLockedProductListResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Redeem Flexible Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1\n *\n * @summary Redeem Flexible Product(TRADE)\n * @param {RedeemFlexibleProductRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<RedeemFlexibleProductResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Redeem-Flexible-Product Binance API Documentation}\n */\n public async redeemFlexibleProduct(\n requestParameters: RedeemFlexibleProductRequest\n ): Promise<RestApiResponse<RedeemFlexibleProductResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.redeemFlexibleProduct(\n requestParameters?.productId,\n requestParameters?.redeemAll,\n requestParameters?.amount,\n requestParameters?.destAccount,\n requestParameters?.recvWindow\n );\n return sendRequest<RedeemFlexibleProductResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Redeem Locked Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1/3s per account\n *\n * @summary Redeem Locked Product(TRADE)\n * @param {RedeemLockedProductRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<RedeemLockedProductResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Redeem-Locked-Product Binance API Documentation}\n */\n public async redeemLockedProduct(\n requestParameters: RedeemLockedProductRequest\n ): Promise<RestApiResponse<RedeemLockedProductResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.redeemLockedProduct(\n requestParameters?.positionId,\n requestParameters?.recvWindow\n );\n return sendRequest<RedeemLockedProductResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Set Flexible Auto Subscribe\n *\n * Weight: 150\n *\n * @summary Set Flexible Auto Subscribe(USER_DATA)\n * @param {SetFlexibleAutoSubscribeRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<SetFlexibleAutoSubscribeResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Set-Flexible-Auto-Subscribe Binance API Documentation}\n */\n public async setFlexibleAutoSubscribe(\n requestParameters: SetFlexibleAutoSubscribeRequest\n ): Promise<RestApiResponse<SetFlexibleAutoSubscribeResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.setFlexibleAutoSubscribe(\n requestParameters?.productId,\n requestParameters?.autoSubscribe,\n requestParameters?.recvWindow\n );\n return sendRequest<SetFlexibleAutoSubscribeResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Set locked auto subscribe\n *\n * Weight: 150\n *\n * @summary Set Locked Auto Subscribe(USER_DATA)\n * @param {SetLockedAutoSubscribeRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<SetLockedAutoSubscribeResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Set-Locked-Auto-Subscribe Binance API Documentation}\n */\n public async setLockedAutoSubscribe(\n requestParameters: SetLockedAutoSubscribeRequest\n ): Promise<RestApiResponse<SetLockedAutoSubscribeResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.setLockedAutoSubscribe(\n requestParameters?.positionId,\n requestParameters?.autoSubscribe,\n requestParameters?.recvWindow\n );\n return sendRequest<SetLockedAutoSubscribeResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Set redeem option for Locked product\n *\n * Weight: 50\n *\n * @summary Set Locked Product Redeem Option(USER_DATA)\n * @param {SetLockedProductRedeemOptionRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<SetLockedProductRedeemOptionResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Set-Locked-Redeem-Option Binance API Documentation}\n */\n public async setLockedProductRedeemOption(\n requestParameters: SetLockedProductRedeemOptionRequest\n ): Promise<RestApiResponse<SetLockedProductRedeemOptionResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.setLockedProductRedeemOption(\n requestParameters?.positionId,\n requestParameters?.redeemTo,\n requestParameters?.recvWindow\n );\n return sendRequest<SetLockedProductRedeemOptionResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Simple Account query\n *\n * Weight: 150\n *\n * @summary Simple Account(USER_DATA)\n * @param {SimpleAccountRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<SimpleAccountResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Simple-Account Binance API Documentation}\n */\n public async simpleAccount(\n requestParameters: SimpleAccountRequest = {}\n ): Promise<RestApiResponse<SimpleAccountResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.simpleAccount(\n requestParameters?.recvWindow\n );\n return sendRequest<SimpleAccountResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Subscribe Flexible Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1\n *\n * @summary Subscribe Flexible Product(TRADE)\n * @param {SubscribeFlexibleProductRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<SubscribeFlexibleProductResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Subscribe-Flexible-Product Binance API Documentation}\n */\n public async subscribeFlexibleProduct(\n requestParameters: SubscribeFlexibleProductRequest\n ): Promise<RestApiResponse<SubscribeFlexibleProductResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.subscribeFlexibleProduct(\n requestParameters?.productId,\n requestParameters?.amount,\n requestParameters?.autoSubscribe,\n requestParameters?.sourceAccount,\n requestParameters?.recvWindow\n );\n return sendRequest<SubscribeFlexibleProductResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Subscribe Locked Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1\n *\n * @summary Subscribe Locked Product(TRADE)\n * @param {SubscribeLockedProductRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<SubscribeLockedProductResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Subscribe-Locked-Product Binance API Documentation}\n */\n public async subscribeLockedProduct(\n requestParameters: SubscribeLockedProductRequest\n ): Promise<RestApiResponse<SubscribeLockedProductResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.subscribeLockedProduct(\n requestParameters?.projectId,\n requestParameters?.amount,\n requestParameters?.autoSubscribe,\n requestParameters?.sourceAccount,\n requestParameters?.redeemTo,\n requestParameters?.recvWindow\n );\n return sendRequest<SubscribeLockedProductResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n}\n","/**\n * Binance Simple Earn REST API\n *\n * OpenAPI Specification for the Binance Simple Earn REST API\n *\n * The version of the OpenAPI document: 1.0.0\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport {\n ConfigurationRestAPI,\n TimeUnit,\n RestApiResponse,\n assertParamExists,\n sendRequest,\n type RequestArgs,\n} from '@binance/common';\nimport type {\n GetRwusdAccountResponse,\n GetRwusdQuotaDetailsResponse,\n GetRwusdRateHistoryResponse,\n GetRwusdRedemptionHistoryResponse,\n GetRwusdRewardsHistoryResponse,\n GetRwusdSubscriptionHistoryResponse,\n RedeemRwusdResponse,\n SubscribeRwusdResponse,\n} from '../types';\n\n/**\n * RwusdApi - axios parameter creator\n */\nconst RwusdApiAxiosParamCreator = function (configuration: ConfigurationRestAPI) {\n return {\n /**\n * Get RWUSD account information.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Account (USER_DATA)\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getRwusdAccount: async (recvWindow?: number | bigint): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/rwusd/account',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get RWUSD quota details including subscription quota, fast redemption quota, and standard redemption quota.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Quota Details (USER_DATA)\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getRwusdQuotaDetails: async (recvWindow?: number | bigint): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/rwusd/quota',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get RWUSD rate history sorted by descending order.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Rate History (USER_DATA)\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getRwusdRateHistory: async (\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/rwusd/history/rateHistory',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get RWUSD redemption history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Redemption History (USER_DATA)\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getRwusdRedemptionHistory: async (\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/rwusd/history/redemptionHistory',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get RWUSD rewards history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Rewards History (USER_DATA)\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getRwusdRewardsHistory: async (\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/rwusd/history/rewardsHistory',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get RWUSD subscription history\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time advanced by one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD subscription history(USER_DATA)\n * @param {string} [asset] USDC or USDT\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getRwusdSubscriptionHistory: async (\n asset?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/rwusd/history/subscriptionHistory',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Redeem RWUSD to USDC\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Redeem RWUSD(TRADE)\n * @param {number} amount Amount\n * @param {string} type FAST or STANDARD, defaults to STANDARD\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n redeemRwusd: async (\n amount: number,\n type: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'amount' is not null or undefined\n assertParamExists('redeemRwusd', 'amount', amount);\n // verify required parameter 'type' is not null or undefined\n assertParamExists('redeemRwusd', 'type', type);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n if (type !== undefined && type !== null) {\n localVarQueryParameter['type'] = type;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/rwusd/redeem',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Subscribe RWUSD\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Subscribe RWUSD(TRADE)\n * @param {string} asset USDT or USDC (whichever is eligible)\n * @param {number} amount Amount\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n subscribeRwusd: async (\n asset: string,\n amount: number,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'asset' is not null or undefined\n assertParamExists('subscribeRwusd', 'asset', asset);\n // verify required parameter 'amount' is not null or undefined\n assertParamExists('subscribeRwusd', 'amount', amount);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/rwusd/subscribe',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n };\n};\n\n/**\n * RwusdApi - interface\n * @interface RwusdApi\n */\nexport interface RwusdApiInterface {\n /**\n * Get RWUSD account information.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Account (USER_DATA)\n * @param {GetRwusdAccountRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApiInterface\n */\n getRwusdAccount(\n requestParameters?: GetRwusdAccountRequest\n ): Promise<RestApiResponse<GetRwusdAccountResponse>>;\n /**\n * Get RWUSD quota details including subscription quota, fast redemption quota, and standard redemption quota.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Quota Details (USER_DATA)\n * @param {GetRwusdQuotaDetailsRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApiInterface\n */\n getRwusdQuotaDetails(\n requestParameters?: GetRwusdQuotaDetailsRequest\n ): Promise<RestApiResponse<GetRwusdQuotaDetailsResponse>>;\n /**\n * Get RWUSD rate history sorted by descending order.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Rate History (USER_DATA)\n * @param {GetRwusdRateHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApiInterface\n */\n getRwusdRateHistory(\n requestParameters?: GetRwusdRateHistoryRequest\n ): Promise<RestApiResponse<GetRwusdRateHistoryResponse>>;\n /**\n * Get RWUSD redemption history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Redemption History (USER_DATA)\n * @param {GetRwusdRedemptionHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApiInterface\n */\n getRwusdRedemptionHistory(\n requestParameters?: GetRwusdRedemptionHistoryRequest\n ): Promise<RestApiResponse<GetRwusdRedemptionHistoryResponse>>;\n /**\n * Get RWUSD rewards history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Rewards History (USER_DATA)\n * @param {GetRwusdRewardsHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApiInterface\n */\n getRwusdRewardsHistory(\n requestParameters?: GetRwusdRewardsHistoryRequest\n ): Promise<RestApiResponse<GetRwusdRewardsHistoryResponse>>;\n /**\n * Get RWUSD subscription history\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time advanced by one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD subscription history(USER_DATA)\n * @param {GetRwusdSubscriptionHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApiInterface\n */\n getRwusdSubscriptionHistory(\n requestParameters?: GetRwusdSubscriptionHistoryRequest\n ): Promise<RestApiResponse<GetRwusdSubscriptionHistoryResponse>>;\n /**\n * Redeem RWUSD to USDC\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Redeem RWUSD(TRADE)\n * @param {RedeemRwusdRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApiInterface\n */\n redeemRwusd(\n requestParameters: RedeemRwusdRequest\n ): Promise<RestApiResponse<RedeemRwusdResponse>>;\n /**\n * Subscribe RWUSD\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Subscribe RWUSD(TRADE)\n * @param {SubscribeRwusdRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApiInterface\n */\n subscribeRwusd(\n requestParameters: SubscribeRwusdRequest\n ): Promise<RestApiResponse<SubscribeRwusdResponse>>;\n}\n\n/**\n * Request parameters for getRwusdAccount operation in RwusdApi.\n * @interface GetRwusdAccountRequest\n */\nexport interface GetRwusdAccountRequest {\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdAccount\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getRwusdQuotaDetails operation in RwusdApi.\n * @interface GetRwusdQuotaDetailsRequest\n */\nexport interface GetRwusdQuotaDetailsRequest {\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdQuotaDetails\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getRwusdRateHistory operation in RwusdApi.\n * @interface GetRwusdRateHistoryRequest\n */\nexport interface GetRwusdRateHistoryRequest {\n /**\n *\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRateHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRateHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRateHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRateHistory\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRateHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getRwusdRedemptionHistory operation in RwusdApi.\n * @interface GetRwusdRedemptionHistoryRequest\n */\nexport interface GetRwusdRedemptionHistoryRequest {\n /**\n *\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRedemptionHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRedemptionHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRedemptionHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRedemptionHistory\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRedemptionHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getRwusdRewardsHistory operation in RwusdApi.\n * @interface GetRwusdRewardsHistoryRequest\n */\nexport interface GetRwusdRewardsHistoryRequest {\n /**\n *\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRewardsHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRewardsHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRewardsHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRewardsHistory\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRewardsHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getRwusdSubscriptionHistory operation in RwusdApi.\n * @interface GetRwusdSubscriptionHistoryRequest\n */\nexport interface GetRwusdSubscriptionHistoryRequest {\n /**\n * USDC or USDT\n * @type {string}\n * @memberof RwusdApiGetRwusdSubscriptionHistory\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdSubscriptionHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdSubscriptionHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdSubscriptionHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdSubscriptionHistory\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdSubscriptionHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for redeemRwusd operation in RwusdApi.\n * @interface RedeemRwusdRequest\n */\nexport interface RedeemRwusdRequest {\n /**\n * Amount\n * @type {number}\n * @memberof RwusdApiRedeemRwusd\n */\n readonly amount: number;\n\n /**\n * FAST or STANDARD, defaults to STANDARD\n * @type {string}\n * @memberof RwusdApiRedeemRwusd\n */\n readonly type: string;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof RwusdApiRedeemRwusd\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for subscribeRwusd operation in RwusdApi.\n * @interface SubscribeRwusdRequest\n */\nexport interface SubscribeRwusdRequest {\n /**\n * USDT or USDC (whichever is eligible)\n * @type {string}\n * @memberof RwusdApiSubscribeRwusd\n */\n readonly asset: string;\n\n /**\n * Amount\n * @type {number}\n * @memberof RwusdApiSubscribeRwusd\n */\n readonly amount: number;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof RwusdApiSubscribeRwusd\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * RwusdApi - object-oriented interface\n * @class RwusdApi\n */\nexport class RwusdApi implements RwusdApiInterface {\n private readonly configuration: ConfigurationRestAPI;\n private localVarAxiosParamCreator;\n\n constructor(configuration: ConfigurationRestAPI) {\n this.configuration = configuration;\n this.localVarAxiosParamCreator = RwusdApiAxiosParamCreator(configuration);\n }\n\n /**\n * Get RWUSD account information.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Account (USER_DATA)\n * @param {GetRwusdAccountRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetRwusdAccountResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/account/ Binance API Documentation}\n */\n public async getRwusdAccount(\n requestParameters: GetRwusdAccountRequest = {}\n ): Promise<RestApiResponse<GetRwusdAccountResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdAccount(\n requestParameters?.recvWindow\n );\n return sendRequest<GetRwusdAccountResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get RWUSD quota details including subscription quota, fast redemption quota, and standard redemption quota.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Quota Details (USER_DATA)\n * @param {GetRwusdQuotaDetailsRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetRwusdQuotaDetailsResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/account/Get-RWUSD-Quota-Details Binance API Documentation}\n */\n public async getRwusdQuotaDetails(\n requestParameters: GetRwusdQuotaDetailsRequest = {}\n ): Promise<RestApiResponse<GetRwusdQuotaDetailsResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdQuotaDetails(\n requestParameters?.recvWindow\n );\n return sendRequest<GetRwusdQuotaDetailsResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get RWUSD rate history sorted by descending order.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Rate History (USER_DATA)\n * @param {GetRwusdRateHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetRwusdRateHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-Rate-History Binance API Documentation}\n */\n public async getRwusdRateHistory(\n requestParameters: GetRwusdRateHistoryRequest = {}\n ): Promise<RestApiResponse<GetRwusdRateHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdRateHistory(\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetRwusdRateHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get RWUSD redemption history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Redemption History (USER_DATA)\n * @param {GetRwusdRedemptionHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetRwusdRedemptionHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-Redemption-History Binance API Documentation}\n */\n public async getRwusdRedemptionHistory(\n requestParameters: GetRwusdRedemptionHistoryRequest = {}\n ): Promise<RestApiResponse<GetRwusdRedemptionHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdRedemptionHistory(\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetRwusdRedemptionHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get RWUSD rewards history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Rewards History (USER_DATA)\n * @param {GetRwusdRewardsHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetRwusdRewardsHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-Rewards-History Binance API Documentation}\n */\n public async getRwusdRewardsHistory(\n requestParameters: GetRwusdRewardsHistoryRequest = {}\n ): Promise<RestApiResponse<GetRwusdRewardsHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdRewardsHistory(\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetRwusdRewardsHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get RWUSD subscription history\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time advanced by one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD subscription history(USER_DATA)\n * @param {GetRwusdSubscriptionHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetRwusdSubscriptionHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-subscription-history Binance API Documentation}\n */\n public async getRwusdSubscriptionHistory(\n requestParameters: GetRwusdSubscriptionHistoryRequest = {}\n ): Promise<RestApiResponse<GetRwusdSubscriptionHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdSubscriptionHistory(\n requestParameters?.asset,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetRwusdSubscriptionHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Redeem RWUSD to USDC\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Redeem RWUSD(TRADE)\n * @param {RedeemRwusdRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<RedeemRwusdResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/earn/Redeem-RWUSD Binance API Documentation}\n */\n public async redeemRwusd(\n requestParameters: RedeemRwusdRequest\n ): Promise<RestApiResponse<RedeemRwusdResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.redeemRwusd(\n requestParameters?.amount,\n requestParameters?.type,\n requestParameters?.recvWindow\n );\n return sendRequest<RedeemRwusdResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Subscribe RWUSD\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Subscribe RWUSD(TRADE)\n * @param {SubscribeRwusdRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<SubscribeRwusdResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/earn/Subscribe-RWUSD Binance API Documentation}\n */\n public async subscribeRwusd(\n requestParameters: SubscribeRwusdRequest\n ): Promise<RestApiResponse<SubscribeRwusdResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.subscribeRwusd(\n requestParameters?.asset,\n requestParameters?.amount,\n requestParameters?.recvWindow\n );\n return sendRequest<SubscribeRwusdResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n}\n","/**\n * Binance Simple Earn REST API\n *\n * OpenAPI Specification for the Binance Simple Earn REST API\n *\n * The version of the OpenAPI document: 1.0.0\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { ConfigurationRestAPI, RestApiResponse, sendRequest } from '@binance/common';\nimport { BfusdApi } from './modules/bfusd-api';\nimport { FlexibleLockedApi } from './modules/flexible-locked-api';\nimport { RwusdApi } from './modules/rwusd-api';\n\nimport type {\n GetBfusdAccountRequest,\n GetBfusdQuotaDetailsRequest,\n GetBfusdRateHistoryRequest,\n GetBfusdRedemptionHistoryRequest,\n GetBfusdRewardsHistoryRequest,\n GetBfusdSubscriptionHistoryRequest,\n RedeemBfusdRequest,\n SubscribeBfusdRequest,\n} from './modules/bfusd-api';\nimport type {\n GetCollateralRecordRequest,\n GetFlexiblePersonalLeftQuotaRequest,\n GetFlexibleProductPositionRequest,\n GetFlexibleRedemptionRecordRequest,\n GetFlexibleRewardsHistoryRequest,\n GetFlexibleSubscriptionPreviewRequest,\n GetFlexibleSubscriptionRecordRequest,\n GetLockedPersonalLeftQuotaRequest,\n GetLockedProductPositionRequest,\n GetLockedRedemptionRecordRequest,\n GetLockedRewardsHistoryRequest,\n GetLockedSubscriptionPreviewRequest,\n GetLockedSubscriptionRecordRequest,\n GetRateHistoryRequest,\n GetSimpleEarnFlexibleProductListRequest,\n GetSimpleEarnLockedProductListRequest,\n RedeemFlexibleProductRequest,\n RedeemLockedProductRequest,\n SetFlexibleAutoSubscribeRequest,\n SetLockedAutoSubscribeRequest,\n SetLockedProductRedeemOptionRequest,\n SimpleAccountRequest,\n SubscribeFlexibleProductRequest,\n SubscribeLockedProductRequest,\n} from './modules/flexible-locked-api';\nimport type {\n GetRwusdAccountRequest,\n GetRwusdQuotaDetailsRequest,\n GetRwusdRateHistoryRequest,\n GetRwusdRedemptionHistoryRequest,\n GetRwusdRewardsHistoryRequest,\n GetRwusdSubscriptionHistoryRequest,\n RedeemRwusdRequest,\n SubscribeRwusdRequest,\n} from './modules/rwusd-api';\n\nimport type {\n GetBfusdAccountResponse,\n GetBfusdQuotaDetailsResponse,\n GetBfusdRateHistoryResponse,\n GetBfusdRedemptionHistoryResponse,\n GetBfusdRewardsHistoryResponse,\n GetBfusdSubscriptionHistoryResponse,\n RedeemBfusdResponse,\n SubscribeBfusdResponse,\n} from './types';\nimport type {\n GetCollateralRecordResponse,\n GetFlexiblePersonalLeftQuotaResponse,\n GetFlexibleProductPositionResponse,\n GetFlexibleRedemptionRecordResponse,\n GetFlexibleRewardsHistoryResponse,\n GetFlexibleSubscriptionPreviewResponse,\n GetFlexibleSubscriptionRecordResponse,\n GetLockedPersonalLeftQuotaResponse,\n GetLockedProductPositionResponse,\n GetLockedRedemptionRecordResponse,\n GetLockedRewardsHistoryResponse,\n GetLockedSubscriptionPreviewResponse,\n GetLockedSubscriptionRecordResponse,\n GetRateHistoryResponse,\n GetSimpleEarnFlexibleProductListResponse,\n GetSimpleEarnLockedProductListResponse,\n RedeemFlexibleProductResponse,\n RedeemLockedProductResponse,\n SetFlexibleAutoSubscribeResponse,\n SetLockedAutoSubscribeResponse,\n SetLockedProductRedeemOptionResponse,\n SimpleAccountResponse,\n SubscribeFlexibleProductResponse,\n SubscribeLockedProductResponse,\n} from './types';\nimport type {\n GetRwusdAccountResponse,\n GetRwusdQuotaDetailsResponse,\n GetRwusdRateHistoryResponse,\n GetRwusdRedemptionHistoryResponse,\n GetRwusdRewardsHistoryResponse,\n GetRwusdSubscriptionHistoryResponse,\n RedeemRwusdResponse,\n SubscribeRwusdResponse,\n} from './types';\n\nexport class RestAPI {\n private configuration: ConfigurationRestAPI;\n private bfusdApi: BfusdApi;\n private flexibleLockedApi: FlexibleLockedApi;\n private rwusdApi: RwusdApi;\n\n constructor(configuration: ConfigurationRestAPI) {\n this.configuration = configuration;\n this.bfusdApi = new BfusdApi(configuration);\n this.flexibleLockedApi = new FlexibleLockedApi(configuration);\n this.rwusdApi = new RwusdApi(configuration);\n }\n\n /**\n * Generic function to send a request.\n * @param endpoint - The API endpoint to call.\n * @param method - HTTP method to use (GET, POST, DELETE, etc.).\n * @param queryParams - Query parameters for the request.\n * @param bodyParams - Body parameters for the request.\n *\n * @returns A promise resolving to the response data object.\n */\n sendRequest<T>(\n endpoint: string,\n method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH',\n queryParams: Record<string, unknown> = {},\n bodyParams: Record<string, unknown> = {}\n ): Promise<RestApiResponse<T>> {\n return sendRequest<T>(\n this.configuration,\n endpoint,\n method,\n queryParams,\n bodyParams,\n undefined\n );\n }\n\n /**\n * Generic function to send a signed request.\n * @param endpoint - The API endpoint to call.\n * @param method - HTTP method to use (GET, POST, DELETE, etc.).\n * @param queryParams - Query parameters for the request.\n * @param bodyParams - Body parameters for the request.\n *\n * @returns A promise resolving to the response data object.\n */\n sendSignedRequest<T>(\n endpoint: string,\n method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH',\n queryParams: Record<string, unknown> = {},\n bodyParams: Record<string, unknown> = {}\n ): Promise<RestApiResponse<T>> {\n return sendRequest<T>(\n this.configuration,\n endpoint,\n method,\n queryParams,\n bodyParams,\n undefined,\n { isSigned: true }\n );\n }\n\n /**\n * Get BFUSD account information.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Account (USER_DATA)\n * @param {GetBfusdAccountRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetBfusdAccountResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/account/ Binance API Documentation}\n */\n getBfusdAccount(\n requestParameters: GetBfusdAccountRequest = {}\n ): Promise<RestApiResponse<GetBfusdAccountResponse>> {\n return this.bfusdApi.getBfusdAccount(requestParameters);\n }\n\n /**\n * Get BFUSD quota details including fast redemption quota and standard redemption quota.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Quota Details (USER_DATA)\n * @param {GetBfusdQuotaDetailsRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetBfusdQuotaDetailsResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/account/Get-BFUSD-Quota-Details Binance API Documentation}\n */\n getBfusdQuotaDetails(\n requestParameters: GetBfusdQuotaDetailsRequest = {}\n ): Promise<RestApiResponse<GetBfusdQuotaDetailsResponse>> {\n return this.bfusdApi.getBfusdQuotaDetails(requestParameters);\n }\n\n /**\n * Get BFUSD rate history sorted by descending order.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Rate History (USER_DATA)\n * @param {GetBfusdRateHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetBfusdRateHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/history/Get-BFUSD-Rate-History Binance API Documentation}\n */\n getBfusdRateHistory(\n requestParameters: GetBfusdRateHistoryRequest = {}\n ): Promise<RestApiResponse<GetBfusdRateHistoryResponse>> {\n return this.bfusdApi.getBfusdRateHistory(requestParameters);\n }\n\n /**\n * Get BFUSD redemption history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Redemption History (USER_DATA)\n * @param {GetBfusdRedemptionHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetBfusdRedemptionHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/history/Get-BFUSD-Redemption-History Binance API Documentation}\n */\n getBfusdRedemptionHistory(\n requestParameters: GetBfusdRedemptionHistoryRequest = {}\n ): Promise<RestApiResponse<GetBfusdRedemptionHistoryResponse>> {\n return this.bfusdApi.getBfusdRedemptionHistory(requestParameters);\n }\n\n /**\n * Get BFUSD rewards history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Rewards History (USER_DATA)\n * @param {GetBfusdRewardsHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetBfusdRewardsHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/history/Get-BFUSD-Rewards-History Binance API Documentation}\n */\n getBfusdRewardsHistory(\n requestParameters: GetBfusdRewardsHistoryRequest = {}\n ): Promise<RestApiResponse<GetBfusdRewardsHistoryResponse>> {\n return this.bfusdApi.getBfusdRewardsHistory(requestParameters);\n }\n\n /**\n * Get BFUSD subscription history\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time advanced by one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD subscription history(USER_DATA)\n * @param {GetBfusdSubscriptionHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetBfusdSubscriptionHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/history/Get-BFUSD-subscription-history Binance API Documentation}\n */\n getBfusdSubscriptionHistory(\n requestParameters: GetBfusdSubscriptionHistoryRequest = {}\n ): Promise<RestApiResponse<GetBfusdSubscriptionHistoryResponse>> {\n return this.bfusdApi.getBfusdSubscriptionHistory(requestParameters);\n }\n\n /**\n * Redeem BFUSD to USDT\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Redeem BFUSD(TRADE)\n * @param {RedeemBfusdRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<RedeemBfusdResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/earn/Redeem-BFUSD Binance API Documentation}\n */\n redeemBfusd(\n requestParameters: RedeemBfusdRequest\n ): Promise<RestApiResponse<RedeemBfusdResponse>> {\n return this.bfusdApi.redeemBfusd(requestParameters);\n }\n\n /**\n * Subscribe BFUSD\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Subscribe BFUSD(TRADE)\n * @param {SubscribeBfusdRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<SubscribeBfusdResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/earn/Subscribe-BFUSD Binance API Documentation}\n */\n subscribeBfusd(\n requestParameters: SubscribeBfusdRequest\n ): Promise<RestApiResponse<SubscribeBfusdResponse>> {\n return this.bfusdApi.subscribeBfusd(requestParameters);\n }\n\n /**\n * Get Collateral Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 30 days.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 1\n *\n * @summary Get Collateral Record(USER_DATA)\n * @param {GetCollateralRecordRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetCollateralRecordResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Collateral-Record Binance API Documentation}\n */\n getCollateralRecord(\n requestParameters: GetCollateralRecordRequest = {}\n ): Promise<RestApiResponse<GetCollateralRecordResponse>> {\n return this.flexibleLockedApi.getCollateralRecord(requestParameters);\n }\n\n /**\n * Get Flexible Personal Left Quota\n *\n * Weight: 150\n *\n * @summary Get Flexible Personal Left Quota(USER_DATA)\n * @param {GetFlexiblePersonalLeftQuotaRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexiblePersonalLeftQuotaResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Flexible-Personal-Left-Quota Binance API Documentation}\n */\n getFlexiblePersonalLeftQuota(\n requestParameters: GetFlexiblePersonalLeftQuotaRequest\n ): Promise<RestApiResponse<GetFlexiblePersonalLeftQuotaResponse>> {\n return this.flexibleLockedApi.getFlexiblePersonalLeftQuota(requestParameters);\n }\n\n /**\n * Get Flexible Product Position\n *\n * Weight: 150\n *\n * @summary Get Flexible Product Position(USER_DATA)\n * @param {GetFlexibleProductPositionRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleProductPositionResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Flexible-Product-Position Binance API Documentation}\n */\n getFlexibleProductPosition(\n requestParameters: GetFlexibleProductPositionRequest = {}\n ): Promise<RestApiResponse<GetFlexibleProductPositionResponse>> {\n return this.flexibleLockedApi.getFlexibleProductPosition(requestParameters);\n }\n\n /**\n * Get Flexible Redemption Record\n *\n *\tThe time between `startTime` and `endTime` cannot be longer than 3 months.\n *\tIf `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n *\tIf `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n *\tIf `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Flexible Redemption Record(USER_DATA)\n * @param {GetFlexibleRedemptionRecordRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleRedemptionRecordResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Flexible-Redemption-Record Binance API Documentation}\n */\n getFlexibleRedemptionRecord(\n requestParameters: GetFlexibleRedemptionRecordRequest = {}\n ): Promise<RestApiResponse<GetFlexibleRedemptionRecordResponse>> {\n return this.flexibleLockedApi.getFlexibleRedemptionRecord(requestParameters);\n }\n\n /**\n * Get Flexible Rewards History\n *\n *\tThe time between `startTime` and `endTime` cannot be longer than 3 months.\n *\tIf `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n *\tIf `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n *\tIf `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Flexible Rewards History(USER_DATA)\n * @param {GetFlexibleRewardsHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleRewardsHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Flexible-Rewards-History Binance API Documentation}\n */\n getFlexibleRewardsHistory(\n requestParameters: GetFlexibleRewardsHistoryRequest\n ): Promise<RestApiResponse<GetFlexibleRewardsHistoryResponse>> {\n return this.flexibleLockedApi.getFlexibleRewardsHistory(requestParameters);\n }\n\n /**\n * Get Flexible Subscription Preview\n *\n * Weight: 150\n *\n * @summary Get Flexible Subscription Preview(USER_DATA)\n * @param {GetFlexibleSubscriptionPreviewRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleSubscriptionPreviewResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Get-Flexible-Subscription-Preview Binance API Documentation}\n */\n getFlexibleSubscriptionPreview(\n requestParameters: GetFlexibleSubscriptionPreviewRequest\n ): Promise<RestApiResponse<GetFlexibleSubscriptionPreviewResponse>> {\n return this.flexibleLockedApi.getFlexibleSubscriptionPreview(requestParameters);\n }\n\n /**\n * Get Flexible Subscription Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Flexible Subscription Record(USER_DATA)\n * @param {GetFlexibleSubscriptionRecordRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleSubscriptionRecordResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Flexible-Subscription-Record Binance API Documentation}\n */\n getFlexibleSubscriptionRecord(\n requestParameters: GetFlexibleSubscriptionRecordRequest = {}\n ): Promise<RestApiResponse<GetFlexibleSubscriptionRecordResponse>> {\n return this.flexibleLockedApi.getFlexibleSubscriptionRecord(requestParameters);\n }\n\n /**\n * Get Locked Personal Left Quota\n *\n * Weight: 150\n *\n * @summary Get Locked Personal Left Quota(USER_DATA)\n * @param {GetLockedPersonalLeftQuotaRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetLockedPersonalLeftQuotaResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Locked-Personal-Left-Quota Binance API Documentation}\n */\n getLockedPersonalLeftQuota(\n requestParameters: GetLockedPersonalLeftQuotaRequest\n ): Promise<RestApiResponse<GetLockedPersonalLeftQuotaResponse>> {\n return this.flexibleLockedApi.getLockedPersonalLeftQuota(requestParameters);\n }\n\n /**\n * Get Locked Product Position\n *\n * Weight: 150\n *\n * @summary Get Locked Product Position\n * @param {GetLockedProductPositionRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetLockedProductPositionResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Locked-Product-Position Binance API Documentation}\n */\n getLockedProductPosition(\n requestParameters: GetLockedProductPositionRequest = {}\n ): Promise<RestApiResponse<GetLockedProductPositionResponse>> {\n return this.flexibleLockedApi.getLockedProductPosition(requestParameters);\n }\n\n /**\n * Get Locked Redemption Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Locked Redemption Record(USER_DATA)\n * @param {GetLockedRedemptionRecordRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetLockedRedemptionRecordResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Locked-Redemption-Record Binance API Documentation}\n */\n getLockedRedemptionRecord(\n requestParameters: GetLockedRedemptionRecordRequest = {}\n ): Promise<RestApiResponse<GetLockedRedemptionRecordResponse>> {\n return this.flexibleLockedApi.getLockedRedemptionRecord(requestParameters);\n }\n\n /**\n * Get Locked Rewards History\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Locked Rewards History(USER_DATA)\n * @param {GetLockedRewardsHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetLockedRewardsHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Locked-Rewards-History Binance API Documentation}\n */\n getLockedRewardsHistory(\n requestParameters: GetLockedRewardsHistoryRequest = {}\n ): Promise<RestApiResponse<GetLockedRewardsHistoryResponse>> {\n return this.flexibleLockedApi.getLockedRewardsHistory(requestParameters);\n }\n\n /**\n * Get Locked Subscription Preview\n *\n * Weight: 150\n *\n * @summary Get Locked Subscription Preview(USER_DATA)\n * @param {GetLockedSubscriptionPreviewRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetLockedSubscriptionPreviewResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Get-Locked-Subscription-Preview Binance API Documentation}\n */\n getLockedSubscriptionPreview(\n requestParameters: GetLockedSubscriptionPreviewRequest\n ): Promise<RestApiResponse<GetLockedSubscriptionPreviewResponse>> {\n return this.flexibleLockedApi.getLockedSubscriptionPreview(requestParameters);\n }\n\n /**\n * Get Locked Subscription Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Locked Subscription Record(USER_DATA)\n * @param {GetLockedSubscriptionRecordRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetLockedSubscriptionRecordResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Locked-Subscription-Record Binance API Documentation}\n */\n getLockedSubscriptionRecord(\n requestParameters: GetLockedSubscriptionRecordRequest = {}\n ): Promise<RestApiResponse<GetLockedSubscriptionRecordResponse>> {\n return this.flexibleLockedApi.getLockedSubscriptionRecord(requestParameters);\n }\n\n /**\n * Get Rate History\n *\n * The time between startTime and endTime cannot be longer than 1 year.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Rate History(USER_DATA)\n * @param {GetRateHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetRateHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Rate-History Binance API Documentation}\n */\n getRateHistory(\n requestParameters: GetRateHistoryRequest\n ): Promise<RestApiResponse<GetRateHistoryResponse>> {\n return this.flexibleLockedApi.getRateHistory(requestParameters);\n }\n\n /**\n * Get available Simple Earn flexible product list\n *\n * Weight: 150\n *\n * @summary Get Simple Earn Flexible Product List(USER_DATA)\n * @param {GetSimpleEarnFlexibleProductListRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetSimpleEarnFlexibleProductListResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Simple-Earn-Flexible-Product-List Binance API Documentation}\n */\n getSimpleEarnFlexibleProductList(\n requestParameters: GetSimpleEarnFlexibleProductListRequest = {}\n ): Promise<RestApiResponse<GetSimpleEarnFlexibleProductListResponse>> {\n return this.flexibleLockedApi.getSimpleEarnFlexibleProductList(requestParameters);\n }\n\n /**\n * Get Simple Earn Locked Product List\n *\n * Get available Simple Earn locked product list\n *\n * Weight: 150\n *\n * @summary Get Simple Earn Locked Product List(USER_DATA)\n * @param {GetSimpleEarnLockedProductListRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetSimpleEarnLockedProductListResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Simple-Earn-Locked-Product-List Binance API Documentation}\n */\n getSimpleEarnLockedProductList(\n requestParameters: GetSimpleEarnLockedProductListRequest = {}\n ): Promise<RestApiResponse<GetSimpleEarnLockedProductListResponse>> {\n return this.flexibleLockedApi.getSimpleEarnLockedProductList(requestParameters);\n }\n\n /**\n * Redeem Flexible Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1\n *\n * @summary Redeem Flexible Product(TRADE)\n * @param {RedeemFlexibleProductRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<RedeemFlexibleProductResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Redeem-Flexible-Product Binance API Documentation}\n */\n redeemFlexibleProduct(\n requestParameters: RedeemFlexibleProductRequest\n ): Promise<RestApiResponse<RedeemFlexibleProductResponse>> {\n return this.flexibleLockedApi.redeemFlexibleProduct(requestParameters);\n }\n\n /**\n * Redeem Locked Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1/3s per account\n *\n * @summary Redeem Locked Product(TRADE)\n * @param {RedeemLockedProductRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<RedeemLockedProductResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Redeem-Locked-Product Binance API Documentation}\n */\n redeemLockedProduct(\n requestParameters: RedeemLockedProductRequest\n ): Promise<RestApiResponse<RedeemLockedProductResponse>> {\n return this.flexibleLockedApi.redeemLockedProduct(requestParameters);\n }\n\n /**\n * Set Flexible Auto Subscribe\n *\n * Weight: 150\n *\n * @summary Set Flexible Auto Subscribe(USER_DATA)\n * @param {SetFlexibleAutoSubscribeRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<SetFlexibleAutoSubscribeResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Set-Flexible-Auto-Subscribe Binance API Documentation}\n */\n setFlexibleAutoSubscribe(\n requestParameters: SetFlexibleAutoSubscribeRequest\n ): Promise<RestApiResponse<SetFlexibleAutoSubscribeResponse>> {\n return this.flexibleLockedApi.setFlexibleAutoSubscribe(requestParameters);\n }\n\n /**\n * Set locked auto subscribe\n *\n * Weight: 150\n *\n * @summary Set Locked Auto Subscribe(USER_DATA)\n * @param {SetLockedAutoSubscribeRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<SetLockedAutoSubscribeResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Set-Locked-Auto-Subscribe Binance API Documentation}\n */\n setLockedAutoSubscribe(\n requestParameters: SetLockedAutoSubscribeRequest\n ): Promise<RestApiResponse<SetLockedAutoSubscribeResponse>> {\n return this.flexibleLockedApi.setLockedAutoSubscribe(requestParameters);\n }\n\n /**\n * Set redeem option for Locked product\n *\n * Weight: 50\n *\n * @summary Set Locked Product Redeem Option(USER_DATA)\n * @param {SetLockedProductRedeemOptionRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<SetLockedProductRedeemOptionResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Set-Locked-Redeem-Option Binance API Documentation}\n */\n setLockedProductRedeemOption(\n requestParameters: SetLockedProductRedeemOptionRequest\n ): Promise<RestApiResponse<SetLockedProductRedeemOptionResponse>> {\n return this.flexibleLockedApi.setLockedProductRedeemOption(requestParameters);\n }\n\n /**\n * Simple Account query\n *\n * Weight: 150\n *\n * @summary Simple Account(USER_DATA)\n * @param {SimpleAccountRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<SimpleAccountResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Simple-Account Binance API Documentation}\n */\n simpleAccount(\n requestParameters: SimpleAccountRequest = {}\n ): Promise<RestApiResponse<SimpleAccountResponse>> {\n return this.flexibleLockedApi.simpleAccount(requestParameters);\n }\n\n /**\n * Subscribe Flexible Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1\n *\n * @summary Subscribe Flexible Product(TRADE)\n * @param {SubscribeFlexibleProductRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<SubscribeFlexibleProductResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Subscribe-Flexible-Product Binance API Documentation}\n */\n subscribeFlexibleProduct(\n requestParameters: SubscribeFlexibleProductRequest\n ): Promise<RestApiResponse<SubscribeFlexibleProductResponse>> {\n return this.flexibleLockedApi.subscribeFlexibleProduct(requestParameters);\n }\n\n /**\n * Subscribe Locked Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1\n *\n * @summary Subscribe Locked Product(TRADE)\n * @param {SubscribeLockedProductRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<SubscribeLockedProductResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Subscribe-Locked-Product Binance API Documentation}\n */\n subscribeLockedProduct(\n requestParameters: SubscribeLockedProductRequest\n ): Promise<RestApiResponse<SubscribeLockedProductResponse>> {\n return this.flexibleLockedApi.subscribeLockedProduct(requestParameters);\n }\n\n /**\n * Get RWUSD account information.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Account (USER_DATA)\n * @param {GetRwusdAccountRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetRwusdAccountResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/account/ Binance API Documentation}\n */\n getRwusdAccount(\n requestParameters: GetRwusdAccountRequest = {}\n ): Promise<RestApiResponse<GetRwusdAccountResponse>> {\n return this.rwusdApi.getRwusdAccount(requestParameters);\n }\n\n /**\n * Get RWUSD quota details including subscription quota, fast redemption quota, and standard redemption quota.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Quota Details (USER_DATA)\n * @param {GetRwusdQuotaDetailsRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetRwusdQuotaDetailsResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/account/Get-RWUSD-Quota-Details Binance API Documentation}\n */\n getRwusdQuotaDetails(\n requestParameters: GetRwusdQuotaDetailsRequest = {}\n ): Promise<RestApiResponse<GetRwusdQuotaDetailsResponse>> {\n return this.rwusdApi.getRwusdQuotaDetails(requestParameters);\n }\n\n /**\n * Get RWUSD rate history sorted by descending order.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Rate History (USER_DATA)\n * @param {GetRwusdRateHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetRwusdRateHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-Rate-History Binance API Documentation}\n */\n getRwusdRateHistory(\n requestParameters: GetRwusdRateHistoryRequest = {}\n ): Promise<RestApiResponse<GetRwusdRateHistoryResponse>> {\n return this.rwusdApi.getRwusdRateHistory(requestParameters);\n }\n\n /**\n * Get RWUSD redemption history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Redemption History (USER_DATA)\n * @param {GetRwusdRedemptionHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetRwusdRedemptionHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-Redemption-History Binance API Documentation}\n */\n getRwusdRedemptionHistory(\n requestParameters: GetRwusdRedemptionHistoryRequest = {}\n ): Promise<RestApiResponse<GetRwusdRedemptionHistoryResponse>> {\n return this.rwusdApi.getRwusdRedemptionHistory(requestParameters);\n }\n\n /**\n * Get RWUSD rewards history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Rewards History (USER_DATA)\n * @param {GetRwusdRewardsHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetRwusdRewardsHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-Rewards-History Binance API Documentation}\n */\n getRwusdRewardsHistory(\n requestParameters: GetRwusdRewardsHistoryRequest = {}\n ): Promise<RestApiResponse<GetRwusdRewardsHistoryResponse>> {\n return this.rwusdApi.getRwusdRewardsHistory(requestParameters);\n }\n\n /**\n * Get RWUSD subscription history\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time advanced by one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD subscription history(USER_DATA)\n * @param {GetRwusdSubscriptionHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetRwusdSubscriptionHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-subscription-history Binance API Documentation}\n */\n getRwusdSubscriptionHistory(\n requestParameters: GetRwusdSubscriptionHistoryRequest = {}\n ): Promise<RestApiResponse<GetRwusdSubscriptionHistoryResponse>> {\n return this.rwusdApi.getRwusdSubscriptionHistory(requestParameters);\n }\n\n /**\n * Redeem RWUSD to USDC\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Redeem RWUSD(TRADE)\n * @param {RedeemRwusdRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<RedeemRwusdResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/earn/Redeem-RWUSD Binance API Documentation}\n */\n redeemRwusd(\n requestParameters: RedeemRwusdRequest\n ): Promise<RestApiResponse<RedeemRwusdResponse>> {\n return this.rwusdApi.redeemRwusd(requestParameters);\n }\n\n /**\n * Subscribe RWUSD\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Subscribe RWUSD(TRADE)\n * @param {SubscribeRwusdRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<SubscribeRwusdResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/earn/Subscribe-RWUSD Binance API Documentation}\n */\n subscribeRwusd(\n requestParameters: SubscribeRwusdRequest\n ): Promise<RestApiResponse<SubscribeRwusdResponse>> {\n return this.rwusdApi.subscribeRwusd(requestParameters);\n }\n}\n","/**\n * Binance Simple Earn REST API\n *\n * OpenAPI Specification for the Binance Simple Earn REST API\n *\n * The version of the OpenAPI document: 1.0.0\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nexport * from './types';\nexport * from './modules';\nexport * from './rest-api';\n","import {\n buildUserAgent,\n ConfigurationRestAPI,\n SIMPLE_EARN_REST_API_PROD_URL,\n} from '@binance/common';\nimport { name, version } from '../package.json';\nimport { RestAPI } from './rest-api';\n\nexport interface ConfigurationSimpleEarn {\n configurationRestAPI?: ConfigurationRestAPI;\n}\n\nexport class SimpleEarn {\n public restAPI!: RestAPI;\n\n constructor(config: ConfigurationSimpleEarn) {\n const userAgent = buildUserAgent(name, version);\n\n if (config?.configurationRestAPI) {\n const configRestAPI = new ConfigurationRestAPI(\n config.configurationRestAPI\n ) as ConfigurationRestAPI & {\n baseOptions: Record<string, unknown>;\n };\n configRestAPI.basePath = configRestAPI.basePath || SIMPLE_EARN_REST_API_PROD_URL;\n configRestAPI.baseOptions = configRestAPI.baseOptions || {};\n configRestAPI.baseOptions.headers = {\n ...(configRestAPI.baseOptions.headers || {}),\n 'User-Agent': userAgent,\n };\n this.restAPI = new RestAPI(configRestAPI);\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;WACY;cAEG;;;;;;;;;;;;;;;;;;;ACgCf,MAAM,4BAA4B,SAAU,eAAqC;AAC7E,QAAO;EAWH,iBAAiB,OAAO,eAAuD;GAC3E,MAAMA,yBAAkD,EAAE;GAC1D,MAAMC,wBAAiD,EAAE;AAEzD,OAAI,eAAe,UAAa,eAAe,KAC3C,wBAAuB,gBAAgB;GAG3C,IAAIC;AACJ,OAAI,cAAc,cAAe,aAAY,cAAc;AAE3D,UAAO;IACH,UAAU;IACV,QAAQ;IACR,aAAa;IACb,YAAY;IACZ,UAAU;IACb;;EAYL,sBAAsB,OAAO,eAAuD;GAChF,MAAMF,yBAAkD,EAAE;GAC1D,MAAMC,wBAAiD,EAAE;AAEzD,OAAI,eAAe,UAAa,eAAe,KAC3C,wBAAuB,gBAAgB;GAG3C,IAAIC;AACJ,OAAI,cAAc,cAAe,aAAY,cAAc;AAE3D,UAAO;IACH,UAAU;IACV,QAAQ;IACR,aAAa;IACb,YAAY;IACZ,UAAU;IACb;;EAqBL,qBAAqB,OACjB,WACA,SACA,SACA,MACA,eACuB;GACvB,MAAMF,yBAAkD,EAAE;GAC1D,MAAMC,wBAAiD,EAAE;AAEzD,OAAI,cAAc,UAAa,cAAc,KACzC,wBAAuB,eAAe;AAE1C,OAAI,YAAY,UAAa,YAAY,KACrC,wBAAuB,aAAa;AAExC,OAAI,YAAY,UAAa,YAAY,KACrC,wBAAuB,aAAa;AAEx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C,sCACtB,OAAO,qBACV;AAGD,iBAAc,WAAW,cAAc,YAAYC;AACnD,iBAAc,cAAc,cAAc,eAAe,EAAE;AAC3D,iBAAc,YAAY,UAAU;IAChC,GAAI,cAAc,YAAY,WAAW,EAAE;IAC3C,cAAc;IACjB;AACD,QAAK,UAAU,IAAI,QAAQ,cAAc"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["localVarQueryParameter: Record<string, unknown>","localVarBodyParameter: Record<string, unknown>","_timeUnit: TimeUnit | undefined","localVarQueryParameter: Record<string, unknown>","localVarBodyParameter: Record<string, unknown>","_timeUnit: TimeUnit | undefined","localVarQueryParameter: Record<string, unknown>","localVarBodyParameter: Record<string, unknown>","_timeUnit: TimeUnit | undefined","ConfigurationRestAPI","SIMPLE_EARN_REST_API_PROD_URL"],"sources":["../package.json","../src/rest-api/modules/bfusd-api.ts","../src/rest-api/modules/flexible-locked-api.ts","../src/rest-api/modules/rwusd-api.ts","../src/rest-api/rest-api.ts","../src/rest-api/index.ts","../src/simple-earn.ts"],"sourcesContent":["{\n \"name\": \"@binance/simple-earn\",\n \"description\": \"Official Binance Simple Earn Connector - A lightweight library that provides a convenient interface to Binance's Simple Earn REST API.\",\n \"version\": \"12.0.3\",\n \"main\": \"./dist/index.js\",\n \"module\": \"./dist/index.mjs\",\n \"types\": \"./dist/index.d.ts\",\n \"exports\": {\n \".\": {\n \"require\": \"./dist/index.js\",\n \"import\": \"./dist/index.mjs\"\n }\n },\n \"scripts\": {\n \"prepublishOnly\": \"npm run build\",\n \"build\": \"npm run clean && tsdown\",\n \"typecheck\": \"tsc --noEmit\",\n \"clean\": \"rm -rf dist\",\n \"test\": \"npx jest --maxWorkers=4 --bail\",\n \"test:watch\": \"npx jest --watch\",\n \"format\": \"npx prettier --ignore-path .prettierignore --write .\",\n \"lint\": \"npx eslint '**/*.ts' --fix\"\n },\n \"keywords\": [\n \"Binance\",\n \"API\",\n \"Simple Earn\",\n \"Connector\",\n \"REST\",\n \"Trading\"\n ],\n \"author\": \"Binance\",\n \"license\": \"MIT\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/binance/binance-connector-js.git\"\n },\n \"bugs\": {\n \"url\": \"https://github.com/binance/binance-connector-js/issues\"\n },\n \"homepage\": \"https://github.com/binance/binance-connector-js#readme\",\n \"files\": [\n \"dist\"\n ],\n \"devDependencies\": {\n \"@types/jest\": \"^29.5.4\",\n \"@types/node\": \"^20.17.24\",\n \"eslint\": \"8.57.0\",\n \"jest\": \"^29.6.4\",\n \"json-with-bigint\": \"^3.4.4\",\n \"prettier\": \"^3.3.3\",\n \"ts-jest\": \"^29.1.1\",\n \"ts-node\": \"^10.9.1\",\n \"tsdown\": \"^0.16.5\",\n \"typescript\": \"^5.7.2\",\n \"typescript-eslint\": \"^8.24.0\"\n },\n \"dependencies\": {\n \"@binance/common\": \"2.3.4\",\n \"axios\": \"^1.7.4\"\n }\n}\n","/**\n * Binance Simple Earn REST API\n *\n * OpenAPI Specification for the Binance Simple Earn REST API\n *\n * The version of the OpenAPI document: 1.0.0\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport {\n ConfigurationRestAPI,\n TimeUnit,\n RestApiResponse,\n assertParamExists,\n sendRequest,\n type RequestArgs,\n} from '@binance/common';\nimport type {\n GetBfusdAccountResponse,\n GetBfusdQuotaDetailsResponse,\n GetBfusdRateHistoryResponse,\n GetBfusdRedemptionHistoryResponse,\n GetBfusdRewardsHistoryResponse,\n GetBfusdSubscriptionHistoryResponse,\n RedeemBfusdResponse,\n SubscribeBfusdResponse,\n} from '../types';\n\n/**\n * BfusdApi - axios parameter creator\n */\nconst BfusdApiAxiosParamCreator = function (configuration: ConfigurationRestAPI) {\n return {\n /**\n * Get BFUSD account information.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Account (USER_DATA)\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getBfusdAccount: async (recvWindow?: number | bigint): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/bfusd/account',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get BFUSD quota details including fast redemption quota and standard redemption quota.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Quota Details (USER_DATA)\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getBfusdQuotaDetails: async (recvWindow?: number | bigint): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/bfusd/quota',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get BFUSD rate history sorted by descending order.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Rate History (USER_DATA)\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getBfusdRateHistory: async (\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/bfusd/history/rateHistory',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get BFUSD redemption history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Redemption History (USER_DATA)\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getBfusdRedemptionHistory: async (\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/bfusd/history/redemptionHistory',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get BFUSD rewards history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Rewards History (USER_DATA)\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getBfusdRewardsHistory: async (\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/bfusd/history/rewardsHistory',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get BFUSD subscription history\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time advanced by one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD subscription history(USER_DATA)\n * @param {string} [asset] USDC or USDT\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getBfusdSubscriptionHistory: async (\n asset?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/bfusd/history/subscriptionHistory',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Redeem BFUSD to USDT\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Redeem BFUSD(TRADE)\n * @param {number} amount Amount\n * @param {string} type FAST or STANDARD, defaults to STANDARD\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n redeemBfusd: async (\n amount: number,\n type: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'amount' is not null or undefined\n assertParamExists('redeemBfusd', 'amount', amount);\n // verify required parameter 'type' is not null or undefined\n assertParamExists('redeemBfusd', 'type', type);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n if (type !== undefined && type !== null) {\n localVarQueryParameter['type'] = type;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/bfusd/redeem',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Subscribe BFUSD\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Subscribe BFUSD(TRADE)\n * @param {string} asset USDT or USDC (whichever is eligible)\n * @param {number} amount Amount\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n subscribeBfusd: async (\n asset: string,\n amount: number,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'asset' is not null or undefined\n assertParamExists('subscribeBfusd', 'asset', asset);\n // verify required parameter 'amount' is not null or undefined\n assertParamExists('subscribeBfusd', 'amount', amount);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/bfusd/subscribe',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n };\n};\n\n/**\n * BfusdApi - interface\n * @interface BfusdApi\n */\nexport interface BfusdApiInterface {\n /**\n * Get BFUSD account information.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Account (USER_DATA)\n * @param {GetBfusdAccountRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApiInterface\n */\n getBfusdAccount(\n requestParameters?: GetBfusdAccountRequest\n ): Promise<RestApiResponse<GetBfusdAccountResponse>>;\n /**\n * Get BFUSD quota details including fast redemption quota and standard redemption quota.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Quota Details (USER_DATA)\n * @param {GetBfusdQuotaDetailsRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApiInterface\n */\n getBfusdQuotaDetails(\n requestParameters?: GetBfusdQuotaDetailsRequest\n ): Promise<RestApiResponse<GetBfusdQuotaDetailsResponse>>;\n /**\n * Get BFUSD rate history sorted by descending order.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Rate History (USER_DATA)\n * @param {GetBfusdRateHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApiInterface\n */\n getBfusdRateHistory(\n requestParameters?: GetBfusdRateHistoryRequest\n ): Promise<RestApiResponse<GetBfusdRateHistoryResponse>>;\n /**\n * Get BFUSD redemption history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Redemption History (USER_DATA)\n * @param {GetBfusdRedemptionHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApiInterface\n */\n getBfusdRedemptionHistory(\n requestParameters?: GetBfusdRedemptionHistoryRequest\n ): Promise<RestApiResponse<GetBfusdRedemptionHistoryResponse>>;\n /**\n * Get BFUSD rewards history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Rewards History (USER_DATA)\n * @param {GetBfusdRewardsHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApiInterface\n */\n getBfusdRewardsHistory(\n requestParameters?: GetBfusdRewardsHistoryRequest\n ): Promise<RestApiResponse<GetBfusdRewardsHistoryResponse>>;\n /**\n * Get BFUSD subscription history\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time advanced by one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD subscription history(USER_DATA)\n * @param {GetBfusdSubscriptionHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApiInterface\n */\n getBfusdSubscriptionHistory(\n requestParameters?: GetBfusdSubscriptionHistoryRequest\n ): Promise<RestApiResponse<GetBfusdSubscriptionHistoryResponse>>;\n /**\n * Redeem BFUSD to USDT\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Redeem BFUSD(TRADE)\n * @param {RedeemBfusdRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApiInterface\n */\n redeemBfusd(\n requestParameters: RedeemBfusdRequest\n ): Promise<RestApiResponse<RedeemBfusdResponse>>;\n /**\n * Subscribe BFUSD\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Subscribe BFUSD(TRADE)\n * @param {SubscribeBfusdRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApiInterface\n */\n subscribeBfusd(\n requestParameters: SubscribeBfusdRequest\n ): Promise<RestApiResponse<SubscribeBfusdResponse>>;\n}\n\n/**\n * Request parameters for getBfusdAccount operation in BfusdApi.\n * @interface GetBfusdAccountRequest\n */\nexport interface GetBfusdAccountRequest {\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdAccount\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getBfusdQuotaDetails operation in BfusdApi.\n * @interface GetBfusdQuotaDetailsRequest\n */\nexport interface GetBfusdQuotaDetailsRequest {\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdQuotaDetails\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getBfusdRateHistory operation in BfusdApi.\n * @interface GetBfusdRateHistoryRequest\n */\nexport interface GetBfusdRateHistoryRequest {\n /**\n *\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRateHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRateHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRateHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRateHistory\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRateHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getBfusdRedemptionHistory operation in BfusdApi.\n * @interface GetBfusdRedemptionHistoryRequest\n */\nexport interface GetBfusdRedemptionHistoryRequest {\n /**\n *\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRedemptionHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRedemptionHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRedemptionHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRedemptionHistory\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRedemptionHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getBfusdRewardsHistory operation in BfusdApi.\n * @interface GetBfusdRewardsHistoryRequest\n */\nexport interface GetBfusdRewardsHistoryRequest {\n /**\n *\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRewardsHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRewardsHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRewardsHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRewardsHistory\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdRewardsHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getBfusdSubscriptionHistory operation in BfusdApi.\n * @interface GetBfusdSubscriptionHistoryRequest\n */\nexport interface GetBfusdSubscriptionHistoryRequest {\n /**\n * USDC or USDT\n * @type {string}\n * @memberof BfusdApiGetBfusdSubscriptionHistory\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdSubscriptionHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdSubscriptionHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdSubscriptionHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdSubscriptionHistory\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof BfusdApiGetBfusdSubscriptionHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for redeemBfusd operation in BfusdApi.\n * @interface RedeemBfusdRequest\n */\nexport interface RedeemBfusdRequest {\n /**\n * Amount\n * @type {number}\n * @memberof BfusdApiRedeemBfusd\n */\n readonly amount: number;\n\n /**\n * FAST or STANDARD, defaults to STANDARD\n * @type {string}\n * @memberof BfusdApiRedeemBfusd\n */\n readonly type: string;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof BfusdApiRedeemBfusd\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for subscribeBfusd operation in BfusdApi.\n * @interface SubscribeBfusdRequest\n */\nexport interface SubscribeBfusdRequest {\n /**\n * USDT or USDC (whichever is eligible)\n * @type {string}\n * @memberof BfusdApiSubscribeBfusd\n */\n readonly asset: string;\n\n /**\n * Amount\n * @type {number}\n * @memberof BfusdApiSubscribeBfusd\n */\n readonly amount: number;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof BfusdApiSubscribeBfusd\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * BfusdApi - object-oriented interface\n * @class BfusdApi\n */\nexport class BfusdApi implements BfusdApiInterface {\n private readonly configuration: ConfigurationRestAPI;\n private localVarAxiosParamCreator;\n\n constructor(configuration: ConfigurationRestAPI) {\n this.configuration = configuration;\n this.localVarAxiosParamCreator = BfusdApiAxiosParamCreator(configuration);\n }\n\n /**\n * Get BFUSD account information.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Account (USER_DATA)\n * @param {GetBfusdAccountRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetBfusdAccountResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/account/ Binance API Documentation}\n */\n public async getBfusdAccount(\n requestParameters: GetBfusdAccountRequest = {}\n ): Promise<RestApiResponse<GetBfusdAccountResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBfusdAccount(\n requestParameters?.recvWindow\n );\n return sendRequest<GetBfusdAccountResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get BFUSD quota details including fast redemption quota and standard redemption quota.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Quota Details (USER_DATA)\n * @param {GetBfusdQuotaDetailsRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetBfusdQuotaDetailsResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/account/Get-BFUSD-Quota-Details Binance API Documentation}\n */\n public async getBfusdQuotaDetails(\n requestParameters: GetBfusdQuotaDetailsRequest = {}\n ): Promise<RestApiResponse<GetBfusdQuotaDetailsResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBfusdQuotaDetails(\n requestParameters?.recvWindow\n );\n return sendRequest<GetBfusdQuotaDetailsResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get BFUSD rate history sorted by descending order.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Rate History (USER_DATA)\n * @param {GetBfusdRateHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetBfusdRateHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/history/Get-BFUSD-Rate-History Binance API Documentation}\n */\n public async getBfusdRateHistory(\n requestParameters: GetBfusdRateHistoryRequest = {}\n ): Promise<RestApiResponse<GetBfusdRateHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBfusdRateHistory(\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetBfusdRateHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get BFUSD redemption history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Redemption History (USER_DATA)\n * @param {GetBfusdRedemptionHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetBfusdRedemptionHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/history/Get-BFUSD-Redemption-History Binance API Documentation}\n */\n public async getBfusdRedemptionHistory(\n requestParameters: GetBfusdRedemptionHistoryRequest = {}\n ): Promise<RestApiResponse<GetBfusdRedemptionHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBfusdRedemptionHistory(\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetBfusdRedemptionHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get BFUSD rewards history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Rewards History (USER_DATA)\n * @param {GetBfusdRewardsHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetBfusdRewardsHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/history/Get-BFUSD-Rewards-History Binance API Documentation}\n */\n public async getBfusdRewardsHistory(\n requestParameters: GetBfusdRewardsHistoryRequest = {}\n ): Promise<RestApiResponse<GetBfusdRewardsHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBfusdRewardsHistory(\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetBfusdRewardsHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get BFUSD subscription history\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time advanced by one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD subscription history(USER_DATA)\n * @param {GetBfusdSubscriptionHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetBfusdSubscriptionHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/history/Get-BFUSD-subscription-history Binance API Documentation}\n */\n public async getBfusdSubscriptionHistory(\n requestParameters: GetBfusdSubscriptionHistoryRequest = {}\n ): Promise<RestApiResponse<GetBfusdSubscriptionHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBfusdSubscriptionHistory(\n requestParameters?.asset,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetBfusdSubscriptionHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Redeem BFUSD to USDT\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Redeem BFUSD(TRADE)\n * @param {RedeemBfusdRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<RedeemBfusdResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/earn/Redeem-BFUSD Binance API Documentation}\n */\n public async redeemBfusd(\n requestParameters: RedeemBfusdRequest\n ): Promise<RestApiResponse<RedeemBfusdResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.redeemBfusd(\n requestParameters?.amount,\n requestParameters?.type,\n requestParameters?.recvWindow\n );\n return sendRequest<RedeemBfusdResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Subscribe BFUSD\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Subscribe BFUSD(TRADE)\n * @param {SubscribeBfusdRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<SubscribeBfusdResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof BfusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/earn/Subscribe-BFUSD Binance API Documentation}\n */\n public async subscribeBfusd(\n requestParameters: SubscribeBfusdRequest\n ): Promise<RestApiResponse<SubscribeBfusdResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.subscribeBfusd(\n requestParameters?.asset,\n requestParameters?.amount,\n requestParameters?.recvWindow\n );\n return sendRequest<SubscribeBfusdResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n}\n","/**\n * Binance Simple Earn REST API\n *\n * OpenAPI Specification for the Binance Simple Earn REST API\n *\n * The version of the OpenAPI document: 1.0.0\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport {\n ConfigurationRestAPI,\n TimeUnit,\n RestApiResponse,\n assertParamExists,\n sendRequest,\n type RequestArgs,\n} from '@binance/common';\nimport type {\n GetCollateralRecordResponse,\n GetFlexiblePersonalLeftQuotaResponse,\n GetFlexibleProductPositionResponse,\n GetFlexibleRedemptionRecordResponse,\n GetFlexibleRewardsHistoryResponse,\n GetFlexibleSubscriptionPreviewResponse,\n GetFlexibleSubscriptionRecordResponse,\n GetLockedPersonalLeftQuotaResponse,\n GetLockedProductPositionResponse,\n GetLockedRedemptionRecordResponse,\n GetLockedRewardsHistoryResponse,\n GetLockedSubscriptionPreviewResponse,\n GetLockedSubscriptionRecordResponse,\n GetRateHistoryResponse,\n GetSimpleEarnFlexibleProductListResponse,\n GetSimpleEarnLockedProductListResponse,\n RedeemFlexibleProductResponse,\n RedeemLockedProductResponse,\n SetFlexibleAutoSubscribeResponse,\n SetLockedAutoSubscribeResponse,\n SetLockedProductRedeemOptionResponse,\n SimpleAccountResponse,\n SubscribeFlexibleProductResponse,\n SubscribeLockedProductResponse,\n} from '../types';\n\n/**\n * FlexibleLockedApi - axios parameter creator\n */\nconst FlexibleLockedApiAxiosParamCreator = function (configuration: ConfigurationRestAPI) {\n return {\n /**\n * Get Collateral Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 30 days.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 1\n *\n * @summary Get Collateral Record(USER_DATA)\n * @param {string} [productId]\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getCollateralRecord: async (\n productId?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/flexible/history/collateralRecord',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Flexible Personal Left Quota\n *\n * Weight: 150\n *\n * @summary Get Flexible Personal Left Quota(USER_DATA)\n * @param {string} productId\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getFlexiblePersonalLeftQuota: async (\n productId: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'productId' is not null or undefined\n assertParamExists('getFlexiblePersonalLeftQuota', 'productId', productId);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/flexible/personalLeftQuota',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Flexible Product Position\n *\n * Weight: 150\n *\n * @summary Get Flexible Product Position(USER_DATA)\n * @param {string} [asset] USDC or USDT\n * @param {string} [productId]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getFlexibleProductPosition: async (\n asset?: string,\n productId?: string,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/flexible/position',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Flexible Redemption Record\n *\n *\tThe time between `startTime` and `endTime` cannot be longer than 3 months.\n *\tIf `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n *\tIf `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n *\tIf `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Flexible Redemption Record(USER_DATA)\n * @param {string} [productId]\n * @param {string} [redeemId]\n * @param {string} [asset] USDC or USDT\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getFlexibleRedemptionRecord: async (\n productId?: string,\n redeemId?: string,\n asset?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n if (redeemId !== undefined && redeemId !== null) {\n localVarQueryParameter['redeemId'] = redeemId;\n }\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/flexible/history/redemptionRecord',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Flexible Rewards History\n *\n *\tThe time between `startTime` and `endTime` cannot be longer than 3 months.\n *\tIf `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n *\tIf `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n *\tIf `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Flexible Rewards History(USER_DATA)\n * @param {string} type FAST or STANDARD, defaults to STANDARD\n * @param {string} [productId]\n * @param {string} [asset] USDC or USDT\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getFlexibleRewardsHistory: async (\n type: string,\n productId?: string,\n asset?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'type' is not null or undefined\n assertParamExists('getFlexibleRewardsHistory', 'type', type);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (type !== undefined && type !== null) {\n localVarQueryParameter['type'] = type;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/flexible/history/rewardsRecord',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Flexible Subscription Preview\n *\n * Weight: 150\n *\n * @summary Get Flexible Subscription Preview(USER_DATA)\n * @param {string} productId\n * @param {number} amount Amount\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getFlexibleSubscriptionPreview: async (\n productId: string,\n amount: number,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'productId' is not null or undefined\n assertParamExists('getFlexibleSubscriptionPreview', 'productId', productId);\n // verify required parameter 'amount' is not null or undefined\n assertParamExists('getFlexibleSubscriptionPreview', 'amount', amount);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/flexible/subscriptionPreview',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Flexible Subscription Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Flexible Subscription Record(USER_DATA)\n * @param {string} [productId]\n * @param {string} [purchaseId]\n * @param {string} [asset] USDC or USDT\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getFlexibleSubscriptionRecord: async (\n productId?: string,\n purchaseId?: string,\n asset?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n if (purchaseId !== undefined && purchaseId !== null) {\n localVarQueryParameter['purchaseId'] = purchaseId;\n }\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/flexible/history/subscriptionRecord',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Locked Personal Left Quota\n *\n * Weight: 150\n *\n * @summary Get Locked Personal Left Quota(USER_DATA)\n * @param {string} projectId\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getLockedPersonalLeftQuota: async (\n projectId: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'projectId' is not null or undefined\n assertParamExists('getLockedPersonalLeftQuota', 'projectId', projectId);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (projectId !== undefined && projectId !== null) {\n localVarQueryParameter['projectId'] = projectId;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/locked/personalLeftQuota',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Locked Product Position\n *\n * Weight: 150\n *\n * @summary Get Locked Product Position\n * @param {string} [asset] USDC or USDT\n * @param {number | bigint} [positionId]\n * @param {string} [projectId]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getLockedProductPosition: async (\n asset?: string,\n positionId?: number | bigint,\n projectId?: string,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (positionId !== undefined && positionId !== null) {\n localVarQueryParameter['positionId'] = positionId;\n }\n if (projectId !== undefined && projectId !== null) {\n localVarQueryParameter['projectId'] = projectId;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/locked/position',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Locked Redemption Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Locked Redemption Record(USER_DATA)\n * @param {number | bigint} [positionId]\n * @param {string} [redeemId]\n * @param {string} [asset] USDC or USDT\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getLockedRedemptionRecord: async (\n positionId?: number | bigint,\n redeemId?: string,\n asset?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (positionId !== undefined && positionId !== null) {\n localVarQueryParameter['positionId'] = positionId;\n }\n if (redeemId !== undefined && redeemId !== null) {\n localVarQueryParameter['redeemId'] = redeemId;\n }\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/locked/history/redemptionRecord',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Locked Rewards History\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Locked Rewards History(USER_DATA)\n * @param {number | bigint} [positionId]\n * @param {string} [asset] USDC or USDT\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getLockedRewardsHistory: async (\n positionId?: number | bigint,\n asset?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (positionId !== undefined && positionId !== null) {\n localVarQueryParameter['positionId'] = positionId;\n }\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/locked/history/rewardsRecord',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Locked Subscription Preview\n *\n * Weight: 150\n *\n * @summary Get Locked Subscription Preview(USER_DATA)\n * @param {string} projectId\n * @param {number} amount Amount\n * @param {boolean} [autoSubscribe] true or false, default true.\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getLockedSubscriptionPreview: async (\n projectId: string,\n amount: number,\n autoSubscribe?: boolean,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'projectId' is not null or undefined\n assertParamExists('getLockedSubscriptionPreview', 'projectId', projectId);\n // verify required parameter 'amount' is not null or undefined\n assertParamExists('getLockedSubscriptionPreview', 'amount', amount);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (projectId !== undefined && projectId !== null) {\n localVarQueryParameter['projectId'] = projectId;\n }\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n if (autoSubscribe !== undefined && autoSubscribe !== null) {\n localVarQueryParameter['autoSubscribe'] = autoSubscribe;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/locked/subscriptionPreview',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Locked Subscription Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Locked Subscription Record(USER_DATA)\n * @param {string} [purchaseId]\n * @param {string} [asset] USDC or USDT\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getLockedSubscriptionRecord: async (\n purchaseId?: string,\n asset?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (purchaseId !== undefined && purchaseId !== null) {\n localVarQueryParameter['purchaseId'] = purchaseId;\n }\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/locked/history/subscriptionRecord',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Rate History\n *\n * The time between startTime and endTime cannot be longer than 1 year.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Rate History(USER_DATA)\n * @param {string} productId\n * @param {string} [aprPeriod] \"DAY\",\"YEAR\",default\"DAY\"\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getRateHistory: async (\n productId: string,\n aprPeriod?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'productId' is not null or undefined\n assertParamExists('getRateHistory', 'productId', productId);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n if (aprPeriod !== undefined && aprPeriod !== null) {\n localVarQueryParameter['aprPeriod'] = aprPeriod;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/flexible/history/rateHistory',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get available Simple Earn flexible product list\n *\n * Weight: 150\n *\n * @summary Get Simple Earn Flexible Product List(USER_DATA)\n * @param {string} [asset] USDC or USDT\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getSimpleEarnFlexibleProductList: async (\n asset?: string,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/flexible/list',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Simple Earn Locked Product List\n *\n * Get available Simple Earn locked product list\n *\n * Weight: 150\n *\n * @summary Get Simple Earn Locked Product List(USER_DATA)\n * @param {string} [asset] USDC or USDT\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getSimpleEarnLockedProductList: async (\n asset?: string,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/locked/list',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Redeem Flexible Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1\n *\n * @summary Redeem Flexible Product(TRADE)\n * @param {string} productId\n * @param {boolean} [redeemAll] true or false, default to false\n * @param {number} [amount] if redeemAll is false, amount is mandatory\n * @param {string} [destAccount] `SPOT`,`FUND`, default `SPOT`\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n redeemFlexibleProduct: async (\n productId: string,\n redeemAll?: boolean,\n amount?: number,\n destAccount?: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'productId' is not null or undefined\n assertParamExists('redeemFlexibleProduct', 'productId', productId);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n if (redeemAll !== undefined && redeemAll !== null) {\n localVarQueryParameter['redeemAll'] = redeemAll;\n }\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n if (destAccount !== undefined && destAccount !== null) {\n localVarQueryParameter['destAccount'] = destAccount;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/flexible/redeem',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Redeem Locked Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1/3s per account\n *\n * @summary Redeem Locked Product(TRADE)\n * @param {string} positionId\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n redeemLockedProduct: async (\n positionId: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'positionId' is not null or undefined\n assertParamExists('redeemLockedProduct', 'positionId', positionId);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (positionId !== undefined && positionId !== null) {\n localVarQueryParameter['positionId'] = positionId;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/locked/redeem',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Set Flexible Auto Subscribe\n *\n * Weight: 150\n *\n * @summary Set Flexible Auto Subscribe(USER_DATA)\n * @param {string} productId\n * @param {boolean} autoSubscribe true or false\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n setFlexibleAutoSubscribe: async (\n productId: string,\n autoSubscribe: boolean,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'productId' is not null or undefined\n assertParamExists('setFlexibleAutoSubscribe', 'productId', productId);\n // verify required parameter 'autoSubscribe' is not null or undefined\n assertParamExists('setFlexibleAutoSubscribe', 'autoSubscribe', autoSubscribe);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n if (autoSubscribe !== undefined && autoSubscribe !== null) {\n localVarQueryParameter['autoSubscribe'] = autoSubscribe;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/flexible/setAutoSubscribe',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Set locked auto subscribe\n *\n * Weight: 150\n *\n * @summary Set Locked Auto Subscribe(USER_DATA)\n * @param {string} positionId\n * @param {boolean} autoSubscribe true or false\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n setLockedAutoSubscribe: async (\n positionId: string,\n autoSubscribe: boolean,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'positionId' is not null or undefined\n assertParamExists('setLockedAutoSubscribe', 'positionId', positionId);\n // verify required parameter 'autoSubscribe' is not null or undefined\n assertParamExists('setLockedAutoSubscribe', 'autoSubscribe', autoSubscribe);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (positionId !== undefined && positionId !== null) {\n localVarQueryParameter['positionId'] = positionId;\n }\n if (autoSubscribe !== undefined && autoSubscribe !== null) {\n localVarQueryParameter['autoSubscribe'] = autoSubscribe;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/locked/setAutoSubscribe',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Set redeem option for Locked product\n *\n * Weight: 50\n *\n * @summary Set Locked Product Redeem Option(USER_DATA)\n * @param {string} positionId\n * @param {string} redeemTo `SPOT`,'FLEXIBLE'\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n setLockedProductRedeemOption: async (\n positionId: string,\n redeemTo: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'positionId' is not null or undefined\n assertParamExists('setLockedProductRedeemOption', 'positionId', positionId);\n // verify required parameter 'redeemTo' is not null or undefined\n assertParamExists('setLockedProductRedeemOption', 'redeemTo', redeemTo);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (positionId !== undefined && positionId !== null) {\n localVarQueryParameter['positionId'] = positionId;\n }\n if (redeemTo !== undefined && redeemTo !== null) {\n localVarQueryParameter['redeemTo'] = redeemTo;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/locked/setRedeemOption',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Simple Account query\n *\n * Weight: 150\n *\n * @summary Simple Account(USER_DATA)\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n simpleAccount: async (recvWindow?: number | bigint): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/account',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Subscribe Flexible Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1\n *\n * @summary Subscribe Flexible Product(TRADE)\n * @param {string} productId\n * @param {number} amount Amount\n * @param {boolean} [autoSubscribe] true or false, default true.\n * @param {string} [sourceAccount] `SPOT`,`FUND`,`ALL`, default `SPOT`\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n subscribeFlexibleProduct: async (\n productId: string,\n amount: number,\n autoSubscribe?: boolean,\n sourceAccount?: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'productId' is not null or undefined\n assertParamExists('subscribeFlexibleProduct', 'productId', productId);\n // verify required parameter 'amount' is not null or undefined\n assertParamExists('subscribeFlexibleProduct', 'amount', amount);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n if (autoSubscribe !== undefined && autoSubscribe !== null) {\n localVarQueryParameter['autoSubscribe'] = autoSubscribe;\n }\n if (sourceAccount !== undefined && sourceAccount !== null) {\n localVarQueryParameter['sourceAccount'] = sourceAccount;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/flexible/subscribe',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Subscribe Locked Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1\n *\n * @summary Subscribe Locked Product(TRADE)\n * @param {string} projectId\n * @param {number} amount Amount\n * @param {boolean} [autoSubscribe] true or false, default true.\n * @param {string} [sourceAccount] `SPOT`,`FUND`,`ALL`, default `SPOT`\n * @param {string} [redeemTo] `SPOT`,`FLEXIBLE`, default `SPOT`\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n subscribeLockedProduct: async (\n projectId: string,\n amount: number,\n autoSubscribe?: boolean,\n sourceAccount?: string,\n redeemTo?: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'projectId' is not null or undefined\n assertParamExists('subscribeLockedProduct', 'projectId', projectId);\n // verify required parameter 'amount' is not null or undefined\n assertParamExists('subscribeLockedProduct', 'amount', amount);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (projectId !== undefined && projectId !== null) {\n localVarQueryParameter['projectId'] = projectId;\n }\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n if (autoSubscribe !== undefined && autoSubscribe !== null) {\n localVarQueryParameter['autoSubscribe'] = autoSubscribe;\n }\n if (sourceAccount !== undefined && sourceAccount !== null) {\n localVarQueryParameter['sourceAccount'] = sourceAccount;\n }\n if (redeemTo !== undefined && redeemTo !== null) {\n localVarQueryParameter['redeemTo'] = redeemTo;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/simple-earn/locked/subscribe',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n };\n};\n\n/**\n * FlexibleLockedApi - interface\n * @interface FlexibleLockedApi\n */\nexport interface FlexibleLockedApiInterface {\n /**\n * Get Collateral Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 30 days.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 1\n *\n * @summary Get Collateral Record(USER_DATA)\n * @param {GetCollateralRecordRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getCollateralRecord(\n requestParameters?: GetCollateralRecordRequest\n ): Promise<RestApiResponse<GetCollateralRecordResponse>>;\n /**\n * Get Flexible Personal Left Quota\n *\n * Weight: 150\n *\n * @summary Get Flexible Personal Left Quota(USER_DATA)\n * @param {GetFlexiblePersonalLeftQuotaRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getFlexiblePersonalLeftQuota(\n requestParameters: GetFlexiblePersonalLeftQuotaRequest\n ): Promise<RestApiResponse<GetFlexiblePersonalLeftQuotaResponse>>;\n /**\n * Get Flexible Product Position\n *\n * Weight: 150\n *\n * @summary Get Flexible Product Position(USER_DATA)\n * @param {GetFlexibleProductPositionRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getFlexibleProductPosition(\n requestParameters?: GetFlexibleProductPositionRequest\n ): Promise<RestApiResponse<GetFlexibleProductPositionResponse>>;\n /**\n * Get Flexible Redemption Record\n *\n *\tThe time between `startTime` and `endTime` cannot be longer than 3 months.\n *\tIf `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n *\tIf `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n *\tIf `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Flexible Redemption Record(USER_DATA)\n * @param {GetFlexibleRedemptionRecordRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getFlexibleRedemptionRecord(\n requestParameters?: GetFlexibleRedemptionRecordRequest\n ): Promise<RestApiResponse<GetFlexibleRedemptionRecordResponse>>;\n /**\n * Get Flexible Rewards History\n *\n *\tThe time between `startTime` and `endTime` cannot be longer than 3 months.\n *\tIf `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n *\tIf `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n *\tIf `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Flexible Rewards History(USER_DATA)\n * @param {GetFlexibleRewardsHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getFlexibleRewardsHistory(\n requestParameters: GetFlexibleRewardsHistoryRequest\n ): Promise<RestApiResponse<GetFlexibleRewardsHistoryResponse>>;\n /**\n * Get Flexible Subscription Preview\n *\n * Weight: 150\n *\n * @summary Get Flexible Subscription Preview(USER_DATA)\n * @param {GetFlexibleSubscriptionPreviewRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getFlexibleSubscriptionPreview(\n requestParameters: GetFlexibleSubscriptionPreviewRequest\n ): Promise<RestApiResponse<GetFlexibleSubscriptionPreviewResponse>>;\n /**\n * Get Flexible Subscription Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Flexible Subscription Record(USER_DATA)\n * @param {GetFlexibleSubscriptionRecordRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getFlexibleSubscriptionRecord(\n requestParameters?: GetFlexibleSubscriptionRecordRequest\n ): Promise<RestApiResponse<GetFlexibleSubscriptionRecordResponse>>;\n /**\n * Get Locked Personal Left Quota\n *\n * Weight: 150\n *\n * @summary Get Locked Personal Left Quota(USER_DATA)\n * @param {GetLockedPersonalLeftQuotaRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getLockedPersonalLeftQuota(\n requestParameters: GetLockedPersonalLeftQuotaRequest\n ): Promise<RestApiResponse<GetLockedPersonalLeftQuotaResponse>>;\n /**\n * Get Locked Product Position\n *\n * Weight: 150\n *\n * @summary Get Locked Product Position\n * @param {GetLockedProductPositionRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getLockedProductPosition(\n requestParameters?: GetLockedProductPositionRequest\n ): Promise<RestApiResponse<GetLockedProductPositionResponse>>;\n /**\n * Get Locked Redemption Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Locked Redemption Record(USER_DATA)\n * @param {GetLockedRedemptionRecordRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getLockedRedemptionRecord(\n requestParameters?: GetLockedRedemptionRecordRequest\n ): Promise<RestApiResponse<GetLockedRedemptionRecordResponse>>;\n /**\n * Get Locked Rewards History\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Locked Rewards History(USER_DATA)\n * @param {GetLockedRewardsHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getLockedRewardsHistory(\n requestParameters?: GetLockedRewardsHistoryRequest\n ): Promise<RestApiResponse<GetLockedRewardsHistoryResponse>>;\n /**\n * Get Locked Subscription Preview\n *\n * Weight: 150\n *\n * @summary Get Locked Subscription Preview(USER_DATA)\n * @param {GetLockedSubscriptionPreviewRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getLockedSubscriptionPreview(\n requestParameters: GetLockedSubscriptionPreviewRequest\n ): Promise<RestApiResponse<GetLockedSubscriptionPreviewResponse>>;\n /**\n * Get Locked Subscription Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Locked Subscription Record(USER_DATA)\n * @param {GetLockedSubscriptionRecordRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getLockedSubscriptionRecord(\n requestParameters?: GetLockedSubscriptionRecordRequest\n ): Promise<RestApiResponse<GetLockedSubscriptionRecordResponse>>;\n /**\n * Get Rate History\n *\n * The time between startTime and endTime cannot be longer than 1 year.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Rate History(USER_DATA)\n * @param {GetRateHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getRateHistory(\n requestParameters: GetRateHistoryRequest\n ): Promise<RestApiResponse<GetRateHistoryResponse>>;\n /**\n * Get available Simple Earn flexible product list\n *\n * Weight: 150\n *\n * @summary Get Simple Earn Flexible Product List(USER_DATA)\n * @param {GetSimpleEarnFlexibleProductListRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getSimpleEarnFlexibleProductList(\n requestParameters?: GetSimpleEarnFlexibleProductListRequest\n ): Promise<RestApiResponse<GetSimpleEarnFlexibleProductListResponse>>;\n /**\n * Get Simple Earn Locked Product List\n *\n * Get available Simple Earn locked product list\n *\n * Weight: 150\n *\n * @summary Get Simple Earn Locked Product List(USER_DATA)\n * @param {GetSimpleEarnLockedProductListRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n getSimpleEarnLockedProductList(\n requestParameters?: GetSimpleEarnLockedProductListRequest\n ): Promise<RestApiResponse<GetSimpleEarnLockedProductListResponse>>;\n /**\n * Redeem Flexible Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1\n *\n * @summary Redeem Flexible Product(TRADE)\n * @param {RedeemFlexibleProductRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n redeemFlexibleProduct(\n requestParameters: RedeemFlexibleProductRequest\n ): Promise<RestApiResponse<RedeemFlexibleProductResponse>>;\n /**\n * Redeem Locked Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1/3s per account\n *\n * @summary Redeem Locked Product(TRADE)\n * @param {RedeemLockedProductRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n redeemLockedProduct(\n requestParameters: RedeemLockedProductRequest\n ): Promise<RestApiResponse<RedeemLockedProductResponse>>;\n /**\n * Set Flexible Auto Subscribe\n *\n * Weight: 150\n *\n * @summary Set Flexible Auto Subscribe(USER_DATA)\n * @param {SetFlexibleAutoSubscribeRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n setFlexibleAutoSubscribe(\n requestParameters: SetFlexibleAutoSubscribeRequest\n ): Promise<RestApiResponse<SetFlexibleAutoSubscribeResponse>>;\n /**\n * Set locked auto subscribe\n *\n * Weight: 150\n *\n * @summary Set Locked Auto Subscribe(USER_DATA)\n * @param {SetLockedAutoSubscribeRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n setLockedAutoSubscribe(\n requestParameters: SetLockedAutoSubscribeRequest\n ): Promise<RestApiResponse<SetLockedAutoSubscribeResponse>>;\n /**\n * Set redeem option for Locked product\n *\n * Weight: 50\n *\n * @summary Set Locked Product Redeem Option(USER_DATA)\n * @param {SetLockedProductRedeemOptionRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n setLockedProductRedeemOption(\n requestParameters: SetLockedProductRedeemOptionRequest\n ): Promise<RestApiResponse<SetLockedProductRedeemOptionResponse>>;\n /**\n * Simple Account query\n *\n * Weight: 150\n *\n * @summary Simple Account(USER_DATA)\n * @param {SimpleAccountRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n simpleAccount(\n requestParameters?: SimpleAccountRequest\n ): Promise<RestApiResponse<SimpleAccountResponse>>;\n /**\n * Subscribe Flexible Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1\n *\n * @summary Subscribe Flexible Product(TRADE)\n * @param {SubscribeFlexibleProductRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n subscribeFlexibleProduct(\n requestParameters: SubscribeFlexibleProductRequest\n ): Promise<RestApiResponse<SubscribeFlexibleProductResponse>>;\n /**\n * Subscribe Locked Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1\n *\n * @summary Subscribe Locked Product(TRADE)\n * @param {SubscribeLockedProductRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApiInterface\n */\n subscribeLockedProduct(\n requestParameters: SubscribeLockedProductRequest\n ): Promise<RestApiResponse<SubscribeLockedProductResponse>>;\n}\n\n/**\n * Request parameters for getCollateralRecord operation in FlexibleLockedApi.\n * @interface GetCollateralRecordRequest\n */\nexport interface GetCollateralRecordRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetCollateralRecord\n */\n readonly productId?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetCollateralRecord\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetCollateralRecord\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetCollateralRecord\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetCollateralRecord\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetCollateralRecord\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexiblePersonalLeftQuota operation in FlexibleLockedApi.\n * @interface GetFlexiblePersonalLeftQuotaRequest\n */\nexport interface GetFlexiblePersonalLeftQuotaRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexiblePersonalLeftQuota\n */\n readonly productId: string;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexiblePersonalLeftQuota\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleProductPosition operation in FlexibleLockedApi.\n * @interface GetFlexibleProductPositionRequest\n */\nexport interface GetFlexibleProductPositionRequest {\n /**\n * USDC or USDT\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexibleProductPosition\n */\n readonly asset?: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexibleProductPosition\n */\n readonly productId?: string;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleProductPosition\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleProductPosition\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleProductPosition\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleRedemptionRecord operation in FlexibleLockedApi.\n * @interface GetFlexibleRedemptionRecordRequest\n */\nexport interface GetFlexibleRedemptionRecordRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexibleRedemptionRecord\n */\n readonly productId?: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexibleRedemptionRecord\n */\n readonly redeemId?: string;\n\n /**\n * USDC or USDT\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexibleRedemptionRecord\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleRedemptionRecord\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleRedemptionRecord\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleRedemptionRecord\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleRedemptionRecord\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleRedemptionRecord\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleRewardsHistory operation in FlexibleLockedApi.\n * @interface GetFlexibleRewardsHistoryRequest\n */\nexport interface GetFlexibleRewardsHistoryRequest {\n /**\n * FAST or STANDARD, defaults to STANDARD\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexibleRewardsHistory\n */\n readonly type: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexibleRewardsHistory\n */\n readonly productId?: string;\n\n /**\n * USDC or USDT\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexibleRewardsHistory\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleRewardsHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleRewardsHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleRewardsHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleRewardsHistory\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleRewardsHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleSubscriptionPreview operation in FlexibleLockedApi.\n * @interface GetFlexibleSubscriptionPreviewRequest\n */\nexport interface GetFlexibleSubscriptionPreviewRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionPreview\n */\n readonly productId: string;\n\n /**\n * Amount\n * @type {number}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionPreview\n */\n readonly amount: number;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionPreview\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleSubscriptionRecord operation in FlexibleLockedApi.\n * @interface GetFlexibleSubscriptionRecordRequest\n */\nexport interface GetFlexibleSubscriptionRecordRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionRecord\n */\n readonly productId?: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionRecord\n */\n readonly purchaseId?: string;\n\n /**\n * USDC or USDT\n * @type {string}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionRecord\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionRecord\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionRecord\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionRecord\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionRecord\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionRecord\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getLockedPersonalLeftQuota operation in FlexibleLockedApi.\n * @interface GetLockedPersonalLeftQuotaRequest\n */\nexport interface GetLockedPersonalLeftQuotaRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetLockedPersonalLeftQuota\n */\n readonly projectId: string;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedPersonalLeftQuota\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getLockedProductPosition operation in FlexibleLockedApi.\n * @interface GetLockedProductPositionRequest\n */\nexport interface GetLockedProductPositionRequest {\n /**\n * USDC or USDT\n * @type {string}\n * @memberof FlexibleLockedApiGetLockedProductPosition\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedProductPosition\n */\n readonly positionId?: number | bigint;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetLockedProductPosition\n */\n readonly projectId?: string;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedProductPosition\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedProductPosition\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedProductPosition\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getLockedRedemptionRecord operation in FlexibleLockedApi.\n * @interface GetLockedRedemptionRecordRequest\n */\nexport interface GetLockedRedemptionRecordRequest {\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedRedemptionRecord\n */\n readonly positionId?: number | bigint;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetLockedRedemptionRecord\n */\n readonly redeemId?: string;\n\n /**\n * USDC or USDT\n * @type {string}\n * @memberof FlexibleLockedApiGetLockedRedemptionRecord\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedRedemptionRecord\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedRedemptionRecord\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedRedemptionRecord\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedRedemptionRecord\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedRedemptionRecord\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getLockedRewardsHistory operation in FlexibleLockedApi.\n * @interface GetLockedRewardsHistoryRequest\n */\nexport interface GetLockedRewardsHistoryRequest {\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedRewardsHistory\n */\n readonly positionId?: number | bigint;\n\n /**\n * USDC or USDT\n * @type {string}\n * @memberof FlexibleLockedApiGetLockedRewardsHistory\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedRewardsHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedRewardsHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedRewardsHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedRewardsHistory\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedRewardsHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getLockedSubscriptionPreview operation in FlexibleLockedApi.\n * @interface GetLockedSubscriptionPreviewRequest\n */\nexport interface GetLockedSubscriptionPreviewRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetLockedSubscriptionPreview\n */\n readonly projectId: string;\n\n /**\n * Amount\n * @type {number}\n * @memberof FlexibleLockedApiGetLockedSubscriptionPreview\n */\n readonly amount: number;\n\n /**\n * true or false, default true.\n * @type {boolean}\n * @memberof FlexibleLockedApiGetLockedSubscriptionPreview\n */\n readonly autoSubscribe?: boolean;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedSubscriptionPreview\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getLockedSubscriptionRecord operation in FlexibleLockedApi.\n * @interface GetLockedSubscriptionRecordRequest\n */\nexport interface GetLockedSubscriptionRecordRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetLockedSubscriptionRecord\n */\n readonly purchaseId?: string;\n\n /**\n * USDC or USDT\n * @type {string}\n * @memberof FlexibleLockedApiGetLockedSubscriptionRecord\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedSubscriptionRecord\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedSubscriptionRecord\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedSubscriptionRecord\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedSubscriptionRecord\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetLockedSubscriptionRecord\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getRateHistory operation in FlexibleLockedApi.\n * @interface GetRateHistoryRequest\n */\nexport interface GetRateHistoryRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetRateHistory\n */\n readonly productId: string;\n\n /**\n * \"DAY\",\"YEAR\",default\"DAY\"\n * @type {string}\n * @memberof FlexibleLockedApiGetRateHistory\n */\n readonly aprPeriod?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetRateHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetRateHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetRateHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetRateHistory\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetRateHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getSimpleEarnFlexibleProductList operation in FlexibleLockedApi.\n * @interface GetSimpleEarnFlexibleProductListRequest\n */\nexport interface GetSimpleEarnFlexibleProductListRequest {\n /**\n * USDC or USDT\n * @type {string}\n * @memberof FlexibleLockedApiGetSimpleEarnFlexibleProductList\n */\n readonly asset?: string;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetSimpleEarnFlexibleProductList\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetSimpleEarnFlexibleProductList\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetSimpleEarnFlexibleProductList\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getSimpleEarnLockedProductList operation in FlexibleLockedApi.\n * @interface GetSimpleEarnLockedProductListRequest\n */\nexport interface GetSimpleEarnLockedProductListRequest {\n /**\n * USDC or USDT\n * @type {string}\n * @memberof FlexibleLockedApiGetSimpleEarnLockedProductList\n */\n readonly asset?: string;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetSimpleEarnLockedProductList\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetSimpleEarnLockedProductList\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiGetSimpleEarnLockedProductList\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for redeemFlexibleProduct operation in FlexibleLockedApi.\n * @interface RedeemFlexibleProductRequest\n */\nexport interface RedeemFlexibleProductRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiRedeemFlexibleProduct\n */\n readonly productId: string;\n\n /**\n * true or false, default to false\n * @type {boolean}\n * @memberof FlexibleLockedApiRedeemFlexibleProduct\n */\n readonly redeemAll?: boolean;\n\n /**\n * if redeemAll is false, amount is mandatory\n * @type {number}\n * @memberof FlexibleLockedApiRedeemFlexibleProduct\n */\n readonly amount?: number;\n\n /**\n * `SPOT`,`FUND`, default `SPOT`\n * @type {string}\n * @memberof FlexibleLockedApiRedeemFlexibleProduct\n */\n readonly destAccount?: string;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiRedeemFlexibleProduct\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for redeemLockedProduct operation in FlexibleLockedApi.\n * @interface RedeemLockedProductRequest\n */\nexport interface RedeemLockedProductRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiRedeemLockedProduct\n */\n readonly positionId: string;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiRedeemLockedProduct\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for setFlexibleAutoSubscribe operation in FlexibleLockedApi.\n * @interface SetFlexibleAutoSubscribeRequest\n */\nexport interface SetFlexibleAutoSubscribeRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiSetFlexibleAutoSubscribe\n */\n readonly productId: string;\n\n /**\n * true or false\n * @type {boolean}\n * @memberof FlexibleLockedApiSetFlexibleAutoSubscribe\n */\n readonly autoSubscribe: boolean;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiSetFlexibleAutoSubscribe\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for setLockedAutoSubscribe operation in FlexibleLockedApi.\n * @interface SetLockedAutoSubscribeRequest\n */\nexport interface SetLockedAutoSubscribeRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiSetLockedAutoSubscribe\n */\n readonly positionId: string;\n\n /**\n * true or false\n * @type {boolean}\n * @memberof FlexibleLockedApiSetLockedAutoSubscribe\n */\n readonly autoSubscribe: boolean;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiSetLockedAutoSubscribe\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for setLockedProductRedeemOption operation in FlexibleLockedApi.\n * @interface SetLockedProductRedeemOptionRequest\n */\nexport interface SetLockedProductRedeemOptionRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiSetLockedProductRedeemOption\n */\n readonly positionId: string;\n\n /**\n * `SPOT`,'FLEXIBLE'\n * @type {string}\n * @memberof FlexibleLockedApiSetLockedProductRedeemOption\n */\n readonly redeemTo: string;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiSetLockedProductRedeemOption\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for simpleAccount operation in FlexibleLockedApi.\n * @interface SimpleAccountRequest\n */\nexport interface SimpleAccountRequest {\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiSimpleAccount\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for subscribeFlexibleProduct operation in FlexibleLockedApi.\n * @interface SubscribeFlexibleProductRequest\n */\nexport interface SubscribeFlexibleProductRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiSubscribeFlexibleProduct\n */\n readonly productId: string;\n\n /**\n * Amount\n * @type {number}\n * @memberof FlexibleLockedApiSubscribeFlexibleProduct\n */\n readonly amount: number;\n\n /**\n * true or false, default true.\n * @type {boolean}\n * @memberof FlexibleLockedApiSubscribeFlexibleProduct\n */\n readonly autoSubscribe?: boolean;\n\n /**\n * `SPOT`,`FUND`,`ALL`, default `SPOT`\n * @type {string}\n * @memberof FlexibleLockedApiSubscribeFlexibleProduct\n */\n readonly sourceAccount?: string;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiSubscribeFlexibleProduct\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for subscribeLockedProduct operation in FlexibleLockedApi.\n * @interface SubscribeLockedProductRequest\n */\nexport interface SubscribeLockedProductRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiSubscribeLockedProduct\n */\n readonly projectId: string;\n\n /**\n * Amount\n * @type {number}\n * @memberof FlexibleLockedApiSubscribeLockedProduct\n */\n readonly amount: number;\n\n /**\n * true or false, default true.\n * @type {boolean}\n * @memberof FlexibleLockedApiSubscribeLockedProduct\n */\n readonly autoSubscribe?: boolean;\n\n /**\n * `SPOT`,`FUND`,`ALL`, default `SPOT`\n * @type {string}\n * @memberof FlexibleLockedApiSubscribeLockedProduct\n */\n readonly sourceAccount?: string;\n\n /**\n * `SPOT`,`FLEXIBLE`, default `SPOT`\n * @type {string}\n * @memberof FlexibleLockedApiSubscribeLockedProduct\n */\n readonly redeemTo?: string;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof FlexibleLockedApiSubscribeLockedProduct\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * FlexibleLockedApi - object-oriented interface\n * @class FlexibleLockedApi\n */\nexport class FlexibleLockedApi implements FlexibleLockedApiInterface {\n private readonly configuration: ConfigurationRestAPI;\n private localVarAxiosParamCreator;\n\n constructor(configuration: ConfigurationRestAPI) {\n this.configuration = configuration;\n this.localVarAxiosParamCreator = FlexibleLockedApiAxiosParamCreator(configuration);\n }\n\n /**\n * Get Collateral Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 30 days.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 1\n *\n * @summary Get Collateral Record(USER_DATA)\n * @param {GetCollateralRecordRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetCollateralRecordResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Collateral-Record Binance API Documentation}\n */\n public async getCollateralRecord(\n requestParameters: GetCollateralRecordRequest = {}\n ): Promise<RestApiResponse<GetCollateralRecordResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCollateralRecord(\n requestParameters?.productId,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetCollateralRecordResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Flexible Personal Left Quota\n *\n * Weight: 150\n *\n * @summary Get Flexible Personal Left Quota(USER_DATA)\n * @param {GetFlexiblePersonalLeftQuotaRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexiblePersonalLeftQuotaResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Flexible-Personal-Left-Quota Binance API Documentation}\n */\n public async getFlexiblePersonalLeftQuota(\n requestParameters: GetFlexiblePersonalLeftQuotaRequest\n ): Promise<RestApiResponse<GetFlexiblePersonalLeftQuotaResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexiblePersonalLeftQuota(\n requestParameters?.productId,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexiblePersonalLeftQuotaResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Flexible Product Position\n *\n * Weight: 150\n *\n * @summary Get Flexible Product Position(USER_DATA)\n * @param {GetFlexibleProductPositionRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleProductPositionResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Flexible-Product-Position Binance API Documentation}\n */\n public async getFlexibleProductPosition(\n requestParameters: GetFlexibleProductPositionRequest = {}\n ): Promise<RestApiResponse<GetFlexibleProductPositionResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleProductPosition(\n requestParameters?.asset,\n requestParameters?.productId,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexibleProductPositionResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Flexible Redemption Record\n *\n *\tThe time between `startTime` and `endTime` cannot be longer than 3 months.\n *\tIf `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n *\tIf `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n *\tIf `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Flexible Redemption Record(USER_DATA)\n * @param {GetFlexibleRedemptionRecordRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleRedemptionRecordResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Flexible-Redemption-Record Binance API Documentation}\n */\n public async getFlexibleRedemptionRecord(\n requestParameters: GetFlexibleRedemptionRecordRequest = {}\n ): Promise<RestApiResponse<GetFlexibleRedemptionRecordResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleRedemptionRecord(\n requestParameters?.productId,\n requestParameters?.redeemId,\n requestParameters?.asset,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexibleRedemptionRecordResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Flexible Rewards History\n *\n *\tThe time between `startTime` and `endTime` cannot be longer than 3 months.\n *\tIf `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n *\tIf `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n *\tIf `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Flexible Rewards History(USER_DATA)\n * @param {GetFlexibleRewardsHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleRewardsHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Flexible-Rewards-History Binance API Documentation}\n */\n public async getFlexibleRewardsHistory(\n requestParameters: GetFlexibleRewardsHistoryRequest\n ): Promise<RestApiResponse<GetFlexibleRewardsHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleRewardsHistory(\n requestParameters?.type,\n requestParameters?.productId,\n requestParameters?.asset,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexibleRewardsHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Flexible Subscription Preview\n *\n * Weight: 150\n *\n * @summary Get Flexible Subscription Preview(USER_DATA)\n * @param {GetFlexibleSubscriptionPreviewRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleSubscriptionPreviewResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Get-Flexible-Subscription-Preview Binance API Documentation}\n */\n public async getFlexibleSubscriptionPreview(\n requestParameters: GetFlexibleSubscriptionPreviewRequest\n ): Promise<RestApiResponse<GetFlexibleSubscriptionPreviewResponse>> {\n const localVarAxiosArgs =\n await this.localVarAxiosParamCreator.getFlexibleSubscriptionPreview(\n requestParameters?.productId,\n requestParameters?.amount,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexibleSubscriptionPreviewResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Flexible Subscription Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Flexible Subscription Record(USER_DATA)\n * @param {GetFlexibleSubscriptionRecordRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleSubscriptionRecordResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Flexible-Subscription-Record Binance API Documentation}\n */\n public async getFlexibleSubscriptionRecord(\n requestParameters: GetFlexibleSubscriptionRecordRequest = {}\n ): Promise<RestApiResponse<GetFlexibleSubscriptionRecordResponse>> {\n const localVarAxiosArgs =\n await this.localVarAxiosParamCreator.getFlexibleSubscriptionRecord(\n requestParameters?.productId,\n requestParameters?.purchaseId,\n requestParameters?.asset,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexibleSubscriptionRecordResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Locked Personal Left Quota\n *\n * Weight: 150\n *\n * @summary Get Locked Personal Left Quota(USER_DATA)\n * @param {GetLockedPersonalLeftQuotaRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetLockedPersonalLeftQuotaResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Locked-Personal-Left-Quota Binance API Documentation}\n */\n public async getLockedPersonalLeftQuota(\n requestParameters: GetLockedPersonalLeftQuotaRequest\n ): Promise<RestApiResponse<GetLockedPersonalLeftQuotaResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedPersonalLeftQuota(\n requestParameters?.projectId,\n requestParameters?.recvWindow\n );\n return sendRequest<GetLockedPersonalLeftQuotaResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Locked Product Position\n *\n * Weight: 150\n *\n * @summary Get Locked Product Position\n * @param {GetLockedProductPositionRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetLockedProductPositionResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Locked-Product-Position Binance API Documentation}\n */\n public async getLockedProductPosition(\n requestParameters: GetLockedProductPositionRequest = {}\n ): Promise<RestApiResponse<GetLockedProductPositionResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedProductPosition(\n requestParameters?.asset,\n requestParameters?.positionId,\n requestParameters?.projectId,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetLockedProductPositionResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Locked Redemption Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Locked Redemption Record(USER_DATA)\n * @param {GetLockedRedemptionRecordRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetLockedRedemptionRecordResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Locked-Redemption-Record Binance API Documentation}\n */\n public async getLockedRedemptionRecord(\n requestParameters: GetLockedRedemptionRecordRequest = {}\n ): Promise<RestApiResponse<GetLockedRedemptionRecordResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedRedemptionRecord(\n requestParameters?.positionId,\n requestParameters?.redeemId,\n requestParameters?.asset,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetLockedRedemptionRecordResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Locked Rewards History\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Locked Rewards History(USER_DATA)\n * @param {GetLockedRewardsHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetLockedRewardsHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Locked-Rewards-History Binance API Documentation}\n */\n public async getLockedRewardsHistory(\n requestParameters: GetLockedRewardsHistoryRequest = {}\n ): Promise<RestApiResponse<GetLockedRewardsHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedRewardsHistory(\n requestParameters?.positionId,\n requestParameters?.asset,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetLockedRewardsHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Locked Subscription Preview\n *\n * Weight: 150\n *\n * @summary Get Locked Subscription Preview(USER_DATA)\n * @param {GetLockedSubscriptionPreviewRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetLockedSubscriptionPreviewResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Get-Locked-Subscription-Preview Binance API Documentation}\n */\n public async getLockedSubscriptionPreview(\n requestParameters: GetLockedSubscriptionPreviewRequest\n ): Promise<RestApiResponse<GetLockedSubscriptionPreviewResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedSubscriptionPreview(\n requestParameters?.projectId,\n requestParameters?.amount,\n requestParameters?.autoSubscribe,\n requestParameters?.recvWindow\n );\n return sendRequest<GetLockedSubscriptionPreviewResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Locked Subscription Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Locked Subscription Record(USER_DATA)\n * @param {GetLockedSubscriptionRecordRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetLockedSubscriptionRecordResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Locked-Subscription-Record Binance API Documentation}\n */\n public async getLockedSubscriptionRecord(\n requestParameters: GetLockedSubscriptionRecordRequest = {}\n ): Promise<RestApiResponse<GetLockedSubscriptionRecordResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedSubscriptionRecord(\n requestParameters?.purchaseId,\n requestParameters?.asset,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetLockedSubscriptionRecordResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Rate History\n *\n * The time between startTime and endTime cannot be longer than 1 year.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Rate History(USER_DATA)\n * @param {GetRateHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetRateHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Rate-History Binance API Documentation}\n */\n public async getRateHistory(\n requestParameters: GetRateHistoryRequest\n ): Promise<RestApiResponse<GetRateHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRateHistory(\n requestParameters?.productId,\n requestParameters?.aprPeriod,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetRateHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get available Simple Earn flexible product list\n *\n * Weight: 150\n *\n * @summary Get Simple Earn Flexible Product List(USER_DATA)\n * @param {GetSimpleEarnFlexibleProductListRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetSimpleEarnFlexibleProductListResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Simple-Earn-Flexible-Product-List Binance API Documentation}\n */\n public async getSimpleEarnFlexibleProductList(\n requestParameters: GetSimpleEarnFlexibleProductListRequest = {}\n ): Promise<RestApiResponse<GetSimpleEarnFlexibleProductListResponse>> {\n const localVarAxiosArgs =\n await this.localVarAxiosParamCreator.getSimpleEarnFlexibleProductList(\n requestParameters?.asset,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetSimpleEarnFlexibleProductListResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Simple Earn Locked Product List\n *\n * Get available Simple Earn locked product list\n *\n * Weight: 150\n *\n * @summary Get Simple Earn Locked Product List(USER_DATA)\n * @param {GetSimpleEarnLockedProductListRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetSimpleEarnLockedProductListResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Simple-Earn-Locked-Product-List Binance API Documentation}\n */\n public async getSimpleEarnLockedProductList(\n requestParameters: GetSimpleEarnLockedProductListRequest = {}\n ): Promise<RestApiResponse<GetSimpleEarnLockedProductListResponse>> {\n const localVarAxiosArgs =\n await this.localVarAxiosParamCreator.getSimpleEarnLockedProductList(\n requestParameters?.asset,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetSimpleEarnLockedProductListResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Redeem Flexible Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1\n *\n * @summary Redeem Flexible Product(TRADE)\n * @param {RedeemFlexibleProductRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<RedeemFlexibleProductResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Redeem-Flexible-Product Binance API Documentation}\n */\n public async redeemFlexibleProduct(\n requestParameters: RedeemFlexibleProductRequest\n ): Promise<RestApiResponse<RedeemFlexibleProductResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.redeemFlexibleProduct(\n requestParameters?.productId,\n requestParameters?.redeemAll,\n requestParameters?.amount,\n requestParameters?.destAccount,\n requestParameters?.recvWindow\n );\n return sendRequest<RedeemFlexibleProductResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Redeem Locked Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1/3s per account\n *\n * @summary Redeem Locked Product(TRADE)\n * @param {RedeemLockedProductRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<RedeemLockedProductResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Redeem-Locked-Product Binance API Documentation}\n */\n public async redeemLockedProduct(\n requestParameters: RedeemLockedProductRequest\n ): Promise<RestApiResponse<RedeemLockedProductResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.redeemLockedProduct(\n requestParameters?.positionId,\n requestParameters?.recvWindow\n );\n return sendRequest<RedeemLockedProductResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Set Flexible Auto Subscribe\n *\n * Weight: 150\n *\n * @summary Set Flexible Auto Subscribe(USER_DATA)\n * @param {SetFlexibleAutoSubscribeRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<SetFlexibleAutoSubscribeResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Set-Flexible-Auto-Subscribe Binance API Documentation}\n */\n public async setFlexibleAutoSubscribe(\n requestParameters: SetFlexibleAutoSubscribeRequest\n ): Promise<RestApiResponse<SetFlexibleAutoSubscribeResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.setFlexibleAutoSubscribe(\n requestParameters?.productId,\n requestParameters?.autoSubscribe,\n requestParameters?.recvWindow\n );\n return sendRequest<SetFlexibleAutoSubscribeResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Set locked auto subscribe\n *\n * Weight: 150\n *\n * @summary Set Locked Auto Subscribe(USER_DATA)\n * @param {SetLockedAutoSubscribeRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<SetLockedAutoSubscribeResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Set-Locked-Auto-Subscribe Binance API Documentation}\n */\n public async setLockedAutoSubscribe(\n requestParameters: SetLockedAutoSubscribeRequest\n ): Promise<RestApiResponse<SetLockedAutoSubscribeResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.setLockedAutoSubscribe(\n requestParameters?.positionId,\n requestParameters?.autoSubscribe,\n requestParameters?.recvWindow\n );\n return sendRequest<SetLockedAutoSubscribeResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Set redeem option for Locked product\n *\n * Weight: 50\n *\n * @summary Set Locked Product Redeem Option(USER_DATA)\n * @param {SetLockedProductRedeemOptionRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<SetLockedProductRedeemOptionResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Set-Locked-Redeem-Option Binance API Documentation}\n */\n public async setLockedProductRedeemOption(\n requestParameters: SetLockedProductRedeemOptionRequest\n ): Promise<RestApiResponse<SetLockedProductRedeemOptionResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.setLockedProductRedeemOption(\n requestParameters?.positionId,\n requestParameters?.redeemTo,\n requestParameters?.recvWindow\n );\n return sendRequest<SetLockedProductRedeemOptionResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Simple Account query\n *\n * Weight: 150\n *\n * @summary Simple Account(USER_DATA)\n * @param {SimpleAccountRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<SimpleAccountResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Simple-Account Binance API Documentation}\n */\n public async simpleAccount(\n requestParameters: SimpleAccountRequest = {}\n ): Promise<RestApiResponse<SimpleAccountResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.simpleAccount(\n requestParameters?.recvWindow\n );\n return sendRequest<SimpleAccountResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Subscribe Flexible Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1\n *\n * @summary Subscribe Flexible Product(TRADE)\n * @param {SubscribeFlexibleProductRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<SubscribeFlexibleProductResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Subscribe-Flexible-Product Binance API Documentation}\n */\n public async subscribeFlexibleProduct(\n requestParameters: SubscribeFlexibleProductRequest\n ): Promise<RestApiResponse<SubscribeFlexibleProductResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.subscribeFlexibleProduct(\n requestParameters?.productId,\n requestParameters?.amount,\n requestParameters?.autoSubscribe,\n requestParameters?.sourceAccount,\n requestParameters?.recvWindow\n );\n return sendRequest<SubscribeFlexibleProductResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Subscribe Locked Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1\n *\n * @summary Subscribe Locked Product(TRADE)\n * @param {SubscribeLockedProductRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<SubscribeLockedProductResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleLockedApi\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Subscribe-Locked-Product Binance API Documentation}\n */\n public async subscribeLockedProduct(\n requestParameters: SubscribeLockedProductRequest\n ): Promise<RestApiResponse<SubscribeLockedProductResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.subscribeLockedProduct(\n requestParameters?.projectId,\n requestParameters?.amount,\n requestParameters?.autoSubscribe,\n requestParameters?.sourceAccount,\n requestParameters?.redeemTo,\n requestParameters?.recvWindow\n );\n return sendRequest<SubscribeLockedProductResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n}\n","/**\n * Binance Simple Earn REST API\n *\n * OpenAPI Specification for the Binance Simple Earn REST API\n *\n * The version of the OpenAPI document: 1.0.0\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport {\n ConfigurationRestAPI,\n TimeUnit,\n RestApiResponse,\n assertParamExists,\n sendRequest,\n type RequestArgs,\n} from '@binance/common';\nimport type {\n GetRwusdAccountResponse,\n GetRwusdQuotaDetailsResponse,\n GetRwusdRateHistoryResponse,\n GetRwusdRedemptionHistoryResponse,\n GetRwusdRewardsHistoryResponse,\n GetRwusdSubscriptionHistoryResponse,\n RedeemRwusdResponse,\n SubscribeRwusdResponse,\n} from '../types';\n\n/**\n * RwusdApi - axios parameter creator\n */\nconst RwusdApiAxiosParamCreator = function (configuration: ConfigurationRestAPI) {\n return {\n /**\n * Get RWUSD account information.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Account (USER_DATA)\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getRwusdAccount: async (recvWindow?: number | bigint): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/rwusd/account',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get RWUSD quota details including subscription quota, fast redemption quota, and standard redemption quota.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Quota Details (USER_DATA)\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getRwusdQuotaDetails: async (recvWindow?: number | bigint): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/rwusd/quota',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get RWUSD rate history sorted by descending order.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Rate History (USER_DATA)\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getRwusdRateHistory: async (\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/rwusd/history/rateHistory',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get RWUSD redemption history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Redemption History (USER_DATA)\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getRwusdRedemptionHistory: async (\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/rwusd/history/redemptionHistory',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get RWUSD rewards history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Rewards History (USER_DATA)\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getRwusdRewardsHistory: async (\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/rwusd/history/rewardsHistory',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get RWUSD subscription history\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time advanced by one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD subscription history(USER_DATA)\n * @param {string} [asset] USDC or USDT\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Currently querying page. Starts from 1. Default: 1\n * @param {number | bigint} [size] Number of results per page. Default: 10, Max: 100\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n getRwusdSubscriptionHistory: async (\n asset?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n size?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/rwusd/history/subscriptionHistory',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Redeem RWUSD to USDC\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Redeem RWUSD(TRADE)\n * @param {number} amount Amount\n * @param {string} type FAST or STANDARD, defaults to STANDARD\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n redeemRwusd: async (\n amount: number,\n type: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'amount' is not null or undefined\n assertParamExists('redeemRwusd', 'amount', amount);\n // verify required parameter 'type' is not null or undefined\n assertParamExists('redeemRwusd', 'type', type);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n if (type !== undefined && type !== null) {\n localVarQueryParameter['type'] = type;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/rwusd/redeem',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Subscribe RWUSD\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Subscribe RWUSD(TRADE)\n * @param {string} asset USDT or USDC (whichever is eligible)\n * @param {number} amount Amount\n * @param {number | bigint} [recvWindow] The value cannot be greater than 60000 (ms)\n *\n * @throws {RequiredError}\n */\n subscribeRwusd: async (\n asset: string,\n amount: number,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'asset' is not null or undefined\n assertParamExists('subscribeRwusd', 'asset', asset);\n // verify required parameter 'amount' is not null or undefined\n assertParamExists('subscribeRwusd', 'amount', amount);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n if (recvWindow !== undefined && recvWindow !== null) {\n localVarQueryParameter['recvWindow'] = recvWindow;\n }\n\n let _timeUnit: TimeUnit | undefined;\n if ('timeUnit' in configuration) _timeUnit = configuration.timeUnit as TimeUnit;\n\n return {\n endpoint: '/sapi/v1/rwusd/subscribe',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n };\n};\n\n/**\n * RwusdApi - interface\n * @interface RwusdApi\n */\nexport interface RwusdApiInterface {\n /**\n * Get RWUSD account information.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Account (USER_DATA)\n * @param {GetRwusdAccountRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApiInterface\n */\n getRwusdAccount(\n requestParameters?: GetRwusdAccountRequest\n ): Promise<RestApiResponse<GetRwusdAccountResponse>>;\n /**\n * Get RWUSD quota details including subscription quota, fast redemption quota, and standard redemption quota.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Quota Details (USER_DATA)\n * @param {GetRwusdQuotaDetailsRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApiInterface\n */\n getRwusdQuotaDetails(\n requestParameters?: GetRwusdQuotaDetailsRequest\n ): Promise<RestApiResponse<GetRwusdQuotaDetailsResponse>>;\n /**\n * Get RWUSD rate history sorted by descending order.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Rate History (USER_DATA)\n * @param {GetRwusdRateHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApiInterface\n */\n getRwusdRateHistory(\n requestParameters?: GetRwusdRateHistoryRequest\n ): Promise<RestApiResponse<GetRwusdRateHistoryResponse>>;\n /**\n * Get RWUSD redemption history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Redemption History (USER_DATA)\n * @param {GetRwusdRedemptionHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApiInterface\n */\n getRwusdRedemptionHistory(\n requestParameters?: GetRwusdRedemptionHistoryRequest\n ): Promise<RestApiResponse<GetRwusdRedemptionHistoryResponse>>;\n /**\n * Get RWUSD rewards history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Rewards History (USER_DATA)\n * @param {GetRwusdRewardsHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApiInterface\n */\n getRwusdRewardsHistory(\n requestParameters?: GetRwusdRewardsHistoryRequest\n ): Promise<RestApiResponse<GetRwusdRewardsHistoryResponse>>;\n /**\n * Get RWUSD subscription history\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time advanced by one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD subscription history(USER_DATA)\n * @param {GetRwusdSubscriptionHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApiInterface\n */\n getRwusdSubscriptionHistory(\n requestParameters?: GetRwusdSubscriptionHistoryRequest\n ): Promise<RestApiResponse<GetRwusdSubscriptionHistoryResponse>>;\n /**\n * Redeem RWUSD to USDC\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Redeem RWUSD(TRADE)\n * @param {RedeemRwusdRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApiInterface\n */\n redeemRwusd(\n requestParameters: RedeemRwusdRequest\n ): Promise<RestApiResponse<RedeemRwusdResponse>>;\n /**\n * Subscribe RWUSD\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Subscribe RWUSD(TRADE)\n * @param {SubscribeRwusdRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApiInterface\n */\n subscribeRwusd(\n requestParameters: SubscribeRwusdRequest\n ): Promise<RestApiResponse<SubscribeRwusdResponse>>;\n}\n\n/**\n * Request parameters for getRwusdAccount operation in RwusdApi.\n * @interface GetRwusdAccountRequest\n */\nexport interface GetRwusdAccountRequest {\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdAccount\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getRwusdQuotaDetails operation in RwusdApi.\n * @interface GetRwusdQuotaDetailsRequest\n */\nexport interface GetRwusdQuotaDetailsRequest {\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdQuotaDetails\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getRwusdRateHistory operation in RwusdApi.\n * @interface GetRwusdRateHistoryRequest\n */\nexport interface GetRwusdRateHistoryRequest {\n /**\n *\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRateHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRateHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRateHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRateHistory\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRateHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getRwusdRedemptionHistory operation in RwusdApi.\n * @interface GetRwusdRedemptionHistoryRequest\n */\nexport interface GetRwusdRedemptionHistoryRequest {\n /**\n *\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRedemptionHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRedemptionHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRedemptionHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRedemptionHistory\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRedemptionHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getRwusdRewardsHistory operation in RwusdApi.\n * @interface GetRwusdRewardsHistoryRequest\n */\nexport interface GetRwusdRewardsHistoryRequest {\n /**\n *\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRewardsHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRewardsHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRewardsHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRewardsHistory\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdRewardsHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getRwusdSubscriptionHistory operation in RwusdApi.\n * @interface GetRwusdSubscriptionHistoryRequest\n */\nexport interface GetRwusdSubscriptionHistoryRequest {\n /**\n * USDC or USDT\n * @type {string}\n * @memberof RwusdApiGetRwusdSubscriptionHistory\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdSubscriptionHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdSubscriptionHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Currently querying page. Starts from 1. Default: 1\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdSubscriptionHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Number of results per page. Default: 10, Max: 100\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdSubscriptionHistory\n */\n readonly size?: number | bigint;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof RwusdApiGetRwusdSubscriptionHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for redeemRwusd operation in RwusdApi.\n * @interface RedeemRwusdRequest\n */\nexport interface RedeemRwusdRequest {\n /**\n * Amount\n * @type {number}\n * @memberof RwusdApiRedeemRwusd\n */\n readonly amount: number;\n\n /**\n * FAST or STANDARD, defaults to STANDARD\n * @type {string}\n * @memberof RwusdApiRedeemRwusd\n */\n readonly type: string;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof RwusdApiRedeemRwusd\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for subscribeRwusd operation in RwusdApi.\n * @interface SubscribeRwusdRequest\n */\nexport interface SubscribeRwusdRequest {\n /**\n * USDT or USDC (whichever is eligible)\n * @type {string}\n * @memberof RwusdApiSubscribeRwusd\n */\n readonly asset: string;\n\n /**\n * Amount\n * @type {number}\n * @memberof RwusdApiSubscribeRwusd\n */\n readonly amount: number;\n\n /**\n * The value cannot be greater than 60000 (ms)\n * @type {number | bigint}\n * @memberof RwusdApiSubscribeRwusd\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * RwusdApi - object-oriented interface\n * @class RwusdApi\n */\nexport class RwusdApi implements RwusdApiInterface {\n private readonly configuration: ConfigurationRestAPI;\n private localVarAxiosParamCreator;\n\n constructor(configuration: ConfigurationRestAPI) {\n this.configuration = configuration;\n this.localVarAxiosParamCreator = RwusdApiAxiosParamCreator(configuration);\n }\n\n /**\n * Get RWUSD account information.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Account (USER_DATA)\n * @param {GetRwusdAccountRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetRwusdAccountResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/account/ Binance API Documentation}\n */\n public async getRwusdAccount(\n requestParameters: GetRwusdAccountRequest = {}\n ): Promise<RestApiResponse<GetRwusdAccountResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdAccount(\n requestParameters?.recvWindow\n );\n return sendRequest<GetRwusdAccountResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get RWUSD quota details including subscription quota, fast redemption quota, and standard redemption quota.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Quota Details (USER_DATA)\n * @param {GetRwusdQuotaDetailsRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetRwusdQuotaDetailsResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/account/Get-RWUSD-Quota-Details Binance API Documentation}\n */\n public async getRwusdQuotaDetails(\n requestParameters: GetRwusdQuotaDetailsRequest = {}\n ): Promise<RestApiResponse<GetRwusdQuotaDetailsResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdQuotaDetails(\n requestParameters?.recvWindow\n );\n return sendRequest<GetRwusdQuotaDetailsResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get RWUSD rate history sorted by descending order.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Rate History (USER_DATA)\n * @param {GetRwusdRateHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetRwusdRateHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-Rate-History Binance API Documentation}\n */\n public async getRwusdRateHistory(\n requestParameters: GetRwusdRateHistoryRequest = {}\n ): Promise<RestApiResponse<GetRwusdRateHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdRateHistory(\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetRwusdRateHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get RWUSD redemption history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Redemption History (USER_DATA)\n * @param {GetRwusdRedemptionHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetRwusdRedemptionHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-Redemption-History Binance API Documentation}\n */\n public async getRwusdRedemptionHistory(\n requestParameters: GetRwusdRedemptionHistoryRequest = {}\n ): Promise<RestApiResponse<GetRwusdRedemptionHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdRedemptionHistory(\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetRwusdRedemptionHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get RWUSD rewards history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Rewards History (USER_DATA)\n * @param {GetRwusdRewardsHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetRwusdRewardsHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-Rewards-History Binance API Documentation}\n */\n public async getRwusdRewardsHistory(\n requestParameters: GetRwusdRewardsHistoryRequest = {}\n ): Promise<RestApiResponse<GetRwusdRewardsHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdRewardsHistory(\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetRwusdRewardsHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get RWUSD subscription history\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time advanced by one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD subscription history(USER_DATA)\n * @param {GetRwusdSubscriptionHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetRwusdSubscriptionHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-subscription-history Binance API Documentation}\n */\n public async getRwusdSubscriptionHistory(\n requestParameters: GetRwusdSubscriptionHistoryRequest = {}\n ): Promise<RestApiResponse<GetRwusdSubscriptionHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdSubscriptionHistory(\n requestParameters?.asset,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.size,\n requestParameters?.recvWindow\n );\n return sendRequest<GetRwusdSubscriptionHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Redeem RWUSD to USDC\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Redeem RWUSD(TRADE)\n * @param {RedeemRwusdRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<RedeemRwusdResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/earn/Redeem-RWUSD Binance API Documentation}\n */\n public async redeemRwusd(\n requestParameters: RedeemRwusdRequest\n ): Promise<RestApiResponse<RedeemRwusdResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.redeemRwusd(\n requestParameters?.amount,\n requestParameters?.type,\n requestParameters?.recvWindow\n );\n return sendRequest<RedeemRwusdResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Subscribe RWUSD\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Subscribe RWUSD(TRADE)\n * @param {SubscribeRwusdRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<SubscribeRwusdResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof RwusdApi\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/earn/Subscribe-RWUSD Binance API Documentation}\n */\n public async subscribeRwusd(\n requestParameters: SubscribeRwusdRequest\n ): Promise<RestApiResponse<SubscribeRwusdResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.subscribeRwusd(\n requestParameters?.asset,\n requestParameters?.amount,\n requestParameters?.recvWindow\n );\n return sendRequest<SubscribeRwusdResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n}\n","/**\n * Binance Simple Earn REST API\n *\n * OpenAPI Specification for the Binance Simple Earn REST API\n *\n * The version of the OpenAPI document: 1.0.0\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { ConfigurationRestAPI, RestApiResponse, sendRequest } from '@binance/common';\nimport { BfusdApi } from './modules/bfusd-api';\nimport { FlexibleLockedApi } from './modules/flexible-locked-api';\nimport { RwusdApi } from './modules/rwusd-api';\n\nimport type {\n GetBfusdAccountRequest,\n GetBfusdQuotaDetailsRequest,\n GetBfusdRateHistoryRequest,\n GetBfusdRedemptionHistoryRequest,\n GetBfusdRewardsHistoryRequest,\n GetBfusdSubscriptionHistoryRequest,\n RedeemBfusdRequest,\n SubscribeBfusdRequest,\n} from './modules/bfusd-api';\nimport type {\n GetCollateralRecordRequest,\n GetFlexiblePersonalLeftQuotaRequest,\n GetFlexibleProductPositionRequest,\n GetFlexibleRedemptionRecordRequest,\n GetFlexibleRewardsHistoryRequest,\n GetFlexibleSubscriptionPreviewRequest,\n GetFlexibleSubscriptionRecordRequest,\n GetLockedPersonalLeftQuotaRequest,\n GetLockedProductPositionRequest,\n GetLockedRedemptionRecordRequest,\n GetLockedRewardsHistoryRequest,\n GetLockedSubscriptionPreviewRequest,\n GetLockedSubscriptionRecordRequest,\n GetRateHistoryRequest,\n GetSimpleEarnFlexibleProductListRequest,\n GetSimpleEarnLockedProductListRequest,\n RedeemFlexibleProductRequest,\n RedeemLockedProductRequest,\n SetFlexibleAutoSubscribeRequest,\n SetLockedAutoSubscribeRequest,\n SetLockedProductRedeemOptionRequest,\n SimpleAccountRequest,\n SubscribeFlexibleProductRequest,\n SubscribeLockedProductRequest,\n} from './modules/flexible-locked-api';\nimport type {\n GetRwusdAccountRequest,\n GetRwusdQuotaDetailsRequest,\n GetRwusdRateHistoryRequest,\n GetRwusdRedemptionHistoryRequest,\n GetRwusdRewardsHistoryRequest,\n GetRwusdSubscriptionHistoryRequest,\n RedeemRwusdRequest,\n SubscribeRwusdRequest,\n} from './modules/rwusd-api';\n\nimport type {\n GetBfusdAccountResponse,\n GetBfusdQuotaDetailsResponse,\n GetBfusdRateHistoryResponse,\n GetBfusdRedemptionHistoryResponse,\n GetBfusdRewardsHistoryResponse,\n GetBfusdSubscriptionHistoryResponse,\n RedeemBfusdResponse,\n SubscribeBfusdResponse,\n} from './types';\nimport type {\n GetCollateralRecordResponse,\n GetFlexiblePersonalLeftQuotaResponse,\n GetFlexibleProductPositionResponse,\n GetFlexibleRedemptionRecordResponse,\n GetFlexibleRewardsHistoryResponse,\n GetFlexibleSubscriptionPreviewResponse,\n GetFlexibleSubscriptionRecordResponse,\n GetLockedPersonalLeftQuotaResponse,\n GetLockedProductPositionResponse,\n GetLockedRedemptionRecordResponse,\n GetLockedRewardsHistoryResponse,\n GetLockedSubscriptionPreviewResponse,\n GetLockedSubscriptionRecordResponse,\n GetRateHistoryResponse,\n GetSimpleEarnFlexibleProductListResponse,\n GetSimpleEarnLockedProductListResponse,\n RedeemFlexibleProductResponse,\n RedeemLockedProductResponse,\n SetFlexibleAutoSubscribeResponse,\n SetLockedAutoSubscribeResponse,\n SetLockedProductRedeemOptionResponse,\n SimpleAccountResponse,\n SubscribeFlexibleProductResponse,\n SubscribeLockedProductResponse,\n} from './types';\nimport type {\n GetRwusdAccountResponse,\n GetRwusdQuotaDetailsResponse,\n GetRwusdRateHistoryResponse,\n GetRwusdRedemptionHistoryResponse,\n GetRwusdRewardsHistoryResponse,\n GetRwusdSubscriptionHistoryResponse,\n RedeemRwusdResponse,\n SubscribeRwusdResponse,\n} from './types';\n\nexport class RestAPI {\n private configuration: ConfigurationRestAPI;\n private bfusdApi: BfusdApi;\n private flexibleLockedApi: FlexibleLockedApi;\n private rwusdApi: RwusdApi;\n\n constructor(configuration: ConfigurationRestAPI) {\n this.configuration = configuration;\n this.bfusdApi = new BfusdApi(configuration);\n this.flexibleLockedApi = new FlexibleLockedApi(configuration);\n this.rwusdApi = new RwusdApi(configuration);\n }\n\n /**\n * Generic function to send a request.\n * @param endpoint - The API endpoint to call.\n * @param method - HTTP method to use (GET, POST, DELETE, etc.).\n * @param queryParams - Query parameters for the request.\n * @param bodyParams - Body parameters for the request.\n *\n * @returns A promise resolving to the response data object.\n */\n sendRequest<T>(\n endpoint: string,\n method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH',\n queryParams: Record<string, unknown> = {},\n bodyParams: Record<string, unknown> = {}\n ): Promise<RestApiResponse<T>> {\n return sendRequest<T>(\n this.configuration,\n endpoint,\n method,\n queryParams,\n bodyParams,\n undefined\n );\n }\n\n /**\n * Generic function to send a signed request.\n * @param endpoint - The API endpoint to call.\n * @param method - HTTP method to use (GET, POST, DELETE, etc.).\n * @param queryParams - Query parameters for the request.\n * @param bodyParams - Body parameters for the request.\n *\n * @returns A promise resolving to the response data object.\n */\n sendSignedRequest<T>(\n endpoint: string,\n method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH',\n queryParams: Record<string, unknown> = {},\n bodyParams: Record<string, unknown> = {}\n ): Promise<RestApiResponse<T>> {\n return sendRequest<T>(\n this.configuration,\n endpoint,\n method,\n queryParams,\n bodyParams,\n undefined,\n { isSigned: true }\n );\n }\n\n /**\n * Get BFUSD account information.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Account (USER_DATA)\n * @param {GetBfusdAccountRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetBfusdAccountResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/account/ Binance API Documentation}\n */\n getBfusdAccount(\n requestParameters: GetBfusdAccountRequest = {}\n ): Promise<RestApiResponse<GetBfusdAccountResponse>> {\n return this.bfusdApi.getBfusdAccount(requestParameters);\n }\n\n /**\n * Get BFUSD quota details including fast redemption quota and standard redemption quota.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Quota Details (USER_DATA)\n * @param {GetBfusdQuotaDetailsRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetBfusdQuotaDetailsResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/account/Get-BFUSD-Quota-Details Binance API Documentation}\n */\n getBfusdQuotaDetails(\n requestParameters: GetBfusdQuotaDetailsRequest = {}\n ): Promise<RestApiResponse<GetBfusdQuotaDetailsResponse>> {\n return this.bfusdApi.getBfusdQuotaDetails(requestParameters);\n }\n\n /**\n * Get BFUSD rate history sorted by descending order.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Rate History (USER_DATA)\n * @param {GetBfusdRateHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetBfusdRateHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/history/Get-BFUSD-Rate-History Binance API Documentation}\n */\n getBfusdRateHistory(\n requestParameters: GetBfusdRateHistoryRequest = {}\n ): Promise<RestApiResponse<GetBfusdRateHistoryResponse>> {\n return this.bfusdApi.getBfusdRateHistory(requestParameters);\n }\n\n /**\n * Get BFUSD redemption history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Redemption History (USER_DATA)\n * @param {GetBfusdRedemptionHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetBfusdRedemptionHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/history/Get-BFUSD-Redemption-History Binance API Documentation}\n */\n getBfusdRedemptionHistory(\n requestParameters: GetBfusdRedemptionHistoryRequest = {}\n ): Promise<RestApiResponse<GetBfusdRedemptionHistoryResponse>> {\n return this.bfusdApi.getBfusdRedemptionHistory(requestParameters);\n }\n\n /**\n * Get BFUSD rewards history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD Rewards History (USER_DATA)\n * @param {GetBfusdRewardsHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetBfusdRewardsHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/history/Get-BFUSD-Rewards-History Binance API Documentation}\n */\n getBfusdRewardsHistory(\n requestParameters: GetBfusdRewardsHistoryRequest = {}\n ): Promise<RestApiResponse<GetBfusdRewardsHistoryResponse>> {\n return this.bfusdApi.getBfusdRewardsHistory(requestParameters);\n }\n\n /**\n * Get BFUSD subscription history\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time advanced by one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get BFUSD subscription history(USER_DATA)\n * @param {GetBfusdSubscriptionHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetBfusdSubscriptionHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/history/Get-BFUSD-subscription-history Binance API Documentation}\n */\n getBfusdSubscriptionHistory(\n requestParameters: GetBfusdSubscriptionHistoryRequest = {}\n ): Promise<RestApiResponse<GetBfusdSubscriptionHistoryResponse>> {\n return this.bfusdApi.getBfusdSubscriptionHistory(requestParameters);\n }\n\n /**\n * Redeem BFUSD to USDT\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Redeem BFUSD(TRADE)\n * @param {RedeemBfusdRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<RedeemBfusdResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/earn/Redeem-BFUSD Binance API Documentation}\n */\n redeemBfusd(\n requestParameters: RedeemBfusdRequest\n ): Promise<RestApiResponse<RedeemBfusdResponse>> {\n return this.bfusdApi.redeemBfusd(requestParameters);\n }\n\n /**\n * Subscribe BFUSD\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Subscribe BFUSD(TRADE)\n * @param {SubscribeBfusdRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<SubscribeBfusdResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/earn/Subscribe-BFUSD Binance API Documentation}\n */\n subscribeBfusd(\n requestParameters: SubscribeBfusdRequest\n ): Promise<RestApiResponse<SubscribeBfusdResponse>> {\n return this.bfusdApi.subscribeBfusd(requestParameters);\n }\n\n /**\n * Get Collateral Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 30 days.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 1\n *\n * @summary Get Collateral Record(USER_DATA)\n * @param {GetCollateralRecordRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetCollateralRecordResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Collateral-Record Binance API Documentation}\n */\n getCollateralRecord(\n requestParameters: GetCollateralRecordRequest = {}\n ): Promise<RestApiResponse<GetCollateralRecordResponse>> {\n return this.flexibleLockedApi.getCollateralRecord(requestParameters);\n }\n\n /**\n * Get Flexible Personal Left Quota\n *\n * Weight: 150\n *\n * @summary Get Flexible Personal Left Quota(USER_DATA)\n * @param {GetFlexiblePersonalLeftQuotaRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexiblePersonalLeftQuotaResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Flexible-Personal-Left-Quota Binance API Documentation}\n */\n getFlexiblePersonalLeftQuota(\n requestParameters: GetFlexiblePersonalLeftQuotaRequest\n ): Promise<RestApiResponse<GetFlexiblePersonalLeftQuotaResponse>> {\n return this.flexibleLockedApi.getFlexiblePersonalLeftQuota(requestParameters);\n }\n\n /**\n * Get Flexible Product Position\n *\n * Weight: 150\n *\n * @summary Get Flexible Product Position(USER_DATA)\n * @param {GetFlexibleProductPositionRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleProductPositionResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Flexible-Product-Position Binance API Documentation}\n */\n getFlexibleProductPosition(\n requestParameters: GetFlexibleProductPositionRequest = {}\n ): Promise<RestApiResponse<GetFlexibleProductPositionResponse>> {\n return this.flexibleLockedApi.getFlexibleProductPosition(requestParameters);\n }\n\n /**\n * Get Flexible Redemption Record\n *\n *\tThe time between `startTime` and `endTime` cannot be longer than 3 months.\n *\tIf `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n *\tIf `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n *\tIf `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Flexible Redemption Record(USER_DATA)\n * @param {GetFlexibleRedemptionRecordRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleRedemptionRecordResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Flexible-Redemption-Record Binance API Documentation}\n */\n getFlexibleRedemptionRecord(\n requestParameters: GetFlexibleRedemptionRecordRequest = {}\n ): Promise<RestApiResponse<GetFlexibleRedemptionRecordResponse>> {\n return this.flexibleLockedApi.getFlexibleRedemptionRecord(requestParameters);\n }\n\n /**\n * Get Flexible Rewards History\n *\n *\tThe time between `startTime` and `endTime` cannot be longer than 3 months.\n *\tIf `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n *\tIf `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n *\tIf `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Flexible Rewards History(USER_DATA)\n * @param {GetFlexibleRewardsHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleRewardsHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Flexible-Rewards-History Binance API Documentation}\n */\n getFlexibleRewardsHistory(\n requestParameters: GetFlexibleRewardsHistoryRequest\n ): Promise<RestApiResponse<GetFlexibleRewardsHistoryResponse>> {\n return this.flexibleLockedApi.getFlexibleRewardsHistory(requestParameters);\n }\n\n /**\n * Get Flexible Subscription Preview\n *\n * Weight: 150\n *\n * @summary Get Flexible Subscription Preview(USER_DATA)\n * @param {GetFlexibleSubscriptionPreviewRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleSubscriptionPreviewResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Get-Flexible-Subscription-Preview Binance API Documentation}\n */\n getFlexibleSubscriptionPreview(\n requestParameters: GetFlexibleSubscriptionPreviewRequest\n ): Promise<RestApiResponse<GetFlexibleSubscriptionPreviewResponse>> {\n return this.flexibleLockedApi.getFlexibleSubscriptionPreview(requestParameters);\n }\n\n /**\n * Get Flexible Subscription Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Flexible Subscription Record(USER_DATA)\n * @param {GetFlexibleSubscriptionRecordRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleSubscriptionRecordResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Flexible-Subscription-Record Binance API Documentation}\n */\n getFlexibleSubscriptionRecord(\n requestParameters: GetFlexibleSubscriptionRecordRequest = {}\n ): Promise<RestApiResponse<GetFlexibleSubscriptionRecordResponse>> {\n return this.flexibleLockedApi.getFlexibleSubscriptionRecord(requestParameters);\n }\n\n /**\n * Get Locked Personal Left Quota\n *\n * Weight: 150\n *\n * @summary Get Locked Personal Left Quota(USER_DATA)\n * @param {GetLockedPersonalLeftQuotaRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetLockedPersonalLeftQuotaResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Locked-Personal-Left-Quota Binance API Documentation}\n */\n getLockedPersonalLeftQuota(\n requestParameters: GetLockedPersonalLeftQuotaRequest\n ): Promise<RestApiResponse<GetLockedPersonalLeftQuotaResponse>> {\n return this.flexibleLockedApi.getLockedPersonalLeftQuota(requestParameters);\n }\n\n /**\n * Get Locked Product Position\n *\n * Weight: 150\n *\n * @summary Get Locked Product Position\n * @param {GetLockedProductPositionRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetLockedProductPositionResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Locked-Product-Position Binance API Documentation}\n */\n getLockedProductPosition(\n requestParameters: GetLockedProductPositionRequest = {}\n ): Promise<RestApiResponse<GetLockedProductPositionResponse>> {\n return this.flexibleLockedApi.getLockedProductPosition(requestParameters);\n }\n\n /**\n * Get Locked Redemption Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Locked Redemption Record(USER_DATA)\n * @param {GetLockedRedemptionRecordRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetLockedRedemptionRecordResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Locked-Redemption-Record Binance API Documentation}\n */\n getLockedRedemptionRecord(\n requestParameters: GetLockedRedemptionRecordRequest = {}\n ): Promise<RestApiResponse<GetLockedRedemptionRecordResponse>> {\n return this.flexibleLockedApi.getLockedRedemptionRecord(requestParameters);\n }\n\n /**\n * Get Locked Rewards History\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Locked Rewards History(USER_DATA)\n * @param {GetLockedRewardsHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetLockedRewardsHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Locked-Rewards-History Binance API Documentation}\n */\n getLockedRewardsHistory(\n requestParameters: GetLockedRewardsHistoryRequest = {}\n ): Promise<RestApiResponse<GetLockedRewardsHistoryResponse>> {\n return this.flexibleLockedApi.getLockedRewardsHistory(requestParameters);\n }\n\n /**\n * Get Locked Subscription Preview\n *\n * Weight: 150\n *\n * @summary Get Locked Subscription Preview(USER_DATA)\n * @param {GetLockedSubscriptionPreviewRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetLockedSubscriptionPreviewResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Get-Locked-Subscription-Preview Binance API Documentation}\n */\n getLockedSubscriptionPreview(\n requestParameters: GetLockedSubscriptionPreviewRequest\n ): Promise<RestApiResponse<GetLockedSubscriptionPreviewResponse>> {\n return this.flexibleLockedApi.getLockedSubscriptionPreview(requestParameters);\n }\n\n /**\n * Get Locked Subscription Record\n *\n * The time between `startTime` and `endTime` cannot be longer than 3 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Locked Subscription Record(USER_DATA)\n * @param {GetLockedSubscriptionRecordRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetLockedSubscriptionRecordResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Locked-Subscription-Record Binance API Documentation}\n */\n getLockedSubscriptionRecord(\n requestParameters: GetLockedSubscriptionRecordRequest = {}\n ): Promise<RestApiResponse<GetLockedSubscriptionRecordResponse>> {\n return this.flexibleLockedApi.getLockedSubscriptionRecord(requestParameters);\n }\n\n /**\n * Get Rate History\n *\n * The time between startTime and endTime cannot be longer than 1 year.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.\n * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get Rate History(USER_DATA)\n * @param {GetRateHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetRateHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Rate-History Binance API Documentation}\n */\n getRateHistory(\n requestParameters: GetRateHistoryRequest\n ): Promise<RestApiResponse<GetRateHistoryResponse>> {\n return this.flexibleLockedApi.getRateHistory(requestParameters);\n }\n\n /**\n * Get available Simple Earn flexible product list\n *\n * Weight: 150\n *\n * @summary Get Simple Earn Flexible Product List(USER_DATA)\n * @param {GetSimpleEarnFlexibleProductListRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetSimpleEarnFlexibleProductListResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Simple-Earn-Flexible-Product-List Binance API Documentation}\n */\n getSimpleEarnFlexibleProductList(\n requestParameters: GetSimpleEarnFlexibleProductListRequest = {}\n ): Promise<RestApiResponse<GetSimpleEarnFlexibleProductListResponse>> {\n return this.flexibleLockedApi.getSimpleEarnFlexibleProductList(requestParameters);\n }\n\n /**\n * Get Simple Earn Locked Product List\n *\n * Get available Simple Earn locked product list\n *\n * Weight: 150\n *\n * @summary Get Simple Earn Locked Product List(USER_DATA)\n * @param {GetSimpleEarnLockedProductListRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetSimpleEarnLockedProductListResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Simple-Earn-Locked-Product-List Binance API Documentation}\n */\n getSimpleEarnLockedProductList(\n requestParameters: GetSimpleEarnLockedProductListRequest = {}\n ): Promise<RestApiResponse<GetSimpleEarnLockedProductListResponse>> {\n return this.flexibleLockedApi.getSimpleEarnLockedProductList(requestParameters);\n }\n\n /**\n * Redeem Flexible Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1\n *\n * @summary Redeem Flexible Product(TRADE)\n * @param {RedeemFlexibleProductRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<RedeemFlexibleProductResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Redeem-Flexible-Product Binance API Documentation}\n */\n redeemFlexibleProduct(\n requestParameters: RedeemFlexibleProductRequest\n ): Promise<RestApiResponse<RedeemFlexibleProductResponse>> {\n return this.flexibleLockedApi.redeemFlexibleProduct(requestParameters);\n }\n\n /**\n * Redeem Locked Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1/3s per account\n *\n * @summary Redeem Locked Product(TRADE)\n * @param {RedeemLockedProductRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<RedeemLockedProductResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Redeem-Locked-Product Binance API Documentation}\n */\n redeemLockedProduct(\n requestParameters: RedeemLockedProductRequest\n ): Promise<RestApiResponse<RedeemLockedProductResponse>> {\n return this.flexibleLockedApi.redeemLockedProduct(requestParameters);\n }\n\n /**\n * Set Flexible Auto Subscribe\n *\n * Weight: 150\n *\n * @summary Set Flexible Auto Subscribe(USER_DATA)\n * @param {SetFlexibleAutoSubscribeRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<SetFlexibleAutoSubscribeResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Set-Flexible-Auto-Subscribe Binance API Documentation}\n */\n setFlexibleAutoSubscribe(\n requestParameters: SetFlexibleAutoSubscribeRequest\n ): Promise<RestApiResponse<SetFlexibleAutoSubscribeResponse>> {\n return this.flexibleLockedApi.setFlexibleAutoSubscribe(requestParameters);\n }\n\n /**\n * Set locked auto subscribe\n *\n * Weight: 150\n *\n * @summary Set Locked Auto Subscribe(USER_DATA)\n * @param {SetLockedAutoSubscribeRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<SetLockedAutoSubscribeResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Set-Locked-Auto-Subscribe Binance API Documentation}\n */\n setLockedAutoSubscribe(\n requestParameters: SetLockedAutoSubscribeRequest\n ): Promise<RestApiResponse<SetLockedAutoSubscribeResponse>> {\n return this.flexibleLockedApi.setLockedAutoSubscribe(requestParameters);\n }\n\n /**\n * Set redeem option for Locked product\n *\n * Weight: 50\n *\n * @summary Set Locked Product Redeem Option(USER_DATA)\n * @param {SetLockedProductRedeemOptionRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<SetLockedProductRedeemOptionResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Set-Locked-Redeem-Option Binance API Documentation}\n */\n setLockedProductRedeemOption(\n requestParameters: SetLockedProductRedeemOptionRequest\n ): Promise<RestApiResponse<SetLockedProductRedeemOptionResponse>> {\n return this.flexibleLockedApi.setLockedProductRedeemOption(requestParameters);\n }\n\n /**\n * Simple Account query\n *\n * Weight: 150\n *\n * @summary Simple Account(USER_DATA)\n * @param {SimpleAccountRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<SimpleAccountResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Simple-Account Binance API Documentation}\n */\n simpleAccount(\n requestParameters: SimpleAccountRequest = {}\n ): Promise<RestApiResponse<SimpleAccountResponse>> {\n return this.flexibleLockedApi.simpleAccount(requestParameters);\n }\n\n /**\n * Subscribe Flexible Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1\n *\n * @summary Subscribe Flexible Product(TRADE)\n * @param {SubscribeFlexibleProductRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<SubscribeFlexibleProductResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Subscribe-Flexible-Product Binance API Documentation}\n */\n subscribeFlexibleProduct(\n requestParameters: SubscribeFlexibleProductRequest\n ): Promise<RestApiResponse<SubscribeFlexibleProductResponse>> {\n return this.flexibleLockedApi.subscribeFlexibleProduct(requestParameters);\n }\n\n /**\n * Subscribe Locked Product\n *\n * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.\n *\n * Weight: 1\n *\n * @summary Subscribe Locked Product(TRADE)\n * @param {SubscribeLockedProductRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<SubscribeLockedProductResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Subscribe-Locked-Product Binance API Documentation}\n */\n subscribeLockedProduct(\n requestParameters: SubscribeLockedProductRequest\n ): Promise<RestApiResponse<SubscribeLockedProductResponse>> {\n return this.flexibleLockedApi.subscribeLockedProduct(requestParameters);\n }\n\n /**\n * Get RWUSD account information.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Account (USER_DATA)\n * @param {GetRwusdAccountRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetRwusdAccountResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/account/ Binance API Documentation}\n */\n getRwusdAccount(\n requestParameters: GetRwusdAccountRequest = {}\n ): Promise<RestApiResponse<GetRwusdAccountResponse>> {\n return this.rwusdApi.getRwusdAccount(requestParameters);\n }\n\n /**\n * Get RWUSD quota details including subscription quota, fast redemption quota, and standard redemption quota.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Quota Details (USER_DATA)\n * @param {GetRwusdQuotaDetailsRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetRwusdQuotaDetailsResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/account/Get-RWUSD-Quota-Details Binance API Documentation}\n */\n getRwusdQuotaDetails(\n requestParameters: GetRwusdQuotaDetailsRequest = {}\n ): Promise<RestApiResponse<GetRwusdQuotaDetailsResponse>> {\n return this.rwusdApi.getRwusdQuotaDetails(requestParameters);\n }\n\n /**\n * Get RWUSD rate history sorted by descending order.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Rate History (USER_DATA)\n * @param {GetRwusdRateHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetRwusdRateHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-Rate-History Binance API Documentation}\n */\n getRwusdRateHistory(\n requestParameters: GetRwusdRateHistoryRequest = {}\n ): Promise<RestApiResponse<GetRwusdRateHistoryResponse>> {\n return this.rwusdApi.getRwusdRateHistory(requestParameters);\n }\n\n /**\n * Get RWUSD redemption history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Redemption History (USER_DATA)\n * @param {GetRwusdRedemptionHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetRwusdRedemptionHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-Redemption-History Binance API Documentation}\n */\n getRwusdRedemptionHistory(\n requestParameters: GetRwusdRedemptionHistoryRequest = {}\n ): Promise<RestApiResponse<GetRwusdRedemptionHistoryResponse>> {\n return this.rwusdApi.getRwusdRedemptionHistory(requestParameters);\n }\n\n /**\n * Get RWUSD rewards history.\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD Rewards History (USER_DATA)\n * @param {GetRwusdRewardsHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetRwusdRewardsHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-Rewards-History Binance API Documentation}\n */\n getRwusdRewardsHistory(\n requestParameters: GetRwusdRewardsHistoryRequest = {}\n ): Promise<RestApiResponse<GetRwusdRewardsHistoryResponse>> {\n return this.rwusdApi.getRwusdRewardsHistory(requestParameters);\n }\n\n /**\n * Get RWUSD subscription history\n *\n * The time between `startTime` and `endTime` cannot be longer than 6 months.\n * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.\n * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.\n * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time advanced by one month, and data between `startTime` and `endTime` will be returned.\n *\n * Weight: 150\n *\n * @summary Get RWUSD subscription history(USER_DATA)\n * @param {GetRwusdSubscriptionHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetRwusdSubscriptionHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-subscription-history Binance API Documentation}\n */\n getRwusdSubscriptionHistory(\n requestParameters: GetRwusdSubscriptionHistoryRequest = {}\n ): Promise<RestApiResponse<GetRwusdSubscriptionHistoryResponse>> {\n return this.rwusdApi.getRwusdSubscriptionHistory(requestParameters);\n }\n\n /**\n * Redeem RWUSD to USDC\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Redeem RWUSD(TRADE)\n * @param {RedeemRwusdRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<RedeemRwusdResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/earn/Redeem-RWUSD Binance API Documentation}\n */\n redeemRwusd(\n requestParameters: RedeemRwusdRequest\n ): Promise<RestApiResponse<RedeemRwusdResponse>> {\n return this.rwusdApi.redeemRwusd(requestParameters);\n }\n\n /**\n * Subscribe RWUSD\n *\n * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n *\n * Weight: 150\n *\n * @summary Subscribe RWUSD(TRADE)\n * @param {SubscribeRwusdRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<SubscribeRwusdResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/earn/Subscribe-RWUSD Binance API Documentation}\n */\n subscribeRwusd(\n requestParameters: SubscribeRwusdRequest\n ): Promise<RestApiResponse<SubscribeRwusdResponse>> {\n return this.rwusdApi.subscribeRwusd(requestParameters);\n }\n}\n","/**\n * Binance Simple Earn REST API\n *\n * OpenAPI Specification for the Binance Simple Earn REST API\n *\n * The version of the OpenAPI document: 1.0.0\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nexport * from './types';\nexport * from './modules';\nexport * from './rest-api';\n","import {\n buildUserAgent,\n ConfigurationRestAPI,\n SIMPLE_EARN_REST_API_PROD_URL,\n} from '@binance/common';\nimport { name, version } from '../package.json';\nimport { RestAPI } from './rest-api';\n\nexport interface ConfigurationSimpleEarn {\n configurationRestAPI?: ConfigurationRestAPI;\n}\n\nexport class SimpleEarn {\n public restAPI!: RestAPI;\n\n constructor(config: ConfigurationSimpleEarn) {\n const userAgent = buildUserAgent(name, version);\n\n if (config?.configurationRestAPI) {\n const configRestAPI = new ConfigurationRestAPI(\n config.configurationRestAPI\n ) as ConfigurationRestAPI & {\n baseOptions: Record<string, unknown>;\n };\n configRestAPI.basePath = configRestAPI.basePath || SIMPLE_EARN_REST_API_PROD_URL;\n configRestAPI.baseOptions = configRestAPI.baseOptions || {};\n configRestAPI.baseOptions.headers = {\n ...(configRestAPI.baseOptions.headers || {}),\n 'User-Agent': userAgent,\n };\n this.restAPI = new RestAPI(configRestAPI);\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;WACY;cAEG;;;;;;;;;;;;;;;;;;;ACgCf,MAAM,4BAA4B,SAAU,eAAqC;AAC7E,QAAO;EAWH,iBAAiB,OAAO,eAAuD;GAC3E,MAAMA,yBAAkD,EAAE;GAC1D,MAAMC,wBAAiD,EAAE;AAEzD,OAAI,eAAe,UAAa,eAAe,KAC3C,wBAAuB,gBAAgB;GAG3C,IAAIC;AACJ,OAAI,cAAc,cAAe,aAAY,cAAc;AAE3D,UAAO;IACH,UAAU;IACV,QAAQ;IACR,aAAa;IACb,YAAY;IACZ,UAAU;IACb;;EAYL,sBAAsB,OAAO,eAAuD;GAChF,MAAMF,yBAAkD,EAAE;GAC1D,MAAMC,wBAAiD,EAAE;AAEzD,OAAI,eAAe,UAAa,eAAe,KAC3C,wBAAuB,gBAAgB;GAG3C,IAAIC;AACJ,OAAI,cAAc,cAAe,aAAY,cAAc;AAE3D,UAAO;IACH,UAAU;IACV,QAAQ;IACR,aAAa;IACb,YAAY;IACZ,UAAU;IACb;;EAqBL,qBAAqB,OACjB,WACA,SACA,SACA,MACA,eACuB;GACvB,MAAMF,yBAAkD,EAAE;GAC1D,MAAMC,wBAAiD,EAAE;AAEzD,OAAI,cAAc,UAAa,cAAc,KACzC,wBAAuB,eAAe;AAE1C,OAAI,YAAY,UAAa,YAAY,KACrC,wBAAuB,aAAa;AAExC,OAAI,YAAY,UAAa,YAAY,KACrC,wBAAuB,aAAa;AAExC,OAAI,SAAS,UAAa,SAAS,KAC/B,wB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