UNPKG

@binance/wallet

Version:

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

2,203 lines (2,136 loc) 258 kB
import { RestApiResponse, ConfigurationRestAPI } from '@binance/common'; export { BadRequestError, ConnectorClientError, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError, WALLET_REST_API_PROD_URL, WALLET_REST_API_TESTNET_URL } from '@binance/common'; /** * 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} * @memberof AccountApiTradingStatusResponseDataTriggerCondition */ GCR?: number; /** * * @type {number} * @memberof AccountApiTradingStatusResponseDataTriggerCondition */ IFER?: number; /** * * @type {number} * @memberof AccountApiTradingStatusResponseDataTriggerCondition */ UFR?: number; } /** * 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 AccountApiTradingStatusResponseData */ interface AccountApiTradingStatusResponseData { /** * * @type {boolean} * @memberof AccountApiTradingStatusResponseData */ isLocked?: boolean; /** * * @type {number} * @memberof AccountApiTradingStatusResponseData */ plannedRecoverTime?: number; /** * * @type {AccountApiTradingStatusResponseDataTriggerCondition} * @memberof AccountApiTradingStatusResponseData */ triggerCondition?: AccountApiTradingStatusResponseDataTriggerCondition; /** * * @type {number} * @memberof AccountApiTradingStatusResponseData */ updateTime?: number; } /** * 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 AccountApiTradingStatusResponse */ interface AccountApiTradingStatusResponse { /** * * @type {AccountApiTradingStatusResponseData} * @memberof AccountApiTradingStatusResponse */ data?: AccountApiTradingStatusResponseData; } /** * 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} * @memberof AccountInfoResponse */ vipLevel?: number; /** * * @type {boolean} * @memberof AccountInfoResponse */ isMarginEnabled?: boolean; /** * * @type {boolean} * @memberof AccountInfoResponse */ isFutureEnabled?: boolean; /** * * @type {boolean} * @memberof AccountInfoResponse */ isOptionsEnabled?: boolean; /** * * @type {boolean} * @memberof AccountInfoResponse */ isPortfolioMarginRetailEnabled?: boolean; } /** * 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; } /** * 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 AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ interface AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner { /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ network?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ coin?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ withdrawIntegerMultiple?: string; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ isDefault?: boolean; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ depositEnable?: boolean; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ withdrawEnable?: boolean; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ depositDesc?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ withdrawDesc?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ specialTips?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ specialWithdrawTips?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ name?: string; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ resetAddressStatus?: boolean; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ addressRegex?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ memoRegex?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ withdrawFee?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ withdrawMin?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ withdrawMax?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ withdrawInternalMin?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ depositDust?: string; /** * * @type {number} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ minConfirm?: number; /** * * @type {number} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ unLockConfirm?: number; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ sameAddress?: boolean; /** * * @type {number} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ estimatedArrivalTime?: number; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ busy?: boolean; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ contractAddressUrl?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ contractAddress?: string; /** * * @type {number} * @memberof AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner */ denomination?: number; } /** * 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 */ addressRegex?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ coin?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ depositDesc?: string; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ depositEnable?: boolean; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ isDefault?: boolean; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ memoRegex?: string; /** * * @type {number} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ minConfirm?: number; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ name?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ network?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ specialTips?: string; /** * * @type {number} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ unLockConfirm?: number; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ withdrawDesc?: string; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ withdrawEnable?: boolean; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ withdrawFee?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ withdrawIntegerMultiple?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ withdrawMax?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ withdrawMin?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ withdrawInternalMin?: string; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ sameAddress?: boolean; /** * * @type {number} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ estimatedArrivalTime?: number; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ busy?: boolean; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ contractAddressUrl?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ contractAddress?: string; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ depositAllEnable?: boolean; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ withdrawAllEnable?: boolean; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ free?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ locked?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ freeze?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ withdrawing?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ ipoing?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ ipoable?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ storage?: string; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ isLegalMoney?: boolean; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ trading?: boolean; /** * * @type {Array<AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner>} * @memberof AllCoinsInformationResponseInnerNetworkListInner */ networkList?: Array<AllCoinsInformationResponseInnerNetworkListInnerNetworkListInner>; } /** * 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 AllCoinsInformationResponseInner */ interface AllCoinsInformationResponseInner { /** * * @type {string} * @memberof AllCoinsInformationResponseInner */ coin?: string; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInner */ depositAllEnable?: boolean; /** * * @type {string} * @memberof AllCoinsInformationResponseInner */ free?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInner */ freeze?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInner */ ipoable?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInner */ ipoing?: string; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInner */ isLegalMoney?: boolean; /** * * @type {string} * @memberof AllCoinsInformationResponseInner */ locked?: string; /** * * @type {string} * @memberof AllCoinsInformationResponseInner */ name?: string; /** * * @type {Array<AllCoinsInformationResponseInnerNetworkListInner>} * @memberof AllCoinsInformationResponseInner */ networkList?: Array<AllCoinsInformationResponseInnerNetworkListInner>; /** * * @type {string} * @memberof AllCoinsInformationResponseInner */ storage?: string; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInner */ trading?: boolean; /** * * @type {boolean} * @memberof AllCoinsInformationResponseInner */ withdrawAllEnable?: boolean; /** * * @type {string} * @memberof AllCoinsInformationResponseInner */ withdrawing?: string; } /** * 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 AllCoinsInformationResponse */ interface AllCoinsInformationResponse extends Array<AllCoinsInformationResponseInner> { } /** * 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} * @memberof AssetDetailResponseCTR */ withdrawFee?: number; /** * * @type {boolean} * @memberof AssetDetailResponseCTR */ withdrawStatus?: boolean; /** * * @type {string} * @memberof AssetDetailResponseCTR */ depositTip?: string; } /** * 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; } /** * 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 AssetDetailResponse */ interface AssetDetailResponse { /** * * @type {AssetDetailResponseCTR} * @memberof AssetDetailResponse */ CTR?: AssetDetailResponseCTR; /** * * @type {AssetDetailResponseSKY} * @memberof AssetDetailResponse */ SKY?: AssetDetailResponseSKY; } /** * 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} * @memberof AssetDividendRecordResponseRowsInner */ id?: number; /** * * @type {string} * @memberof AssetDividendRecordResponseRowsInner */ amount?: string; /** * * @type {string} * @memberof AssetDividendRecordResponseRowsInner */ asset?: string; /** * * @type {number} * @memberof AssetDividendRecordResponseRowsInner */ divTime?: number; /** * * @type {string} * @memberof AssetDividendRecordResponseRowsInner */ enInfo?: string; /** * * @type {number} * @memberof AssetDividendRecordResponseRowsInner */ tranId?: number; } /** * 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 AssetDividendRecordResponse */ interface AssetDividendRecordResponse { /** * * @type {Array<AssetDividendRecordResponseRowsInner>} * @memberof AssetDividendRecordResponse */ rows?: Array<AssetDividendRecordResponseRowsInner>; /** * * @type {number} * @memberof AssetDividendRecordResponse */ total?: number; } /** * 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 BadRequest */ interface BadRequest { /** * * @type {number} * @memberof BadRequest */ code: number; /** * * @type {string} * @memberof BadRequest */ message: string; } /** * 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} * @memberof BrokerWithdrawResponse */ trId?: number; /** * * @type {boolean} * @memberof BrokerWithdrawResponse */ accpted?: boolean; /** * * @type {string} * @memberof BrokerWithdrawResponse */ info?: string; } /** * 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 DailyAccountSnapshotResponse1SnapshotVosInnerDataBalancesInner */ interface DailyAccountSnapshotResponse1SnapshotVosInnerDataBalancesInner { /** * * @type {string} * @memberof DailyAccountSnapshotResponse1SnapshotVosInnerDataBalancesInner */ asset?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponse1SnapshotVosInnerDataBalancesInner */ free?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponse1SnapshotVosInnerDataBalancesInner */ locked?: string; } /** * 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 DailyAccountSnapshotResponse1SnapshotVosInnerData */ interface DailyAccountSnapshotResponse1SnapshotVosInnerData { /** * * @type {Array<DailyAccountSnapshotResponse1SnapshotVosInnerDataBalancesInner>} * @memberof DailyAccountSnapshotResponse1SnapshotVosInnerData */ balances?: Array<DailyAccountSnapshotResponse1SnapshotVosInnerDataBalancesInner>; /** * * @type {string} * @memberof DailyAccountSnapshotResponse1SnapshotVosInnerData */ totalAssetOfBtc?: string; } /** * 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 DailyAccountSnapshotResponse1SnapshotVosInner */ interface DailyAccountSnapshotResponse1SnapshotVosInner { /** * * @type {DailyAccountSnapshotResponse1SnapshotVosInnerData} * @memberof DailyAccountSnapshotResponse1SnapshotVosInner */ data?: DailyAccountSnapshotResponse1SnapshotVosInnerData; /** * * @type {string} * @memberof DailyAccountSnapshotResponse1SnapshotVosInner */ type?: string; /** * * @type {number} * @memberof DailyAccountSnapshotResponse1SnapshotVosInner */ updateTime?: number; } /** * 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 DailyAccountSnapshotResponse1 */ interface DailyAccountSnapshotResponse1 { /** * * @type {number} * @memberof DailyAccountSnapshotResponse1 */ code?: number; /** * * @type {string} * @memberof DailyAccountSnapshotResponse1 */ msg?: string; /** * * @type {Array<DailyAccountSnapshotResponse1SnapshotVosInner>} * @memberof DailyAccountSnapshotResponse1 */ snapshotVos?: Array<DailyAccountSnapshotResponse1SnapshotVosInner>; } /** * 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 DailyAccountSnapshotResponse2SnapshotVosInnerDataUserAssetsInner */ interface DailyAccountSnapshotResponse2SnapshotVosInnerDataUserAssetsInner { /** * * @type {string} * @memberof DailyAccountSnapshotResponse2SnapshotVosInnerDataUserAssetsInner */ asset?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponse2SnapshotVosInnerDataUserAssetsInner */ borrowed?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponse2SnapshotVosInnerDataUserAssetsInner */ free?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponse2SnapshotVosInnerDataUserAssetsInner */ interest?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponse2SnapshotVosInnerDataUserAssetsInner */ locked?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponse2SnapshotVosInnerDataUserAssetsInner */ netAsset?: string; } /** * 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 DailyAccountSnapshotResponse2SnapshotVosInnerData */ interface DailyAccountSnapshotResponse2SnapshotVosInnerData { /** * * @type {string} * @memberof DailyAccountSnapshotResponse2SnapshotVosInnerData */ marginLevel?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponse2SnapshotVosInnerData */ totalAssetOfBtc?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponse2SnapshotVosInnerData */ totalLiabilityOfBtc?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponse2SnapshotVosInnerData */ totalNetAssetOfBtc?: string; /** * * @type {Array<DailyAccountSnapshotResponse2SnapshotVosInnerDataUserAssetsInner>} * @memberof DailyAccountSnapshotResponse2SnapshotVosInnerData */ userAssets?: Array<DailyAccountSnapshotResponse2SnapshotVosInnerDataUserAssetsInner>; } /** * 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 DailyAccountSnapshotResponse2SnapshotVosInner */ interface DailyAccountSnapshotResponse2SnapshotVosInner { /** * * @type {DailyAccountSnapshotResponse2SnapshotVosInnerData} * @memberof DailyAccountSnapshotResponse2SnapshotVosInner */ data?: DailyAccountSnapshotResponse2SnapshotVosInnerData; /** * * @type {string} * @memberof DailyAccountSnapshotResponse2SnapshotVosInner */ type?: string; /** * * @type {number} * @memberof DailyAccountSnapshotResponse2SnapshotVosInner */ updateTime?: number; } /** * 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 DailyAccountSnapshotResponse2 */ interface DailyAccountSnapshotResponse2 { /** * * @type {number} * @memberof DailyAccountSnapshotResponse2 */ code?: number; /** * * @type {string} * @memberof DailyAccountSnapshotResponse2 */ msg?: string; /** * * @type {Array<DailyAccountSnapshotResponse2SnapshotVosInner>} * @memberof DailyAccountSnapshotResponse2 */ snapshotVos?: Array<DailyAccountSnapshotResponse2SnapshotVosInner>; } /** * 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 DailyAccountSnapshotResponse3SnapshotVosInnerDataAssetsInner */ interface DailyAccountSnapshotResponse3SnapshotVosInnerDataAssetsInner { /** * * @type {string} * @memberof DailyAccountSnapshotResponse3SnapshotVosInnerDataAssetsInner */ asset?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponse3SnapshotVosInnerDataAssetsInner */ marginBalance?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponse3SnapshotVosInnerDataAssetsInner */ walletBalance?: string; } /** * 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 DailyAccountSnapshotResponse3SnapshotVosInnerDataPositionInner */ interface DailyAccountSnapshotResponse3SnapshotVosInnerDataPositionInner { /** * * @type {string} * @memberof DailyAccountSnapshotResponse3SnapshotVosInnerDataPositionInner */ entryPrice?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponse3SnapshotVosInnerDataPositionInner */ markPrice?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponse3SnapshotVosInnerDataPositionInner */ positionAmt?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponse3SnapshotVosInnerDataPositionInner */ symbol?: string; /** * * @type {string} * @memberof DailyAccountSnapshotResponse3SnapshotVosInnerDataPositionInner */ unRealizedProfit?: string; } /** * 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 DailyAccountSnapshotResponse3SnapshotVosInnerData */ interface DailyAccountSnapshotResponse3SnapshotVosInnerData { /** * * @type {Array<DailyAccountSnapshotResponse3SnapshotVosInnerDataAssetsInner>} * @memberof DailyAccountSnapshotResponse3SnapshotVosInnerData */ assets?: Array<DailyAccountSnapshotResponse3SnapshotVosInnerDataAssetsInner>; /** * * @type {Array<DailyAccountSnapshotResponse3SnapshotVosInnerDataPositionInner>} * @memberof DailyAccountSnapshotResponse3SnapshotVosInnerData */ position?: Array<DailyAccountSnapshotResponse3SnapshotVosInnerDataPositionInner>; } /** * 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 DailyAccountSnapshotResponse3SnapshotVosInner */ interface DailyAccountSnapshotResponse3SnapshotVosInner { /** * * @type {DailyAccountSnapshotResponse3SnapshotVosInnerData} * @memberof DailyAccountSnapshotResponse3SnapshotVosInner */ data?: DailyAccountSnapshotResponse3SnapshotVosInnerData; /** * * @type {string} * @memberof DailyAccountSnapshotResponse3SnapshotVosInner */ type?: string; /** * * @type {number} * @memberof DailyAccountSnapshotResponse3SnapshotVosInner */ updateTime?: number; } /** * 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 DailyAccountSnapshotResponse3 */ interface DailyAccountSnapshotResponse3 { /** * * @type {number} * @memberof DailyAccountSnapshotResponse3 */ code?: number; /** * * @type {string} * @memberof DailyAccountSnapshotResponse3 */ msg?: string; /** * * @type {Array<DailyAccountSnapshotResponse3SnapshotVosInner>} * @memberof DailyAccountSnapshotResponse3 */ snapshotVos?: Array<DailyAccountSnapshotResponse3SnapshotVosInner>; } /** * 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. */ /** * @type DailyAccountSnapshotResponse * @export */ type DailyAccountSnapshotResponse = DailyAccountSnapshotResponse1 | DailyAccountSnapshotResponse2 | DailyAccountSnapshotResponse3; /** * 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; } /** * 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} * @memberof DepositHistoryResponseInner */ status?: number; /** * * @type {string} * @memberof DepositHistoryResponseInner */ address?: string; /** * * @type {string} * @memberof DepositHistoryResponseInner */ addressTag?: string; /** * * @type {string} * @memberof DepositHistoryResponseInner */ txId?: string; /** * * @type {number} * @memberof DepositHistoryResponseInner */ insertTime?: number; /** * * @type {number} * @memberof DepositHistoryResponseInner */ completeTime?: number; /** * * @type {number} * @memberof DepositHistoryResponseInner */ transferType?: number; /** * * @type {string} * @memberof DepositHistoryResponseInner */ confirmTimes?: string; /** * * @type {number} * @memberof DepositHistoryResponseInner */ unlockConfirm?: number; /** * * @type {number} * @memberof DepositHistoryResponseInner */ walletType?: number; } /** * 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 DepositHistoryResponse */ interface DepositHistoryResponse extends Array<DepositHistoryResponseInner> { } /** * 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} * @memberof DepositHistoryTravelRuleResponseInner */ trId?: number; /** * * @type {number} * @memberof DepositHistoryTravelRuleResponseInner */ tranId?: number; /** * * @type {string} * @memberof DepositHistoryTravelRuleResponseInner */ amount?: string; /** * * @type {string} * @memberof DepositHistoryTravelRuleResponseInner */ coin?: string; /** * * @type {string} * @memberof DepositHistoryTravelRuleResponseInner */ network?: string; /** * * @type {number} * @memberof DepositHistoryTravelRuleResponseInner */ depositStatus?: number; /** * * @type {number} * @memberof DepositHistoryTravelRuleResponseInner */ travelRuleStatus?: number; /** * * @type {string} * @memberof DepositHistoryTravelRuleResponseInner */ address?: string; /** * * @type {string} * @memberof DepositHistoryTravelRuleResponseInner */ addressTag?: string; /** * * @type {string} * @memberof DepositHistoryTravelRuleResponseInner */ txId?: string; /** * * @type {number} * @memberof DepositHistoryTravelRuleResponseInner */ insertTime?: number; /** * * @type {number} * @memberof DepositHistoryTravelRuleResponseInner */ transferType?: number; /** * * @type {string} * @memberof DepositHistoryTravelRuleResponseInner */ confirmTimes?: string; /** * * @type {number} * @memberof DepositHistoryTravelRuleResponseInner */ unlockConfirm?: number; /** * * @type {number} * @memberof DepositHistoryTravelRuleResponseInner */ walletType?: number; /** * * @type {boolean} * @memberof DepositHistoryTravelRuleResponseInner */ requireQuestionnaire?: boolean; /** * * @type {string} * @memberof DepositHistoryTravelRuleResponseInner */ questionnaire?: string; } /** * 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 DepositHistoryTravelRuleResponse */ interface DepositHistoryTravelRuleResponse extends Array<DepositHistoryTravelRuleResponseInner> { } /** * 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} * @memberof DustTransferResponseTransferResultInner */ operateTime?: number; /** * * @type {string} * @memberof DustTransferResponseTransferResultInner */ serviceChargeAmount?: string; /** * * @type {number} * @memberof DustTransferResponseTransferResultInner */ tranId?: number; /** * * @type {string} * @memberof DustTransferResponseTransferResultInner */ transferedAmount?: string; } /** * 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 DustTransferResponse */ interface DustTransferResponse { /** * * @type {string} * @memberof DustTransferResponse */ totalServiceCharge?: string; /** * * @type {string} * @memberof DustTransferResponse */ totalTransfered?: string; /** * * @type {Array<DustTransferResponseTransferResultInner>} * @memberof DustTransferResponse */ transferResult?: Array<DustTransferResponseTransferResultInner>; } /** * 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} * @memberof DustlogResponseUserAssetDribbletsInnerUserAssetDribbletDetailsInner */ transId?: number; /** * * @type {string} * @memberof DustlogResponseUserAssetDribbletsInnerUserAssetDribbletDetailsInner */ serviceChargeAmount?: string; /** * * @type {string} * @memberof DustlogResponseUserAssetDribbletsInnerUserAssetDribbletDetailsInner */ amount?: string; /** * * @type {number} * @memberof DustlogResponseUserAssetDribbletsInnerUserAssetDribbletDetailsInner */ operateTime?: number; /** * * @type {string} * @memberof DustlogResponseUserAssetDribbletsInnerUserAssetDribbletDetailsInner */ transferedAmount?: string; /** * * @type {string} * @memberof DustlogResponseUserAssetDribbletsInnerUserAssetDribbletDetailsInner */ fromAsset?: string; } /** * 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 DustlogResponseUserAssetDribbletsInner */ interface DustlogResponseUserAssetDribbletsInner { /** * * @type {number} * @memberof DustlogResponseUserAssetDribbletsInner */ operateTime?: number; /** * * @type {string} * @memberof DustlogResponseUserAssetDribbletsInner */ totalTransferedAmount?: string; /** * * @type {string} * @memberof DustlogResponseUserAssetDribbletsInner */ totalServiceChargeAmount?: string; /** * * @type {number} * @memberof DustlogResponseUserAssetDribbletsInner */ transId?: number; /** * * @type {Array<DustlogResponseUserAssetDribbletsInnerUserAssetDribbletDetailsInner>} * @memberof DustlogResponseUserAssetDribbletsInner */ userAssetDribbletDetails?: Array<DustlogResponseUserAssetDribbletsInnerUserAssetDribbletDetailsInner>; } /** * 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 DustlogResponse */ interface DustlogResponse { /** * * @type {number} * @memberof DustlogResponse */ total?: number; /** * * @type {Array<DustlogResponseUserAssetDribbletsInner>} * @memberof DustlogResponse */ userAssetDribblets?: Array<DustlogResponseUserAssetDribbletsInner>; } /** * 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} * @memberof FetchDepositAddressListWithNetworkResponseInner */ isDefault?: number; } /** * 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 FetchDepositAddressListWithNetworkResponse */ interface FetchDepositAddressListWithNetworkResponse extends Array<FetchDepositAddressListWithNetworkResponseInner> { } /** * 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;