@binance/simple-earn 7.0.0 → 8.0.0

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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/simple-earn.ts","../package.json","../src/rest-api/index.ts","../src/rest-api/modules/account-api.ts","../src/rest-api/modules/earn-api.ts","../src/rest-api/modules/history-api.ts","../src/rest-api/rest-api.ts","../src/index.ts"],"sourcesContent":["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","{\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\": \"7.0.0\",\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 && tsup\",\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 \"prettier\": \"^3.3.3\",\n \"ts-jest\": \"^29.1.1\",\n \"ts-node\": \"^10.9.1\",\n \"tsup\": \"^8.4.0\",\n \"typescript\": \"^5.7.2\",\n \"typescript-eslint\": \"^8.24.0\"\n },\n \"dependencies\": {\n \"@binance/common\": \"1.2.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\nexport * from './types';\nexport * from './modules';\nexport * from './rest-api';\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 GetFlexiblePersonalLeftQuotaResponse,\n GetFlexibleProductPositionResponse,\n GetLockedPersonalLeftQuotaResponse,\n GetLockedProductPositionResponse,\n GetSimpleEarnFlexibleProductListResponse,\n GetSimpleEarnLockedProductListResponse,\n SimpleAccountResponse,\n} from '../types';\n\n/**\n * AccountApi - axios parameter creator\n */\nconst AccountApiAxiosParamCreator = function (configuration: ConfigurationRestAPI) {\n return {\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} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexiblePersonalLeftQuota: async (\n productId: string,\n recvWindow?: number\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\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\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 params: localVarQueryParameter,\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]\n * @param {string} [productId]\n * @param {number} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexibleProductPosition: async (\n asset?: string,\n productId?: string,\n current?: number,\n size?: number,\n recvWindow?: number\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getLockedPersonalLeftQuota: async (\n projectId: string,\n recvWindow?: number\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\n if (projectId !== undefined && projectId !== null) {\n localVarQueryParameter['projectId'] = projectId;\n }\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 params: localVarQueryParameter,\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]\n * @param {number} [positionId]\n * @param {string} [projectId]\n * @param {number} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getLockedProductPosition: async (\n asset?: string,\n positionId?: number,\n projectId?: string,\n current?: number,\n size?: number,\n recvWindow?: number\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n\n if (positionId !== undefined && positionId !== null) {\n localVarQueryParameter['positionId'] = positionId;\n }\n\n if (projectId !== undefined && projectId !== null) {\n localVarQueryParameter['projectId'] = projectId;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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]\n * @param {number} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getSimpleEarnFlexibleProductList: async (\n asset?: string,\n current?: number,\n size?: number,\n recvWindow?: number\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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]\n * @param {number} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getSimpleEarnLockedProductList: async (\n asset?: string,\n current?: number,\n size?: number,\n recvWindow?: number\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Simple Account query\n *\n * Weight: 150\n *\n * @summary Simple Account(USER_DATA)\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n simpleAccount: async (recvWindow?: number): Promise<RequestArgs> => {\n const localVarQueryParameter: 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 params: localVarQueryParameter,\n timeUnit: _timeUnit,\n };\n },\n };\n};\n\n/**\n * AccountApi - interface\n * @interface AccountApi\n */\nexport interface AccountApiInterface {\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 AccountApiInterface\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 AccountApiInterface\n */\n getFlexibleProductPosition(\n requestParameters?: GetFlexibleProductPositionRequest\n ): Promise<RestApiResponse<GetFlexibleProductPositionResponse>>;\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 AccountApiInterface\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 AccountApiInterface\n */\n getLockedProductPosition(\n requestParameters?: GetLockedProductPositionRequest\n ): Promise<RestApiResponse<GetLockedProductPositionResponse>>;\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 AccountApiInterface\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 AccountApiInterface\n */\n getSimpleEarnLockedProductList(\n requestParameters?: GetSimpleEarnLockedProductListRequest\n ): Promise<RestApiResponse<GetSimpleEarnLockedProductListResponse>>;\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 AccountApiInterface\n */\n simpleAccount(\n requestParameters?: SimpleAccountRequest\n ): Promise<RestApiResponse<SimpleAccountResponse>>;\n}\n\n/**\n * Request parameters for getFlexiblePersonalLeftQuota operation in AccountApi.\n * @interface GetFlexiblePersonalLeftQuotaRequest\n */\nexport interface GetFlexiblePersonalLeftQuotaRequest {\n /**\n *\n * @type {string}\n * @memberof AccountApiGetFlexiblePersonalLeftQuota\n */\n readonly productId: string;\n\n /**\n *\n * @type {number}\n * @memberof AccountApiGetFlexiblePersonalLeftQuota\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for getFlexibleProductPosition operation in AccountApi.\n * @interface GetFlexibleProductPositionRequest\n */\nexport interface GetFlexibleProductPositionRequest {\n /**\n *\n * @type {string}\n * @memberof AccountApiGetFlexibleProductPosition\n */\n readonly asset?: string;\n\n /**\n *\n * @type {string}\n * @memberof AccountApiGetFlexibleProductPosition\n */\n readonly productId?: string;\n\n /**\n * Currently querying the page. Start from 1. Default:1\n * @type {number}\n * @memberof AccountApiGetFlexibleProductPosition\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof AccountApiGetFlexibleProductPosition\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof AccountApiGetFlexibleProductPosition\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for getLockedPersonalLeftQuota operation in AccountApi.\n * @interface GetLockedPersonalLeftQuotaRequest\n */\nexport interface GetLockedPersonalLeftQuotaRequest {\n /**\n *\n * @type {string}\n * @memberof AccountApiGetLockedPersonalLeftQuota\n */\n readonly projectId: string;\n\n /**\n *\n * @type {number}\n * @memberof AccountApiGetLockedPersonalLeftQuota\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for getLockedProductPosition operation in AccountApi.\n * @interface GetLockedProductPositionRequest\n */\nexport interface GetLockedProductPositionRequest {\n /**\n *\n * @type {string}\n * @memberof AccountApiGetLockedProductPosition\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number}\n * @memberof AccountApiGetLockedProductPosition\n */\n readonly positionId?: number;\n\n /**\n *\n * @type {string}\n * @memberof AccountApiGetLockedProductPosition\n */\n readonly projectId?: string;\n\n /**\n * Currently querying the page. Start from 1. Default:1\n * @type {number}\n * @memberof AccountApiGetLockedProductPosition\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof AccountApiGetLockedProductPosition\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof AccountApiGetLockedProductPosition\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for getSimpleEarnFlexibleProductList operation in AccountApi.\n * @interface GetSimpleEarnFlexibleProductListRequest\n */\nexport interface GetSimpleEarnFlexibleProductListRequest {\n /**\n *\n * @type {string}\n * @memberof AccountApiGetSimpleEarnFlexibleProductList\n */\n readonly asset?: string;\n\n /**\n * Currently querying the page. Start from 1. Default:1\n * @type {number}\n * @memberof AccountApiGetSimpleEarnFlexibleProductList\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof AccountApiGetSimpleEarnFlexibleProductList\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof AccountApiGetSimpleEarnFlexibleProductList\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for getSimpleEarnLockedProductList operation in AccountApi.\n * @interface GetSimpleEarnLockedProductListRequest\n */\nexport interface GetSimpleEarnLockedProductListRequest {\n /**\n *\n * @type {string}\n * @memberof AccountApiGetSimpleEarnLockedProductList\n */\n readonly asset?: string;\n\n /**\n * Currently querying the page. Start from 1. Default:1\n * @type {number}\n * @memberof AccountApiGetSimpleEarnLockedProductList\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof AccountApiGetSimpleEarnLockedProductList\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof AccountApiGetSimpleEarnLockedProductList\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for simpleAccount operation in AccountApi.\n * @interface SimpleAccountRequest\n */\nexport interface SimpleAccountRequest {\n /**\n *\n * @type {number}\n * @memberof AccountApiSimpleAccount\n */\n readonly recvWindow?: number;\n}\n\n/**\n * AccountApi - object-oriented interface\n * @class AccountApi\n */\nexport class AccountApi implements AccountApiInterface {\n private readonly configuration: ConfigurationRestAPI;\n private localVarAxiosParamCreator;\n\n constructor(configuration: ConfigurationRestAPI) {\n this.configuration = configuration;\n this.localVarAxiosParamCreator = AccountApiAxiosParamCreator(configuration);\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 AccountApi\n * @see {@link https://developers.binance.com/docs/simple_earn/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.params,\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 AccountApi\n * @see {@link https://developers.binance.com/docs/simple_earn/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.params,\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 AccountApi\n * @see {@link https://developers.binance.com/docs/simple_earn/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.params,\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 AccountApi\n * @see {@link https://developers.binance.com/docs/simple_earn/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.params,\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 AccountApi\n * @see {@link https://developers.binance.com/docs/simple_earn/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.params,\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 AccountApi\n * @see {@link https://developers.binance.com/docs/simple_earn/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.params,\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 AccountApi\n * @see {@link https://developers.binance.com/docs/simple_earn/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.params,\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 GetFlexibleSubscriptionPreviewResponse,\n GetLockedSubscriptionPreviewResponse,\n RedeemFlexibleProductResponse,\n RedeemLockedProductResponse,\n SetFlexibleAutoSubscribeResponse,\n SetLockedAutoSubscribeResponse,\n SetLockedProductRedeemOptionResponse,\n SubscribeFlexibleProductResponse,\n SubscribeLockedProductResponse,\n} from '../types';\n\n/**\n * EarnApi - axios parameter creator\n */\nconst EarnApiAxiosParamCreator = function (configuration: ConfigurationRestAPI) {\n return {\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\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexibleSubscriptionPreview: async (\n productId: string,\n amount: number,\n recvWindow?: number\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\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\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 params: localVarQueryParameter,\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\n * @param {boolean} [autoSubscribe] true or false, default true.\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getLockedSubscriptionPreview: async (\n projectId: string,\n amount: number,\n autoSubscribe?: boolean,\n recvWindow?: number\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\n if (projectId !== undefined && projectId !== null) {\n localVarQueryParameter['projectId'] = projectId;\n }\n\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n\n if (autoSubscribe !== undefined && autoSubscribe !== null) {\n localVarQueryParameter['autoSubscribe'] = autoSubscribe;\n }\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 params: localVarQueryParameter,\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} [recvWindow]\n *\n * @throws {RequiredError}\n */\n redeemFlexibleProduct: async (\n productId: string,\n redeemAll?: boolean,\n amount?: number,\n destAccount?: string,\n recvWindow?: number\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\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n\n if (redeemAll !== undefined && redeemAll !== null) {\n localVarQueryParameter['redeemAll'] = redeemAll;\n }\n\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n\n if (destAccount !== undefined && destAccount !== null) {\n localVarQueryParameter['destAccount'] = destAccount;\n }\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 params: localVarQueryParameter,\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} [recvWindow]\n *\n * @throws {RequiredError}\n */\n redeemLockedProduct: async (\n positionId: string,\n recvWindow?: number\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\n if (positionId !== undefined && positionId !== null) {\n localVarQueryParameter['positionId'] = positionId;\n }\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 params: localVarQueryParameter,\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} [recvWindow]\n *\n * @throws {RequiredError}\n */\n setFlexibleAutoSubscribe: async (\n productId: string,\n autoSubscribe: boolean,\n recvWindow?: number\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\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n\n if (autoSubscribe !== undefined && autoSubscribe !== null) {\n localVarQueryParameter['autoSubscribe'] = autoSubscribe;\n }\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 params: localVarQueryParameter,\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} [recvWindow]\n *\n * @throws {RequiredError}\n */\n setLockedAutoSubscribe: async (\n positionId: string,\n autoSubscribe: boolean,\n recvWindow?: number\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\n if (positionId !== undefined && positionId !== null) {\n localVarQueryParameter['positionId'] = positionId;\n }\n\n if (autoSubscribe !== undefined && autoSubscribe !== null) {\n localVarQueryParameter['autoSubscribe'] = autoSubscribe;\n }\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 params: localVarQueryParameter,\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} [recvWindow]\n *\n * @throws {RequiredError}\n */\n setLockedProductRedeemOption: async (\n positionId: string,\n redeemTo: string,\n recvWindow?: number\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\n if (positionId !== undefined && positionId !== null) {\n localVarQueryParameter['positionId'] = positionId;\n }\n\n if (redeemTo !== undefined && redeemTo !== null) {\n localVarQueryParameter['redeemTo'] = redeemTo;\n }\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 params: localVarQueryParameter,\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\n * @param {boolean} [autoSubscribe] true or false, default true.\n * @param {string} [sourceAccount] `SPOT`,`FUND`,`ALL`, default `SPOT`\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n subscribeFlexibleProduct: async (\n productId: string,\n amount: number,\n autoSubscribe?: boolean,\n sourceAccount?: string,\n recvWindow?: number\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\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n\n if (autoSubscribe !== undefined && autoSubscribe !== null) {\n localVarQueryParameter['autoSubscribe'] = autoSubscribe;\n }\n\n if (sourceAccount !== undefined && sourceAccount !== null) {\n localVarQueryParameter['sourceAccount'] = sourceAccount;\n }\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 params: localVarQueryParameter,\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\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 `FLEXIBLE`\n * @param {number} [recvWindow]\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\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\n if (projectId !== undefined && projectId !== null) {\n localVarQueryParameter['projectId'] = projectId;\n }\n\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n\n if (autoSubscribe !== undefined && autoSubscribe !== null) {\n localVarQueryParameter['autoSubscribe'] = autoSubscribe;\n }\n\n if (sourceAccount !== undefined && sourceAccount !== null) {\n localVarQueryParameter['sourceAccount'] = sourceAccount;\n }\n\n if (redeemTo !== undefined && redeemTo !== null) {\n localVarQueryParameter['redeemTo'] = redeemTo;\n }\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 params: localVarQueryParameter,\n timeUnit: _timeUnit,\n };\n },\n };\n};\n\n/**\n * EarnApi - interface\n * @interface EarnApi\n */\nexport interface EarnApiInterface {\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 EarnApiInterface\n */\n getFlexibleSubscriptionPreview(\n requestParameters: GetFlexibleSubscriptionPreviewRequest\n ): Promise<RestApiResponse<GetFlexibleSubscriptionPreviewResponse>>;\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 EarnApiInterface\n */\n getLockedSubscriptionPreview(\n requestParameters: GetLockedSubscriptionPreviewRequest\n ): Promise<RestApiResponse<GetLockedSubscriptionPreviewResponse>>;\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 EarnApiInterface\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 EarnApiInterface\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 EarnApiInterface\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 EarnApiInterface\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 EarnApiInterface\n */\n setLockedProductRedeemOption(\n requestParameters: SetLockedProductRedeemOptionRequest\n ): Promise<RestApiResponse<SetLockedProductRedeemOptionResponse>>;\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 EarnApiInterface\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 EarnApiInterface\n */\n subscribeLockedProduct(\n requestParameters: SubscribeLockedProductRequest\n ): Promise<RestApiResponse<SubscribeLockedProductResponse>>;\n}\n\n/**\n * Request parameters for getFlexibleSubscriptionPreview operation in EarnApi.\n * @interface GetFlexibleSubscriptionPreviewRequest\n */\nexport interface GetFlexibleSubscriptionPreviewRequest {\n /**\n *\n * @type {string}\n * @memberof EarnApiGetFlexibleSubscriptionPreview\n */\n readonly productId: string;\n\n /**\n *\n * @type {number}\n * @memberof EarnApiGetFlexibleSubscriptionPreview\n */\n readonly amount: number;\n\n /**\n *\n * @type {number}\n * @memberof EarnApiGetFlexibleSubscriptionPreview\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for getLockedSubscriptionPreview operation in EarnApi.\n * @interface GetLockedSubscriptionPreviewRequest\n */\nexport interface GetLockedSubscriptionPreviewRequest {\n /**\n *\n * @type {string}\n * @memberof EarnApiGetLockedSubscriptionPreview\n */\n readonly projectId: string;\n\n /**\n *\n * @type {number}\n * @memberof EarnApiGetLockedSubscriptionPreview\n */\n readonly amount: number;\n\n /**\n * true or false, default true.\n * @type {boolean}\n * @memberof EarnApiGetLockedSubscriptionPreview\n */\n readonly autoSubscribe?: boolean;\n\n /**\n *\n * @type {number}\n * @memberof EarnApiGetLockedSubscriptionPreview\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for redeemFlexibleProduct operation in EarnApi.\n * @interface RedeemFlexibleProductRequest\n */\nexport interface RedeemFlexibleProductRequest {\n /**\n *\n * @type {string}\n * @memberof EarnApiRedeemFlexibleProduct\n */\n readonly productId: string;\n\n /**\n * true or false, default to false\n * @type {boolean}\n * @memberof EarnApiRedeemFlexibleProduct\n */\n readonly redeemAll?: boolean;\n\n /**\n * if redeemAll is false, amount is mandatory\n * @type {number}\n * @memberof EarnApiRedeemFlexibleProduct\n */\n readonly amount?: number;\n\n /**\n * `SPOT`,`FUND`, default `SPOT`\n * @type {string}\n * @memberof EarnApiRedeemFlexibleProduct\n */\n readonly destAccount?: string;\n\n /**\n *\n * @type {number}\n * @memberof EarnApiRedeemFlexibleProduct\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for redeemLockedProduct operation in EarnApi.\n * @interface RedeemLockedProductRequest\n */\nexport interface RedeemLockedProductRequest {\n /**\n *\n * @type {string}\n * @memberof EarnApiRedeemLockedProduct\n */\n readonly positionId: string;\n\n /**\n *\n * @type {number}\n * @memberof EarnApiRedeemLockedProduct\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for setFlexibleAutoSubscribe operation in EarnApi.\n * @interface SetFlexibleAutoSubscribeRequest\n */\nexport interface SetFlexibleAutoSubscribeRequest {\n /**\n *\n * @type {string}\n * @memberof EarnApiSetFlexibleAutoSubscribe\n */\n readonly productId: string;\n\n /**\n * true or false\n * @type {boolean}\n * @memberof EarnApiSetFlexibleAutoSubscribe\n */\n readonly autoSubscribe: boolean;\n\n /**\n *\n * @type {number}\n * @memberof EarnApiSetFlexibleAutoSubscribe\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for setLockedAutoSubscribe operation in EarnApi.\n * @interface SetLockedAutoSubscribeRequest\n */\nexport interface SetLockedAutoSubscribeRequest {\n /**\n *\n * @type {string}\n * @memberof EarnApiSetLockedAutoSubscribe\n */\n readonly positionId: string;\n\n /**\n * true or false\n * @type {boolean}\n * @memberof EarnApiSetLockedAutoSubscribe\n */\n readonly autoSubscribe: boolean;\n\n /**\n *\n * @type {number}\n * @memberof EarnApiSetLockedAutoSubscribe\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for setLockedProductRedeemOption operation in EarnApi.\n * @interface SetLockedProductRedeemOptionRequest\n */\nexport interface SetLockedProductRedeemOptionRequest {\n /**\n *\n * @type {string}\n * @memberof EarnApiSetLockedProductRedeemOption\n */\n readonly positionId: string;\n\n /**\n * `SPOT`,'FLEXIBLE'\n * @type {string}\n * @memberof EarnApiSetLockedProductRedeemOption\n */\n readonly redeemTo: string;\n\n /**\n *\n * @type {number}\n * @memberof EarnApiSetLockedProductRedeemOption\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for subscribeFlexibleProduct operation in EarnApi.\n * @interface SubscribeFlexibleProductRequest\n */\nexport interface SubscribeFlexibleProductRequest {\n /**\n *\n * @type {string}\n * @memberof EarnApiSubscribeFlexibleProduct\n */\n readonly productId: string;\n\n /**\n *\n * @type {number}\n * @memberof EarnApiSubscribeFlexibleProduct\n */\n readonly amount: number;\n\n /**\n * true or false, default true.\n * @type {boolean}\n * @memberof EarnApiSubscribeFlexibleProduct\n */\n readonly autoSubscribe?: boolean;\n\n /**\n * `SPOT`,`FUND`,`ALL`, default `SPOT`\n * @type {string}\n * @memberof EarnApiSubscribeFlexibleProduct\n */\n readonly sourceAccount?: string;\n\n /**\n *\n * @type {number}\n * @memberof EarnApiSubscribeFlexibleProduct\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for subscribeLockedProduct operation in EarnApi.\n * @interface SubscribeLockedProductRequest\n */\nexport interface SubscribeLockedProductRequest {\n /**\n *\n * @type {string}\n * @memberof EarnApiSubscribeLockedProduct\n */\n readonly projectId: string;\n\n /**\n *\n * @type {number}\n * @memberof EarnApiSubscribeLockedProduct\n */\n readonly amount: number;\n\n /**\n * true or false, default true.\n * @type {boolean}\n * @memberof EarnApiSubscribeLockedProduct\n */\n readonly autoSubscribe?: boolean;\n\n /**\n * `SPOT`,`FUND`,`ALL`, default `SPOT`\n * @type {string}\n * @memberof EarnApiSubscribeLockedProduct\n */\n readonly sourceAccount?: string;\n\n /**\n * `SPOT`,`FLEXIBLE`, default `FLEXIBLE`\n * @type {string}\n * @memberof EarnApiSubscribeLockedProduct\n */\n readonly redeemTo?: string;\n\n /**\n *\n * @type {number}\n * @memberof EarnApiSubscribeLockedProduct\n */\n readonly recvWindow?: number;\n}\n\n/**\n * EarnApi - object-oriented interface\n * @class EarnApi\n */\nexport class EarnApi implements EarnApiInterface {\n private readonly configuration: ConfigurationRestAPI;\n private localVarAxiosParamCreator;\n\n constructor(configuration: ConfigurationRestAPI) {\n this.configuration = configuration;\n this.localVarAxiosParamCreator = EarnApiAxiosParamCreator(configuration);\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 EarnApi\n * @see {@link https://developers.binance.com/docs/simple_earn/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.params,\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 EarnApi\n * @see {@link https://developers.binance.com/docs/simple_earn/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.params,\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 EarnApi\n * @see {@link https://developers.binance.com/docs/simple_earn/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.params,\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 EarnApi\n * @see {@link https://developers.binance.com/docs/simple_earn/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.params,\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 EarnApi\n * @see {@link https://developers.binance.com/docs/simple_earn/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.params,\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 EarnApi\n * @see {@link https://developers.binance.com/docs/simple_earn/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.params,\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 EarnApi\n * @see {@link https://developers.binance.com/docs/simple_earn/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.params,\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 EarnApi\n * @see {@link https://developers.binance.com/docs/simple_earn/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.params,\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 EarnApi\n * @see {@link https://developers.binance.com/docs/simple_earn/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.params,\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 GetFlexibleRedemptionRecordResponse,\n GetFlexibleRewardsHistoryResponse,\n GetFlexibleSubscriptionRecordResponse,\n GetLockedRedemptionRecordResponse,\n GetLockedRewardsHistoryResponse,\n GetLockedSubscriptionRecordResponse,\n GetRateHistoryResponse,\n} from '../types';\n\n/**\n * HistoryApi - axios parameter creator\n */\nconst HistoryApiAxiosParamCreator = 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} [startTime]\n * @param {number} [endTime]\n * @param {number} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getCollateralRecord: async (\n productId?: string,\n startTime?: number,\n endTime?: number,\n current?: number,\n size?: number,\n recvWindow?: number\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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]\n * @param {number} [startTime]\n * @param {number} [endTime]\n * @param {number} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexibleRedemptionRecord: async (\n productId?: string,\n redeemId?: string,\n asset?: string,\n startTime?: number,\n endTime?: number,\n current?: number,\n size?: number,\n recvWindow?: number\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n\n if (redeemId !== undefined && redeemId !== null) {\n localVarQueryParameter['redeemId'] = redeemId;\n }\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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 `BONUS` - Bonus tiered APR, `REALTIME` Real-time APR, `REWARDS` Historical rewards,`ALL`(set to default)\n * @param {string} [productId]\n * @param {string} [asset]\n * @param {number} [startTime]\n * @param {number} [endTime]\n * @param {number} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexibleRewardsHistory: async (\n type: string,\n productId?: string,\n asset?: string,\n startTime?: number,\n endTime?: number,\n current?: number,\n size?: number,\n recvWindow?: number\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\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n\n if (type !== undefined && type !== null) {\n localVarQueryParameter['type'] = type;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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]\n * @param {number} [startTime]\n * @param {number} [endTime]\n * @param {number} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexibleSubscriptionRecord: async (\n productId?: string,\n purchaseId?: string,\n asset?: string,\n startTime?: number,\n endTime?: number,\n current?: number,\n size?: number,\n recvWindow?: number\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n\n if (purchaseId !== undefined && purchaseId !== null) {\n localVarQueryParameter['purchaseId'] = purchaseId;\n }\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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} [positionId]\n * @param {string} [redeemId]\n * @param {string} [asset]\n * @param {number} [startTime]\n * @param {number} [endTime]\n * @param {number} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getLockedRedemptionRecord: async (\n positionId?: number,\n redeemId?: string,\n asset?: string,\n startTime?: number,\n endTime?: number,\n current?: number,\n size?: number,\n recvWindow?: number\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n\n if (positionId !== undefined && positionId !== null) {\n localVarQueryParameter['positionId'] = positionId;\n }\n\n if (redeemId !== undefined && redeemId !== null) {\n localVarQueryParameter['redeemId'] = redeemId;\n }\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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} [positionId]\n * @param {string} [asset]\n * @param {number} [startTime]\n * @param {number} [endTime]\n * @param {number} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getLockedRewardsHistory: async (\n positionId?: number,\n asset?: string,\n startTime?: number,\n endTime?: number,\n current?: number,\n size?: number,\n recvWindow?: number\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n\n if (positionId !== undefined && positionId !== null) {\n localVarQueryParameter['positionId'] = positionId;\n }\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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]\n * @param {number} [startTime]\n * @param {number} [endTime]\n * @param {number} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getLockedSubscriptionRecord: async (\n purchaseId?: string,\n asset?: string,\n startTime?: number,\n endTime?: number,\n current?: number,\n size?: number,\n recvWindow?: number\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n\n if (purchaseId !== undefined && purchaseId !== null) {\n localVarQueryParameter['purchaseId'] = purchaseId;\n }\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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} [startTime]\n * @param {number} [endTime]\n * @param {number} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getRateHistory: async (\n productId: string,\n aprPeriod?: string,\n startTime?: number,\n endTime?: number,\n current?: number,\n size?: number,\n recvWindow?: number\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\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n\n if (aprPeriod !== undefined && aprPeriod !== null) {\n localVarQueryParameter['aprPeriod'] = aprPeriod;\n }\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\n timeUnit: _timeUnit,\n };\n },\n };\n};\n\n/**\n * HistoryApi - interface\n * @interface HistoryApi\n */\nexport interface HistoryApiInterface {\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 HistoryApiInterface\n */\n getCollateralRecord(\n requestParameters?: GetCollateralRecordRequest\n ): Promise<RestApiResponse<GetCollateralRecordResponse>>;\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 HistoryApiInterface\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 HistoryApiInterface\n */\n getFlexibleRewardsHistory(\n requestParameters: GetFlexibleRewardsHistoryRequest\n ): Promise<RestApiResponse<GetFlexibleRewardsHistoryResponse>>;\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 HistoryApiInterface\n */\n getFlexibleSubscriptionRecord(\n requestParameters?: GetFlexibleSubscriptionRecordRequest\n ): Promise<RestApiResponse<GetFlexibleSubscriptionRecordResponse>>;\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 HistoryApiInterface\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 HistoryApiInterface\n */\n getLockedRewardsHistory(\n requestParameters?: GetLockedRewardsHistoryRequest\n ): Promise<RestApiResponse<GetLockedRewardsHistoryResponse>>;\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 HistoryApiInterface\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 HistoryApiInterface\n */\n getRateHistory(\n requestParameters: GetRateHistoryRequest\n ): Promise<RestApiResponse<GetRateHistoryResponse>>;\n}\n\n/**\n * Request parameters for getCollateralRecord operation in HistoryApi.\n * @interface GetCollateralRecordRequest\n */\nexport interface GetCollateralRecordRequest {\n /**\n *\n * @type {string}\n * @memberof HistoryApiGetCollateralRecord\n */\n readonly productId?: string;\n\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetCollateralRecord\n */\n readonly startTime?: number;\n\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetCollateralRecord\n */\n readonly endTime?: number;\n\n /**\n * Currently querying the page. Start from 1. Default:1\n * @type {number}\n * @memberof HistoryApiGetCollateralRecord\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof HistoryApiGetCollateralRecord\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetCollateralRecord\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for getFlexibleRedemptionRecord operation in HistoryApi.\n * @interface GetFlexibleRedemptionRecordRequest\n */\nexport interface GetFlexibleRedemptionRecordRequest {\n /**\n *\n * @type {string}\n * @memberof HistoryApiGetFlexibleRedemptionRecord\n */\n readonly productId?: string;\n\n /**\n *\n * @type {string}\n * @memberof HistoryApiGetFlexibleRedemptionRecord\n */\n readonly redeemId?: string;\n\n /**\n *\n * @type {string}\n * @memberof HistoryApiGetFlexibleRedemptionRecord\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetFlexibleRedemptionRecord\n */\n readonly startTime?: number;\n\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetFlexibleRedemptionRecord\n */\n readonly endTime?: number;\n\n /**\n * Currently querying the page. Start from 1. Default:1\n * @type {number}\n * @memberof HistoryApiGetFlexibleRedemptionRecord\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof HistoryApiGetFlexibleRedemptionRecord\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetFlexibleRedemptionRecord\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for getFlexibleRewardsHistory operation in HistoryApi.\n * @interface GetFlexibleRewardsHistoryRequest\n */\nexport interface GetFlexibleRewardsHistoryRequest {\n /**\n * `BONUS` - Bonus tiered APR, `REALTIME` Real-time APR, `REWARDS` Historical rewards,`ALL`(set to default)\n * @type {string}\n * @memberof HistoryApiGetFlexibleRewardsHistory\n */\n readonly type: string;\n\n /**\n *\n * @type {string}\n * @memberof HistoryApiGetFlexibleRewardsHistory\n */\n readonly productId?: string;\n\n /**\n *\n * @type {string}\n * @memberof HistoryApiGetFlexibleRewardsHistory\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetFlexibleRewardsHistory\n */\n readonly startTime?: number;\n\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetFlexibleRewardsHistory\n */\n readonly endTime?: number;\n\n /**\n * Currently querying the page. Start from 1. Default:1\n * @type {number}\n * @memberof HistoryApiGetFlexibleRewardsHistory\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof HistoryApiGetFlexibleRewardsHistory\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetFlexibleRewardsHistory\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for getFlexibleSubscriptionRecord operation in HistoryApi.\n * @interface GetFlexibleSubscriptionRecordRequest\n */\nexport interface GetFlexibleSubscriptionRecordRequest {\n /**\n *\n * @type {string}\n * @memberof HistoryApiGetFlexibleSubscriptionRecord\n */\n readonly productId?: string;\n\n /**\n *\n * @type {string}\n * @memberof HistoryApiGetFlexibleSubscriptionRecord\n */\n readonly purchaseId?: string;\n\n /**\n *\n * @type {string}\n * @memberof HistoryApiGetFlexibleSubscriptionRecord\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetFlexibleSubscriptionRecord\n */\n readonly startTime?: number;\n\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetFlexibleSubscriptionRecord\n */\n readonly endTime?: number;\n\n /**\n * Currently querying the page. Start from 1. Default:1\n * @type {number}\n * @memberof HistoryApiGetFlexibleSubscriptionRecord\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof HistoryApiGetFlexibleSubscriptionRecord\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetFlexibleSubscriptionRecord\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for getLockedRedemptionRecord operation in HistoryApi.\n * @interface GetLockedRedemptionRecordRequest\n */\nexport interface GetLockedRedemptionRecordRequest {\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetLockedRedemptionRecord\n */\n readonly positionId?: number;\n\n /**\n *\n * @type {string}\n * @memberof HistoryApiGetLockedRedemptionRecord\n */\n readonly redeemId?: string;\n\n /**\n *\n * @type {string}\n * @memberof HistoryApiGetLockedRedemptionRecord\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetLockedRedemptionRecord\n */\n readonly startTime?: number;\n\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetLockedRedemptionRecord\n */\n readonly endTime?: number;\n\n /**\n * Currently querying the page. Start from 1. Default:1\n * @type {number}\n * @memberof HistoryApiGetLockedRedemptionRecord\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof HistoryApiGetLockedRedemptionRecord\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetLockedRedemptionRecord\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for getLockedRewardsHistory operation in HistoryApi.\n * @interface GetLockedRewardsHistoryRequest\n */\nexport interface GetLockedRewardsHistoryRequest {\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetLockedRewardsHistory\n */\n readonly positionId?: number;\n\n /**\n *\n * @type {string}\n * @memberof HistoryApiGetLockedRewardsHistory\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetLockedRewardsHistory\n */\n readonly startTime?: number;\n\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetLockedRewardsHistory\n */\n readonly endTime?: number;\n\n /**\n * Currently querying the page. Start from 1. Default:1\n * @type {number}\n * @memberof HistoryApiGetLockedRewardsHistory\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof HistoryApiGetLockedRewardsHistory\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetLockedRewardsHistory\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for getLockedSubscriptionRecord operation in HistoryApi.\n * @interface GetLockedSubscriptionRecordRequest\n */\nexport interface GetLockedSubscriptionRecordRequest {\n /**\n *\n * @type {string}\n * @memberof HistoryApiGetLockedSubscriptionRecord\n */\n readonly purchaseId?: string;\n\n /**\n *\n * @type {string}\n * @memberof HistoryApiGetLockedSubscriptionRecord\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetLockedSubscriptionRecord\n */\n readonly startTime?: number;\n\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetLockedSubscriptionRecord\n */\n readonly endTime?: number;\n\n /**\n * Currently querying the page. Start from 1. Default:1\n * @type {number}\n * @memberof HistoryApiGetLockedSubscriptionRecord\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof HistoryApiGetLockedSubscriptionRecord\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetLockedSubscriptionRecord\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for getRateHistory operation in HistoryApi.\n * @interface GetRateHistoryRequest\n */\nexport interface GetRateHistoryRequest {\n /**\n *\n * @type {string}\n * @memberof HistoryApiGetRateHistory\n */\n readonly productId: string;\n\n /**\n * \"DAY\",\"YEAR\",default\"DAY\"\n * @type {string}\n * @memberof HistoryApiGetRateHistory\n */\n readonly aprPeriod?: string;\n\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetRateHistory\n */\n readonly startTime?: number;\n\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetRateHistory\n */\n readonly endTime?: number;\n\n /**\n * Currently querying the page. Start from 1. Default:1\n * @type {number}\n * @memberof HistoryApiGetRateHistory\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof HistoryApiGetRateHistory\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof HistoryApiGetRateHistory\n */\n readonly recvWindow?: number;\n}\n\n/**\n * HistoryApi - object-oriented interface\n * @class HistoryApi\n */\nexport class HistoryApi implements HistoryApiInterface {\n private readonly configuration: ConfigurationRestAPI;\n private localVarAxiosParamCreator;\n\n constructor(configuration: ConfigurationRestAPI) {\n this.configuration = configuration;\n this.localVarAxiosParamCreator = HistoryApiAxiosParamCreator(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 HistoryApi\n * @see {@link https://developers.binance.com/docs/simple_earn/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.params,\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 HistoryApi\n * @see {@link https://developers.binance.com/docs/simple_earn/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.params,\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 HistoryApi\n * @see {@link https://developers.binance.com/docs/simple_earn/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.params,\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 HistoryApi\n * @see {@link https://developers.binance.com/docs/simple_earn/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.params,\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 HistoryApi\n * @see {@link https://developers.binance.com/docs/simple_earn/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.params,\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 HistoryApi\n * @see {@link https://developers.binance.com/docs/simple_earn/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.params,\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 HistoryApi\n * @see {@link https://developers.binance.com/docs/simple_earn/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.params,\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 HistoryApi\n * @see {@link https://developers.binance.com/docs/simple_earn/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.params,\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 { AccountApi } from './modules/account-api';\nimport { EarnApi } from './modules/earn-api';\nimport { HistoryApi } from './modules/history-api';\n\nimport type {\n GetFlexiblePersonalLeftQuotaRequest,\n GetFlexibleProductPositionRequest,\n GetLockedPersonalLeftQuotaRequest,\n GetLockedProductPositionRequest,\n GetSimpleEarnFlexibleProductListRequest,\n GetSimpleEarnLockedProductListRequest,\n SimpleAccountRequest,\n} from './modules/account-api';\nimport type {\n GetFlexibleSubscriptionPreviewRequest,\n GetLockedSubscriptionPreviewRequest,\n RedeemFlexibleProductRequest,\n RedeemLockedProductRequest,\n SetFlexibleAutoSubscribeRequest,\n SetLockedAutoSubscribeRequest,\n SetLockedProductRedeemOptionRequest,\n SubscribeFlexibleProductRequest,\n SubscribeLockedProductRequest,\n} from './modules/earn-api';\nimport type {\n GetCollateralRecordRequest,\n GetFlexibleRedemptionRecordRequest,\n GetFlexibleRewardsHistoryRequest,\n GetFlexibleSubscriptionRecordRequest,\n GetLockedRedemptionRecordRequest,\n GetLockedRewardsHistoryRequest,\n GetLockedSubscriptionRecordRequest,\n GetRateHistoryRequest,\n} from './modules/history-api';\n\nimport type {\n GetFlexiblePersonalLeftQuotaResponse,\n GetFlexibleProductPositionResponse,\n GetLockedPersonalLeftQuotaResponse,\n GetLockedProductPositionResponse,\n GetSimpleEarnFlexibleProductListResponse,\n GetSimpleEarnLockedProductListResponse,\n SimpleAccountResponse,\n} from './types';\nimport type {\n GetFlexibleSubscriptionPreviewResponse,\n GetLockedSubscriptionPreviewResponse,\n RedeemFlexibleProductResponse,\n RedeemLockedProductResponse,\n SetFlexibleAutoSubscribeResponse,\n SetLockedAutoSubscribeResponse,\n SetLockedProductRedeemOptionResponse,\n SubscribeFlexibleProductResponse,\n SubscribeLockedProductResponse,\n} from './types';\nimport type {\n GetCollateralRecordResponse,\n GetFlexibleRedemptionRecordResponse,\n GetFlexibleRewardsHistoryResponse,\n GetFlexibleSubscriptionRecordResponse,\n GetLockedRedemptionRecordResponse,\n GetLockedRewardsHistoryResponse,\n GetLockedSubscriptionRecordResponse,\n GetRateHistoryResponse,\n} from './types';\n\nexport class RestAPI {\n private configuration: ConfigurationRestAPI;\n private accountApi: AccountApi;\n private earnApi: EarnApi;\n private historyApi: HistoryApi;\n\n constructor(configuration: ConfigurationRestAPI) {\n this.configuration = configuration;\n this.accountApi = new AccountApi(configuration);\n this.earnApi = new EarnApi(configuration);\n this.historyApi = new HistoryApi(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 params - Query 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 params: Record<string, unknown> = {}\n ): Promise<RestApiResponse<T>> {\n return sendRequest<T>(this.configuration, endpoint, method, params, undefined);\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 params - Query 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 params: Record<string, unknown> = {}\n ): Promise<RestApiResponse<T>> {\n return sendRequest<T>(this.configuration, endpoint, method, params, undefined, {\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 * @see {@link https://developers.binance.com/docs/simple_earn/account/Get-Flexible-Personal-Left-Quota Binance API Documentation}\n */\n getFlexiblePersonalLeftQuota(\n requestParameters: GetFlexiblePersonalLeftQuotaRequest\n ): Promise<RestApiResponse<GetFlexiblePersonalLeftQuotaResponse>> {\n return this.accountApi.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 * @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/account/Get-Flexible-Product-Position Binance API Documentation}\n */\n getFlexibleProductPosition(\n requestParameters: GetFlexibleProductPositionRequest = {}\n ): Promise<RestApiResponse<GetFlexibleProductPositionResponse>> {\n return this.accountApi.getFlexibleProductPosition(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 * @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/account/Get-Locked-Personal-Left-Quota Binance API Documentation}\n */\n getLockedPersonalLeftQuota(\n requestParameters: GetLockedPersonalLeftQuotaRequest\n ): Promise<RestApiResponse<GetLockedPersonalLeftQuotaResponse>> {\n return this.accountApi.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 * @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/account/Get-Locked-Product-Position Binance API Documentation}\n */\n getLockedProductPosition(\n requestParameters: GetLockedProductPositionRequest = {}\n ): Promise<RestApiResponse<GetLockedProductPositionResponse>> {\n return this.accountApi.getLockedProductPosition(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 * @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/account/Get-Simple-Earn-Flexible-Product-List Binance API Documentation}\n */\n getSimpleEarnFlexibleProductList(\n requestParameters: GetSimpleEarnFlexibleProductListRequest = {}\n ): Promise<RestApiResponse<GetSimpleEarnFlexibleProductListResponse>> {\n return this.accountApi.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 * @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/account/Get-Simple-Earn-Locked-Product-List Binance API Documentation}\n */\n getSimpleEarnLockedProductList(\n requestParameters: GetSimpleEarnLockedProductListRequest = {}\n ): Promise<RestApiResponse<GetSimpleEarnLockedProductListResponse>> {\n return this.accountApi.getSimpleEarnLockedProductList(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 * @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/account/Simple-Account Binance API Documentation}\n */\n simpleAccount(\n requestParameters: SimpleAccountRequest = {}\n ): Promise<RestApiResponse<SimpleAccountResponse>> {\n return this.accountApi.simpleAccount(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 * @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/earn/Get-Flexible-Subscription-Preview Binance API Documentation}\n */\n getFlexibleSubscriptionPreview(\n requestParameters: GetFlexibleSubscriptionPreviewRequest\n ): Promise<RestApiResponse<GetFlexibleSubscriptionPreviewResponse>> {\n return this.earnApi.getFlexibleSubscriptionPreview(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 * @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/earn/Get-Locked-Subscription-Preview Binance API Documentation}\n */\n getLockedSubscriptionPreview(\n requestParameters: GetLockedSubscriptionPreviewRequest\n ): Promise<RestApiResponse<GetLockedSubscriptionPreviewResponse>> {\n return this.earnApi.getLockedSubscriptionPreview(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 * @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/earn/Redeem-Flexible-Product Binance API Documentation}\n */\n redeemFlexibleProduct(\n requestParameters: RedeemFlexibleProductRequest\n ): Promise<RestApiResponse<RedeemFlexibleProductResponse>> {\n return this.earnApi.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 * @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/earn/Redeem-Locked-Product Binance API Documentation}\n */\n redeemLockedProduct(\n requestParameters: RedeemLockedProductRequest\n ): Promise<RestApiResponse<RedeemLockedProductResponse>> {\n return this.earnApi.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 * @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/earn/Set-Flexible-Auto-Subscribe Binance API Documentation}\n */\n setFlexibleAutoSubscribe(\n requestParameters: SetFlexibleAutoSubscribeRequest\n ): Promise<RestApiResponse<SetFlexibleAutoSubscribeResponse>> {\n return this.earnApi.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 * @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/earn/Set-Locked-Auto-Subscribe Binance API Documentation}\n */\n setLockedAutoSubscribe(\n requestParameters: SetLockedAutoSubscribeRequest\n ): Promise<RestApiResponse<SetLockedAutoSubscribeResponse>> {\n return this.earnApi.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 * @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/earn/Set-Locked-Redeem-Option Binance API Documentation}\n */\n setLockedProductRedeemOption(\n requestParameters: SetLockedProductRedeemOptionRequest\n ): Promise<RestApiResponse<SetLockedProductRedeemOptionResponse>> {\n return this.earnApi.setLockedProductRedeemOption(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 * @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/earn/Subscribe-Flexible-Product Binance API Documentation}\n */\n subscribeFlexibleProduct(\n requestParameters: SubscribeFlexibleProductRequest\n ): Promise<RestApiResponse<SubscribeFlexibleProductResponse>> {\n return this.earnApi.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 * @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/earn/Subscribe-Locked-Product Binance API Documentation}\n */\n subscribeLockedProduct(\n requestParameters: SubscribeLockedProductRequest\n ): Promise<RestApiResponse<SubscribeLockedProductResponse>> {\n return this.earnApi.subscribeLockedProduct(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 * @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/history/Get-Collateral-Record Binance API Documentation}\n */\n getCollateralRecord(\n requestParameters: GetCollateralRecordRequest = {}\n ): Promise<RestApiResponse<GetCollateralRecordResponse>> {\n return this.historyApi.getCollateralRecord(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 * @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/history/Get-Flexible-Redemption-Record Binance API Documentation}\n */\n getFlexibleRedemptionRecord(\n requestParameters: GetFlexibleRedemptionRecordRequest = {}\n ): Promise<RestApiResponse<GetFlexibleRedemptionRecordResponse>> {\n return this.historyApi.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 * @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/history/Get-Flexible-Rewards-History Binance API Documentation}\n */\n getFlexibleRewardsHistory(\n requestParameters: GetFlexibleRewardsHistoryRequest\n ): Promise<RestApiResponse<GetFlexibleRewardsHistoryResponse>> {\n return this.historyApi.getFlexibleRewardsHistory(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 * @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/history/Get-Flexible-Subscription-Record Binance API Documentation}\n */\n getFlexibleSubscriptionRecord(\n requestParameters: GetFlexibleSubscriptionRecordRequest = {}\n ): Promise<RestApiResponse<GetFlexibleSubscriptionRecordResponse>> {\n return this.historyApi.getFlexibleSubscriptionRecord(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 * @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/history/Get-Locked-Redemption-Record Binance API Documentation}\n */\n getLockedRedemptionRecord(\n requestParameters: GetLockedRedemptionRecordRequest = {}\n ): Promise<RestApiResponse<GetLockedRedemptionRecordResponse>> {\n return this.historyApi.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 * @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/history/Get-Locked-Rewards-History Binance API Documentation}\n */\n getLockedRewardsHistory(\n requestParameters: GetLockedRewardsHistoryRequest = {}\n ): Promise<RestApiResponse<GetLockedRewardsHistoryResponse>> {\n return this.historyApi.getLockedRewardsHistory(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 * @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/history/Get-Locked-Subscription-Record Binance API Documentation}\n */\n getLockedSubscriptionRecord(\n requestParameters: GetLockedSubscriptionRecordRequest = {}\n ): Promise<RestApiResponse<GetLockedSubscriptionRecordResponse>> {\n return this.historyApi.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 * @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/history/Get-Rate-History Binance API Documentation}\n */\n getRateHistory(\n requestParameters: GetRateHistoryRequest\n ): Promise<RestApiResponse<GetRateHistoryResponse>> {\n return this.historyApi.getRateHistory(requestParameters);\n }\n}\n","export { SimpleEarn, ConfigurationSimpleEarn } from './simple-earn';\nexport * as SimpleEarnRestAPI from './rest-api';\n\nexport {\n SIMPLE_EARN_REST_API_PROD_URL,\n ConnectorClientError,\n RequiredError,\n UnauthorizedError,\n ForbiddenError,\n TooManyRequestsError,\n RateLimitBanError,\n ServerError,\n NetworkError,\n NotFoundError,\n BadRequestError,\n} from '@binance/common';\n"],"mappings":";;;;;;;AAAA;AAAA,EACI;AAAA,EACA,wBAAAA;AAAA,EACA;AAAA,OACG;;;ACHH,WAAQ;AAER,cAAW;;;ACHf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACaA;AAAA,EAII;AAAA,EACA;AAAA,OAEG;AAcP,IAAM,8BAA8B,SAAU,eAAqC;AAC/E,SAAO;AAAA;AAAA;A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A;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAkBA,eACI,mBACgD;AAChD,WAAO,KAAK,WAAW,eAAe,iBAAiB;AAAA,EAC3D;AACJ;;;AN5jBO,IAAM,aAAN,MAAiB;AAAA,EAGpB,YAAY,QAAiC;AACzC,UAAM,YAAY,eAAe,MAAM,OAAO;AAE9C,QAAI,QAAQ,sBAAsB;AAC9B,YAAM,gBAAgB,IAAIC;AAAA,QACtB,OAAO;AAAA,MACX;AAGA,oBAAc,WAAW,cAAc,YAAY;AACnD,oBAAc,cAAc,cAAc,eAAe,CAAC;AAC1D,oBAAc,YAAY,UAAU;AAAA,QAChC,GAAI,cAAc,YAAY,WAAW,CAAC;AAAA,QAC1C,cAAc;AAAA,MAClB;AACA,WAAK,UAAU,IAAI,QAAQ,aAAa;AAAA,IAC5C;AAAA,EACJ;AACJ;;;AO9BA;AAAA,EACI,iCAAAC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACG;","names":["ConfigurationRestAPI","assertParamExists","sendRequest","assertParamExists","sendRequest","sendRequest","sendRequest","ConfigurationRestAPI","SIMPLE_EARN_REST_API_PROD_URL"]}
1
+ {"version":3,"sources":["../src/simple-earn.ts","../package.json","../src/rest-api/index.ts","../src/rest-api/modules/flexible-locked-api.ts","../src/rest-api/modules/rwusd-api.ts","../src/rest-api/rest-api.ts","../src/index.ts"],"sourcesContent":["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","{\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\": \"8.0.0\",\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 && tsup\",\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 \"prettier\": \"^3.3.3\",\n \"ts-jest\": \"^29.1.1\",\n \"ts-node\": \"^10.9.1\",\n \"tsup\": \"^8.4.0\",\n \"typescript\": \"^5.7.2\",\n \"typescript-eslint\": \"^8.24.0\"\n },\n \"dependencies\": {\n \"@binance/common\": \"1.2.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\nexport * from './types';\nexport * from './modules';\nexport * from './rest-api';\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} [startTime]\n * @param {number} [endTime]\n * @param {number} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getCollateralRecord: async (\n productId?: string,\n startTime?: number,\n endTime?: number,\n current?: number,\n size?: number,\n recvWindow?: number\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexiblePersonalLeftQuota: async (\n productId: string,\n recvWindow?: number\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\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\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 params: localVarQueryParameter,\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} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexibleProductPosition: async (\n asset?: string,\n productId?: string,\n current?: number,\n size?: number,\n recvWindow?: number\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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} [startTime]\n * @param {number} [endTime]\n * @param {number} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexibleRedemptionRecord: async (\n productId?: string,\n redeemId?: string,\n asset?: string,\n startTime?: number,\n endTime?: number,\n current?: number,\n size?: number,\n recvWindow?: number\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n\n if (redeemId !== undefined && redeemId !== null) {\n localVarQueryParameter['redeemId'] = redeemId;\n }\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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} [startTime]\n * @param {number} [endTime]\n * @param {number} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexibleRewardsHistory: async (\n type: string,\n productId?: string,\n asset?: string,\n startTime?: number,\n endTime?: number,\n current?: number,\n size?: number,\n recvWindow?: number\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\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n\n if (type !== undefined && type !== null) {\n localVarQueryParameter['type'] = type;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexibleSubscriptionPreview: async (\n productId: string,\n amount: number,\n recvWindow?: number\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\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\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 params: localVarQueryParameter,\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} [startTime]\n * @param {number} [endTime]\n * @param {number} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexibleSubscriptionRecord: async (\n productId?: string,\n purchaseId?: string,\n asset?: string,\n startTime?: number,\n endTime?: number,\n current?: number,\n size?: number,\n recvWindow?: number\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n\n if (purchaseId !== undefined && purchaseId !== null) {\n localVarQueryParameter['purchaseId'] = purchaseId;\n }\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getLockedPersonalLeftQuota: async (\n projectId: string,\n recvWindow?: number\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\n if (projectId !== undefined && projectId !== null) {\n localVarQueryParameter['projectId'] = projectId;\n }\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 params: localVarQueryParameter,\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} [positionId]\n * @param {string} [projectId]\n * @param {number} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getLockedProductPosition: async (\n asset?: string,\n positionId?: number,\n projectId?: string,\n current?: number,\n size?: number,\n recvWindow?: number\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n\n if (positionId !== undefined && positionId !== null) {\n localVarQueryParameter['positionId'] = positionId;\n }\n\n if (projectId !== undefined && projectId !== null) {\n localVarQueryParameter['projectId'] = projectId;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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} [positionId]\n * @param {string} [redeemId]\n * @param {string} [asset] USDC or USDT\n * @param {number} [startTime]\n * @param {number} [endTime]\n * @param {number} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getLockedRedemptionRecord: async (\n positionId?: number,\n redeemId?: string,\n asset?: string,\n startTime?: number,\n endTime?: number,\n current?: number,\n size?: number,\n recvWindow?: number\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n\n if (positionId !== undefined && positionId !== null) {\n localVarQueryParameter['positionId'] = positionId;\n }\n\n if (redeemId !== undefined && redeemId !== null) {\n localVarQueryParameter['redeemId'] = redeemId;\n }\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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} [positionId]\n * @param {string} [asset] USDC or USDT\n * @param {number} [startTime]\n * @param {number} [endTime]\n * @param {number} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getLockedRewardsHistory: async (\n positionId?: number,\n asset?: string,\n startTime?: number,\n endTime?: number,\n current?: number,\n size?: number,\n recvWindow?: number\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n\n if (positionId !== undefined && positionId !== null) {\n localVarQueryParameter['positionId'] = positionId;\n }\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getLockedSubscriptionPreview: async (\n projectId: string,\n amount: number,\n autoSubscribe?: boolean,\n recvWindow?: number\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\n if (projectId !== undefined && projectId !== null) {\n localVarQueryParameter['projectId'] = projectId;\n }\n\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n\n if (autoSubscribe !== undefined && autoSubscribe !== null) {\n localVarQueryParameter['autoSubscribe'] = autoSubscribe;\n }\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 params: localVarQueryParameter,\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} [startTime]\n * @param {number} [endTime]\n * @param {number} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getLockedSubscriptionRecord: async (\n purchaseId?: string,\n asset?: string,\n startTime?: number,\n endTime?: number,\n current?: number,\n size?: number,\n recvWindow?: number\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n\n if (purchaseId !== undefined && purchaseId !== null) {\n localVarQueryParameter['purchaseId'] = purchaseId;\n }\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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} [startTime]\n * @param {number} [endTime]\n * @param {number} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getRateHistory: async (\n productId: string,\n aprPeriod?: string,\n startTime?: number,\n endTime?: number,\n current?: number,\n size?: number,\n recvWindow?: number\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\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n\n if (aprPeriod !== undefined && aprPeriod !== null) {\n localVarQueryParameter['aprPeriod'] = aprPeriod;\n }\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getSimpleEarnFlexibleProductList: async (\n asset?: string,\n current?: number,\n size?: number,\n recvWindow?: number\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getSimpleEarnLockedProductList: async (\n asset?: string,\n current?: number,\n size?: number,\n recvWindow?: number\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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} [recvWindow]\n *\n * @throws {RequiredError}\n */\n redeemFlexibleProduct: async (\n productId: string,\n redeemAll?: boolean,\n amount?: number,\n destAccount?: string,\n recvWindow?: number\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\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n\n if (redeemAll !== undefined && redeemAll !== null) {\n localVarQueryParameter['redeemAll'] = redeemAll;\n }\n\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n\n if (destAccount !== undefined && destAccount !== null) {\n localVarQueryParameter['destAccount'] = destAccount;\n }\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 params: localVarQueryParameter,\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} [recvWindow]\n *\n * @throws {RequiredError}\n */\n redeemLockedProduct: async (\n positionId: string,\n recvWindow?: number\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\n if (positionId !== undefined && positionId !== null) {\n localVarQueryParameter['positionId'] = positionId;\n }\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 params: localVarQueryParameter,\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} [recvWindow]\n *\n * @throws {RequiredError}\n */\n setFlexibleAutoSubscribe: async (\n productId: string,\n autoSubscribe: boolean,\n recvWindow?: number\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\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n\n if (autoSubscribe !== undefined && autoSubscribe !== null) {\n localVarQueryParameter['autoSubscribe'] = autoSubscribe;\n }\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 params: localVarQueryParameter,\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} [recvWindow]\n *\n * @throws {RequiredError}\n */\n setLockedAutoSubscribe: async (\n positionId: string,\n autoSubscribe: boolean,\n recvWindow?: number\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\n if (positionId !== undefined && positionId !== null) {\n localVarQueryParameter['positionId'] = positionId;\n }\n\n if (autoSubscribe !== undefined && autoSubscribe !== null) {\n localVarQueryParameter['autoSubscribe'] = autoSubscribe;\n }\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 params: localVarQueryParameter,\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} [recvWindow]\n *\n * @throws {RequiredError}\n */\n setLockedProductRedeemOption: async (\n positionId: string,\n redeemTo: string,\n recvWindow?: number\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\n if (positionId !== undefined && positionId !== null) {\n localVarQueryParameter['positionId'] = positionId;\n }\n\n if (redeemTo !== undefined && redeemTo !== null) {\n localVarQueryParameter['redeemTo'] = redeemTo;\n }\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 params: localVarQueryParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Simple Account query\n *\n * Weight: 150\n *\n * @summary Simple Account(USER_DATA)\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n simpleAccount: async (recvWindow?: number): Promise<RequestArgs> => {\n const localVarQueryParameter: 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 params: localVarQueryParameter,\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} [recvWindow]\n *\n * @throws {RequiredError}\n */\n subscribeFlexibleProduct: async (\n productId: string,\n amount: number,\n autoSubscribe?: boolean,\n sourceAccount?: string,\n recvWindow?: number\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\n if (productId !== undefined && productId !== null) {\n localVarQueryParameter['productId'] = productId;\n }\n\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n\n if (autoSubscribe !== undefined && autoSubscribe !== null) {\n localVarQueryParameter['autoSubscribe'] = autoSubscribe;\n }\n\n if (sourceAccount !== undefined && sourceAccount !== null) {\n localVarQueryParameter['sourceAccount'] = sourceAccount;\n }\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 params: localVarQueryParameter,\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 `FLEXIBLE`\n * @param {number} [recvWindow]\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\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\n if (projectId !== undefined && projectId !== null) {\n localVarQueryParameter['projectId'] = projectId;\n }\n\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n\n if (autoSubscribe !== undefined && autoSubscribe !== null) {\n localVarQueryParameter['autoSubscribe'] = autoSubscribe;\n }\n\n if (sourceAccount !== undefined && sourceAccount !== null) {\n localVarQueryParameter['sourceAccount'] = sourceAccount;\n }\n\n if (redeemTo !== undefined && redeemTo !== null) {\n localVarQueryParameter['redeemTo'] = redeemTo;\n }\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 params: localVarQueryParameter,\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}\n * @memberof FlexibleLockedApiGetCollateralRecord\n */\n readonly startTime?: number;\n\n /**\n *\n * @type {number}\n * @memberof FlexibleLockedApiGetCollateralRecord\n */\n readonly endTime?: number;\n\n /**\n * Currently querying the page. Start from 1. Default:1\n * @type {number}\n * @memberof FlexibleLockedApiGetCollateralRecord\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof FlexibleLockedApiGetCollateralRecord\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof FlexibleLockedApiGetCollateralRecord\n */\n readonly recvWindow?: number;\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 *\n * @type {number}\n * @memberof FlexibleLockedApiGetFlexiblePersonalLeftQuota\n */\n readonly recvWindow?: number;\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 the page. Start from 1. Default:1\n * @type {number}\n * @memberof FlexibleLockedApiGetFlexibleProductPosition\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof FlexibleLockedApiGetFlexibleProductPosition\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof FlexibleLockedApiGetFlexibleProductPosition\n */\n readonly recvWindow?: number;\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}\n * @memberof FlexibleLockedApiGetFlexibleRedemptionRecord\n */\n readonly startTime?: number;\n\n /**\n *\n * @type {number}\n * @memberof FlexibleLockedApiGetFlexibleRedemptionRecord\n */\n readonly endTime?: number;\n\n /**\n * Currently querying the page. Start from 1. Default:1\n * @type {number}\n * @memberof FlexibleLockedApiGetFlexibleRedemptionRecord\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof FlexibleLockedApiGetFlexibleRedemptionRecord\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof FlexibleLockedApiGetFlexibleRedemptionRecord\n */\n readonly recvWindow?: number;\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}\n * @memberof FlexibleLockedApiGetFlexibleRewardsHistory\n */\n readonly startTime?: number;\n\n /**\n *\n * @type {number}\n * @memberof FlexibleLockedApiGetFlexibleRewardsHistory\n */\n readonly endTime?: number;\n\n /**\n * Currently querying the page. Start from 1. Default:1\n * @type {number}\n * @memberof FlexibleLockedApiGetFlexibleRewardsHistory\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof FlexibleLockedApiGetFlexibleRewardsHistory\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof FlexibleLockedApiGetFlexibleRewardsHistory\n */\n readonly recvWindow?: number;\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 *\n * @type {number}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionPreview\n */\n readonly recvWindow?: number;\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}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionRecord\n */\n readonly startTime?: number;\n\n /**\n *\n * @type {number}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionRecord\n */\n readonly endTime?: number;\n\n /**\n * Currently querying the page. Start from 1. Default:1\n * @type {number}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionRecord\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionRecord\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof FlexibleLockedApiGetFlexibleSubscriptionRecord\n */\n readonly recvWindow?: number;\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 *\n * @type {number}\n * @memberof FlexibleLockedApiGetLockedPersonalLeftQuota\n */\n readonly recvWindow?: number;\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}\n * @memberof FlexibleLockedApiGetLockedProductPosition\n */\n readonly positionId?: number;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleLockedApiGetLockedProductPosition\n */\n readonly projectId?: string;\n\n /**\n * Currently querying the page. Start from 1. Default:1\n * @type {number}\n * @memberof FlexibleLockedApiGetLockedProductPosition\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof FlexibleLockedApiGetLockedProductPosition\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof FlexibleLockedApiGetLockedProductPosition\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for getLockedRedemptionRecord operation in FlexibleLockedApi.\n * @interface GetLockedRedemptionRecordRequest\n */\nexport interface GetLockedRedemptionRecordRequest {\n /**\n *\n * @type {number}\n * @memberof FlexibleLockedApiGetLockedRedemptionRecord\n */\n readonly positionId?: number;\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}\n * @memberof FlexibleLockedApiGetLockedRedemptionRecord\n */\n readonly startTime?: number;\n\n /**\n *\n * @type {number}\n * @memberof FlexibleLockedApiGetLockedRedemptionRecord\n */\n readonly endTime?: number;\n\n /**\n * Currently querying the page. Start from 1. Default:1\n * @type {number}\n * @memberof FlexibleLockedApiGetLockedRedemptionRecord\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof FlexibleLockedApiGetLockedRedemptionRecord\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof FlexibleLockedApiGetLockedRedemptionRecord\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for getLockedRewardsHistory operation in FlexibleLockedApi.\n * @interface GetLockedRewardsHistoryRequest\n */\nexport interface GetLockedRewardsHistoryRequest {\n /**\n *\n * @type {number}\n * @memberof FlexibleLockedApiGetLockedRewardsHistory\n */\n readonly positionId?: number;\n\n /**\n * USDC or USDT\n * @type {string}\n * @memberof FlexibleLockedApiGetLockedRewardsHistory\n */\n readonly asset?: string;\n\n /**\n *\n * @type {number}\n * @memberof FlexibleLockedApiGetLockedRewardsHistory\n */\n readonly startTime?: number;\n\n /**\n *\n * @type {number}\n * @memberof FlexibleLockedApiGetLockedRewardsHistory\n */\n readonly endTime?: number;\n\n /**\n * Currently querying the page. Start from 1. Default:1\n * @type {number}\n * @memberof FlexibleLockedApiGetLockedRewardsHistory\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof FlexibleLockedApiGetLockedRewardsHistory\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof FlexibleLockedApiGetLockedRewardsHistory\n */\n readonly recvWindow?: number;\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 *\n * @type {number}\n * @memberof FlexibleLockedApiGetLockedSubscriptionPreview\n */\n readonly recvWindow?: number;\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}\n * @memberof FlexibleLockedApiGetLockedSubscriptionRecord\n */\n readonly startTime?: number;\n\n /**\n *\n * @type {number}\n * @memberof FlexibleLockedApiGetLockedSubscriptionRecord\n */\n readonly endTime?: number;\n\n /**\n * Currently querying the page. Start from 1. Default:1\n * @type {number}\n * @memberof FlexibleLockedApiGetLockedSubscriptionRecord\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof FlexibleLockedApiGetLockedSubscriptionRecord\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof FlexibleLockedApiGetLockedSubscriptionRecord\n */\n readonly recvWindow?: number;\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}\n * @memberof FlexibleLockedApiGetRateHistory\n */\n readonly startTime?: number;\n\n /**\n *\n * @type {number}\n * @memberof FlexibleLockedApiGetRateHistory\n */\n readonly endTime?: number;\n\n /**\n * Currently querying the page. Start from 1. Default:1\n * @type {number}\n * @memberof FlexibleLockedApiGetRateHistory\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof FlexibleLockedApiGetRateHistory\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof FlexibleLockedApiGetRateHistory\n */\n readonly recvWindow?: number;\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 the page. Start from 1. Default:1\n * @type {number}\n * @memberof FlexibleLockedApiGetSimpleEarnFlexibleProductList\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof FlexibleLockedApiGetSimpleEarnFlexibleProductList\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof FlexibleLockedApiGetSimpleEarnFlexibleProductList\n */\n readonly recvWindow?: number;\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 the page. Start from 1. Default:1\n * @type {number}\n * @memberof FlexibleLockedApiGetSimpleEarnLockedProductList\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof FlexibleLockedApiGetSimpleEarnLockedProductList\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof FlexibleLockedApiGetSimpleEarnLockedProductList\n */\n readonly recvWindow?: number;\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 *\n * @type {number}\n * @memberof FlexibleLockedApiRedeemFlexibleProduct\n */\n readonly recvWindow?: number;\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 *\n * @type {number}\n * @memberof FlexibleLockedApiRedeemLockedProduct\n */\n readonly recvWindow?: number;\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 *\n * @type {number}\n * @memberof FlexibleLockedApiSetFlexibleAutoSubscribe\n */\n readonly recvWindow?: number;\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 *\n * @type {number}\n * @memberof FlexibleLockedApiSetLockedAutoSubscribe\n */\n readonly recvWindow?: number;\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 *\n * @type {number}\n * @memberof FlexibleLockedApiSetLockedProductRedeemOption\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for simpleAccount operation in FlexibleLockedApi.\n * @interface SimpleAccountRequest\n */\nexport interface SimpleAccountRequest {\n /**\n *\n * @type {number}\n * @memberof FlexibleLockedApiSimpleAccount\n */\n readonly recvWindow?: number;\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 *\n * @type {number}\n * @memberof FlexibleLockedApiSubscribeFlexibleProduct\n */\n readonly recvWindow?: number;\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 `FLEXIBLE`\n * @type {string}\n * @memberof FlexibleLockedApiSubscribeLockedProduct\n */\n readonly redeemTo?: string;\n\n /**\n *\n * @type {number}\n * @memberof FlexibleLockedApiSubscribeLockedProduct\n */\n readonly recvWindow?: number;\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.params,\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.params,\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.params,\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.params,\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.params,\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.params,\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.params,\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.params,\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.params,\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.params,\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.params,\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.params,\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.params,\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.params,\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.params,\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.params,\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.params,\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.params,\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.params,\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.params,\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.params,\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.params,\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.params,\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.params,\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} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getRwusdAccount: async (recvWindow?: number): Promise<RequestArgs> => {\n const localVarQueryParameter: 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 params: localVarQueryParameter,\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} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getRwusdQuotaDetails: async (recvWindow?: number): Promise<RequestArgs> => {\n const localVarQueryParameter: 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 params: localVarQueryParameter,\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} [startTime]\n * @param {number} [endTime]\n * @param {number} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getRwusdRateHistory: async (\n startTime?: number,\n endTime?: number,\n current?: number,\n size?: number,\n recvWindow?: number\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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} [startTime]\n * @param {number} [endTime]\n * @param {number} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getRwusdRedemptionHistory: async (\n startTime?: number,\n endTime?: number,\n current?: number,\n size?: number,\n recvWindow?: number\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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} [startTime]\n * @param {number} [endTime]\n * @param {number} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getRwusdRewardsHistory: async (\n startTime?: number,\n endTime?: number,\n current?: number,\n size?: number,\n recvWindow?: number\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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} [startTime]\n * @param {number} [endTime]\n * @param {number} [current] Currently querying the page. Start from 1. Default:1\n * @param {number} [size] Default:10, Max:100\n * @param {number} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getRwusdSubscriptionHistory: async (\n asset?: string,\n startTime?: number,\n endTime?: number,\n current?: number,\n size?: number,\n recvWindow?: number\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n\n if (size !== undefined && size !== null) {\n localVarQueryParameter['size'] = size;\n }\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 params: localVarQueryParameter,\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} [recvWindow]\n *\n * @throws {RequiredError}\n */\n redeemRwusd: async (\n amount: number,\n type: string,\n recvWindow?: number\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\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\n\n if (type !== undefined && type !== null) {\n localVarQueryParameter['type'] = type;\n }\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 params: localVarQueryParameter,\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} [recvWindow]\n *\n * @throws {RequiredError}\n */\n subscribeRwusd: async (\n asset: string,\n amount: number,\n recvWindow?: number\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\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n\n if (amount !== undefined && amount !== null) {\n localVarQueryParameter['amount'] = amount;\n }\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 params: localVarQueryParameter,\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 *\n * @type {number}\n * @memberof RwusdApiGetRwusdAccount\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for getRwusdQuotaDetails operation in RwusdApi.\n * @interface GetRwusdQuotaDetailsRequest\n */\nexport interface GetRwusdQuotaDetailsRequest {\n /**\n *\n * @type {number}\n * @memberof RwusdApiGetRwusdQuotaDetails\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for getRwusdRateHistory operation in RwusdApi.\n * @interface GetRwusdRateHistoryRequest\n */\nexport interface GetRwusdRateHistoryRequest {\n /**\n *\n * @type {number}\n * @memberof RwusdApiGetRwusdRateHistory\n */\n readonly startTime?: number;\n\n /**\n *\n * @type {number}\n * @memberof RwusdApiGetRwusdRateHistory\n */\n readonly endTime?: number;\n\n /**\n * Currently querying the page. Start from 1. Default:1\n * @type {number}\n * @memberof RwusdApiGetRwusdRateHistory\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof RwusdApiGetRwusdRateHistory\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof RwusdApiGetRwusdRateHistory\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for getRwusdRedemptionHistory operation in RwusdApi.\n * @interface GetRwusdRedemptionHistoryRequest\n */\nexport interface GetRwusdRedemptionHistoryRequest {\n /**\n *\n * @type {number}\n * @memberof RwusdApiGetRwusdRedemptionHistory\n */\n readonly startTime?: number;\n\n /**\n *\n * @type {number}\n * @memberof RwusdApiGetRwusdRedemptionHistory\n */\n readonly endTime?: number;\n\n /**\n * Currently querying the page. Start from 1. Default:1\n * @type {number}\n * @memberof RwusdApiGetRwusdRedemptionHistory\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof RwusdApiGetRwusdRedemptionHistory\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof RwusdApiGetRwusdRedemptionHistory\n */\n readonly recvWindow?: number;\n}\n\n/**\n * Request parameters for getRwusdRewardsHistory operation in RwusdApi.\n * @interface GetRwusdRewardsHistoryRequest\n */\nexport interface GetRwusdRewardsHistoryRequest {\n /**\n *\n * @type {number}\n * @memberof RwusdApiGetRwusdRewardsHistory\n */\n readonly startTime?: number;\n\n /**\n *\n * @type {number}\n * @memberof RwusdApiGetRwusdRewardsHistory\n */\n readonly endTime?: number;\n\n /**\n * Currently querying the page. Start from 1. Default:1\n * @type {number}\n * @memberof RwusdApiGetRwusdRewardsHistory\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof RwusdApiGetRwusdRewardsHistory\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof RwusdApiGetRwusdRewardsHistory\n */\n readonly recvWindow?: number;\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}\n * @memberof RwusdApiGetRwusdSubscriptionHistory\n */\n readonly startTime?: number;\n\n /**\n *\n * @type {number}\n * @memberof RwusdApiGetRwusdSubscriptionHistory\n */\n readonly endTime?: number;\n\n /**\n * Currently querying the page. Start from 1. Default:1\n * @type {number}\n * @memberof RwusdApiGetRwusdSubscriptionHistory\n */\n readonly current?: number;\n\n /**\n * Default:10, Max:100\n * @type {number}\n * @memberof RwusdApiGetRwusdSubscriptionHistory\n */\n readonly size?: number;\n\n /**\n *\n * @type {number}\n * @memberof RwusdApiGetRwusdSubscriptionHistory\n */\n readonly recvWindow?: number;\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 *\n * @type {number}\n * @memberof RwusdApiRedeemRwusd\n */\n readonly recvWindow?: number;\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 *\n * @type {number}\n * @memberof RwusdApiSubscribeRwusd\n */\n readonly recvWindow?: number;\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.params,\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.params,\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.params,\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.params,\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.params,\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.params,\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.params,\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.params,\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 { FlexibleLockedApi } from './modules/flexible-locked-api';\nimport { RwusdApi } from './modules/rwusd-api';\n\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 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 flexibleLockedApi: FlexibleLockedApi;\n private rwusdApi: RwusdApi;\n\n constructor(configuration: ConfigurationRestAPI) {\n this.configuration = 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 params - Query 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 params: Record<string, unknown> = {}\n ): Promise<RestApiResponse<T>> {\n return sendRequest<T>(this.configuration, endpoint, method, params, undefined);\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 params - Query 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 params: Record<string, unknown> = {}\n ): Promise<RestApiResponse<T>> {\n return sendRequest<T>(this.configuration, endpoint, method, params, undefined, {\n isSigned: true,\n });\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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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","export { SimpleEarn, ConfigurationSimpleEarn } from './simple-earn';\nexport * as SimpleEarnRestAPI from './rest-api';\n\nexport {\n SIMPLE_EARN_REST_API_PROD_URL,\n ConnectorClientError,\n RequiredError,\n UnauthorizedError,\n ForbiddenError,\n TooManyRequestsError,\n RateLimitBanError,\n ServerError,\n NetworkError,\n NotFoundError,\n BadRequestError,\n} from '@binance/common';\n"],"mappings":";;;;;;;AAAA;AAAA,EACI;AAAA,EACA,wBAAAA;AAAA,EACA;AAAA,OACG;;;ACHH,WAAQ;AAER,cAAW;;;ACHf;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACaA;AAAA,EAII;AAAA,EACA;AAAA,OAEG;AA+BP,IAAM,qCAAqC,SAAU,eAAqC;AACtF,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAqBH,qBAAqB,OACjB,WACA,WACA,SACA,SACA,MACA,eACuB;AACvB,YAAM,yBAAkD,CAAC;AAEzD,UAAI,cAAc,UAAa,cAAc,MAAM;AAC/C,+BAAuB,WAAW,IAAI;AAAA,MAC1C;AAEA,UAAI,cAAc,UAAa,cAAc,MAAM;AAC/C,+BAAuB,WAAW,IAAI;AAAA,MAC1C;AAEA,UAAI,YAAY,UAAa,YAAY,MAAM;AAC3C,+BAAuB,SAAS,IAAI;AAAA,MACxC;AAEA,UAAI,YAAY,UAAa,YAAY,MAAM;AAC3C,+BAAuB,SAAS,IAAI;AAAA,MACxC;AAEA,UAAI,SAAS,UAAa,SAAS,MAAM;AACrC,+BAAuB,MAAM,IAAI;AAAA,MACrC;AAEA,UAAI,eAAe,UAAa,eAAe,MAAM;AACjD,+BAAuB,YAAY,IAAI;AAAA,MAC3C;AAEA,UAAI;AACJ,UAAI,cAAc,cAAe,aAAY,cAAc;AAE3D,aAAO;AAAA,QACH,UAAU;AAAA,QACV,QAAQ;AAAA,QACR,QAAQ;AAAA,QACR,UAAU;AAAA,MACd;AAAA,IACJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAYA,8BA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AAN,MAAiB;AAAA,EAGpB,YAAY,QAAiC;AACzC,UAAM,YAAY,eAAe,MAAM,OAAO;AAE9C,QAAI,QAAQ,sBAAsB;AAC9B,YAAM,gBAAgB,IAAIC;AAAA,QACtB,OAAO;AAAA,MACX;AAGA,oBAAc,WAAW,cAAc,YAAY;AACnD,oBAAc,cAAc,cAAc,eAAe,CAAC;AAC1D,oBAAc,YAAY,UAAU;AAAA,QAChC,GAAI,cAAc,YAAY,WAAW,CAAC;AAAA,QAC1C,cAAc;AAAA,MAClB;AACA,WAAK,UAAU,IAAI,QAAQ,aAAa;AAAA,IAC5C;AAAA,EACJ;AACJ;;;AM9BA;AAAA,EACI,iCAAAC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACG;","names":["ConfigurationRestAPI","assertParamExists","sendRequest","sendRequest","sendRequest","ConfigurationRestAPI","SIMPLE_EARN_REST_API_PROD_URL"]}