UNPKG

@binance/wallet

Version:

Official Binance Wallet Connector - A lightweight library that provides a convenient interface to Binance's Wallet REST API.

2,231 lines (2,227 loc) 248 kB
import { BadRequestError, ConfigurationRestAPI, ConnectorClientError, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, RestApiResponse, ServerError, TooManyRequestsError, UnauthorizedError, WALLET_REST_API_PROD_URL } from "@binance/common"; //#region src/rest-api/types/account-api-trading-status-response-data-trigger-condition.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AccountApiTradingStatusResponseDataTriggerCondition */ interface AccountApiTradingStatusResponseDataTriggerCondition { /** * * @type {number | bigint} * @memberof AccountApiTradingStatusResponseDataTriggerCondition */ GCR?: number | bigint; /** * * @type {number | bigint} * @memberof AccountApiTradingStatusResponseDataTriggerCondition */ IFER?: number | bigint; /** * * @type {number | bigint} * @memberof AccountApiTradingStatusResponseDataTriggerCondition */ UFR?: number | bigint; } //#endregion //#region src/rest-api/types/account-api-trading-status-response-data.d.ts /** * * @export * @interface AccountApiTradingStatusResponseData */ interface AccountApiTradingStatusResponseData { /** * * @type {boolean} * @memberof AccountApiTradingStatusResponseData */ isLocked?: boolean; /** * * @type {number | bigint} * @memberof AccountApiTradingStatusResponseData */ plannedRecoverTime?: number | bigint; /** * * @type {AccountApiTradingStatusResponseDataTriggerCondition} * @memberof AccountApiTradingStatusResponseData */ triggerCondition?: AccountApiTradingStatusResponseDataTriggerCondition; /** * * @type {number | bigint} * @memberof AccountApiTradingStatusResponseData */ updateTime?: number | bigint; } //#endregion //#region src/rest-api/types/account-api-trading-status-response.d.ts /** * * @export * @interface AccountApiTradingStatusResponse */ interface AccountApiTradingStatusResponse { /** * * @type {AccountApiTradingStatusResponseData} * @memberof AccountApiTradingStatusResponse */ data?: AccountApiTradingStatusResponseData; } //#endregion //#region src/rest-api/types/account-info-response.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AccountInfoResponse */ interface AccountInfoResponse { /** * * @type {number | bigint} * @memberof AccountInfoResponse */ vipLevel?: number | bigint; /** * * @type {boolean} * @memberof AccountInfoResponse */ isMarginEnabled?: boolean; /** * * @type {boolean} * @memberof AccountInfoResponse */ isFutureEnabled?: boolean; /** * * @type {boolean} * @memberof AccountInfoResponse */ isOptionsEnabled?: boolean; /** * * @type {boolean} * @memberof AccountInfoResponse */ isPortfolioMarginRetailEnabled?: boolean; } //#endregion //#region src/rest-api/types/account-status-response.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AccountStatusResponse */ interface AccountStatusResponse { /** * * @type {string} * @memberof AccountStatusResponse */ data?: string; } //#endregion //#region src/rest-api/types/all-coins-information-response-inner-network-list-inner.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AllCoinsInformationResponseInnerNetworkListInner */ interface AllCoinsInformationResponseInnerNetworkListInner { /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ network?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ coin?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ withdrawIntegerMultiple?: string; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ isDefault?: boolean; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ depositEnable?: boolean; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ withdrawEnable?: boolean; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ depositDesc?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ withdrawDesc?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ specialTips?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ specialWithdrawTips?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ name?: string; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ resetAddressStatus?: boolean; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ addressRegex?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ memoRegex?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ withdrawFee?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ withdrawMin?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ withdrawMax?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ withdrawInternalMin?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ depositDust?: string; /** * * @type {number | bigint} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ minConfirm?: number | bigint; /** * * @type {number | bigint} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ unLockConfirm?: number | bigint; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ sameAddress?: boolean; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ withdrawTag?: boolean; /** * * @type {number | bigint} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ estimatedArrivalTime?: number | bigint; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ busy?: boolean; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ contractAddressUrl?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ contractAddress?: string; /** * * @type {number | bigint} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ denomination?: number | bigint; } //#endregion //#region src/rest-api/types/all-coins-information-response-inner.d.ts /** * * @export * @interface AllCoinsInformationResponseInner */ interface AllCoinsInformationResponseInner { /** * * @type {string} * @memberof AllCoinsInformationResponseInner */ coin?: string; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInner */ depositAllEnable?: boolean; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInner */ withdrawAllEnable?: boolean; /** * * @type {string} * @memberof AllCoinsInformationResponseInner */ name?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInner */ free?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInner */ locked?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInner */ freeze?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInner */ withdrawing?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInner */ ipoing?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInner */ ipoable?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInner */ storage?: string; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInner */ isLegalMoney?: boolean; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInner */ trading?: boolean; /** * * @type {Array<AllCoinsInformationResponseInnerNetworkListInner>} * @memberof AllCoinsInformationResponseInner */ networkList?: Array<AllCoinsInformationResponseInnerNetworkListInner>; } //#endregion //#region src/rest-api/types/all-coins-information-response.d.ts /** * * @export * @interface AllCoinsInformationResponse */ interface AllCoinsInformationResponse extends Array<AllCoinsInformationResponseInner> {} //#endregion //#region src/rest-api/types/asset-detail-response-ctr.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AssetDetailResponseCTR */ interface AssetDetailResponseCTR { /** * * @type {string} * @memberof AssetDetailResponseCTR */ minWithdrawAmount?: string; /** * * @type {boolean} * @memberof AssetDetailResponseCTR */ depositStatus?: boolean; /** * * @type {number | bigint} * @memberof AssetDetailResponseCTR */ withdrawFee?: number | bigint; /** * * @type {boolean} * @memberof AssetDetailResponseCTR */ withdrawStatus?: boolean; /** * * @type {string} * @memberof AssetDetailResponseCTR */ depositTip?: string; } //#endregion //#region src/rest-api/types/asset-detail-response-sky.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AssetDetailResponseSKY */ interface AssetDetailResponseSKY { /** * * @type {string} * @memberof AssetDetailResponseSKY */ minWithdrawAmount?: string; /** * * @type {boolean} * @memberof AssetDetailResponseSKY */ depositStatus?: boolean; /** * * @type {number} * @memberof AssetDetailResponseSKY */ withdrawFee?: number; /** * * @type {boolean} * @memberof AssetDetailResponseSKY */ withdrawStatus?: boolean; } //#endregion //#region src/rest-api/types/asset-detail-response.d.ts /** * * @export * @interface AssetDetailResponse */ interface AssetDetailResponse { /** * * @type {AssetDetailResponseCTR} * @memberof AssetDetailResponse */ CTR?: AssetDetailResponseCTR; /** * * @type {AssetDetailResponseSKY} * @memberof AssetDetailResponse */ SKY?: AssetDetailResponseSKY; } //#endregion //#region src/rest-api/types/asset-dividend-record-response-rows-inner.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AssetDividendRecordResponseRowsInner */ interface AssetDividendRecordResponseRowsInner { /** * * @type {number | bigint} * @memberof AssetDividendRecordResponseRowsInner */ id?: number | bigint; /** * * @type {string} * @memberof AssetDividendRecordResponseRowsInner */ amount?: string; /** * * @type {string} * @memberof AssetDividendRecordResponseRowsInner */ asset?: string; /** * * @type {number | bigint} * @memberof AssetDividendRecordResponseRowsInner */ divTime?: number | bigint; /** * * @type {string} * @memberof AssetDividendRecordResponseRowsInner */ enInfo?: string; /** * * @type {number | bigint} * @memberof AssetDividendRecordResponseRowsInner */ tranId?: number | bigint; } //#endregion //#region src/rest-api/types/asset-dividend-record-response.d.ts /** * * @export * @interface AssetDividendRecordResponse */ interface AssetDividendRecordResponse { /** * * @type {Array<AssetDividendRecordResponseRowsInner>} * @memberof AssetDividendRecordResponse */ rows?: Array<AssetDividendRecordResponseRowsInner>; /** * * @type {number | bigint} * @memberof AssetDividendRecordResponse */ total?: number | bigint; } //#endregion //#region src/rest-api/types/broker-withdraw-response.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface BrokerWithdrawResponse */ interface BrokerWithdrawResponse { /** * * @type {number | bigint} * @memberof BrokerWithdrawResponse */ trId?: number | bigint; /** * * @type {boolean} * @memberof BrokerWithdrawResponse */ accpted?: boolean; /** * * @type {string} * @memberof BrokerWithdrawResponse */ info?: string; } //#endregion //#region src/rest-api/types/check-questionnaire-requirements-response.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface CheckQuestionnaireRequirementsResponse */ interface CheckQuestionnaireRequirementsResponse { /** * * @type {string} * @memberof CheckQuestionnaireRequirementsResponse */ questionnaireCountryCode?: string; } //#endregion //#region src/rest-api/types/daily-account-snapshot-response-snapshot-vos-inner-data-assets-inner.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface DailyAccountSnapshotResponseSnapshotVosInnerDataAssetsInner */ interface DailyAccountSnapshotResponseSnapshotVosInnerDataAssetsInner { /** * * @type {string} * @memberof DailyAccountSnapshotResponseSnapshotVosInnerDataAssetsInner */ asset?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponseSnapshotVosInnerDataAssetsInner */ marginBalance?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponseSnapshotVosInnerDataAssetsInner */ walletBalance?: string; } //#endregion //#region src/rest-api/types/daily-account-snapshot-response-snapshot-vos-inner-data-balances-inner.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface DailyAccountSnapshotResponseSnapshotVosInnerDataBalancesInner */ interface DailyAccountSnapshotResponseSnapshotVosInnerDataBalancesInner { /** * * @type {string} * @memberof DailyAccountSnapshotResponseSnapshotVosInnerDataBalancesInner */ asset?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponseSnapshotVosInnerDataBalancesInner */ free?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponseSnapshotVosInnerDataBalancesInner */ locked?: string; } //#endregion //#region src/rest-api/types/daily-account-snapshot-response-snapshot-vos-inner-data-position-inner.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface DailyAccountSnapshotResponseSnapshotVosInnerDataPositionInner */ interface DailyAccountSnapshotResponseSnapshotVosInnerDataPositionInner { /** * * @type {string} * @memberof DailyAccountSnapshotResponseSnapshotVosInnerDataPositionInner */ entryPrice?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponseSnapshotVosInnerDataPositionInner */ markPrice?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponseSnapshotVosInnerDataPositionInner */ positionAmt?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponseSnapshotVosInnerDataPositionInner */ symbol?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponseSnapshotVosInnerDataPositionInner */ unRealizedProfit?: string; } //#endregion //#region src/rest-api/types/daily-account-snapshot-response-snapshot-vos-inner-data-user-assets-inner.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface DailyAccountSnapshotResponseSnapshotVosInnerDataUserAssetsInner */ interface DailyAccountSnapshotResponseSnapshotVosInnerDataUserAssetsInner { /** * * @type {string} * @memberof DailyAccountSnapshotResponseSnapshotVosInnerDataUserAssetsInner */ asset?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponseSnapshotVosInnerDataUserAssetsInner */ borrowed?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponseSnapshotVosInnerDataUserAssetsInner */ free?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponseSnapshotVosInnerDataUserAssetsInner */ interest?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponseSnapshotVosInnerDataUserAssetsInner */ locked?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponseSnapshotVosInnerDataUserAssetsInner */ netAsset?: string; } //#endregion //#region src/rest-api/types/daily-account-snapshot-response-snapshot-vos-inner-data.d.ts /** * * @export * @interface DailyAccountSnapshotResponseSnapshotVosInnerData */ interface DailyAccountSnapshotResponseSnapshotVosInnerData { /** * * @type {Array<DailyAccountSnapshotResponseSnapshotVosInnerDataBalancesInner>} * @memberof DailyAccountSnapshotResponseSnapshotVosInnerData */ balances?: Array<DailyAccountSnapshotResponseSnapshotVosInnerDataBalancesInner>; /** * * @type {string} * @memberof DailyAccountSnapshotResponseSnapshotVosInnerData */ totalAssetOfBtc?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponseSnapshotVosInnerData */ marginLevel?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponseSnapshotVosInnerData */ totalLiabilityOfBtc?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponseSnapshotVosInnerData */ totalNetAssetOfBtc?: string; /** * * @type {Array<DailyAccountSnapshotResponseSnapshotVosInnerDataUserAssetsInner>} * @memberof DailyAccountSnapshotResponseSnapshotVosInnerData */ userAssets?: Array<DailyAccountSnapshotResponseSnapshotVosInnerDataUserAssetsInner>; /** * * @type {Array<DailyAccountSnapshotResponseSnapshotVosInnerDataAssetsInner>} * @memberof DailyAccountSnapshotResponseSnapshotVosInnerData */ assets?: Array<DailyAccountSnapshotResponseSnapshotVosInnerDataAssetsInner>; /** * * @type {Array<DailyAccountSnapshotResponseSnapshotVosInnerDataPositionInner>} * @memberof DailyAccountSnapshotResponseSnapshotVosInnerData */ position?: Array<DailyAccountSnapshotResponseSnapshotVosInnerDataPositionInner>; } //#endregion //#region src/rest-api/types/daily-account-snapshot-response-snapshot-vos-inner.d.ts /** * * @export * @interface DailyAccountSnapshotResponseSnapshotVosInner */ interface DailyAccountSnapshotResponseSnapshotVosInner { /** * * @type {DailyAccountSnapshotResponseSnapshotVosInnerData} * @memberof DailyAccountSnapshotResponseSnapshotVosInner */ data?: DailyAccountSnapshotResponseSnapshotVosInnerData; /** * * @type {string} * @memberof DailyAccountSnapshotResponseSnapshotVosInner */ type?: string; /** * * @type {number | bigint} * @memberof DailyAccountSnapshotResponseSnapshotVosInner */ updateTime?: number | bigint; } //#endregion //#region src/rest-api/types/daily-account-snapshot-response.d.ts /** * * @export * @interface DailyAccountSnapshotResponse */ interface DailyAccountSnapshotResponse { /** * * @type {number | bigint} * @memberof DailyAccountSnapshotResponse */ code?: number | bigint; /** * * @type {string} * @memberof DailyAccountSnapshotResponse */ msg?: string; /** * * @type {Array<DailyAccountSnapshotResponseSnapshotVosInner>} * @memberof DailyAccountSnapshotResponse */ snapshotVos?: Array<DailyAccountSnapshotResponseSnapshotVosInner>; } //#endregion //#region src/rest-api/types/deposit-address-response.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface DepositAddressResponse */ interface DepositAddressResponse { /** * * @type {string} * @memberof DepositAddressResponse */ address?: string; /** * * @type {string} * @memberof DepositAddressResponse */ coin?: string; /** * * @type {string} * @memberof DepositAddressResponse */ tag?: string; /** * * @type {string} * @memberof DepositAddressResponse */ url?: string; } //#endregion //#region src/rest-api/types/deposit-history-response-inner.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface DepositHistoryResponseInner */ interface DepositHistoryResponseInner { /** * * @type {string} * @memberof DepositHistoryResponseInner */ id?: string; /** * * @type {string} * @memberof DepositHistoryResponseInner */ amount?: string; /** * * @type {string} * @memberof DepositHistoryResponseInner */ coin?: string; /** * * @type {string} * @memberof DepositHistoryResponseInner */ network?: string; /** * * @type {number | bigint} * @memberof DepositHistoryResponseInner */ status?: number | bigint; /** * * @type {string} * @memberof DepositHistoryResponseInner */ address?: string; /** * * @type {string} * @memberof DepositHistoryResponseInner */ addressTag?: string; /** * * @type {string} * @memberof DepositHistoryResponseInner */ txId?: string; /** * * @type {number | bigint} * @memberof DepositHistoryResponseInner */ insertTime?: number | bigint; /** * * @type {number | bigint} * @memberof DepositHistoryResponseInner */ completeTime?: number | bigint; /** * * @type {number | bigint} * @memberof DepositHistoryResponseInner */ transferType?: number | bigint; /** * * @type {string} * @memberof DepositHistoryResponseInner */ confirmTimes?: string; /** * * @type {number | bigint} * @memberof DepositHistoryResponseInner */ unlockConfirm?: number | bigint; /** * * @type {number | bigint} * @memberof DepositHistoryResponseInner */ walletType?: number | bigint; /** * * @type {number | bigint} * @memberof DepositHistoryResponseInner */ travelRuleStatus?: number | bigint; } //#endregion //#region src/rest-api/types/deposit-history-response.d.ts /** * * @export * @interface DepositHistoryResponse */ interface DepositHistoryResponse extends Array<DepositHistoryResponseInner> {} //#endregion //#region src/rest-api/types/deposit-history-travel-rule-response-inner.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface DepositHistoryTravelRuleResponseInner */ interface DepositHistoryTravelRuleResponseInner { /** * * @type {number | bigint} * @memberof DepositHistoryTravelRuleResponseInner */ trId?: number | bigint; /** * * @type {number | bigint} * @memberof DepositHistoryTravelRuleResponseInner */ tranId?: number | bigint; /** * * @type {string} * @memberof DepositHistoryTravelRuleResponseInner */ amount?: string; /** * * @type {string} * @memberof DepositHistoryTravelRuleResponseInner */ coin?: string; /** * * @type {string} * @memberof DepositHistoryTravelRuleResponseInner */ network?: string; /** * * @type {number | bigint} * @memberof DepositHistoryTravelRuleResponseInner */ depositStatus?: number | bigint; /** * * @type {number | bigint} * @memberof DepositHistoryTravelRuleResponseInner */ travelRuleStatus?: number | bigint; /** * * @type {string} * @memberof DepositHistoryTravelRuleResponseInner */ address?: string; /** * * @type {string} * @memberof DepositHistoryTravelRuleResponseInner */ addressTag?: string; /** * * @type {string} * @memberof DepositHistoryTravelRuleResponseInner */ txId?: string; /** * * @type {number | bigint} * @memberof DepositHistoryTravelRuleResponseInner */ insertTime?: number | bigint; /** * * @type {number | bigint} * @memberof DepositHistoryTravelRuleResponseInner */ transferType?: number | bigint; /** * * @type {string} * @memberof DepositHistoryTravelRuleResponseInner */ confirmTimes?: string; /** * * @type {number | bigint} * @memberof DepositHistoryTravelRuleResponseInner */ unlockConfirm?: number | bigint; /** * * @type {number | bigint} * @memberof DepositHistoryTravelRuleResponseInner */ walletType?: number | bigint; /** * * @type {boolean} * @memberof DepositHistoryTravelRuleResponseInner */ requireQuestionnaire?: boolean; /** * * @type {string} * @memberof DepositHistoryTravelRuleResponseInner */ questionnaire?: string; } //#endregion //#region src/rest-api/types/deposit-history-travel-rule-response.d.ts /** * * @export * @interface DepositHistoryTravelRuleResponse */ interface DepositHistoryTravelRuleResponse extends Array<DepositHistoryTravelRuleResponseInner> {} //#endregion //#region src/rest-api/types/deposit-history-v2-response-inner-questionnaire.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface DepositHistoryV2ResponseInnerQuestionnaire */ interface DepositHistoryV2ResponseInnerQuestionnaire { /** * * @type {string} * @memberof DepositHistoryV2ResponseInnerQuestionnaire */ vaspName?: string; /** * * @type {number | bigint} * @memberof DepositHistoryV2ResponseInnerQuestionnaire */ depositOriginator?: number | bigint; } //#endregion //#region src/rest-api/types/deposit-history-v2-response-inner.d.ts /** * * @export * @interface DepositHistoryV2ResponseInner */ interface DepositHistoryV2ResponseInner { /** * * @type {string} * @memberof DepositHistoryV2ResponseInner */ depositId?: string; /** * * @type {string} * @memberof DepositHistoryV2ResponseInner */ amount?: string; /** * * @type {string} * @memberof DepositHistoryV2ResponseInner */ network?: string; /** * * @type {string} * @memberof DepositHistoryV2ResponseInner */ coin?: string; /** * * @type {number | bigint} * @memberof DepositHistoryV2ResponseInner */ depositStatus?: number | bigint; /** * * @type {number | bigint} * @memberof DepositHistoryV2ResponseInner */ travelRuleReqStatus?: number | bigint; /** * * @type {string} * @memberof DepositHistoryV2ResponseInner */ address?: string; /** * * @type {string} * @memberof DepositHistoryV2ResponseInner */ addressTag?: string; /** * * @type {string} * @memberof DepositHistoryV2ResponseInner */ txId?: string; /** * * @type {number | bigint} * @memberof DepositHistoryV2ResponseInner */ transferType?: number | bigint; /** * * @type {string} * @memberof DepositHistoryV2ResponseInner */ confirmTimes?: string; /** * * @type {boolean} * @memberof DepositHistoryV2ResponseInner */ requireQuestionnaire?: boolean; /** * * @type {DepositHistoryV2ResponseInnerQuestionnaire} * @memberof DepositHistoryV2ResponseInner */ questionnaire?: DepositHistoryV2ResponseInnerQuestionnaire; /** * * @type {number | bigint} * @memberof DepositHistoryV2ResponseInner */ insertTime?: number | bigint; } //#endregion //#region src/rest-api/types/deposit-history-v2-response.d.ts /** * * @export * @interface DepositHistoryV2Response */ interface DepositHistoryV2Response extends Array<DepositHistoryV2ResponseInner> {} //#endregion //#region src/rest-api/types/dust-convert-response-transfer-result-inner.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface DustConvertResponseTransferResultInner */ interface DustConvertResponseTransferResultInner { /** * * @type {number | bigint} * @memberof DustConvertResponseTransferResultInner */ tranId?: number | bigint; /** * * @type {string} * @memberof DustConvertResponseTransferResultInner */ fromAsset?: string; /** * * @type {string} * @memberof DustConvertResponseTransferResultInner */ amount?: string; /** * * @type {string} * @memberof DustConvertResponseTransferResultInner */ transferedAmount?: string; /** * * @type {string} * @memberof DustConvertResponseTransferResultInner */ serviceChargeAmount?: string; /** * * @type {number | bigint} * @memberof DustConvertResponseTransferResultInner */ operateTime?: number | bigint; } //#endregion //#region src/rest-api/types/dust-convert-response.d.ts /** * * @export * @interface DustConvertResponse */ interface DustConvertResponse { /** * * @type {string} * @memberof DustConvertResponse */ totalTransfered?: string; /** * * @type {string} * @memberof DustConvertResponse */ totalServiceCharge?: string; /** * * @type {Array<DustConvertResponseTransferResultInner>} * @memberof DustConvertResponse */ transferResult?: Array<DustConvertResponseTransferResultInner>; } //#endregion //#region src/rest-api/types/dust-convertible-assets-response-details-inner.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface DustConvertibleAssetsResponseDetailsInner */ interface DustConvertibleAssetsResponseDetailsInner { /** * * @type {string} * @memberof DustConvertibleAssetsResponseDetailsInner */ asset?: string; /** * * @type {string} * @memberof DustConvertibleAssetsResponseDetailsInner */ assetFullName?: string; /** * * @type {string} * @memberof DustConvertibleAssetsResponseDetailsInner */ amountFree?: string; /** * * @type {string} * @memberof DustConvertibleAssetsResponseDetailsInner */ exchange?: string; /** * * @type {string} * @memberof DustConvertibleAssetsResponseDetailsInner */ toQuotaAssetAmount?: string; /** * * @type {string} * @memberof DustConvertibleAssetsResponseDetailsInner */ toTargetAssetAmount?: string; /** * * @type {string} * @memberof DustConvertibleAssetsResponseDetailsInner */ toTargetAssetOffExchange?: string; } //#endregion //#region src/rest-api/types/dust-convertible-assets-response.d.ts /** * * @export * @interface DustConvertibleAssetsResponse */ interface DustConvertibleAssetsResponse { /** * * @type {string} * @memberof DustConvertibleAssetsResponse */ dribbletPercentage?: string; /** * * @type {string} * @memberof DustConvertibleAssetsResponse */ totalTransferQuotaAssetAmount?: string; /** * * @type {string} * @memberof DustConvertibleAssetsResponse */ totalTransferTargetAssetAmount?: string; /** * * @type {string} * @memberof DustConvertibleAssetsResponse */ dribbletBase?: string; /** * * @type {Array<DustConvertibleAssetsResponseDetailsInner>} * @memberof DustConvertibleAssetsResponse */ details?: Array<DustConvertibleAssetsResponseDetailsInner>; } //#endregion //#region src/rest-api/types/dust-transfer-response-transfer-result-inner.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface DustTransferResponseTransferResultInner */ interface DustTransferResponseTransferResultInner { /** * * @type {string} * @memberof DustTransferResponseTransferResultInner */ amount?: string; /** * * @type {string} * @memberof DustTransferResponseTransferResultInner */ fromAsset?: string; /** * * @type {number | bigint} * @memberof DustTransferResponseTransferResultInner */ operateTime?: number | bigint; /** * * @type {string} * @memberof DustTransferResponseTransferResultInner */ serviceChargeAmount?: string; /** * * @type {number | bigint} * @memberof DustTransferResponseTransferResultInner */ tranId?: number | bigint; /** * * @type {string} * @memberof DustTransferResponseTransferResultInner */ transferedAmount?: string; } //#endregion //#region src/rest-api/types/dust-transfer-response.d.ts /** * * @export * @interface DustTransferResponse */ interface DustTransferResponse { /** * * @type {string} * @memberof DustTransferResponse */ totalServiceCharge?: string; /** * * @type {string} * @memberof DustTransferResponse */ totalTransfered?: string; /** * * @type {Array<DustTransferResponseTransferResultInner>} * @memberof DustTransferResponse */ transferResult?: Array<DustTransferResponseTransferResultInner>; } //#endregion //#region src/rest-api/types/dustlog-response-user-asset-dribblets-inner-user-asset-dribblet-details-inner.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface DustlogResponseUserAssetDribbletsInnerUserAssetDribbletDetailsInner */ interface DustlogResponseUserAssetDribbletsInnerUserAssetDribbletDetailsInner { /** * * @type {number | bigint} * @memberof DustlogResponseUserAssetDribbletsInnerUserAssetDribbletDetailsInner */ transId?: number | bigint; /** * * @type {string} * @memberof DustlogResponseUserAssetDribbletsInnerUserAssetDribbletDetailsInner */ serviceChargeAmount?: string; /** * * @type {string} * @memberof DustlogResponseUserAssetDribbletsInnerUserAssetDribbletDetailsInner */ amount?: string; /** * * @type {number | bigint} * @memberof DustlogResponseUserAssetDribbletsInnerUserAssetDribbletDetailsInner */ operateTime?: number | bigint; /** * * @type {string} * @memberof DustlogResponseUserAssetDribbletsInnerUserAssetDribbletDetailsInner */ transferedAmount?: string; /** * * @type {string} * @memberof DustlogResponseUserAssetDribbletsInnerUserAssetDribbletDetailsInner */ fromAsset?: string; } //#endregion //#region src/rest-api/types/dustlog-response-user-asset-dribblets-inner.d.ts /** * * @export * @interface DustlogResponseUserAssetDribbletsInner */ interface DustlogResponseUserAssetDribbletsInner { /** * * @type {number | bigint} * @memberof DustlogResponseUserAssetDribbletsInner */ operateTime?: number | bigint; /** * * @type {string} * @memberof DustlogResponseUserAssetDribbletsInner */ totalTransferedAmount?: string; /** * * @type {string} * @memberof DustlogResponseUserAssetDribbletsInner */ totalServiceChargeAmount?: string; /** * * @type {number | bigint} * @memberof DustlogResponseUserAssetDribbletsInner */ transId?: number | bigint; /** * * @type {Array<DustlogResponseUserAssetDribbletsInnerUserAssetDribbletDetailsInner>} * @memberof DustlogResponseUserAssetDribbletsInner */ userAssetDribbletDetails?: Array<DustlogResponseUserAssetDribbletsInnerUserAssetDribbletDetailsInner>; } //#endregion //#region src/rest-api/types/dustlog-response.d.ts /** * * @export * @interface DustlogResponse */ interface DustlogResponse { /** * * @type {number | bigint} * @memberof DustlogResponse */ total?: number | bigint; /** * * @type {Array<DustlogResponseUserAssetDribbletsInner>} * @memberof DustlogResponse */ userAssetDribblets?: Array<DustlogResponseUserAssetDribbletsInner>; } //#endregion //#region src/rest-api/types/fetch-address-verification-list-response-inner-address-questionnaire.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface FetchAddressVerificationListResponseInnerAddressQuestionnaire */ interface FetchAddressVerificationListResponseInnerAddressQuestionnaire { /** * * @type {number | bigint} * @memberof FetchAddressVerificationListResponseInnerAddressQuestionnaire */ sendTo?: number | bigint; /** * * @type {string} * @memberof FetchAddressVerificationListResponseInnerAddressQuestionnaire */ satoshiToken?: string; /** * * @type {number | bigint} * @memberof FetchAddressVerificationListResponseInnerAddressQuestionnaire */ isAddressOwner?: number | bigint; /** * * @type {number | bigint} * @memberof FetchAddressVerificationListResponseInnerAddressQuestionnaire */ verifyMethod?: number | bigint; } //#endregion //#region src/rest-api/types/fetch-address-verification-list-response-inner.d.ts /** * * @export * @interface FetchAddressVerificationListResponseInner */ interface FetchAddressVerificationListResponseInner { /** * * @type {string} * @memberof FetchAddressVerificationListResponseInner */ status?: string; /** * * @type {string} * @memberof FetchAddressVerificationListResponseInner */ token?: string; /** * * @type {string} * @memberof FetchAddressVerificationListResponseInner */ network?: string; /** * * @type {string} * @memberof FetchAddressVerificationListResponseInner */ walletAddress?: string; /** * * @type {FetchAddressVerificationListResponseInnerAddressQuestionnaire} * @memberof FetchAddressVerificationListResponseInner */ addressQuestionnaire?: FetchAddressVerificationListResponseInnerAddressQuestionnaire; } //#endregion //#region src/rest-api/types/fetch-address-verification-list-response.d.ts /** * * @export * @interface FetchAddressVerificationListResponse */ interface FetchAddressVerificationListResponse extends Array<FetchAddressVerificationListResponseInner> {} //#endregion //#region src/rest-api/types/fetch-deposit-address-list-with-network-response-inner.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface FetchDepositAddressListWithNetworkResponseInner */ interface FetchDepositAddressListWithNetworkResponseInner { /** * * @type {string} * @memberof FetchDepositAddressListWithNetworkResponseInner */ coin?: string; /** * * @type {string} * @memberof FetchDepositAddressListWithNetworkResponseInner */ address?: string; /** * * @type {string} * @memberof FetchDepositAddressListWithNetworkResponseInner */ tag?: string; /** * * @type {number | bigint} * @memberof FetchDepositAddressListWithNetworkResponseInner */ isDefault?: number | bigint; } //#endregion //#region src/rest-api/types/fetch-deposit-address-list-with-network-response.d.ts /** * * @export * @interface FetchDepositAddressListWithNetworkResponse */ interface FetchDepositAddressListWithNetworkResponse extends Array<FetchDepositAddressListWithNetworkResponseInner> {} //#endregion //#region src/rest-api/types/fetch-withdraw-address-list-response-inner.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface FetchWithdrawAddressListResponseInner */ interface FetchWithdrawAddressListResponseInner { /** * * @type {string} * @memberof FetchWithdrawAddressListResponseInner */ address?: string; /** * * @type {string} * @memberof FetchWithdrawAddressListResponseInner */ addressTag?: string; /** * * @type {string} * @memberof FetchWithdrawAddressListResponseInner */ coin?: string; /** * * @type {string} * @memberof FetchWithdrawAddressListResponseInner */ name?: string; /** * * @type {string} * @memberof FetchWithdrawAddressListResponseInner */ network?: string; /** * * @type {string} * @memberof FetchWithdrawAddressListResponseInner */ origin?: string; /** * * @type {string} * @memberof FetchWithdrawAddressListResponseInner */ originType?: string; /** * * @type {boolean} * @memberof FetchWithdrawAddressListResponseInner */ whiteStatus?: boolean; } //#endregion //#region src/rest-api/types/fetch-withdraw-address-list-response.d.ts /** * * @export * @interface FetchWithdrawAddressListResponse */ interface FetchWithdrawAddressListResponse extends Array<FetchWithdrawAddressListResponseInner> {} //#endregion //#region src/rest-api/types/fetch-withdraw-quota-response.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface FetchWithdrawQuotaResponse */ interface FetchWithdrawQuotaResponse { /** * * @type {string} * @memberof FetchWithdrawQuotaResponse */ wdQuota?: string; /** * * @type {string} * @memberof FetchWithdrawQuotaResponse */ usedWdQuota?: string; } //#endregion //#region src/rest-api/types/funding-wallet-response-inner.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface FundingWalletResponseInner */ interface FundingWalletResponseInner { /** * * @type {string} * @memberof FundingWalletResponseInner */ asset?: string; /** * * @type {string} * @memberof FundingWalletResponseInner */ free?: string; /** * * @type {string} * @memberof FundingWalletResponseInner */ locked?: string; /** * * @type {string} * @memberof FundingWalletResponseInner */ freeze?: string; /** * * @type {string} * @memberof FundingWalletResponseInner */ withdrawing?: string; /** * * @type {string} * @memberof FundingWalletResponseInner */ btcValuation?: string; } //#endregion //#region src/rest-api/types/funding-wallet-response.d.ts /** * * @export * @interface FundingWalletResponse */ interface FundingWalletResponse extends Array<FundingWalletResponseInner> {} //#endregion //#region src/rest-api/types/get-api-key-permission-response.d.ts /** * Binance Wallet REST API * * OpenAPI Specification for the Binance Wallet REST API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface GetApiKeyPermissionResponse */ interface GetApiKeyPermissionResponse { /** * * @type {boolean} * @memberof GetApiKeyPermissionResponse */ ipRestrict?: boolean; /** * * @type {number | bigint} * @memberof GetApiKeyPermissionResponse */ createTime?: number | bigint; /** * * @type {boolean} * @memberof GetApiKeyPermissionResponse */ enableReading?: boolean; /** * * @type {boolean} * @memberof GetApiKeyPermissionResponse */ enableWithdrawals?: boolean; /** * * @type {boolean} * @memberof GetApiKeyPermissionResponse */ enableInternalTransfer?: boolean; /** * * @type {boolean} * @memberof GetApiKeyPermissionResponse */ enableMargin?: boolean; /** * * @type {boolean} * @memberof GetApiKeyPermissionResponse */ enableFutures?: boolean; /** * * @type {boolean} * @memberof GetApiKeyPermissionResponse */ permitsUniversalTransfer?: boolean; /** * * @type {boolean} * @memberof GetApiKeyPermissionResponse */ enableVanillaOptions?: boolean; /** * * @type {boolean} * @membero