@binance/crypto-loan 9.0.4 → 9.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["localVarQueryParameter: Record<string, unknown>","localVarBodyParameter: Record<string, unknown>","_timeUnit: TimeUnit | undefined","localVarQueryParameter: Record<string, unknown>","localVarBodyParameter: Record<string, unknown>","_timeUnit: TimeUnit | undefined","ConfigurationRestAPI","CRYPTO_LOAN_REST_API_PROD_URL"],"sources":["../package.json","../src/rest-api/modules/flexible-rate-api.ts","../src/rest-api/modules/stable-rate-api.ts","../src/rest-api/rest-api.ts","../src/rest-api/index.ts","../src/crypto-loan.ts"],"sourcesContent":["{\n \"name\": \"@binance/crypto-loan\",\n \"description\": \"Official Binance Crypto Loan Connector - A lightweight library that provides a convenient interface to Binance's Crypto Loan REST API.\",\n \"version\": \"9.0.4\",\n \"main\": \"./dist/index.js\",\n \"module\": \"./dist/index.mjs\",\n \"types\": \"./dist/index.d.ts\",\n \"exports\": {\n \".\": {\n \"require\": \"./dist/index.js\",\n \"import\": \"./dist/index.mjs\"\n }\n },\n \"scripts\": {\n \"prepublishOnly\": \"npm run build\",\n \"build\": \"npm run clean && tsdown\",\n \"typecheck\": \"tsc --noEmit\",\n \"clean\": \"rm -rf dist\",\n \"test\": \"npx jest --maxWorkers=4 --bail\",\n \"test:watch\": \"npx jest --watch\",\n \"format\": \"npx prettier --ignore-path .prettierignore --write .\",\n \"lint\": \"npx eslint '**/*.ts' --fix\"\n },\n \"keywords\": [\n \"Binance\",\n \"API\",\n \"Crypto Loan\",\n \"Connector\",\n \"REST\",\n \"Trading\"\n ],\n \"author\": \"Binance\",\n \"license\": \"MIT\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/binance/binance-connector-js.git\"\n },\n \"bugs\": {\n \"url\": \"https://github.com/binance/binance-connector-js/issues\"\n },\n \"homepage\": \"https://github.com/binance/binance-connector-js#readme\",\n \"files\": [\n \"dist\"\n ],\n \"devDependencies\": {\n \"@types/jest\": \"^29.5.4\",\n \"@types/node\": \"^20.17.24\",\n \"eslint\": \"8.57.0\",\n \"jest\": \"^29.6.4\",\n \"json-with-bigint\": \"^3.4.4\",\n \"prettier\": \"^3.3.3\",\n \"ts-jest\": \"^29.1.1\",\n \"ts-node\": \"^10.9.1\",\n \"tsdown\": \"^0.16.5\",\n \"typescript\": \"^5.7.2\",\n \"typescript-eslint\": \"^8.24.0\"\n },\n \"dependencies\": {\n \"@binance/common\": \"2.3.4\",\n \"axios\": \"^1.7.4\"\n }\n}\n","/**\n * Binance Crypto Loan REST API\n *\n * OpenAPI Specification for the Binance Crypto Loan 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 CheckCollateralRepayRateResponse,\n FlexibleLoanAdjustLtvResponse,\n FlexibleLoanBorrowResponse,\n FlexibleLoanRepayResponse,\n GetFlexibleLoanAssetsDataResponse,\n GetFlexibleLoanBorrowHistoryResponse,\n GetFlexibleLoanCollateralAssetsDataResponse,\n GetFlexibleLoanInterestRateHistoryResponse,\n GetFlexibleLoanLiquidationHistoryResponse,\n GetFlexibleLoanLtvAdjustmentHistoryResponse,\n GetFlexibleLoanOngoingOrdersResponse,\n GetFlexibleLoanRepaymentHistoryResponse,\n} from '../types';\n\n/**\n * FlexibleRateApi - axios parameter creator\n */\nconst FlexibleRateApiAxiosParamCreator = function (configuration: ConfigurationRestAPI) {\n return {\n /**\n *\n * Weight: 6000\n *\n * @summary Check Collateral Repay Rate (USER_DATA)\n * @param {string} loanCoin\n * @param {string} collateralCoin\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n checkCollateralRepayRate: async (\n loanCoin: string,\n collateralCoin: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'loanCoin' is not null or undefined\n assertParamExists('checkCollateralRepayRate', 'loanCoin', loanCoin);\n // verify required parameter 'collateralCoin' is not null or undefined\n assertParamExists('checkCollateralRepayRate', 'collateralCoin', collateralCoin);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\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/v2/loan/flexible/repay/rate',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Flexible Loan Adjust LTV\n *\n * API Key needs Spot & Margin Trading permission for this endpoint\n *\n * Weight: 6000\n *\n * @summary Flexible Loan Adjust LTV(TRADE)\n * @param {string} loanCoin\n * @param {string} collateralCoin\n * @param {number} adjustmentAmount\n * @param {string} direction \"ADDITIONAL\", \"REDUCED\"\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n flexibleLoanAdjustLtv: async (\n loanCoin: string,\n collateralCoin: string,\n adjustmentAmount: number,\n direction: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'loanCoin' is not null or undefined\n assertParamExists('flexibleLoanAdjustLtv', 'loanCoin', loanCoin);\n // verify required parameter 'collateralCoin' is not null or undefined\n assertParamExists('flexibleLoanAdjustLtv', 'collateralCoin', collateralCoin);\n // verify required parameter 'adjustmentAmount' is not null or undefined\n assertParamExists('flexibleLoanAdjustLtv', 'adjustmentAmount', adjustmentAmount);\n // verify required parameter 'direction' is not null or undefined\n assertParamExists('flexibleLoanAdjustLtv', 'direction', direction);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\n }\n if (adjustmentAmount !== undefined && adjustmentAmount !== null) {\n localVarQueryParameter['adjustmentAmount'] = adjustmentAmount;\n }\n if (direction !== undefined && direction !== null) {\n localVarQueryParameter['direction'] = direction;\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/v2/loan/flexible/adjust/ltv',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Borrow Flexible Loan\n *\n *\n * Only available for master account\n * You can customize LTV by entering loanAmount and collateralAmount.\n *\n * Weight: 6000\n *\n * @summary Flexible Loan Borrow(TRADE)\n * @param {string} loanCoin\n * @param {string} collateralCoin\n * @param {number} [loanAmount] Mandatory when collateralAmount is empty\n * @param {number} [collateralAmount] Mandatory when loanAmount is empty\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n flexibleLoanBorrow: async (\n loanCoin: string,\n collateralCoin: string,\n loanAmount?: number,\n collateralAmount?: number,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'loanCoin' is not null or undefined\n assertParamExists('flexibleLoanBorrow', 'loanCoin', loanCoin);\n // verify required parameter 'collateralCoin' is not null or undefined\n assertParamExists('flexibleLoanBorrow', 'collateralCoin', collateralCoin);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (loanAmount !== undefined && loanAmount !== null) {\n localVarQueryParameter['loanAmount'] = loanAmount;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\n }\n if (collateralAmount !== undefined && collateralAmount !== null) {\n localVarQueryParameter['collateralAmount'] = collateralAmount;\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/v2/loan/flexible/borrow',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Flexible Loan Repay\n *\n *\n * repayAmount is mandatory even fullRepayment = FALSE\n *\n * Weight: 6000\n *\n * @summary Flexible Loan Repay(TRADE)\n * @param {string} loanCoin\n * @param {string} collateralCoin\n * @param {number} repayAmount repay amount of loanCoin\n * @param {boolean} [collateralReturn] Default: TRUE. TRUE: Return extra collateral to spot account; FALSE: Keep extra collateral in the order, and lower LTV.\n * @param {boolean} [fullRepayment] Default: FALSE. TRUE: Full repayment; FALSE: Partial repayment, based on loanAmount\n * @param {number | bigint} [repaymentType] Default: 1. 1: Repayment with loan asset; 2: Repayment with collateral\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n flexibleLoanRepay: async (\n loanCoin: string,\n collateralCoin: string,\n repayAmount: number,\n collateralReturn?: boolean,\n fullRepayment?: boolean,\n repaymentType?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'loanCoin' is not null or undefined\n assertParamExists('flexibleLoanRepay', 'loanCoin', loanCoin);\n // verify required parameter 'collateralCoin' is not null or undefined\n assertParamExists('flexibleLoanRepay', 'collateralCoin', collateralCoin);\n // verify required parameter 'repayAmount' is not null or undefined\n assertParamExists('flexibleLoanRepay', 'repayAmount', repayAmount);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\n }\n if (repayAmount !== undefined && repayAmount !== null) {\n localVarQueryParameter['repayAmount'] = repayAmount;\n }\n if (collateralReturn !== undefined && collateralReturn !== null) {\n localVarQueryParameter['collateralReturn'] = collateralReturn;\n }\n if (fullRepayment !== undefined && fullRepayment !== null) {\n localVarQueryParameter['fullRepayment'] = fullRepayment;\n }\n if (repaymentType !== undefined && repaymentType !== null) {\n localVarQueryParameter['repaymentType'] = repaymentType;\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/v2/loan/flexible/repay',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get interest rate and borrow limit of flexible loanable assets. The borrow limit is shown in USD value.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Assets Data(USER_DATA)\n * @param {string} [loanCoin]\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexibleLoanAssetsData: async (\n loanCoin?: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\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/v2/loan/flexible/loanable/data',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Flexible Loan Borrow History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Borrow History(USER_DATA)\n * @param {string} [loanCoin]\n * @param {string} [collateralCoin]\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Current querying page. Start from 1; default: 1; max: 1000\n * @param {number | bigint} [limit] Default: 10; max: 100\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexibleLoanBorrowHistory: async (\n loanCoin?: string,\n collateralCoin?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n limit?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (limit !== undefined && limit !== null) {\n localVarQueryParameter['limit'] = limit;\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/v2/loan/flexible/borrow/history',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get LTV information and collateral limit of flexible loan's collateral assets. The collateral limit is shown in USD value.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Collateral Assets Data(USER_DATA)\n * @param {string} [collateralCoin]\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexibleLoanCollateralAssetsData: async (\n collateralCoin?: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\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/v2/loan/flexible/collateral/data',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Check Flexible Loan interest rate history\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned\n * The max interval between startTime and endTime is 90 days.\n * Time based on UTC+0.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Interest Rate History (USER_DATA)\n * @param {string} coin\n * @param {number | bigint} recvWindow\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Current querying page. Start from 1; default: 1; max: 1000\n * @param {number | bigint} [limit] Default: 10; max: 100\n *\n * @throws {RequiredError}\n */\n getFlexibleLoanInterestRateHistory: async (\n coin: string,\n recvWindow: number | bigint,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n limit?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'coin' is not null or undefined\n assertParamExists('getFlexibleLoanInterestRateHistory', 'coin', coin);\n // verify required parameter 'recvWindow' is not null or undefined\n assertParamExists('getFlexibleLoanInterestRateHistory', 'recvWindow', recvWindow);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (coin !== undefined && coin !== null) {\n localVarQueryParameter['coin'] = coin;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (limit !== undefined && limit !== null) {\n localVarQueryParameter['limit'] = limit;\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/v2/loan/interestRateHistory',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Liquidation History (USER_DATA)\n * @param {string} [loanCoin]\n * @param {string} [collateralCoin]\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Current querying page. Start from 1; default: 1; max: 1000\n * @param {number | bigint} [limit] Default: 10; max: 100\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexibleLoanLiquidationHistory: async (\n loanCoin?: string,\n collateralCoin?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n limit?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (limit !== undefined && limit !== null) {\n localVarQueryParameter['limit'] = limit;\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/v2/loan/flexible/liquidation/history',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Flexible Loan LTV Adjustment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan LTV Adjustment History(USER_DATA)\n * @param {string} [loanCoin]\n * @param {string} [collateralCoin]\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Current querying page. Start from 1; default: 1; max: 1000\n * @param {number | bigint} [limit] Default: 10; max: 100\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexibleLoanLtvAdjustmentHistory: async (\n loanCoin?: string,\n collateralCoin?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n limit?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (limit !== undefined && limit !== null) {\n localVarQueryParameter['limit'] = limit;\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/v2/loan/flexible/ltv/adjustment/history',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Flexible Loan Ongoing Orders\n *\n * Weight: 300\n *\n * @summary Get Flexible Loan Ongoing Orders(USER_DATA)\n * @param {string} [loanCoin]\n * @param {string} [collateralCoin]\n * @param {number | bigint} [current] Current querying page. Start from 1; default: 1; max: 1000\n * @param {number | bigint} [limit] Default: 10; max: 100\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexibleLoanOngoingOrders: async (\n loanCoin?: string,\n collateralCoin?: string,\n current?: number | bigint,\n limit?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (limit !== undefined && limit !== null) {\n localVarQueryParameter['limit'] = limit;\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/v2/loan/flexible/ongoing/orders',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Flexible Loan Repayment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Repayment History(USER_DATA)\n * @param {string} [loanCoin]\n * @param {string} [collateralCoin]\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Current querying page. Start from 1; default: 1; max: 1000\n * @param {number | bigint} [limit] Default: 10; max: 100\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexibleLoanRepaymentHistory: async (\n loanCoin?: string,\n collateralCoin?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n limit?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (limit !== undefined && limit !== null) {\n localVarQueryParameter['limit'] = limit;\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/v2/loan/flexible/repay/history',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n };\n};\n\n/**\n * FlexibleRateApi - interface\n * @interface FlexibleRateApi\n */\nexport interface FlexibleRateApiInterface {\n /**\n *\n * Weight: 6000\n *\n * @summary Check Collateral Repay Rate (USER_DATA)\n * @param {CheckCollateralRepayRateRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApiInterface\n */\n checkCollateralRepayRate(\n requestParameters: CheckCollateralRepayRateRequest\n ): Promise<RestApiResponse<CheckCollateralRepayRateResponse>>;\n /**\n * Flexible Loan Adjust LTV\n *\n * API Key needs Spot & Margin Trading permission for this endpoint\n *\n * Weight: 6000\n *\n * @summary Flexible Loan Adjust LTV(TRADE)\n * @param {FlexibleLoanAdjustLtvRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApiInterface\n */\n flexibleLoanAdjustLtv(\n requestParameters: FlexibleLoanAdjustLtvRequest\n ): Promise<RestApiResponse<FlexibleLoanAdjustLtvResponse>>;\n /**\n * Borrow Flexible Loan\n *\n *\n * Only available for master account\n * You can customize LTV by entering loanAmount and collateralAmount.\n *\n * Weight: 6000\n *\n * @summary Flexible Loan Borrow(TRADE)\n * @param {FlexibleLoanBorrowRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApiInterface\n */\n flexibleLoanBorrow(\n requestParameters: FlexibleLoanBorrowRequest\n ): Promise<RestApiResponse<FlexibleLoanBorrowResponse>>;\n /**\n * Flexible Loan Repay\n *\n *\n * repayAmount is mandatory even fullRepayment = FALSE\n *\n * Weight: 6000\n *\n * @summary Flexible Loan Repay(TRADE)\n * @param {FlexibleLoanRepayRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApiInterface\n */\n flexibleLoanRepay(\n requestParameters: FlexibleLoanRepayRequest\n ): Promise<RestApiResponse<FlexibleLoanRepayResponse>>;\n /**\n * Get interest rate and borrow limit of flexible loanable assets. The borrow limit is shown in USD value.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Assets Data(USER_DATA)\n * @param {GetFlexibleLoanAssetsDataRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApiInterface\n */\n getFlexibleLoanAssetsData(\n requestParameters?: GetFlexibleLoanAssetsDataRequest\n ): Promise<RestApiResponse<GetFlexibleLoanAssetsDataResponse>>;\n /**\n * Get Flexible Loan Borrow History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Borrow History(USER_DATA)\n * @param {GetFlexibleLoanBorrowHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApiInterface\n */\n getFlexibleLoanBorrowHistory(\n requestParameters?: GetFlexibleLoanBorrowHistoryRequest\n ): Promise<RestApiResponse<GetFlexibleLoanBorrowHistoryResponse>>;\n /**\n * Get LTV information and collateral limit of flexible loan's collateral assets. The collateral limit is shown in USD value.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Collateral Assets Data(USER_DATA)\n * @param {GetFlexibleLoanCollateralAssetsDataRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApiInterface\n */\n getFlexibleLoanCollateralAssetsData(\n requestParameters?: GetFlexibleLoanCollateralAssetsDataRequest\n ): Promise<RestApiResponse<GetFlexibleLoanCollateralAssetsDataResponse>>;\n /**\n * Check Flexible Loan interest rate history\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned\n * The max interval between startTime and endTime is 90 days.\n * Time based on UTC+0.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Interest Rate History (USER_DATA)\n * @param {GetFlexibleLoanInterestRateHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApiInterface\n */\n getFlexibleLoanInterestRateHistory(\n requestParameters: GetFlexibleLoanInterestRateHistoryRequest\n ): Promise<RestApiResponse<GetFlexibleLoanInterestRateHistoryResponse>>;\n /**\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Liquidation History (USER_DATA)\n * @param {GetFlexibleLoanLiquidationHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApiInterface\n */\n getFlexibleLoanLiquidationHistory(\n requestParameters?: GetFlexibleLoanLiquidationHistoryRequest\n ): Promise<RestApiResponse<GetFlexibleLoanLiquidationHistoryResponse>>;\n /**\n * Get Flexible Loan LTV Adjustment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan LTV Adjustment History(USER_DATA)\n * @param {GetFlexibleLoanLtvAdjustmentHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApiInterface\n */\n getFlexibleLoanLtvAdjustmentHistory(\n requestParameters?: GetFlexibleLoanLtvAdjustmentHistoryRequest\n ): Promise<RestApiResponse<GetFlexibleLoanLtvAdjustmentHistoryResponse>>;\n /**\n * Get Flexible Loan Ongoing Orders\n *\n * Weight: 300\n *\n * @summary Get Flexible Loan Ongoing Orders(USER_DATA)\n * @param {GetFlexibleLoanOngoingOrdersRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApiInterface\n */\n getFlexibleLoanOngoingOrders(\n requestParameters?: GetFlexibleLoanOngoingOrdersRequest\n ): Promise<RestApiResponse<GetFlexibleLoanOngoingOrdersResponse>>;\n /**\n * Get Flexible Loan Repayment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Repayment History(USER_DATA)\n * @param {GetFlexibleLoanRepaymentHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApiInterface\n */\n getFlexibleLoanRepaymentHistory(\n requestParameters?: GetFlexibleLoanRepaymentHistoryRequest\n ): Promise<RestApiResponse<GetFlexibleLoanRepaymentHistoryResponse>>;\n}\n\n/**\n * Request parameters for checkCollateralRepayRate operation in FlexibleRateApi.\n * @interface CheckCollateralRepayRateRequest\n */\nexport interface CheckCollateralRepayRateRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiCheckCollateralRepayRate\n */\n readonly loanCoin: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiCheckCollateralRepayRate\n */\n readonly collateralCoin: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiCheckCollateralRepayRate\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for flexibleLoanAdjustLtv operation in FlexibleRateApi.\n * @interface FlexibleLoanAdjustLtvRequest\n */\nexport interface FlexibleLoanAdjustLtvRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiFlexibleLoanAdjustLtv\n */\n readonly loanCoin: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiFlexibleLoanAdjustLtv\n */\n readonly collateralCoin: string;\n\n /**\n *\n * @type {number}\n * @memberof FlexibleRateApiFlexibleLoanAdjustLtv\n */\n readonly adjustmentAmount: number;\n\n /**\n * \"ADDITIONAL\", \"REDUCED\"\n * @type {string}\n * @memberof FlexibleRateApiFlexibleLoanAdjustLtv\n */\n readonly direction: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiFlexibleLoanAdjustLtv\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for flexibleLoanBorrow operation in FlexibleRateApi.\n * @interface FlexibleLoanBorrowRequest\n */\nexport interface FlexibleLoanBorrowRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiFlexibleLoanBorrow\n */\n readonly loanCoin: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiFlexibleLoanBorrow\n */\n readonly collateralCoin: string;\n\n /**\n * Mandatory when collateralAmount is empty\n * @type {number}\n * @memberof FlexibleRateApiFlexibleLoanBorrow\n */\n readonly loanAmount?: number;\n\n /**\n * Mandatory when loanAmount is empty\n * @type {number}\n * @memberof FlexibleRateApiFlexibleLoanBorrow\n */\n readonly collateralAmount?: number;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiFlexibleLoanBorrow\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for flexibleLoanRepay operation in FlexibleRateApi.\n * @interface FlexibleLoanRepayRequest\n */\nexport interface FlexibleLoanRepayRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiFlexibleLoanRepay\n */\n readonly loanCoin: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiFlexibleLoanRepay\n */\n readonly collateralCoin: string;\n\n /**\n * repay amount of loanCoin\n * @type {number}\n * @memberof FlexibleRateApiFlexibleLoanRepay\n */\n readonly repayAmount: number;\n\n /**\n * Default: TRUE. TRUE: Return extra collateral to spot account; FALSE: Keep extra collateral in the order, and lower LTV.\n * @type {boolean}\n * @memberof FlexibleRateApiFlexibleLoanRepay\n */\n readonly collateralReturn?: boolean;\n\n /**\n * Default: FALSE. TRUE: Full repayment; FALSE: Partial repayment, based on loanAmount\n * @type {boolean}\n * @memberof FlexibleRateApiFlexibleLoanRepay\n */\n readonly fullRepayment?: boolean;\n\n /**\n * Default: 1. 1: Repayment with loan asset; 2: Repayment with collateral\n * @type {number | bigint}\n * @memberof FlexibleRateApiFlexibleLoanRepay\n */\n readonly repaymentType?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiFlexibleLoanRepay\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleLoanAssetsData operation in FlexibleRateApi.\n * @interface GetFlexibleLoanAssetsDataRequest\n */\nexport interface GetFlexibleLoanAssetsDataRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanAssetsData\n */\n readonly loanCoin?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanAssetsData\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleLoanBorrowHistory operation in FlexibleRateApi.\n * @interface GetFlexibleLoanBorrowHistoryRequest\n */\nexport interface GetFlexibleLoanBorrowHistoryRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanBorrowHistory\n */\n readonly loanCoin?: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanBorrowHistory\n */\n readonly collateralCoin?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanBorrowHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanBorrowHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Current querying page. Start from 1; default: 1; max: 1000\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanBorrowHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Default: 10; max: 100\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanBorrowHistory\n */\n readonly limit?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanBorrowHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleLoanCollateralAssetsData operation in FlexibleRateApi.\n * @interface GetFlexibleLoanCollateralAssetsDataRequest\n */\nexport interface GetFlexibleLoanCollateralAssetsDataRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanCollateralAssetsData\n */\n readonly collateralCoin?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanCollateralAssetsData\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleLoanInterestRateHistory operation in FlexibleRateApi.\n * @interface GetFlexibleLoanInterestRateHistoryRequest\n */\nexport interface GetFlexibleLoanInterestRateHistoryRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanInterestRateHistory\n */\n readonly coin: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanInterestRateHistory\n */\n readonly recvWindow: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanInterestRateHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanInterestRateHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Current querying page. Start from 1; default: 1; max: 1000\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanInterestRateHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Default: 10; max: 100\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanInterestRateHistory\n */\n readonly limit?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleLoanLiquidationHistory operation in FlexibleRateApi.\n * @interface GetFlexibleLoanLiquidationHistoryRequest\n */\nexport interface GetFlexibleLoanLiquidationHistoryRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanLiquidationHistory\n */\n readonly loanCoin?: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanLiquidationHistory\n */\n readonly collateralCoin?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanLiquidationHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanLiquidationHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Current querying page. Start from 1; default: 1; max: 1000\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanLiquidationHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Default: 10; max: 100\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanLiquidationHistory\n */\n readonly limit?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanLiquidationHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleLoanLtvAdjustmentHistory operation in FlexibleRateApi.\n * @interface GetFlexibleLoanLtvAdjustmentHistoryRequest\n */\nexport interface GetFlexibleLoanLtvAdjustmentHistoryRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanLtvAdjustmentHistory\n */\n readonly loanCoin?: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanLtvAdjustmentHistory\n */\n readonly collateralCoin?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanLtvAdjustmentHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanLtvAdjustmentHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Current querying page. Start from 1; default: 1; max: 1000\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanLtvAdjustmentHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Default: 10; max: 100\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanLtvAdjustmentHistory\n */\n readonly limit?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanLtvAdjustmentHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleLoanOngoingOrders operation in FlexibleRateApi.\n * @interface GetFlexibleLoanOngoingOrdersRequest\n */\nexport interface GetFlexibleLoanOngoingOrdersRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanOngoingOrders\n */\n readonly loanCoin?: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanOngoingOrders\n */\n readonly collateralCoin?: string;\n\n /**\n * Current querying page. Start from 1; default: 1; max: 1000\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanOngoingOrders\n */\n readonly current?: number | bigint;\n\n /**\n * Default: 10; max: 100\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanOngoingOrders\n */\n readonly limit?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanOngoingOrders\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleLoanRepaymentHistory operation in FlexibleRateApi.\n * @interface GetFlexibleLoanRepaymentHistoryRequest\n */\nexport interface GetFlexibleLoanRepaymentHistoryRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanRepaymentHistory\n */\n readonly loanCoin?: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanRepaymentHistory\n */\n readonly collateralCoin?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanRepaymentHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanRepaymentHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Current querying page. Start from 1; default: 1; max: 1000\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanRepaymentHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Default: 10; max: 100\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanRepaymentHistory\n */\n readonly limit?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanRepaymentHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * FlexibleRateApi - object-oriented interface\n * @class FlexibleRateApi\n */\nexport class FlexibleRateApi implements FlexibleRateApiInterface {\n private readonly configuration: ConfigurationRestAPI;\n private localVarAxiosParamCreator;\n\n constructor(configuration: ConfigurationRestAPI) {\n this.configuration = configuration;\n this.localVarAxiosParamCreator = FlexibleRateApiAxiosParamCreator(configuration);\n }\n\n /**\n *\n * Weight: 6000\n *\n * @summary Check Collateral Repay Rate (USER_DATA)\n * @param {CheckCollateralRepayRateRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<CheckCollateralRepayRateResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Check-Collateral-Repay-Rate Binance API Documentation}\n */\n public async checkCollateralRepayRate(\n requestParameters: CheckCollateralRepayRateRequest\n ): Promise<RestApiResponse<CheckCollateralRepayRateResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.checkCollateralRepayRate(\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.recvWindow\n );\n return sendRequest<CheckCollateralRepayRateResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Flexible Loan Adjust LTV\n *\n * API Key needs Spot & Margin Trading permission for this endpoint\n *\n * Weight: 6000\n *\n * @summary Flexible Loan Adjust LTV(TRADE)\n * @param {FlexibleLoanAdjustLtvRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<FlexibleLoanAdjustLtvResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Adjust-LTV Binance API Documentation}\n */\n public async flexibleLoanAdjustLtv(\n requestParameters: FlexibleLoanAdjustLtvRequest\n ): Promise<RestApiResponse<FlexibleLoanAdjustLtvResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.flexibleLoanAdjustLtv(\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.adjustmentAmount,\n requestParameters?.direction,\n requestParameters?.recvWindow\n );\n return sendRequest<FlexibleLoanAdjustLtvResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Borrow Flexible Loan\n *\n *\n * Only available for master account\n * You can customize LTV by entering loanAmount and collateralAmount.\n *\n * Weight: 6000\n *\n * @summary Flexible Loan Borrow(TRADE)\n * @param {FlexibleLoanBorrowRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<FlexibleLoanBorrowResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Borrow Binance API Documentation}\n */\n public async flexibleLoanBorrow(\n requestParameters: FlexibleLoanBorrowRequest\n ): Promise<RestApiResponse<FlexibleLoanBorrowResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.flexibleLoanBorrow(\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.loanAmount,\n requestParameters?.collateralAmount,\n requestParameters?.recvWindow\n );\n return sendRequest<FlexibleLoanBorrowResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Flexible Loan Repay\n *\n *\n * repayAmount is mandatory even fullRepayment = FALSE\n *\n * Weight: 6000\n *\n * @summary Flexible Loan Repay(TRADE)\n * @param {FlexibleLoanRepayRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<FlexibleLoanRepayResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Repay Binance API Documentation}\n */\n public async flexibleLoanRepay(\n requestParameters: FlexibleLoanRepayRequest\n ): Promise<RestApiResponse<FlexibleLoanRepayResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.flexibleLoanRepay(\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.repayAmount,\n requestParameters?.collateralReturn,\n requestParameters?.fullRepayment,\n requestParameters?.repaymentType,\n requestParameters?.recvWindow\n );\n return sendRequest<FlexibleLoanRepayResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get interest rate and borrow limit of flexible loanable assets. The borrow limit is shown in USD value.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Assets Data(USER_DATA)\n * @param {GetFlexibleLoanAssetsDataRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleLoanAssetsDataResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Assets-Data Binance API Documentation}\n */\n public async getFlexibleLoanAssetsData(\n requestParameters: GetFlexibleLoanAssetsDataRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanAssetsDataResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleLoanAssetsData(\n requestParameters?.loanCoin,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexibleLoanAssetsDataResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Flexible Loan Borrow History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Borrow History(USER_DATA)\n * @param {GetFlexibleLoanBorrowHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleLoanBorrowHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-Borrow-History Binance API Documentation}\n */\n public async getFlexibleLoanBorrowHistory(\n requestParameters: GetFlexibleLoanBorrowHistoryRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanBorrowHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleLoanBorrowHistory(\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.limit,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexibleLoanBorrowHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get LTV information and collateral limit of flexible loan's collateral assets. The collateral limit is shown in USD value.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Collateral Assets Data(USER_DATA)\n * @param {GetFlexibleLoanCollateralAssetsDataRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleLoanCollateralAssetsDataResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Collateral-Assets-Data Binance API Documentation}\n */\n public async getFlexibleLoanCollateralAssetsData(\n requestParameters: GetFlexibleLoanCollateralAssetsDataRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanCollateralAssetsDataResponse>> {\n const localVarAxiosArgs =\n await this.localVarAxiosParamCreator.getFlexibleLoanCollateralAssetsData(\n requestParameters?.collateralCoin,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexibleLoanCollateralAssetsDataResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Check Flexible Loan interest rate history\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned\n * The max interval between startTime and endTime is 90 days.\n * Time based on UTC+0.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Interest Rate History (USER_DATA)\n * @param {GetFlexibleLoanInterestRateHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleLoanInterestRateHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Interest-Rate-History Binance API Documentation}\n */\n public async getFlexibleLoanInterestRateHistory(\n requestParameters: GetFlexibleLoanInterestRateHistoryRequest\n ): Promise<RestApiResponse<GetFlexibleLoanInterestRateHistoryResponse>> {\n const localVarAxiosArgs =\n await this.localVarAxiosParamCreator.getFlexibleLoanInterestRateHistory(\n requestParameters?.coin,\n requestParameters?.recvWindow,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.limit\n );\n return sendRequest<GetFlexibleLoanInterestRateHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Liquidation History (USER_DATA)\n * @param {GetFlexibleLoanLiquidationHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleLoanLiquidationHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-Liquidation-History Binance API Documentation}\n */\n public async getFlexibleLoanLiquidationHistory(\n requestParameters: GetFlexibleLoanLiquidationHistoryRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanLiquidationHistoryResponse>> {\n const localVarAxiosArgs =\n await this.localVarAxiosParamCreator.getFlexibleLoanLiquidationHistory(\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.limit,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexibleLoanLiquidationHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Flexible Loan LTV Adjustment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan LTV Adjustment History(USER_DATA)\n * @param {GetFlexibleLoanLtvAdjustmentHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleLoanLtvAdjustmentHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-LTV-Adjustment-History Binance API Documentation}\n */\n public async getFlexibleLoanLtvAdjustmentHistory(\n requestParameters: GetFlexibleLoanLtvAdjustmentHistoryRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanLtvAdjustmentHistoryResponse>> {\n const localVarAxiosArgs =\n await this.localVarAxiosParamCreator.getFlexibleLoanLtvAdjustmentHistory(\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.limit,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexibleLoanLtvAdjustmentHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Flexible Loan Ongoing Orders\n *\n * Weight: 300\n *\n * @summary Get Flexible Loan Ongoing Orders(USER_DATA)\n * @param {GetFlexibleLoanOngoingOrdersRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleLoanOngoingOrdersResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-Ongoing-Orders Binance API Documentation}\n */\n public async getFlexibleLoanOngoingOrders(\n requestParameters: GetFlexibleLoanOngoingOrdersRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanOngoingOrdersResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleLoanOngoingOrders(\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.current,\n requestParameters?.limit,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexibleLoanOngoingOrdersResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Flexible Loan Repayment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Repayment History(USER_DATA)\n * @param {GetFlexibleLoanRepaymentHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleLoanRepaymentHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-Repayment-History Binance API Documentation}\n */\n public async getFlexibleLoanRepaymentHistory(\n requestParameters: GetFlexibleLoanRepaymentHistoryRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanRepaymentHistoryResponse>> {\n const localVarAxiosArgs =\n await this.localVarAxiosParamCreator.getFlexibleLoanRepaymentHistory(\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.limit,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexibleLoanRepaymentHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n}\n","/**\n * Binance Crypto Loan REST API\n *\n * OpenAPI Specification for the Binance Crypto Loan 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 CheckCollateralRepayRateStableRateResponse,\n GetCryptoLoansIncomeHistoryResponse,\n GetLoanBorrowHistoryResponse,\n GetLoanLtvAdjustmentHistoryResponse,\n GetLoanRepaymentHistoryResponse,\n} from '../types';\n\n/**\n * StableRateApi - axios parameter creator\n */\nconst StableRateApiAxiosParamCreator = function (configuration: ConfigurationRestAPI) {\n return {\n /**\n * Get the the rate of collateral coin / loan coin when using collateral repay, the rate will be valid within 8 second.\n *\n * Weight: 6000\n *\n * @summary Check Collateral Repay Rate(USER_DATA)\n * @param {string} loanCoin\n * @param {string} collateralCoin\n * @param {number} repayAmount repay amount of loanCoin\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n checkCollateralRepayRateStableRate: async (\n loanCoin: string,\n collateralCoin: string,\n repayAmount: number,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'loanCoin' is not null or undefined\n assertParamExists('checkCollateralRepayRateStableRate', 'loanCoin', loanCoin);\n // verify required parameter 'collateralCoin' is not null or undefined\n assertParamExists(\n 'checkCollateralRepayRateStableRate',\n 'collateralCoin',\n collateralCoin\n );\n // verify required parameter 'repayAmount' is not null or undefined\n assertParamExists('checkCollateralRepayRateStableRate', 'repayAmount', repayAmount);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\n }\n if (repayAmount !== undefined && repayAmount !== null) {\n localVarQueryParameter['repayAmount'] = repayAmount;\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/loan/repay/collateral/rate',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Crypto Loans Income History\n *\n * If startTime and endTime are not sent, the recent 7-day data will be returned.\n * The max interval between startTime and endTime is 30 days.\n *\n * Weight: 6000\n *\n * @summary Get Crypto Loans Income History(USER_DATA)\n * @param {string} [asset]\n * @param {string} [type] All types will be returned by default. Enum:`borrowIn` ,`collateralSpent`, `repayAmount`, `collateralReturn`(Collateral return after repayment), `addCollateral`, `removeCollateral`, `collateralReturnAfterLiquidation`\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [limit] Default: 10; max: 100\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getCryptoLoansIncomeHistory: async (\n asset?: string,\n type?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n limit?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (type !== undefined && type !== null) {\n localVarQueryParameter['type'] = type;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (limit !== undefined && limit !== null) {\n localVarQueryParameter['limit'] = limit;\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/loan/income',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Loan Borrow History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Loan Borrow History(USER_DATA)\n * @param {number | bigint} [orderId] orderId in `POST /sapi/v1/loan/borrow`\n * @param {string} [loanCoin]\n * @param {string} [collateralCoin]\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Current querying page. Start from 1; default: 1; max: 1000\n * @param {number | bigint} [limit] Default: 10; max: 100\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getLoanBorrowHistory: async (\n orderId?: number | bigint,\n loanCoin?: string,\n collateralCoin?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n limit?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (orderId !== undefined && orderId !== null) {\n localVarQueryParameter['orderId'] = orderId;\n }\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (limit !== undefined && limit !== null) {\n localVarQueryParameter['limit'] = limit;\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/loan/borrow/history',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Loan LTV Adjustment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Loan LTV Adjustment History(USER_DATA)\n * @param {number | bigint} [orderId] orderId in `POST /sapi/v1/loan/borrow`\n * @param {string} [loanCoin]\n * @param {string} [collateralCoin]\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Current querying page. Start from 1; default: 1; max: 1000\n * @param {number | bigint} [limit] Default: 10; max: 100\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getLoanLtvAdjustmentHistory: async (\n orderId?: number | bigint,\n loanCoin?: string,\n collateralCoin?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n limit?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (orderId !== undefined && orderId !== null) {\n localVarQueryParameter['orderId'] = orderId;\n }\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (limit !== undefined && limit !== null) {\n localVarQueryParameter['limit'] = limit;\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/loan/ltv/adjustment/history',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Loan Repayment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Loan Repayment History(USER_DATA)\n * @param {number | bigint} [orderId] orderId in `POST /sapi/v1/loan/borrow`\n * @param {string} [loanCoin]\n * @param {string} [collateralCoin]\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Current querying page. Start from 1; default: 1; max: 1000\n * @param {number | bigint} [limit] Default: 10; max: 100\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getLoanRepaymentHistory: async (\n orderId?: number | bigint,\n loanCoin?: string,\n collateralCoin?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n limit?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (orderId !== undefined && orderId !== null) {\n localVarQueryParameter['orderId'] = orderId;\n }\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (limit !== undefined && limit !== null) {\n localVarQueryParameter['limit'] = limit;\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/loan/repay/history',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n };\n};\n\n/**\n * StableRateApi - interface\n * @interface StableRateApi\n */\nexport interface StableRateApiInterface {\n /**\n * Get the the rate of collateral coin / loan coin when using collateral repay, the rate will be valid within 8 second.\n *\n * Weight: 6000\n *\n * @summary Check Collateral Repay Rate(USER_DATA)\n * @param {CheckCollateralRepayRateStableRateRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof StableRateApiInterface\n */\n checkCollateralRepayRateStableRate(\n requestParameters: CheckCollateralRepayRateStableRateRequest\n ): Promise<RestApiResponse<CheckCollateralRepayRateStableRateResponse>>;\n /**\n * Get Crypto Loans Income History\n *\n * If startTime and endTime are not sent, the recent 7-day data will be returned.\n * The max interval between startTime and endTime is 30 days.\n *\n * Weight: 6000\n *\n * @summary Get Crypto Loans Income History(USER_DATA)\n * @param {GetCryptoLoansIncomeHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof StableRateApiInterface\n */\n getCryptoLoansIncomeHistory(\n requestParameters?: GetCryptoLoansIncomeHistoryRequest\n ): Promise<RestApiResponse<GetCryptoLoansIncomeHistoryResponse>>;\n /**\n * Get Loan Borrow History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Loan Borrow History(USER_DATA)\n * @param {GetLoanBorrowHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof StableRateApiInterface\n */\n getLoanBorrowHistory(\n requestParameters?: GetLoanBorrowHistoryRequest\n ): Promise<RestApiResponse<GetLoanBorrowHistoryResponse>>;\n /**\n * Get Loan LTV Adjustment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Loan LTV Adjustment History(USER_DATA)\n * @param {GetLoanLtvAdjustmentHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof StableRateApiInterface\n */\n getLoanLtvAdjustmentHistory(\n requestParameters?: GetLoanLtvAdjustmentHistoryRequest\n ): Promise<RestApiResponse<GetLoanLtvAdjustmentHistoryResponse>>;\n /**\n * Get Loan Repayment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Loan Repayment History(USER_DATA)\n * @param {GetLoanRepaymentHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof StableRateApiInterface\n */\n getLoanRepaymentHistory(\n requestParameters?: GetLoanRepaymentHistoryRequest\n ): Promise<RestApiResponse<GetLoanRepaymentHistoryResponse>>;\n}\n\n/**\n * Request parameters for checkCollateralRepayRateStableRate operation in StableRateApi.\n * @interface CheckCollateralRepayRateStableRateRequest\n */\nexport interface CheckCollateralRepayRateStableRateRequest {\n /**\n *\n * @type {string}\n * @memberof StableRateApiCheckCollateralRepayRateStableRate\n */\n readonly loanCoin: string;\n\n /**\n *\n * @type {string}\n * @memberof StableRateApiCheckCollateralRepayRateStableRate\n */\n readonly collateralCoin: string;\n\n /**\n * repay amount of loanCoin\n * @type {number}\n * @memberof StableRateApiCheckCollateralRepayRateStableRate\n */\n readonly repayAmount: number;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiCheckCollateralRepayRateStableRate\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getCryptoLoansIncomeHistory operation in StableRateApi.\n * @interface GetCryptoLoansIncomeHistoryRequest\n */\nexport interface GetCryptoLoansIncomeHistoryRequest {\n /**\n *\n * @type {string}\n * @memberof StableRateApiGetCryptoLoansIncomeHistory\n */\n readonly asset?: string;\n\n /**\n * All types will be returned by default. Enum:`borrowIn` ,`collateralSpent`, `repayAmount`, `collateralReturn`(Collateral return after repayment), `addCollateral`, `removeCollateral`, `collateralReturnAfterLiquidation`\n * @type {string}\n * @memberof StableRateApiGetCryptoLoansIncomeHistory\n */\n readonly type?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiGetCryptoLoansIncomeHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiGetCryptoLoansIncomeHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Default: 10; max: 100\n * @type {number | bigint}\n * @memberof StableRateApiGetCryptoLoansIncomeHistory\n */\n readonly limit?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiGetCryptoLoansIncomeHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getLoanBorrowHistory operation in StableRateApi.\n * @interface GetLoanBorrowHistoryRequest\n */\nexport interface GetLoanBorrowHistoryRequest {\n /**\n * orderId in `POST /sapi/v1/loan/borrow`\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanBorrowHistory\n */\n readonly orderId?: number | bigint;\n\n /**\n *\n * @type {string}\n * @memberof StableRateApiGetLoanBorrowHistory\n */\n readonly loanCoin?: string;\n\n /**\n *\n * @type {string}\n * @memberof StableRateApiGetLoanBorrowHistory\n */\n readonly collateralCoin?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanBorrowHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanBorrowHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Current querying page. Start from 1; default: 1; max: 1000\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanBorrowHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Default: 10; max: 100\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanBorrowHistory\n */\n readonly limit?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanBorrowHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getLoanLtvAdjustmentHistory operation in StableRateApi.\n * @interface GetLoanLtvAdjustmentHistoryRequest\n */\nexport interface GetLoanLtvAdjustmentHistoryRequest {\n /**\n * orderId in `POST /sapi/v1/loan/borrow`\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanLtvAdjustmentHistory\n */\n readonly orderId?: number | bigint;\n\n /**\n *\n * @type {string}\n * @memberof StableRateApiGetLoanLtvAdjustmentHistory\n */\n readonly loanCoin?: string;\n\n /**\n *\n * @type {string}\n * @memberof StableRateApiGetLoanLtvAdjustmentHistory\n */\n readonly collateralCoin?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanLtvAdjustmentHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanLtvAdjustmentHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Current querying page. Start from 1; default: 1; max: 1000\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanLtvAdjustmentHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Default: 10; max: 100\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanLtvAdjustmentHistory\n */\n readonly limit?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanLtvAdjustmentHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getLoanRepaymentHistory operation in StableRateApi.\n * @interface GetLoanRepaymentHistoryRequest\n */\nexport interface GetLoanRepaymentHistoryRequest {\n /**\n * orderId in `POST /sapi/v1/loan/borrow`\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanRepaymentHistory\n */\n readonly orderId?: number | bigint;\n\n /**\n *\n * @type {string}\n * @memberof StableRateApiGetLoanRepaymentHistory\n */\n readonly loanCoin?: string;\n\n /**\n *\n * @type {string}\n * @memberof StableRateApiGetLoanRepaymentHistory\n */\n readonly collateralCoin?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanRepaymentHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanRepaymentHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Current querying page. Start from 1; default: 1; max: 1000\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanRepaymentHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Default: 10; max: 100\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanRepaymentHistory\n */\n readonly limit?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanRepaymentHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * StableRateApi - object-oriented interface\n * @class StableRateApi\n */\nexport class StableRateApi implements StableRateApiInterface {\n private readonly configuration: ConfigurationRestAPI;\n private localVarAxiosParamCreator;\n\n constructor(configuration: ConfigurationRestAPI) {\n this.configuration = configuration;\n this.localVarAxiosParamCreator = StableRateApiAxiosParamCreator(configuration);\n }\n\n /**\n * Get the the rate of collateral coin / loan coin when using collateral repay, the rate will be valid within 8 second.\n *\n * Weight: 6000\n *\n * @summary Check Collateral Repay Rate(USER_DATA)\n * @param {CheckCollateralRepayRateStableRateRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<CheckCollateralRepayRateStableRateResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof StableRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Check-Collateral-Repay-Rate Binance API Documentation}\n */\n public async checkCollateralRepayRateStableRate(\n requestParameters: CheckCollateralRepayRateStableRateRequest\n ): Promise<RestApiResponse<CheckCollateralRepayRateStableRateResponse>> {\n const localVarAxiosArgs =\n await this.localVarAxiosParamCreator.checkCollateralRepayRateStableRate(\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.repayAmount,\n requestParameters?.recvWindow\n );\n return sendRequest<CheckCollateralRepayRateStableRateResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Crypto Loans Income History\n *\n * If startTime and endTime are not sent, the recent 7-day data will be returned.\n * The max interval between startTime and endTime is 30 days.\n *\n * Weight: 6000\n *\n * @summary Get Crypto Loans Income History(USER_DATA)\n * @param {GetCryptoLoansIncomeHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetCryptoLoansIncomeHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof StableRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Get-Crypto-Loans-Income-History Binance API Documentation}\n */\n public async getCryptoLoansIncomeHistory(\n requestParameters: GetCryptoLoansIncomeHistoryRequest = {}\n ): Promise<RestApiResponse<GetCryptoLoansIncomeHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCryptoLoansIncomeHistory(\n requestParameters?.asset,\n requestParameters?.type,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.limit,\n requestParameters?.recvWindow\n );\n return sendRequest<GetCryptoLoansIncomeHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Loan Borrow History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Loan Borrow History(USER_DATA)\n * @param {GetLoanBorrowHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetLoanBorrowHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof StableRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/user-information/Get-Loan-Borrow-History Binance API Documentation}\n */\n public async getLoanBorrowHistory(\n requestParameters: GetLoanBorrowHistoryRequest = {}\n ): Promise<RestApiResponse<GetLoanBorrowHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLoanBorrowHistory(\n requestParameters?.orderId,\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.limit,\n requestParameters?.recvWindow\n );\n return sendRequest<GetLoanBorrowHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Loan LTV Adjustment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Loan LTV Adjustment History(USER_DATA)\n * @param {GetLoanLtvAdjustmentHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetLoanLtvAdjustmentHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof StableRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/user-information/Get-Loan-LTV-Adjustment-History Binance API Documentation}\n */\n public async getLoanLtvAdjustmentHistory(\n requestParameters: GetLoanLtvAdjustmentHistoryRequest = {}\n ): Promise<RestApiResponse<GetLoanLtvAdjustmentHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLoanLtvAdjustmentHistory(\n requestParameters?.orderId,\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.limit,\n requestParameters?.recvWindow\n );\n return sendRequest<GetLoanLtvAdjustmentHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Loan Repayment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Loan Repayment History(USER_DATA)\n * @param {GetLoanRepaymentHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetLoanRepaymentHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof StableRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/user-information/Get-Loan-Repayment-History Binance API Documentation}\n */\n public async getLoanRepaymentHistory(\n requestParameters: GetLoanRepaymentHistoryRequest = {}\n ): Promise<RestApiResponse<GetLoanRepaymentHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLoanRepaymentHistory(\n requestParameters?.orderId,\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.limit,\n requestParameters?.recvWindow\n );\n return sendRequest<GetLoanRepaymentHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n}\n","/**\n * Binance Crypto Loan REST API\n *\n * OpenAPI Specification for the Binance Crypto Loan 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 { FlexibleRateApi } from './modules/flexible-rate-api';\nimport { StableRateApi } from './modules/stable-rate-api';\n\nimport type {\n CheckCollateralRepayRateRequest,\n FlexibleLoanAdjustLtvRequest,\n FlexibleLoanBorrowRequest,\n FlexibleLoanRepayRequest,\n GetFlexibleLoanAssetsDataRequest,\n GetFlexibleLoanBorrowHistoryRequest,\n GetFlexibleLoanCollateralAssetsDataRequest,\n GetFlexibleLoanInterestRateHistoryRequest,\n GetFlexibleLoanLiquidationHistoryRequest,\n GetFlexibleLoanLtvAdjustmentHistoryRequest,\n GetFlexibleLoanOngoingOrdersRequest,\n GetFlexibleLoanRepaymentHistoryRequest,\n} from './modules/flexible-rate-api';\nimport type {\n CheckCollateralRepayRateStableRateRequest,\n GetCryptoLoansIncomeHistoryRequest,\n GetLoanBorrowHistoryRequest,\n GetLoanLtvAdjustmentHistoryRequest,\n GetLoanRepaymentHistoryRequest,\n} from './modules/stable-rate-api';\n\nimport type {\n CheckCollateralRepayRateResponse,\n FlexibleLoanAdjustLtvResponse,\n FlexibleLoanBorrowResponse,\n FlexibleLoanRepayResponse,\n GetFlexibleLoanAssetsDataResponse,\n GetFlexibleLoanBorrowHistoryResponse,\n GetFlexibleLoanCollateralAssetsDataResponse,\n GetFlexibleLoanInterestRateHistoryResponse,\n GetFlexibleLoanLiquidationHistoryResponse,\n GetFlexibleLoanLtvAdjustmentHistoryResponse,\n GetFlexibleLoanOngoingOrdersResponse,\n GetFlexibleLoanRepaymentHistoryResponse,\n} from './types';\nimport type {\n CheckCollateralRepayRateStableRateResponse,\n GetCryptoLoansIncomeHistoryResponse,\n GetLoanBorrowHistoryResponse,\n GetLoanLtvAdjustmentHistoryResponse,\n GetLoanRepaymentHistoryResponse,\n} from './types';\n\nexport class RestAPI {\n private configuration: ConfigurationRestAPI;\n private flexibleRateApi: FlexibleRateApi;\n private stableRateApi: StableRateApi;\n\n constructor(configuration: ConfigurationRestAPI) {\n this.configuration = configuration;\n this.flexibleRateApi = new FlexibleRateApi(configuration);\n this.stableRateApi = new StableRateApi(configuration);\n }\n\n /**\n * Generic function to send a request.\n * @param endpoint - The API endpoint to call.\n * @param method - HTTP method to use (GET, POST, DELETE, etc.).\n * @param queryParams - Query parameters for the request.\n * @param bodyParams - Body parameters for the request.\n *\n * @returns A promise resolving to the response data object.\n */\n sendRequest<T>(\n endpoint: string,\n method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH',\n queryParams: Record<string, unknown> = {},\n bodyParams: Record<string, unknown> = {}\n ): Promise<RestApiResponse<T>> {\n return sendRequest<T>(\n this.configuration,\n endpoint,\n method,\n queryParams,\n bodyParams,\n undefined\n );\n }\n\n /**\n * Generic function to send a signed request.\n * @param endpoint - The API endpoint to call.\n * @param method - HTTP method to use (GET, POST, DELETE, etc.).\n * @param queryParams - Query parameters for the request.\n * @param bodyParams - Body parameters for the request.\n *\n * @returns A promise resolving to the response data object.\n */\n sendSignedRequest<T>(\n endpoint: string,\n method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH',\n queryParams: Record<string, unknown> = {},\n bodyParams: Record<string, unknown> = {}\n ): Promise<RestApiResponse<T>> {\n return sendRequest<T>(\n this.configuration,\n endpoint,\n method,\n queryParams,\n bodyParams,\n undefined,\n { isSigned: true }\n );\n }\n\n /**\n *\n * Weight: 6000\n *\n * @summary Check Collateral Repay Rate (USER_DATA)\n * @param {CheckCollateralRepayRateRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<CheckCollateralRepayRateResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Check-Collateral-Repay-Rate Binance API Documentation}\n */\n checkCollateralRepayRate(\n requestParameters: CheckCollateralRepayRateRequest\n ): Promise<RestApiResponse<CheckCollateralRepayRateResponse>> {\n return this.flexibleRateApi.checkCollateralRepayRate(requestParameters);\n }\n\n /**\n * Flexible Loan Adjust LTV\n *\n * API Key needs Spot & Margin Trading permission for this endpoint\n *\n * Weight: 6000\n *\n * @summary Flexible Loan Adjust LTV(TRADE)\n * @param {FlexibleLoanAdjustLtvRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<FlexibleLoanAdjustLtvResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Adjust-LTV Binance API Documentation}\n */\n flexibleLoanAdjustLtv(\n requestParameters: FlexibleLoanAdjustLtvRequest\n ): Promise<RestApiResponse<FlexibleLoanAdjustLtvResponse>> {\n return this.flexibleRateApi.flexibleLoanAdjustLtv(requestParameters);\n }\n\n /**\n * Borrow Flexible Loan\n *\n *\n * Only available for master account\n * You can customize LTV by entering loanAmount and collateralAmount.\n *\n * Weight: 6000\n *\n * @summary Flexible Loan Borrow(TRADE)\n * @param {FlexibleLoanBorrowRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<FlexibleLoanBorrowResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Borrow Binance API Documentation}\n */\n flexibleLoanBorrow(\n requestParameters: FlexibleLoanBorrowRequest\n ): Promise<RestApiResponse<FlexibleLoanBorrowResponse>> {\n return this.flexibleRateApi.flexibleLoanBorrow(requestParameters);\n }\n\n /**\n * Flexible Loan Repay\n *\n *\n * repayAmount is mandatory even fullRepayment = FALSE\n *\n * Weight: 6000\n *\n * @summary Flexible Loan Repay(TRADE)\n * @param {FlexibleLoanRepayRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<FlexibleLoanRepayResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Repay Binance API Documentation}\n */\n flexibleLoanRepay(\n requestParameters: FlexibleLoanRepayRequest\n ): Promise<RestApiResponse<FlexibleLoanRepayResponse>> {\n return this.flexibleRateApi.flexibleLoanRepay(requestParameters);\n }\n\n /**\n * Get interest rate and borrow limit of flexible loanable assets. The borrow limit is shown in USD value.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Assets Data(USER_DATA)\n * @param {GetFlexibleLoanAssetsDataRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleLoanAssetsDataResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Assets-Data Binance API Documentation}\n */\n getFlexibleLoanAssetsData(\n requestParameters: GetFlexibleLoanAssetsDataRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanAssetsDataResponse>> {\n return this.flexibleRateApi.getFlexibleLoanAssetsData(requestParameters);\n }\n\n /**\n * Get Flexible Loan Borrow History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Borrow History(USER_DATA)\n * @param {GetFlexibleLoanBorrowHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleLoanBorrowHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-Borrow-History Binance API Documentation}\n */\n getFlexibleLoanBorrowHistory(\n requestParameters: GetFlexibleLoanBorrowHistoryRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanBorrowHistoryResponse>> {\n return this.flexibleRateApi.getFlexibleLoanBorrowHistory(requestParameters);\n }\n\n /**\n * Get LTV information and collateral limit of flexible loan's collateral assets. The collateral limit is shown in USD value.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Collateral Assets Data(USER_DATA)\n * @param {GetFlexibleLoanCollateralAssetsDataRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleLoanCollateralAssetsDataResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Collateral-Assets-Data Binance API Documentation}\n */\n getFlexibleLoanCollateralAssetsData(\n requestParameters: GetFlexibleLoanCollateralAssetsDataRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanCollateralAssetsDataResponse>> {\n return this.flexibleRateApi.getFlexibleLoanCollateralAssetsData(requestParameters);\n }\n\n /**\n * Check Flexible Loan interest rate history\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned\n * The max interval between startTime and endTime is 90 days.\n * Time based on UTC+0.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Interest Rate History (USER_DATA)\n * @param {GetFlexibleLoanInterestRateHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleLoanInterestRateHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Interest-Rate-History Binance API Documentation}\n */\n getFlexibleLoanInterestRateHistory(\n requestParameters: GetFlexibleLoanInterestRateHistoryRequest\n ): Promise<RestApiResponse<GetFlexibleLoanInterestRateHistoryResponse>> {\n return this.flexibleRateApi.getFlexibleLoanInterestRateHistory(requestParameters);\n }\n\n /**\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Liquidation History (USER_DATA)\n * @param {GetFlexibleLoanLiquidationHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleLoanLiquidationHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-Liquidation-History Binance API Documentation}\n */\n getFlexibleLoanLiquidationHistory(\n requestParameters: GetFlexibleLoanLiquidationHistoryRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanLiquidationHistoryResponse>> {\n return this.flexibleRateApi.getFlexibleLoanLiquidationHistory(requestParameters);\n }\n\n /**\n * Get Flexible Loan LTV Adjustment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan LTV Adjustment History(USER_DATA)\n * @param {GetFlexibleLoanLtvAdjustmentHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleLoanLtvAdjustmentHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-LTV-Adjustment-History Binance API Documentation}\n */\n getFlexibleLoanLtvAdjustmentHistory(\n requestParameters: GetFlexibleLoanLtvAdjustmentHistoryRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanLtvAdjustmentHistoryResponse>> {\n return this.flexibleRateApi.getFlexibleLoanLtvAdjustmentHistory(requestParameters);\n }\n\n /**\n * Get Flexible Loan Ongoing Orders\n *\n * Weight: 300\n *\n * @summary Get Flexible Loan Ongoing Orders(USER_DATA)\n * @param {GetFlexibleLoanOngoingOrdersRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleLoanOngoingOrdersResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-Ongoing-Orders Binance API Documentation}\n */\n getFlexibleLoanOngoingOrders(\n requestParameters: GetFlexibleLoanOngoingOrdersRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanOngoingOrdersResponse>> {\n return this.flexibleRateApi.getFlexibleLoanOngoingOrders(requestParameters);\n }\n\n /**\n * Get Flexible Loan Repayment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Repayment History(USER_DATA)\n * @param {GetFlexibleLoanRepaymentHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleLoanRepaymentHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-Repayment-History Binance API Documentation}\n */\n getFlexibleLoanRepaymentHistory(\n requestParameters: GetFlexibleLoanRepaymentHistoryRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanRepaymentHistoryResponse>> {\n return this.flexibleRateApi.getFlexibleLoanRepaymentHistory(requestParameters);\n }\n\n /**\n * Get the the rate of collateral coin / loan coin when using collateral repay, the rate will be valid within 8 second.\n *\n * Weight: 6000\n *\n * @summary Check Collateral Repay Rate(USER_DATA)\n * @param {CheckCollateralRepayRateStableRateRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<CheckCollateralRepayRateStableRateResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Check-Collateral-Repay-Rate Binance API Documentation}\n */\n checkCollateralRepayRateStableRate(\n requestParameters: CheckCollateralRepayRateStableRateRequest\n ): Promise<RestApiResponse<CheckCollateralRepayRateStableRateResponse>> {\n return this.stableRateApi.checkCollateralRepayRateStableRate(requestParameters);\n }\n\n /**\n * Get Crypto Loans Income History\n *\n * If startTime and endTime are not sent, the recent 7-day data will be returned.\n * The max interval between startTime and endTime is 30 days.\n *\n * Weight: 6000\n *\n * @summary Get Crypto Loans Income History(USER_DATA)\n * @param {GetCryptoLoansIncomeHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetCryptoLoansIncomeHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Get-Crypto-Loans-Income-History Binance API Documentation}\n */\n getCryptoLoansIncomeHistory(\n requestParameters: GetCryptoLoansIncomeHistoryRequest = {}\n ): Promise<RestApiResponse<GetCryptoLoansIncomeHistoryResponse>> {\n return this.stableRateApi.getCryptoLoansIncomeHistory(requestParameters);\n }\n\n /**\n * Get Loan Borrow History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Loan Borrow History(USER_DATA)\n * @param {GetLoanBorrowHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetLoanBorrowHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/user-information/Get-Loan-Borrow-History Binance API Documentation}\n */\n getLoanBorrowHistory(\n requestParameters: GetLoanBorrowHistoryRequest = {}\n ): Promise<RestApiResponse<GetLoanBorrowHistoryResponse>> {\n return this.stableRateApi.getLoanBorrowHistory(requestParameters);\n }\n\n /**\n * Get Loan LTV Adjustment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Loan LTV Adjustment History(USER_DATA)\n * @param {GetLoanLtvAdjustmentHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetLoanLtvAdjustmentHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/user-information/Get-Loan-LTV-Adjustment-History Binance API Documentation}\n */\n getLoanLtvAdjustmentHistory(\n requestParameters: GetLoanLtvAdjustmentHistoryRequest = {}\n ): Promise<RestApiResponse<GetLoanLtvAdjustmentHistoryResponse>> {\n return this.stableRateApi.getLoanLtvAdjustmentHistory(requestParameters);\n }\n\n /**\n * Get Loan Repayment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Loan Repayment History(USER_DATA)\n * @param {GetLoanRepaymentHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetLoanRepaymentHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/user-information/Get-Loan-Repayment-History Binance API Documentation}\n */\n getLoanRepaymentHistory(\n requestParameters: GetLoanRepaymentHistoryRequest = {}\n ): Promise<RestApiResponse<GetLoanRepaymentHistoryResponse>> {\n return this.stableRateApi.getLoanRepaymentHistory(requestParameters);\n }\n}\n","/**\n * Binance Crypto Loan REST API\n *\n * OpenAPI Specification for the Binance Crypto Loan REST API\n *\n * The version of the OpenAPI document: 1.0.0\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nexport * from './types';\nexport * from './modules';\nexport * from './rest-api';\n","import {\n buildUserAgent,\n ConfigurationRestAPI,\n CRYPTO_LOAN_REST_API_PROD_URL,\n} from '@binance/common';\nimport { name, version } from '../package.json';\nimport { RestAPI } from './rest-api';\n\nexport interface ConfigurationCryptoLoan {\n configurationRestAPI?: ConfigurationRestAPI;\n}\n\nexport class CryptoLoan {\n public restAPI!: RestAPI;\n\n constructor(config: ConfigurationCryptoLoan) {\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 || CRYPTO_LOAN_REST_API_PROD_URL;\n configRestAPI.baseOptions = configRestAPI.baseOptions || {};\n configRestAPI.baseOptions.headers = {\n ...(configRestAPI.baseOptions.headers || {}),\n 'User-Agent': userAgent,\n };\n this.restAPI = new RestAPI(configRestAPI);\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;WACY;cAEG;;;;;;;;;;;;;;;;;;;ACoCf,MAAM,mCAAmC,SAAU,eAAqC;AACpF,QAAO;EAYH,0BAA0B,OACtB,UACA,gBACA,eACuB;AAEvB,2CAAkB,4BAA4B,Y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AAM,gBAAgB,IAAIC,sCACtB,OAAO,qBACV;AAGD,iBAAc,WAAW,cAAc,YAAYC;AACnD,iBAAc,cAAc,cAAc,eAAe,EAAE;AAC3D,iBAAc,YAAY,UAAU;IAChC,GAAI,cAAc,YAAY,WAAW,EAAE;IAC3C,cAAc;IACjB;AACD,QAAK,UAAU,IAAI,QAAQ,cAAc"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["localVarQueryParameter: Record<string, unknown>","localVarBodyParameter: Record<string, unknown>","_timeUnit: TimeUnit | undefined","localVarQueryParameter: Record<string, unknown>","localVarBodyParameter: Record<string, unknown>","_timeUnit: TimeUnit | undefined","ConfigurationRestAPI","CRYPTO_LOAN_REST_API_PROD_URL"],"sources":["../package.json","../src/rest-api/modules/flexible-rate-api.ts","../src/rest-api/modules/stable-rate-api.ts","../src/rest-api/rest-api.ts","../src/rest-api/index.ts","../src/crypto-loan.ts"],"sourcesContent":["{\n \"name\": \"@binance/crypto-loan\",\n \"description\": \"Official Binance Crypto Loan Connector - A lightweight library that provides a convenient interface to Binance's Crypto Loan REST API.\",\n \"version\": \"9.0.5\",\n \"main\": \"./dist/index.js\",\n \"module\": \"./dist/index.mjs\",\n \"types\": \"./dist/index.d.ts\",\n \"exports\": {\n \".\": {\n \"require\": \"./dist/index.js\",\n \"import\": \"./dist/index.mjs\"\n }\n },\n \"scripts\": {\n \"prepublishOnly\": \"npm run build\",\n \"build\": \"npm run clean && tsdown\",\n \"typecheck\": \"tsc --noEmit\",\n \"clean\": \"rm -rf dist\",\n \"test\": \"npx jest --maxWorkers=4 --bail\",\n \"test:watch\": \"npx jest --watch\",\n \"format\": \"npx prettier --ignore-path .prettierignore --write .\",\n \"lint\": \"npx eslint '**/*.ts' --fix\"\n },\n \"keywords\": [\n \"Binance\",\n \"API\",\n \"Crypto Loan\",\n \"Connector\",\n \"REST\",\n \"Trading\"\n ],\n \"author\": \"Binance\",\n \"license\": \"MIT\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/binance/binance-connector-js.git\"\n },\n \"bugs\": {\n \"url\": \"https://github.com/binance/binance-connector-js/issues\"\n },\n \"homepage\": \"https://github.com/binance/binance-connector-js#readme\",\n \"files\": [\n \"dist\"\n ],\n \"devDependencies\": {\n \"@types/jest\": \"^29.5.4\",\n \"@types/node\": \"^20.17.24\",\n \"eslint\": \"8.57.0\",\n \"jest\": \"^29.6.4\",\n \"json-with-bigint\": \"^3.4.4\",\n \"prettier\": \"^3.3.3\",\n \"ts-jest\": \"^29.1.1\",\n \"ts-node\": \"^10.9.1\",\n \"tsdown\": \"^0.16.5\",\n \"typescript\": \"^5.7.2\",\n \"typescript-eslint\": \"^8.24.0\"\n },\n \"dependencies\": {\n \"@binance/common\": \"2.3.5\",\n \"axios\": \"^1.7.4\"\n }\n}\n","/**\n * Binance Crypto Loan REST API\n *\n * OpenAPI Specification for the Binance Crypto Loan 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 CheckCollateralRepayRateResponse,\n FlexibleLoanAdjustLtvResponse,\n FlexibleLoanBorrowResponse,\n FlexibleLoanRepayResponse,\n GetFlexibleLoanAssetsDataResponse,\n GetFlexibleLoanBorrowHistoryResponse,\n GetFlexibleLoanCollateralAssetsDataResponse,\n GetFlexibleLoanInterestRateHistoryResponse,\n GetFlexibleLoanLiquidationHistoryResponse,\n GetFlexibleLoanLtvAdjustmentHistoryResponse,\n GetFlexibleLoanOngoingOrdersResponse,\n GetFlexibleLoanRepaymentHistoryResponse,\n} from '../types';\n\n/**\n * FlexibleRateApi - axios parameter creator\n */\nconst FlexibleRateApiAxiosParamCreator = function (configuration: ConfigurationRestAPI) {\n return {\n /**\n *\n * Weight: 6000\n *\n * @summary Check Collateral Repay Rate (USER_DATA)\n * @param {string} loanCoin\n * @param {string} collateralCoin\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n checkCollateralRepayRate: async (\n loanCoin: string,\n collateralCoin: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'loanCoin' is not null or undefined\n assertParamExists('checkCollateralRepayRate', 'loanCoin', loanCoin);\n // verify required parameter 'collateralCoin' is not null or undefined\n assertParamExists('checkCollateralRepayRate', 'collateralCoin', collateralCoin);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\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/v2/loan/flexible/repay/rate',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Flexible Loan Adjust LTV\n *\n * API Key needs Spot & Margin Trading permission for this endpoint\n *\n * Weight: 6000\n *\n * @summary Flexible Loan Adjust LTV(TRADE)\n * @param {string} loanCoin\n * @param {string} collateralCoin\n * @param {number} adjustmentAmount\n * @param {string} direction \"ADDITIONAL\", \"REDUCED\"\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n flexibleLoanAdjustLtv: async (\n loanCoin: string,\n collateralCoin: string,\n adjustmentAmount: number,\n direction: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'loanCoin' is not null or undefined\n assertParamExists('flexibleLoanAdjustLtv', 'loanCoin', loanCoin);\n // verify required parameter 'collateralCoin' is not null or undefined\n assertParamExists('flexibleLoanAdjustLtv', 'collateralCoin', collateralCoin);\n // verify required parameter 'adjustmentAmount' is not null or undefined\n assertParamExists('flexibleLoanAdjustLtv', 'adjustmentAmount', adjustmentAmount);\n // verify required parameter 'direction' is not null or undefined\n assertParamExists('flexibleLoanAdjustLtv', 'direction', direction);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\n }\n if (adjustmentAmount !== undefined && adjustmentAmount !== null) {\n localVarQueryParameter['adjustmentAmount'] = adjustmentAmount;\n }\n if (direction !== undefined && direction !== null) {\n localVarQueryParameter['direction'] = direction;\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/v2/loan/flexible/adjust/ltv',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Borrow Flexible Loan\n *\n *\n * This API endpoint is available for both the master account and the sub-account.\n * You can customize LTV by entering loanAmount and collateralAmount.\n *\n * Weight: 6000\n *\n * @summary Flexible Loan Borrow(TRADE)\n * @param {string} loanCoin\n * @param {string} collateralCoin\n * @param {number} [loanAmount] Mandatory when collateralAmount is empty\n * @param {number} [collateralAmount] Mandatory when loanAmount is empty\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n flexibleLoanBorrow: async (\n loanCoin: string,\n collateralCoin: string,\n loanAmount?: number,\n collateralAmount?: number,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'loanCoin' is not null or undefined\n assertParamExists('flexibleLoanBorrow', 'loanCoin', loanCoin);\n // verify required parameter 'collateralCoin' is not null or undefined\n assertParamExists('flexibleLoanBorrow', 'collateralCoin', collateralCoin);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (loanAmount !== undefined && loanAmount !== null) {\n localVarQueryParameter['loanAmount'] = loanAmount;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\n }\n if (collateralAmount !== undefined && collateralAmount !== null) {\n localVarQueryParameter['collateralAmount'] = collateralAmount;\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/v2/loan/flexible/borrow',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Flexible Loan Repay\n *\n *\n * repayAmount is mandatory even fullRepayment = FALSE\n *\n * Weight: 6000\n *\n * @summary Flexible Loan Repay(TRADE)\n * @param {string} loanCoin\n * @param {string} collateralCoin\n * @param {number} repayAmount repay amount of loanCoin\n * @param {boolean} [collateralReturn] Default: TRUE. TRUE: Return extra collateral to spot account; FALSE: Keep extra collateral in the order, and lower LTV.\n * @param {boolean} [fullRepayment] Default: FALSE. TRUE: Full repayment; FALSE: Partial repayment, based on loanAmount\n * @param {number | bigint} [repaymentType] Default: 1. 1: Repayment with loan asset; 2: Repayment with collateral\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n flexibleLoanRepay: async (\n loanCoin: string,\n collateralCoin: string,\n repayAmount: number,\n collateralReturn?: boolean,\n fullRepayment?: boolean,\n repaymentType?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'loanCoin' is not null or undefined\n assertParamExists('flexibleLoanRepay', 'loanCoin', loanCoin);\n // verify required parameter 'collateralCoin' is not null or undefined\n assertParamExists('flexibleLoanRepay', 'collateralCoin', collateralCoin);\n // verify required parameter 'repayAmount' is not null or undefined\n assertParamExists('flexibleLoanRepay', 'repayAmount', repayAmount);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\n }\n if (repayAmount !== undefined && repayAmount !== null) {\n localVarQueryParameter['repayAmount'] = repayAmount;\n }\n if (collateralReturn !== undefined && collateralReturn !== null) {\n localVarQueryParameter['collateralReturn'] = collateralReturn;\n }\n if (fullRepayment !== undefined && fullRepayment !== null) {\n localVarQueryParameter['fullRepayment'] = fullRepayment;\n }\n if (repaymentType !== undefined && repaymentType !== null) {\n localVarQueryParameter['repaymentType'] = repaymentType;\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/v2/loan/flexible/repay',\n method: 'POST',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get interest rate and borrow limit of flexible loanable assets. The borrow limit is shown in USD value.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Assets Data(USER_DATA)\n * @param {string} [loanCoin]\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexibleLoanAssetsData: async (\n loanCoin?: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\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/v2/loan/flexible/loanable/data',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Flexible Loan Borrow History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Borrow History(USER_DATA)\n * @param {string} [loanCoin]\n * @param {string} [collateralCoin]\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Current querying page. Start from 1; default: 1; max: 1000\n * @param {number | bigint} [limit] Default: 10; max: 100\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexibleLoanBorrowHistory: async (\n loanCoin?: string,\n collateralCoin?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n limit?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (limit !== undefined && limit !== null) {\n localVarQueryParameter['limit'] = limit;\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/v2/loan/flexible/borrow/history',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get LTV information and collateral limit of flexible loan's collateral assets. The collateral limit is shown in USD value.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Collateral Assets Data(USER_DATA)\n * @param {string} [collateralCoin]\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexibleLoanCollateralAssetsData: async (\n collateralCoin?: string,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\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/v2/loan/flexible/collateral/data',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Check Flexible Loan interest rate history\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned\n * The max interval between startTime and endTime is 90 days.\n * Time based on UTC+0.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Interest Rate History (USER_DATA)\n * @param {string} coin\n * @param {number | bigint} recvWindow\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Current querying page. Start from 1; default: 1; max: 1000\n * @param {number | bigint} [limit] Default: 10; max: 100\n *\n * @throws {RequiredError}\n */\n getFlexibleLoanInterestRateHistory: async (\n coin: string,\n recvWindow: number | bigint,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n limit?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'coin' is not null or undefined\n assertParamExists('getFlexibleLoanInterestRateHistory', 'coin', coin);\n // verify required parameter 'recvWindow' is not null or undefined\n assertParamExists('getFlexibleLoanInterestRateHistory', 'recvWindow', recvWindow);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (coin !== undefined && coin !== null) {\n localVarQueryParameter['coin'] = coin;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (limit !== undefined && limit !== null) {\n localVarQueryParameter['limit'] = limit;\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/v2/loan/interestRateHistory',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Liquidation History (USER_DATA)\n * @param {string} [loanCoin]\n * @param {string} [collateralCoin]\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Current querying page. Start from 1; default: 1; max: 1000\n * @param {number | bigint} [limit] Default: 10; max: 100\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexibleLoanLiquidationHistory: async (\n loanCoin?: string,\n collateralCoin?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n limit?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (limit !== undefined && limit !== null) {\n localVarQueryParameter['limit'] = limit;\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/v2/loan/flexible/liquidation/history',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Flexible Loan LTV Adjustment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan LTV Adjustment History(USER_DATA)\n * @param {string} [loanCoin]\n * @param {string} [collateralCoin]\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Current querying page. Start from 1; default: 1; max: 1000\n * @param {number | bigint} [limit] Default: 10; max: 100\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexibleLoanLtvAdjustmentHistory: async (\n loanCoin?: string,\n collateralCoin?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n limit?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (limit !== undefined && limit !== null) {\n localVarQueryParameter['limit'] = limit;\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/v2/loan/flexible/ltv/adjustment/history',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Flexible Loan Ongoing Orders\n *\n * Weight: 300\n *\n * @summary Get Flexible Loan Ongoing Orders(USER_DATA)\n * @param {string} [loanCoin]\n * @param {string} [collateralCoin]\n * @param {number | bigint} [current] Current querying page. Start from 1; default: 1; max: 1000\n * @param {number | bigint} [limit] Default: 10; max: 100\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexibleLoanOngoingOrders: async (\n loanCoin?: string,\n collateralCoin?: string,\n current?: number | bigint,\n limit?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (limit !== undefined && limit !== null) {\n localVarQueryParameter['limit'] = limit;\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/v2/loan/flexible/ongoing/orders',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Flexible Loan Repayment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Repayment History(USER_DATA)\n * @param {string} [loanCoin]\n * @param {string} [collateralCoin]\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Current querying page. Start from 1; default: 1; max: 1000\n * @param {number | bigint} [limit] Default: 10; max: 100\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getFlexibleLoanRepaymentHistory: async (\n loanCoin?: string,\n collateralCoin?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n limit?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (limit !== undefined && limit !== null) {\n localVarQueryParameter['limit'] = limit;\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/v2/loan/flexible/repay/history',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n };\n};\n\n/**\n * FlexibleRateApi - interface\n * @interface FlexibleRateApi\n */\nexport interface FlexibleRateApiInterface {\n /**\n *\n * Weight: 6000\n *\n * @summary Check Collateral Repay Rate (USER_DATA)\n * @param {CheckCollateralRepayRateRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApiInterface\n */\n checkCollateralRepayRate(\n requestParameters: CheckCollateralRepayRateRequest\n ): Promise<RestApiResponse<CheckCollateralRepayRateResponse>>;\n /**\n * Flexible Loan Adjust LTV\n *\n * API Key needs Spot & Margin Trading permission for this endpoint\n *\n * Weight: 6000\n *\n * @summary Flexible Loan Adjust LTV(TRADE)\n * @param {FlexibleLoanAdjustLtvRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApiInterface\n */\n flexibleLoanAdjustLtv(\n requestParameters: FlexibleLoanAdjustLtvRequest\n ): Promise<RestApiResponse<FlexibleLoanAdjustLtvResponse>>;\n /**\n * Borrow Flexible Loan\n *\n *\n * This API endpoint is available for both the master account and the sub-account.\n * You can customize LTV by entering loanAmount and collateralAmount.\n *\n * Weight: 6000\n *\n * @summary Flexible Loan Borrow(TRADE)\n * @param {FlexibleLoanBorrowRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApiInterface\n */\n flexibleLoanBorrow(\n requestParameters: FlexibleLoanBorrowRequest\n ): Promise<RestApiResponse<FlexibleLoanBorrowResponse>>;\n /**\n * Flexible Loan Repay\n *\n *\n * repayAmount is mandatory even fullRepayment = FALSE\n *\n * Weight: 6000\n *\n * @summary Flexible Loan Repay(TRADE)\n * @param {FlexibleLoanRepayRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApiInterface\n */\n flexibleLoanRepay(\n requestParameters: FlexibleLoanRepayRequest\n ): Promise<RestApiResponse<FlexibleLoanRepayResponse>>;\n /**\n * Get interest rate and borrow limit of flexible loanable assets. The borrow limit is shown in USD value.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Assets Data(USER_DATA)\n * @param {GetFlexibleLoanAssetsDataRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApiInterface\n */\n getFlexibleLoanAssetsData(\n requestParameters?: GetFlexibleLoanAssetsDataRequest\n ): Promise<RestApiResponse<GetFlexibleLoanAssetsDataResponse>>;\n /**\n * Get Flexible Loan Borrow History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Borrow History(USER_DATA)\n * @param {GetFlexibleLoanBorrowHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApiInterface\n */\n getFlexibleLoanBorrowHistory(\n requestParameters?: GetFlexibleLoanBorrowHistoryRequest\n ): Promise<RestApiResponse<GetFlexibleLoanBorrowHistoryResponse>>;\n /**\n * Get LTV information and collateral limit of flexible loan's collateral assets. The collateral limit is shown in USD value.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Collateral Assets Data(USER_DATA)\n * @param {GetFlexibleLoanCollateralAssetsDataRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApiInterface\n */\n getFlexibleLoanCollateralAssetsData(\n requestParameters?: GetFlexibleLoanCollateralAssetsDataRequest\n ): Promise<RestApiResponse<GetFlexibleLoanCollateralAssetsDataResponse>>;\n /**\n * Check Flexible Loan interest rate history\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned\n * The max interval between startTime and endTime is 90 days.\n * Time based on UTC+0.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Interest Rate History (USER_DATA)\n * @param {GetFlexibleLoanInterestRateHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApiInterface\n */\n getFlexibleLoanInterestRateHistory(\n requestParameters: GetFlexibleLoanInterestRateHistoryRequest\n ): Promise<RestApiResponse<GetFlexibleLoanInterestRateHistoryResponse>>;\n /**\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Liquidation History (USER_DATA)\n * @param {GetFlexibleLoanLiquidationHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApiInterface\n */\n getFlexibleLoanLiquidationHistory(\n requestParameters?: GetFlexibleLoanLiquidationHistoryRequest\n ): Promise<RestApiResponse<GetFlexibleLoanLiquidationHistoryResponse>>;\n /**\n * Get Flexible Loan LTV Adjustment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan LTV Adjustment History(USER_DATA)\n * @param {GetFlexibleLoanLtvAdjustmentHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApiInterface\n */\n getFlexibleLoanLtvAdjustmentHistory(\n requestParameters?: GetFlexibleLoanLtvAdjustmentHistoryRequest\n ): Promise<RestApiResponse<GetFlexibleLoanLtvAdjustmentHistoryResponse>>;\n /**\n * Get Flexible Loan Ongoing Orders\n *\n * Weight: 300\n *\n * @summary Get Flexible Loan Ongoing Orders(USER_DATA)\n * @param {GetFlexibleLoanOngoingOrdersRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApiInterface\n */\n getFlexibleLoanOngoingOrders(\n requestParameters?: GetFlexibleLoanOngoingOrdersRequest\n ): Promise<RestApiResponse<GetFlexibleLoanOngoingOrdersResponse>>;\n /**\n * Get Flexible Loan Repayment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Repayment History(USER_DATA)\n * @param {GetFlexibleLoanRepaymentHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApiInterface\n */\n getFlexibleLoanRepaymentHistory(\n requestParameters?: GetFlexibleLoanRepaymentHistoryRequest\n ): Promise<RestApiResponse<GetFlexibleLoanRepaymentHistoryResponse>>;\n}\n\n/**\n * Request parameters for checkCollateralRepayRate operation in FlexibleRateApi.\n * @interface CheckCollateralRepayRateRequest\n */\nexport interface CheckCollateralRepayRateRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiCheckCollateralRepayRate\n */\n readonly loanCoin: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiCheckCollateralRepayRate\n */\n readonly collateralCoin: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiCheckCollateralRepayRate\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for flexibleLoanAdjustLtv operation in FlexibleRateApi.\n * @interface FlexibleLoanAdjustLtvRequest\n */\nexport interface FlexibleLoanAdjustLtvRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiFlexibleLoanAdjustLtv\n */\n readonly loanCoin: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiFlexibleLoanAdjustLtv\n */\n readonly collateralCoin: string;\n\n /**\n *\n * @type {number}\n * @memberof FlexibleRateApiFlexibleLoanAdjustLtv\n */\n readonly adjustmentAmount: number;\n\n /**\n * \"ADDITIONAL\", \"REDUCED\"\n * @type {string}\n * @memberof FlexibleRateApiFlexibleLoanAdjustLtv\n */\n readonly direction: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiFlexibleLoanAdjustLtv\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for flexibleLoanBorrow operation in FlexibleRateApi.\n * @interface FlexibleLoanBorrowRequest\n */\nexport interface FlexibleLoanBorrowRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiFlexibleLoanBorrow\n */\n readonly loanCoin: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiFlexibleLoanBorrow\n */\n readonly collateralCoin: string;\n\n /**\n * Mandatory when collateralAmount is empty\n * @type {number}\n * @memberof FlexibleRateApiFlexibleLoanBorrow\n */\n readonly loanAmount?: number;\n\n /**\n * Mandatory when loanAmount is empty\n * @type {number}\n * @memberof FlexibleRateApiFlexibleLoanBorrow\n */\n readonly collateralAmount?: number;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiFlexibleLoanBorrow\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for flexibleLoanRepay operation in FlexibleRateApi.\n * @interface FlexibleLoanRepayRequest\n */\nexport interface FlexibleLoanRepayRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiFlexibleLoanRepay\n */\n readonly loanCoin: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiFlexibleLoanRepay\n */\n readonly collateralCoin: string;\n\n /**\n * repay amount of loanCoin\n * @type {number}\n * @memberof FlexibleRateApiFlexibleLoanRepay\n */\n readonly repayAmount: number;\n\n /**\n * Default: TRUE. TRUE: Return extra collateral to spot account; FALSE: Keep extra collateral in the order, and lower LTV.\n * @type {boolean}\n * @memberof FlexibleRateApiFlexibleLoanRepay\n */\n readonly collateralReturn?: boolean;\n\n /**\n * Default: FALSE. TRUE: Full repayment; FALSE: Partial repayment, based on loanAmount\n * @type {boolean}\n * @memberof FlexibleRateApiFlexibleLoanRepay\n */\n readonly fullRepayment?: boolean;\n\n /**\n * Default: 1. 1: Repayment with loan asset; 2: Repayment with collateral\n * @type {number | bigint}\n * @memberof FlexibleRateApiFlexibleLoanRepay\n */\n readonly repaymentType?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiFlexibleLoanRepay\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleLoanAssetsData operation in FlexibleRateApi.\n * @interface GetFlexibleLoanAssetsDataRequest\n */\nexport interface GetFlexibleLoanAssetsDataRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanAssetsData\n */\n readonly loanCoin?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanAssetsData\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleLoanBorrowHistory operation in FlexibleRateApi.\n * @interface GetFlexibleLoanBorrowHistoryRequest\n */\nexport interface GetFlexibleLoanBorrowHistoryRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanBorrowHistory\n */\n readonly loanCoin?: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanBorrowHistory\n */\n readonly collateralCoin?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanBorrowHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanBorrowHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Current querying page. Start from 1; default: 1; max: 1000\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanBorrowHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Default: 10; max: 100\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanBorrowHistory\n */\n readonly limit?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanBorrowHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleLoanCollateralAssetsData operation in FlexibleRateApi.\n * @interface GetFlexibleLoanCollateralAssetsDataRequest\n */\nexport interface GetFlexibleLoanCollateralAssetsDataRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanCollateralAssetsData\n */\n readonly collateralCoin?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanCollateralAssetsData\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleLoanInterestRateHistory operation in FlexibleRateApi.\n * @interface GetFlexibleLoanInterestRateHistoryRequest\n */\nexport interface GetFlexibleLoanInterestRateHistoryRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanInterestRateHistory\n */\n readonly coin: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanInterestRateHistory\n */\n readonly recvWindow: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanInterestRateHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanInterestRateHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Current querying page. Start from 1; default: 1; max: 1000\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanInterestRateHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Default: 10; max: 100\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanInterestRateHistory\n */\n readonly limit?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleLoanLiquidationHistory operation in FlexibleRateApi.\n * @interface GetFlexibleLoanLiquidationHistoryRequest\n */\nexport interface GetFlexibleLoanLiquidationHistoryRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanLiquidationHistory\n */\n readonly loanCoin?: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanLiquidationHistory\n */\n readonly collateralCoin?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanLiquidationHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanLiquidationHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Current querying page. Start from 1; default: 1; max: 1000\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanLiquidationHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Default: 10; max: 100\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanLiquidationHistory\n */\n readonly limit?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanLiquidationHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleLoanLtvAdjustmentHistory operation in FlexibleRateApi.\n * @interface GetFlexibleLoanLtvAdjustmentHistoryRequest\n */\nexport interface GetFlexibleLoanLtvAdjustmentHistoryRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanLtvAdjustmentHistory\n */\n readonly loanCoin?: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanLtvAdjustmentHistory\n */\n readonly collateralCoin?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanLtvAdjustmentHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanLtvAdjustmentHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Current querying page. Start from 1; default: 1; max: 1000\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanLtvAdjustmentHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Default: 10; max: 100\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanLtvAdjustmentHistory\n */\n readonly limit?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanLtvAdjustmentHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleLoanOngoingOrders operation in FlexibleRateApi.\n * @interface GetFlexibleLoanOngoingOrdersRequest\n */\nexport interface GetFlexibleLoanOngoingOrdersRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanOngoingOrders\n */\n readonly loanCoin?: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanOngoingOrders\n */\n readonly collateralCoin?: string;\n\n /**\n * Current querying page. Start from 1; default: 1; max: 1000\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanOngoingOrders\n */\n readonly current?: number | bigint;\n\n /**\n * Default: 10; max: 100\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanOngoingOrders\n */\n readonly limit?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanOngoingOrders\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getFlexibleLoanRepaymentHistory operation in FlexibleRateApi.\n * @interface GetFlexibleLoanRepaymentHistoryRequest\n */\nexport interface GetFlexibleLoanRepaymentHistoryRequest {\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanRepaymentHistory\n */\n readonly loanCoin?: string;\n\n /**\n *\n * @type {string}\n * @memberof FlexibleRateApiGetFlexibleLoanRepaymentHistory\n */\n readonly collateralCoin?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanRepaymentHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanRepaymentHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Current querying page. Start from 1; default: 1; max: 1000\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanRepaymentHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Default: 10; max: 100\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanRepaymentHistory\n */\n readonly limit?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof FlexibleRateApiGetFlexibleLoanRepaymentHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * FlexibleRateApi - object-oriented interface\n * @class FlexibleRateApi\n */\nexport class FlexibleRateApi implements FlexibleRateApiInterface {\n private readonly configuration: ConfigurationRestAPI;\n private localVarAxiosParamCreator;\n\n constructor(configuration: ConfigurationRestAPI) {\n this.configuration = configuration;\n this.localVarAxiosParamCreator = FlexibleRateApiAxiosParamCreator(configuration);\n }\n\n /**\n *\n * Weight: 6000\n *\n * @summary Check Collateral Repay Rate (USER_DATA)\n * @param {CheckCollateralRepayRateRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<CheckCollateralRepayRateResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Check-Collateral-Repay-Rate Binance API Documentation}\n */\n public async checkCollateralRepayRate(\n requestParameters: CheckCollateralRepayRateRequest\n ): Promise<RestApiResponse<CheckCollateralRepayRateResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.checkCollateralRepayRate(\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.recvWindow\n );\n return sendRequest<CheckCollateralRepayRateResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Flexible Loan Adjust LTV\n *\n * API Key needs Spot & Margin Trading permission for this endpoint\n *\n * Weight: 6000\n *\n * @summary Flexible Loan Adjust LTV(TRADE)\n * @param {FlexibleLoanAdjustLtvRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<FlexibleLoanAdjustLtvResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Adjust-LTV Binance API Documentation}\n */\n public async flexibleLoanAdjustLtv(\n requestParameters: FlexibleLoanAdjustLtvRequest\n ): Promise<RestApiResponse<FlexibleLoanAdjustLtvResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.flexibleLoanAdjustLtv(\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.adjustmentAmount,\n requestParameters?.direction,\n requestParameters?.recvWindow\n );\n return sendRequest<FlexibleLoanAdjustLtvResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Borrow Flexible Loan\n *\n *\n * This API endpoint is available for both the master account and the sub-account.\n * You can customize LTV by entering loanAmount and collateralAmount.\n *\n * Weight: 6000\n *\n * @summary Flexible Loan Borrow(TRADE)\n * @param {FlexibleLoanBorrowRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<FlexibleLoanBorrowResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Borrow Binance API Documentation}\n */\n public async flexibleLoanBorrow(\n requestParameters: FlexibleLoanBorrowRequest\n ): Promise<RestApiResponse<FlexibleLoanBorrowResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.flexibleLoanBorrow(\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.loanAmount,\n requestParameters?.collateralAmount,\n requestParameters?.recvWindow\n );\n return sendRequest<FlexibleLoanBorrowResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Flexible Loan Repay\n *\n *\n * repayAmount is mandatory even fullRepayment = FALSE\n *\n * Weight: 6000\n *\n * @summary Flexible Loan Repay(TRADE)\n * @param {FlexibleLoanRepayRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<FlexibleLoanRepayResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Repay Binance API Documentation}\n */\n public async flexibleLoanRepay(\n requestParameters: FlexibleLoanRepayRequest\n ): Promise<RestApiResponse<FlexibleLoanRepayResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.flexibleLoanRepay(\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.repayAmount,\n requestParameters?.collateralReturn,\n requestParameters?.fullRepayment,\n requestParameters?.repaymentType,\n requestParameters?.recvWindow\n );\n return sendRequest<FlexibleLoanRepayResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get interest rate and borrow limit of flexible loanable assets. The borrow limit is shown in USD value.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Assets Data(USER_DATA)\n * @param {GetFlexibleLoanAssetsDataRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleLoanAssetsDataResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Assets-Data Binance API Documentation}\n */\n public async getFlexibleLoanAssetsData(\n requestParameters: GetFlexibleLoanAssetsDataRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanAssetsDataResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleLoanAssetsData(\n requestParameters?.loanCoin,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexibleLoanAssetsDataResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Flexible Loan Borrow History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Borrow History(USER_DATA)\n * @param {GetFlexibleLoanBorrowHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleLoanBorrowHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-Borrow-History Binance API Documentation}\n */\n public async getFlexibleLoanBorrowHistory(\n requestParameters: GetFlexibleLoanBorrowHistoryRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanBorrowHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleLoanBorrowHistory(\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.limit,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexibleLoanBorrowHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get LTV information and collateral limit of flexible loan's collateral assets. The collateral limit is shown in USD value.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Collateral Assets Data(USER_DATA)\n * @param {GetFlexibleLoanCollateralAssetsDataRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleLoanCollateralAssetsDataResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Collateral-Assets-Data Binance API Documentation}\n */\n public async getFlexibleLoanCollateralAssetsData(\n requestParameters: GetFlexibleLoanCollateralAssetsDataRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanCollateralAssetsDataResponse>> {\n const localVarAxiosArgs =\n await this.localVarAxiosParamCreator.getFlexibleLoanCollateralAssetsData(\n requestParameters?.collateralCoin,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexibleLoanCollateralAssetsDataResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Check Flexible Loan interest rate history\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned\n * The max interval between startTime and endTime is 90 days.\n * Time based on UTC+0.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Interest Rate History (USER_DATA)\n * @param {GetFlexibleLoanInterestRateHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleLoanInterestRateHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Interest-Rate-History Binance API Documentation}\n */\n public async getFlexibleLoanInterestRateHistory(\n requestParameters: GetFlexibleLoanInterestRateHistoryRequest\n ): Promise<RestApiResponse<GetFlexibleLoanInterestRateHistoryResponse>> {\n const localVarAxiosArgs =\n await this.localVarAxiosParamCreator.getFlexibleLoanInterestRateHistory(\n requestParameters?.coin,\n requestParameters?.recvWindow,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.limit\n );\n return sendRequest<GetFlexibleLoanInterestRateHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Liquidation History (USER_DATA)\n * @param {GetFlexibleLoanLiquidationHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleLoanLiquidationHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-Liquidation-History Binance API Documentation}\n */\n public async getFlexibleLoanLiquidationHistory(\n requestParameters: GetFlexibleLoanLiquidationHistoryRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanLiquidationHistoryResponse>> {\n const localVarAxiosArgs =\n await this.localVarAxiosParamCreator.getFlexibleLoanLiquidationHistory(\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.limit,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexibleLoanLiquidationHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Flexible Loan LTV Adjustment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan LTV Adjustment History(USER_DATA)\n * @param {GetFlexibleLoanLtvAdjustmentHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleLoanLtvAdjustmentHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-LTV-Adjustment-History Binance API Documentation}\n */\n public async getFlexibleLoanLtvAdjustmentHistory(\n requestParameters: GetFlexibleLoanLtvAdjustmentHistoryRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanLtvAdjustmentHistoryResponse>> {\n const localVarAxiosArgs =\n await this.localVarAxiosParamCreator.getFlexibleLoanLtvAdjustmentHistory(\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.limit,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexibleLoanLtvAdjustmentHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Flexible Loan Ongoing Orders\n *\n * Weight: 300\n *\n * @summary Get Flexible Loan Ongoing Orders(USER_DATA)\n * @param {GetFlexibleLoanOngoingOrdersRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleLoanOngoingOrdersResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-Ongoing-Orders Binance API Documentation}\n */\n public async getFlexibleLoanOngoingOrders(\n requestParameters: GetFlexibleLoanOngoingOrdersRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanOngoingOrdersResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleLoanOngoingOrders(\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.current,\n requestParameters?.limit,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexibleLoanOngoingOrdersResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Flexible Loan Repayment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Repayment History(USER_DATA)\n * @param {GetFlexibleLoanRepaymentHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetFlexibleLoanRepaymentHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof FlexibleRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-Repayment-History Binance API Documentation}\n */\n public async getFlexibleLoanRepaymentHistory(\n requestParameters: GetFlexibleLoanRepaymentHistoryRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanRepaymentHistoryResponse>> {\n const localVarAxiosArgs =\n await this.localVarAxiosParamCreator.getFlexibleLoanRepaymentHistory(\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.limit,\n requestParameters?.recvWindow\n );\n return sendRequest<GetFlexibleLoanRepaymentHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n}\n","/**\n * Binance Crypto Loan REST API\n *\n * OpenAPI Specification for the Binance Crypto Loan 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 CheckCollateralRepayRateStableRateResponse,\n GetCryptoLoansIncomeHistoryResponse,\n GetLoanBorrowHistoryResponse,\n GetLoanLtvAdjustmentHistoryResponse,\n GetLoanRepaymentHistoryResponse,\n} from '../types';\n\n/**\n * StableRateApi - axios parameter creator\n */\nconst StableRateApiAxiosParamCreator = function (configuration: ConfigurationRestAPI) {\n return {\n /**\n * Get the the rate of collateral coin / loan coin when using collateral repay, the rate will be valid within 8 second.\n *\n * Weight: 6000\n *\n * @summary Check Collateral Repay Rate(USER_DATA)\n * @param {string} loanCoin\n * @param {string} collateralCoin\n * @param {number} repayAmount repay amount of loanCoin\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n checkCollateralRepayRateStableRate: async (\n loanCoin: string,\n collateralCoin: string,\n repayAmount: number,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n // verify required parameter 'loanCoin' is not null or undefined\n assertParamExists('checkCollateralRepayRateStableRate', 'loanCoin', loanCoin);\n // verify required parameter 'collateralCoin' is not null or undefined\n assertParamExists(\n 'checkCollateralRepayRateStableRate',\n 'collateralCoin',\n collateralCoin\n );\n // verify required parameter 'repayAmount' is not null or undefined\n assertParamExists('checkCollateralRepayRateStableRate', 'repayAmount', repayAmount);\n\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\n }\n if (repayAmount !== undefined && repayAmount !== null) {\n localVarQueryParameter['repayAmount'] = repayAmount;\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/loan/repay/collateral/rate',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Crypto Loans Income History\n *\n * If startTime and endTime are not sent, the recent 7-day data will be returned.\n * The max interval between startTime and endTime is 30 days.\n *\n * Weight: 6000\n *\n * @summary Get Crypto Loans Income History(USER_DATA)\n * @param {string} [asset]\n * @param {string} [type] All types will be returned by default. Enum:`borrowIn` ,`collateralSpent`, `repayAmount`, `collateralReturn`(Collateral return after repayment), `addCollateral`, `removeCollateral`, `collateralReturnAfterLiquidation`\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [limit] Default: 10; max: 100\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getCryptoLoansIncomeHistory: async (\n asset?: string,\n type?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n limit?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (asset !== undefined && asset !== null) {\n localVarQueryParameter['asset'] = asset;\n }\n if (type !== undefined && type !== null) {\n localVarQueryParameter['type'] = type;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (limit !== undefined && limit !== null) {\n localVarQueryParameter['limit'] = limit;\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/loan/income',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Loan Borrow History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Loan Borrow History(USER_DATA)\n * @param {number | bigint} [orderId] orderId in `POST /sapi/v1/loan/borrow`\n * @param {string} [loanCoin]\n * @param {string} [collateralCoin]\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Current querying page. Start from 1; default: 1; max: 1000\n * @param {number | bigint} [limit] Default: 10; max: 100\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getLoanBorrowHistory: async (\n orderId?: number | bigint,\n loanCoin?: string,\n collateralCoin?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n limit?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (orderId !== undefined && orderId !== null) {\n localVarQueryParameter['orderId'] = orderId;\n }\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (limit !== undefined && limit !== null) {\n localVarQueryParameter['limit'] = limit;\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/loan/borrow/history',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Loan LTV Adjustment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Loan LTV Adjustment History(USER_DATA)\n * @param {number | bigint} [orderId] orderId in `POST /sapi/v1/loan/borrow`\n * @param {string} [loanCoin]\n * @param {string} [collateralCoin]\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Current querying page. Start from 1; default: 1; max: 1000\n * @param {number | bigint} [limit] Default: 10; max: 100\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getLoanLtvAdjustmentHistory: async (\n orderId?: number | bigint,\n loanCoin?: string,\n collateralCoin?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n limit?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (orderId !== undefined && orderId !== null) {\n localVarQueryParameter['orderId'] = orderId;\n }\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (limit !== undefined && limit !== null) {\n localVarQueryParameter['limit'] = limit;\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/loan/ltv/adjustment/history',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n /**\n * Get Loan Repayment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Loan Repayment History(USER_DATA)\n * @param {number | bigint} [orderId] orderId in `POST /sapi/v1/loan/borrow`\n * @param {string} [loanCoin]\n * @param {string} [collateralCoin]\n * @param {number | bigint} [startTime]\n * @param {number | bigint} [endTime]\n * @param {number | bigint} [current] Current querying page. Start from 1; default: 1; max: 1000\n * @param {number | bigint} [limit] Default: 10; max: 100\n * @param {number | bigint} [recvWindow]\n *\n * @throws {RequiredError}\n */\n getLoanRepaymentHistory: async (\n orderId?: number | bigint,\n loanCoin?: string,\n collateralCoin?: string,\n startTime?: number | bigint,\n endTime?: number | bigint,\n current?: number | bigint,\n limit?: number | bigint,\n recvWindow?: number | bigint\n ): Promise<RequestArgs> => {\n const localVarQueryParameter: Record<string, unknown> = {};\n const localVarBodyParameter: Record<string, unknown> = {};\n\n if (orderId !== undefined && orderId !== null) {\n localVarQueryParameter['orderId'] = orderId;\n }\n if (loanCoin !== undefined && loanCoin !== null) {\n localVarQueryParameter['loanCoin'] = loanCoin;\n }\n if (collateralCoin !== undefined && collateralCoin !== null) {\n localVarQueryParameter['collateralCoin'] = collateralCoin;\n }\n if (startTime !== undefined && startTime !== null) {\n localVarQueryParameter['startTime'] = startTime;\n }\n if (endTime !== undefined && endTime !== null) {\n localVarQueryParameter['endTime'] = endTime;\n }\n if (current !== undefined && current !== null) {\n localVarQueryParameter['current'] = current;\n }\n if (limit !== undefined && limit !== null) {\n localVarQueryParameter['limit'] = limit;\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/loan/repay/history',\n method: 'GET',\n queryParams: localVarQueryParameter,\n bodyParams: localVarBodyParameter,\n timeUnit: _timeUnit,\n };\n },\n };\n};\n\n/**\n * StableRateApi - interface\n * @interface StableRateApi\n */\nexport interface StableRateApiInterface {\n /**\n * Get the the rate of collateral coin / loan coin when using collateral repay, the rate will be valid within 8 second.\n *\n * Weight: 6000\n *\n * @summary Check Collateral Repay Rate(USER_DATA)\n * @param {CheckCollateralRepayRateStableRateRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof StableRateApiInterface\n */\n checkCollateralRepayRateStableRate(\n requestParameters: CheckCollateralRepayRateStableRateRequest\n ): Promise<RestApiResponse<CheckCollateralRepayRateStableRateResponse>>;\n /**\n * Get Crypto Loans Income History\n *\n * If startTime and endTime are not sent, the recent 7-day data will be returned.\n * The max interval between startTime and endTime is 30 days.\n *\n * Weight: 6000\n *\n * @summary Get Crypto Loans Income History(USER_DATA)\n * @param {GetCryptoLoansIncomeHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof StableRateApiInterface\n */\n getCryptoLoansIncomeHistory(\n requestParameters?: GetCryptoLoansIncomeHistoryRequest\n ): Promise<RestApiResponse<GetCryptoLoansIncomeHistoryResponse>>;\n /**\n * Get Loan Borrow History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Loan Borrow History(USER_DATA)\n * @param {GetLoanBorrowHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof StableRateApiInterface\n */\n getLoanBorrowHistory(\n requestParameters?: GetLoanBorrowHistoryRequest\n ): Promise<RestApiResponse<GetLoanBorrowHistoryResponse>>;\n /**\n * Get Loan LTV Adjustment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Loan LTV Adjustment History(USER_DATA)\n * @param {GetLoanLtvAdjustmentHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof StableRateApiInterface\n */\n getLoanLtvAdjustmentHistory(\n requestParameters?: GetLoanLtvAdjustmentHistoryRequest\n ): Promise<RestApiResponse<GetLoanLtvAdjustmentHistoryResponse>>;\n /**\n * Get Loan Repayment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Loan Repayment History(USER_DATA)\n * @param {GetLoanRepaymentHistoryRequest} requestParameters Request parameters.\n *\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof StableRateApiInterface\n */\n getLoanRepaymentHistory(\n requestParameters?: GetLoanRepaymentHistoryRequest\n ): Promise<RestApiResponse<GetLoanRepaymentHistoryResponse>>;\n}\n\n/**\n * Request parameters for checkCollateralRepayRateStableRate operation in StableRateApi.\n * @interface CheckCollateralRepayRateStableRateRequest\n */\nexport interface CheckCollateralRepayRateStableRateRequest {\n /**\n *\n * @type {string}\n * @memberof StableRateApiCheckCollateralRepayRateStableRate\n */\n readonly loanCoin: string;\n\n /**\n *\n * @type {string}\n * @memberof StableRateApiCheckCollateralRepayRateStableRate\n */\n readonly collateralCoin: string;\n\n /**\n * repay amount of loanCoin\n * @type {number}\n * @memberof StableRateApiCheckCollateralRepayRateStableRate\n */\n readonly repayAmount: number;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiCheckCollateralRepayRateStableRate\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getCryptoLoansIncomeHistory operation in StableRateApi.\n * @interface GetCryptoLoansIncomeHistoryRequest\n */\nexport interface GetCryptoLoansIncomeHistoryRequest {\n /**\n *\n * @type {string}\n * @memberof StableRateApiGetCryptoLoansIncomeHistory\n */\n readonly asset?: string;\n\n /**\n * All types will be returned by default. Enum:`borrowIn` ,`collateralSpent`, `repayAmount`, `collateralReturn`(Collateral return after repayment), `addCollateral`, `removeCollateral`, `collateralReturnAfterLiquidation`\n * @type {string}\n * @memberof StableRateApiGetCryptoLoansIncomeHistory\n */\n readonly type?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiGetCryptoLoansIncomeHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiGetCryptoLoansIncomeHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Default: 10; max: 100\n * @type {number | bigint}\n * @memberof StableRateApiGetCryptoLoansIncomeHistory\n */\n readonly limit?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiGetCryptoLoansIncomeHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getLoanBorrowHistory operation in StableRateApi.\n * @interface GetLoanBorrowHistoryRequest\n */\nexport interface GetLoanBorrowHistoryRequest {\n /**\n * orderId in `POST /sapi/v1/loan/borrow`\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanBorrowHistory\n */\n readonly orderId?: number | bigint;\n\n /**\n *\n * @type {string}\n * @memberof StableRateApiGetLoanBorrowHistory\n */\n readonly loanCoin?: string;\n\n /**\n *\n * @type {string}\n * @memberof StableRateApiGetLoanBorrowHistory\n */\n readonly collateralCoin?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanBorrowHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanBorrowHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Current querying page. Start from 1; default: 1; max: 1000\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanBorrowHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Default: 10; max: 100\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanBorrowHistory\n */\n readonly limit?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanBorrowHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getLoanLtvAdjustmentHistory operation in StableRateApi.\n * @interface GetLoanLtvAdjustmentHistoryRequest\n */\nexport interface GetLoanLtvAdjustmentHistoryRequest {\n /**\n * orderId in `POST /sapi/v1/loan/borrow`\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanLtvAdjustmentHistory\n */\n readonly orderId?: number | bigint;\n\n /**\n *\n * @type {string}\n * @memberof StableRateApiGetLoanLtvAdjustmentHistory\n */\n readonly loanCoin?: string;\n\n /**\n *\n * @type {string}\n * @memberof StableRateApiGetLoanLtvAdjustmentHistory\n */\n readonly collateralCoin?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanLtvAdjustmentHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanLtvAdjustmentHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Current querying page. Start from 1; default: 1; max: 1000\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanLtvAdjustmentHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Default: 10; max: 100\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanLtvAdjustmentHistory\n */\n readonly limit?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanLtvAdjustmentHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * Request parameters for getLoanRepaymentHistory operation in StableRateApi.\n * @interface GetLoanRepaymentHistoryRequest\n */\nexport interface GetLoanRepaymentHistoryRequest {\n /**\n * orderId in `POST /sapi/v1/loan/borrow`\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanRepaymentHistory\n */\n readonly orderId?: number | bigint;\n\n /**\n *\n * @type {string}\n * @memberof StableRateApiGetLoanRepaymentHistory\n */\n readonly loanCoin?: string;\n\n /**\n *\n * @type {string}\n * @memberof StableRateApiGetLoanRepaymentHistory\n */\n readonly collateralCoin?: string;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanRepaymentHistory\n */\n readonly startTime?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanRepaymentHistory\n */\n readonly endTime?: number | bigint;\n\n /**\n * Current querying page. Start from 1; default: 1; max: 1000\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanRepaymentHistory\n */\n readonly current?: number | bigint;\n\n /**\n * Default: 10; max: 100\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanRepaymentHistory\n */\n readonly limit?: number | bigint;\n\n /**\n *\n * @type {number | bigint}\n * @memberof StableRateApiGetLoanRepaymentHistory\n */\n readonly recvWindow?: number | bigint;\n}\n\n/**\n * StableRateApi - object-oriented interface\n * @class StableRateApi\n */\nexport class StableRateApi implements StableRateApiInterface {\n private readonly configuration: ConfigurationRestAPI;\n private localVarAxiosParamCreator;\n\n constructor(configuration: ConfigurationRestAPI) {\n this.configuration = configuration;\n this.localVarAxiosParamCreator = StableRateApiAxiosParamCreator(configuration);\n }\n\n /**\n * Get the the rate of collateral coin / loan coin when using collateral repay, the rate will be valid within 8 second.\n *\n * Weight: 6000\n *\n * @summary Check Collateral Repay Rate(USER_DATA)\n * @param {CheckCollateralRepayRateStableRateRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<CheckCollateralRepayRateStableRateResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof StableRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Check-Collateral-Repay-Rate Binance API Documentation}\n */\n public async checkCollateralRepayRateStableRate(\n requestParameters: CheckCollateralRepayRateStableRateRequest\n ): Promise<RestApiResponse<CheckCollateralRepayRateStableRateResponse>> {\n const localVarAxiosArgs =\n await this.localVarAxiosParamCreator.checkCollateralRepayRateStableRate(\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.repayAmount,\n requestParameters?.recvWindow\n );\n return sendRequest<CheckCollateralRepayRateStableRateResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Crypto Loans Income History\n *\n * If startTime and endTime are not sent, the recent 7-day data will be returned.\n * The max interval between startTime and endTime is 30 days.\n *\n * Weight: 6000\n *\n * @summary Get Crypto Loans Income History(USER_DATA)\n * @param {GetCryptoLoansIncomeHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetCryptoLoansIncomeHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof StableRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Get-Crypto-Loans-Income-History Binance API Documentation}\n */\n public async getCryptoLoansIncomeHistory(\n requestParameters: GetCryptoLoansIncomeHistoryRequest = {}\n ): Promise<RestApiResponse<GetCryptoLoansIncomeHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCryptoLoansIncomeHistory(\n requestParameters?.asset,\n requestParameters?.type,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.limit,\n requestParameters?.recvWindow\n );\n return sendRequest<GetCryptoLoansIncomeHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Loan Borrow History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Loan Borrow History(USER_DATA)\n * @param {GetLoanBorrowHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetLoanBorrowHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof StableRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/user-information/Get-Loan-Borrow-History Binance API Documentation}\n */\n public async getLoanBorrowHistory(\n requestParameters: GetLoanBorrowHistoryRequest = {}\n ): Promise<RestApiResponse<GetLoanBorrowHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLoanBorrowHistory(\n requestParameters?.orderId,\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.limit,\n requestParameters?.recvWindow\n );\n return sendRequest<GetLoanBorrowHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Loan LTV Adjustment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Loan LTV Adjustment History(USER_DATA)\n * @param {GetLoanLtvAdjustmentHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetLoanLtvAdjustmentHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof StableRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/user-information/Get-Loan-LTV-Adjustment-History Binance API Documentation}\n */\n public async getLoanLtvAdjustmentHistory(\n requestParameters: GetLoanLtvAdjustmentHistoryRequest = {}\n ): Promise<RestApiResponse<GetLoanLtvAdjustmentHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLoanLtvAdjustmentHistory(\n requestParameters?.orderId,\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.limit,\n requestParameters?.recvWindow\n );\n return sendRequest<GetLoanLtvAdjustmentHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n\n /**\n * Get Loan Repayment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Loan Repayment History(USER_DATA)\n * @param {GetLoanRepaymentHistoryRequest} requestParameters Request parameters.\n * @returns {Promise<RestApiResponse<GetLoanRepaymentHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @memberof StableRateApi\n * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/user-information/Get-Loan-Repayment-History Binance API Documentation}\n */\n public async getLoanRepaymentHistory(\n requestParameters: GetLoanRepaymentHistoryRequest = {}\n ): Promise<RestApiResponse<GetLoanRepaymentHistoryResponse>> {\n const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLoanRepaymentHistory(\n requestParameters?.orderId,\n requestParameters?.loanCoin,\n requestParameters?.collateralCoin,\n requestParameters?.startTime,\n requestParameters?.endTime,\n requestParameters?.current,\n requestParameters?.limit,\n requestParameters?.recvWindow\n );\n return sendRequest<GetLoanRepaymentHistoryResponse>(\n this.configuration,\n localVarAxiosArgs.endpoint,\n localVarAxiosArgs.method,\n localVarAxiosArgs.queryParams,\n localVarAxiosArgs.bodyParams,\n localVarAxiosArgs?.timeUnit,\n { isSigned: true }\n );\n }\n}\n","/**\n * Binance Crypto Loan REST API\n *\n * OpenAPI Specification for the Binance Crypto Loan 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 { FlexibleRateApi } from './modules/flexible-rate-api';\nimport { StableRateApi } from './modules/stable-rate-api';\n\nimport type {\n CheckCollateralRepayRateRequest,\n FlexibleLoanAdjustLtvRequest,\n FlexibleLoanBorrowRequest,\n FlexibleLoanRepayRequest,\n GetFlexibleLoanAssetsDataRequest,\n GetFlexibleLoanBorrowHistoryRequest,\n GetFlexibleLoanCollateralAssetsDataRequest,\n GetFlexibleLoanInterestRateHistoryRequest,\n GetFlexibleLoanLiquidationHistoryRequest,\n GetFlexibleLoanLtvAdjustmentHistoryRequest,\n GetFlexibleLoanOngoingOrdersRequest,\n GetFlexibleLoanRepaymentHistoryRequest,\n} from './modules/flexible-rate-api';\nimport type {\n CheckCollateralRepayRateStableRateRequest,\n GetCryptoLoansIncomeHistoryRequest,\n GetLoanBorrowHistoryRequest,\n GetLoanLtvAdjustmentHistoryRequest,\n GetLoanRepaymentHistoryRequest,\n} from './modules/stable-rate-api';\n\nimport type {\n CheckCollateralRepayRateResponse,\n FlexibleLoanAdjustLtvResponse,\n FlexibleLoanBorrowResponse,\n FlexibleLoanRepayResponse,\n GetFlexibleLoanAssetsDataResponse,\n GetFlexibleLoanBorrowHistoryResponse,\n GetFlexibleLoanCollateralAssetsDataResponse,\n GetFlexibleLoanInterestRateHistoryResponse,\n GetFlexibleLoanLiquidationHistoryResponse,\n GetFlexibleLoanLtvAdjustmentHistoryResponse,\n GetFlexibleLoanOngoingOrdersResponse,\n GetFlexibleLoanRepaymentHistoryResponse,\n} from './types';\nimport type {\n CheckCollateralRepayRateStableRateResponse,\n GetCryptoLoansIncomeHistoryResponse,\n GetLoanBorrowHistoryResponse,\n GetLoanLtvAdjustmentHistoryResponse,\n GetLoanRepaymentHistoryResponse,\n} from './types';\n\nexport class RestAPI {\n private configuration: ConfigurationRestAPI;\n private flexibleRateApi: FlexibleRateApi;\n private stableRateApi: StableRateApi;\n\n constructor(configuration: ConfigurationRestAPI) {\n this.configuration = configuration;\n this.flexibleRateApi = new FlexibleRateApi(configuration);\n this.stableRateApi = new StableRateApi(configuration);\n }\n\n /**\n * Generic function to send a request.\n * @param endpoint - The API endpoint to call.\n * @param method - HTTP method to use (GET, POST, DELETE, etc.).\n * @param queryParams - Query parameters for the request.\n * @param bodyParams - Body parameters for the request.\n *\n * @returns A promise resolving to the response data object.\n */\n sendRequest<T>(\n endpoint: string,\n method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH',\n queryParams: Record<string, unknown> = {},\n bodyParams: Record<string, unknown> = {}\n ): Promise<RestApiResponse<T>> {\n return sendRequest<T>(\n this.configuration,\n endpoint,\n method,\n queryParams,\n bodyParams,\n undefined\n );\n }\n\n /**\n * Generic function to send a signed request.\n * @param endpoint - The API endpoint to call.\n * @param method - HTTP method to use (GET, POST, DELETE, etc.).\n * @param queryParams - Query parameters for the request.\n * @param bodyParams - Body parameters for the request.\n *\n * @returns A promise resolving to the response data object.\n */\n sendSignedRequest<T>(\n endpoint: string,\n method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH',\n queryParams: Record<string, unknown> = {},\n bodyParams: Record<string, unknown> = {}\n ): Promise<RestApiResponse<T>> {\n return sendRequest<T>(\n this.configuration,\n endpoint,\n method,\n queryParams,\n bodyParams,\n undefined,\n { isSigned: true }\n );\n }\n\n /**\n *\n * Weight: 6000\n *\n * @summary Check Collateral Repay Rate (USER_DATA)\n * @param {CheckCollateralRepayRateRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<CheckCollateralRepayRateResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Check-Collateral-Repay-Rate Binance API Documentation}\n */\n checkCollateralRepayRate(\n requestParameters: CheckCollateralRepayRateRequest\n ): Promise<RestApiResponse<CheckCollateralRepayRateResponse>> {\n return this.flexibleRateApi.checkCollateralRepayRate(requestParameters);\n }\n\n /**\n * Flexible Loan Adjust LTV\n *\n * API Key needs Spot & Margin Trading permission for this endpoint\n *\n * Weight: 6000\n *\n * @summary Flexible Loan Adjust LTV(TRADE)\n * @param {FlexibleLoanAdjustLtvRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<FlexibleLoanAdjustLtvResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Adjust-LTV Binance API Documentation}\n */\n flexibleLoanAdjustLtv(\n requestParameters: FlexibleLoanAdjustLtvRequest\n ): Promise<RestApiResponse<FlexibleLoanAdjustLtvResponse>> {\n return this.flexibleRateApi.flexibleLoanAdjustLtv(requestParameters);\n }\n\n /**\n * Borrow Flexible Loan\n *\n *\n * This API endpoint is available for both the master account and the sub-account.\n * You can customize LTV by entering loanAmount and collateralAmount.\n *\n * Weight: 6000\n *\n * @summary Flexible Loan Borrow(TRADE)\n * @param {FlexibleLoanBorrowRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<FlexibleLoanBorrowResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Borrow Binance API Documentation}\n */\n flexibleLoanBorrow(\n requestParameters: FlexibleLoanBorrowRequest\n ): Promise<RestApiResponse<FlexibleLoanBorrowResponse>> {\n return this.flexibleRateApi.flexibleLoanBorrow(requestParameters);\n }\n\n /**\n * Flexible Loan Repay\n *\n *\n * repayAmount is mandatory even fullRepayment = FALSE\n *\n * Weight: 6000\n *\n * @summary Flexible Loan Repay(TRADE)\n * @param {FlexibleLoanRepayRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<FlexibleLoanRepayResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Repay Binance API Documentation}\n */\n flexibleLoanRepay(\n requestParameters: FlexibleLoanRepayRequest\n ): Promise<RestApiResponse<FlexibleLoanRepayResponse>> {\n return this.flexibleRateApi.flexibleLoanRepay(requestParameters);\n }\n\n /**\n * Get interest rate and borrow limit of flexible loanable assets. The borrow limit is shown in USD value.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Assets Data(USER_DATA)\n * @param {GetFlexibleLoanAssetsDataRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleLoanAssetsDataResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Assets-Data Binance API Documentation}\n */\n getFlexibleLoanAssetsData(\n requestParameters: GetFlexibleLoanAssetsDataRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanAssetsDataResponse>> {\n return this.flexibleRateApi.getFlexibleLoanAssetsData(requestParameters);\n }\n\n /**\n * Get Flexible Loan Borrow History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Borrow History(USER_DATA)\n * @param {GetFlexibleLoanBorrowHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleLoanBorrowHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-Borrow-History Binance API Documentation}\n */\n getFlexibleLoanBorrowHistory(\n requestParameters: GetFlexibleLoanBorrowHistoryRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanBorrowHistoryResponse>> {\n return this.flexibleRateApi.getFlexibleLoanBorrowHistory(requestParameters);\n }\n\n /**\n * Get LTV information and collateral limit of flexible loan's collateral assets. The collateral limit is shown in USD value.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Collateral Assets Data(USER_DATA)\n * @param {GetFlexibleLoanCollateralAssetsDataRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleLoanCollateralAssetsDataResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Collateral-Assets-Data Binance API Documentation}\n */\n getFlexibleLoanCollateralAssetsData(\n requestParameters: GetFlexibleLoanCollateralAssetsDataRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanCollateralAssetsDataResponse>> {\n return this.flexibleRateApi.getFlexibleLoanCollateralAssetsData(requestParameters);\n }\n\n /**\n * Check Flexible Loan interest rate history\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned\n * The max interval between startTime and endTime is 90 days.\n * Time based on UTC+0.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Interest Rate History (USER_DATA)\n * @param {GetFlexibleLoanInterestRateHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleLoanInterestRateHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Interest-Rate-History Binance API Documentation}\n */\n getFlexibleLoanInterestRateHistory(\n requestParameters: GetFlexibleLoanInterestRateHistoryRequest\n ): Promise<RestApiResponse<GetFlexibleLoanInterestRateHistoryResponse>> {\n return this.flexibleRateApi.getFlexibleLoanInterestRateHistory(requestParameters);\n }\n\n /**\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Liquidation History (USER_DATA)\n * @param {GetFlexibleLoanLiquidationHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleLoanLiquidationHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-Liquidation-History Binance API Documentation}\n */\n getFlexibleLoanLiquidationHistory(\n requestParameters: GetFlexibleLoanLiquidationHistoryRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanLiquidationHistoryResponse>> {\n return this.flexibleRateApi.getFlexibleLoanLiquidationHistory(requestParameters);\n }\n\n /**\n * Get Flexible Loan LTV Adjustment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan LTV Adjustment History(USER_DATA)\n * @param {GetFlexibleLoanLtvAdjustmentHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleLoanLtvAdjustmentHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-LTV-Adjustment-History Binance API Documentation}\n */\n getFlexibleLoanLtvAdjustmentHistory(\n requestParameters: GetFlexibleLoanLtvAdjustmentHistoryRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanLtvAdjustmentHistoryResponse>> {\n return this.flexibleRateApi.getFlexibleLoanLtvAdjustmentHistory(requestParameters);\n }\n\n /**\n * Get Flexible Loan Ongoing Orders\n *\n * Weight: 300\n *\n * @summary Get Flexible Loan Ongoing Orders(USER_DATA)\n * @param {GetFlexibleLoanOngoingOrdersRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleLoanOngoingOrdersResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-Ongoing-Orders Binance API Documentation}\n */\n getFlexibleLoanOngoingOrders(\n requestParameters: GetFlexibleLoanOngoingOrdersRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanOngoingOrdersResponse>> {\n return this.flexibleRateApi.getFlexibleLoanOngoingOrders(requestParameters);\n }\n\n /**\n * Get Flexible Loan Repayment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Flexible Loan Repayment History(USER_DATA)\n * @param {GetFlexibleLoanRepaymentHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetFlexibleLoanRepaymentHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-Repayment-History Binance API Documentation}\n */\n getFlexibleLoanRepaymentHistory(\n requestParameters: GetFlexibleLoanRepaymentHistoryRequest = {}\n ): Promise<RestApiResponse<GetFlexibleLoanRepaymentHistoryResponse>> {\n return this.flexibleRateApi.getFlexibleLoanRepaymentHistory(requestParameters);\n }\n\n /**\n * Get the the rate of collateral coin / loan coin when using collateral repay, the rate will be valid within 8 second.\n *\n * Weight: 6000\n *\n * @summary Check Collateral Repay Rate(USER_DATA)\n * @param {CheckCollateralRepayRateStableRateRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<CheckCollateralRepayRateStableRateResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Check-Collateral-Repay-Rate Binance API Documentation}\n */\n checkCollateralRepayRateStableRate(\n requestParameters: CheckCollateralRepayRateStableRateRequest\n ): Promise<RestApiResponse<CheckCollateralRepayRateStableRateResponse>> {\n return this.stableRateApi.checkCollateralRepayRateStableRate(requestParameters);\n }\n\n /**\n * Get Crypto Loans Income History\n *\n * If startTime and endTime are not sent, the recent 7-day data will be returned.\n * The max interval between startTime and endTime is 30 days.\n *\n * Weight: 6000\n *\n * @summary Get Crypto Loans Income History(USER_DATA)\n * @param {GetCryptoLoansIncomeHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetCryptoLoansIncomeHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Get-Crypto-Loans-Income-History Binance API Documentation}\n */\n getCryptoLoansIncomeHistory(\n requestParameters: GetCryptoLoansIncomeHistoryRequest = {}\n ): Promise<RestApiResponse<GetCryptoLoansIncomeHistoryResponse>> {\n return this.stableRateApi.getCryptoLoansIncomeHistory(requestParameters);\n }\n\n /**\n * Get Loan Borrow History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Loan Borrow History(USER_DATA)\n * @param {GetLoanBorrowHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetLoanBorrowHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/user-information/Get-Loan-Borrow-History Binance API Documentation}\n */\n getLoanBorrowHistory(\n requestParameters: GetLoanBorrowHistoryRequest = {}\n ): Promise<RestApiResponse<GetLoanBorrowHistoryResponse>> {\n return this.stableRateApi.getLoanBorrowHistory(requestParameters);\n }\n\n /**\n * Get Loan LTV Adjustment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Loan LTV Adjustment History(USER_DATA)\n * @param {GetLoanLtvAdjustmentHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetLoanLtvAdjustmentHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/user-information/Get-Loan-LTV-Adjustment-History Binance API Documentation}\n */\n getLoanLtvAdjustmentHistory(\n requestParameters: GetLoanLtvAdjustmentHistoryRequest = {}\n ): Promise<RestApiResponse<GetLoanLtvAdjustmentHistoryResponse>> {\n return this.stableRateApi.getLoanLtvAdjustmentHistory(requestParameters);\n }\n\n /**\n * Get Loan Repayment History\n *\n * If startTime and endTime are not sent, the recent 90-day data will be returned.\n * The max interval between startTime and endTime is 180 days.\n *\n * Weight: 400\n *\n * @summary Get Loan Repayment History(USER_DATA)\n * @param {GetLoanRepaymentHistoryRequest} requestParameters Request parameters.\n *\n * @returns {Promise<RestApiResponse<GetLoanRepaymentHistoryResponse>>}\n * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}\n * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/user-information/Get-Loan-Repayment-History Binance API Documentation}\n */\n getLoanRepaymentHistory(\n requestParameters: GetLoanRepaymentHistoryRequest = {}\n ): Promise<RestApiResponse<GetLoanRepaymentHistoryResponse>> {\n return this.stableRateApi.getLoanRepaymentHistory(requestParameters);\n }\n}\n","/**\n * Binance Crypto Loan REST API\n *\n * OpenAPI Specification for the Binance Crypto Loan REST API\n *\n * The version of the OpenAPI document: 1.0.0\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nexport * from './types';\nexport * from './modules';\nexport * from './rest-api';\n","import {\n buildUserAgent,\n ConfigurationRestAPI,\n CRYPTO_LOAN_REST_API_PROD_URL,\n} from '@binance/common';\nimport { name, version } from '../package.json';\nimport { RestAPI } from './rest-api';\n\nexport interface ConfigurationCryptoLoan {\n configurationRestAPI?: ConfigurationRestAPI;\n}\n\nexport class CryptoLoan {\n public restAPI!: RestAPI;\n\n constructor(config: ConfigurationCryptoLoan) {\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 || CRYPTO_LOAN_REST_API_PROD_URL;\n configRestAPI.baseOptions = configRestAPI.baseOptions || {};\n configRestAPI.baseOptions.headers = {\n ...(configRestAPI.baseOptions.headers || {}),\n 'User-Agent': userAgent,\n };\n this.restAPI = new RestAPI(configRestAPI);\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;WACY;cAEG;;;;;;;;;;;;;;;;;;;ACoCf,MAAM,mCAAmC,SAAU,eAAqC;AACpF,QAAO;EAYH,0BAA0B,OACtB,UACA,gBACA,eACuB;AAEvB,2CAAkB,4BAA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