UNPKG

@binance/derivatives-trading-coin-futures

Version:

Official Binance Derivatives Trading (COIN-M Futures) Connector - A lightweight library that provides a convenient interface to Binance's COINN-M Futures REST API, WebSocket API and WebSocket Streams.

2,259 lines (2,207 loc) 638 kB
import { RestApiResponse, ConfigurationRestAPI, WebsocketApiResponse, WebsocketAPIBase, WebsocketSendMsgOptions, ConfigurationWebsocketAPI, WebsocketStream, WebsocketStreamsBase, ConfigurationWebsocketStreams } from '@binance/common'; export { BadRequestError, ConnectorClientError, DERIVATIVES_TRADING_COIN_FUTURES_REST_API_PROD_URL, DERIVATIVES_TRADING_COIN_FUTURES_REST_API_TESTNET_URL, DERIVATIVES_TRADING_COIN_FUTURES_WS_API_PROD_URL, DERIVATIVES_TRADING_COIN_FUTURES_WS_API_TESTNET_URL, DERIVATIVES_TRADING_COIN_FUTURES_WS_STREAMS_PROD_URL, DERIVATIVES_TRADING_COIN_FUTURES_WS_STREAMS_TESTNET_URL, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError } from '@binance/common'; /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 AccountInformationResponseAssetsInner */ interface AccountInformationResponseAssetsInner { /** * * @type {string} * @memberof AccountInformationResponseAssetsInner */ asset?: string; /** * * @type {string} * @memberof AccountInformationResponseAssetsInner */ walletBalance?: string; /** * * @type {string} * @memberof AccountInformationResponseAssetsInner */ unrealizedProfit?: string; /** * * @type {string} * @memberof AccountInformationResponseAssetsInner */ marginBalance?: string; /** * * @type {string} * @memberof AccountInformationResponseAssetsInner */ maintMargin?: string; /** * * @type {string} * @memberof AccountInformationResponseAssetsInner */ initialMargin?: string; /** * * @type {string} * @memberof AccountInformationResponseAssetsInner */ positionInitialMargin?: string; /** * * @type {string} * @memberof AccountInformationResponseAssetsInner */ openOrderInitialMargin?: string; /** * * @type {string} * @memberof AccountInformationResponseAssetsInner */ maxWithdrawAmount?: string; /** * * @type {string} * @memberof AccountInformationResponseAssetsInner */ crossWalletBalance?: string; /** * * @type {string} * @memberof AccountInformationResponseAssetsInner */ crossUnPnl?: string; /** * * @type {string} * @memberof AccountInformationResponseAssetsInner */ availableBalance?: string; /** * * @type {number} * @memberof AccountInformationResponseAssetsInner */ updateTime?: number; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 AccountInformationResponsePositionsInner */ interface AccountInformationResponsePositionsInner { /** * * @type {string} * @memberof AccountInformationResponsePositionsInner */ symbol?: string; /** * * @type {string} * @memberof AccountInformationResponsePositionsInner */ positionAmt?: string; /** * * @type {string} * @memberof AccountInformationResponsePositionsInner */ initialMargin?: string; /** * * @type {string} * @memberof AccountInformationResponsePositionsInner */ maintMargin?: string; /** * * @type {string} * @memberof AccountInformationResponsePositionsInner */ unrealizedProfit?: string; /** * * @type {string} * @memberof AccountInformationResponsePositionsInner */ positionInitialMargin?: string; /** * * @type {string} * @memberof AccountInformationResponsePositionsInner */ openOrderInitialMargin?: string; /** * * @type {string} * @memberof AccountInformationResponsePositionsInner */ leverage?: string; /** * * @type {boolean} * @memberof AccountInformationResponsePositionsInner */ isolated?: boolean; /** * * @type {string} * @memberof AccountInformationResponsePositionsInner */ positionSide?: string; /** * * @type {string} * @memberof AccountInformationResponsePositionsInner */ entryPrice?: string; /** * * @type {string} * @memberof AccountInformationResponsePositionsInner */ breakEvenPrice?: string; /** * * @type {string} * @memberof AccountInformationResponsePositionsInner */ maxQty?: string; /** * * @type {number} * @memberof AccountInformationResponsePositionsInner */ updateTime?: number; /** * * @type {string} * @memberof AccountInformationResponsePositionsInner */ notionalValue?: string; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 AccountInformationResponse */ interface AccountInformationResponse$1 { /** * * @type {Array<AccountInformationResponseAssetsInner>} * @memberof AccountInformationResponse */ assets?: Array<AccountInformationResponseAssetsInner>; /** * * @type {Array<AccountInformationResponsePositionsInner>} * @memberof AccountInformationResponse */ positions?: Array<AccountInformationResponsePositionsInner>; /** * * @type {boolean} * @memberof AccountInformationResponse */ canDeposit?: boolean; /** * * @type {boolean} * @memberof AccountInformationResponse */ canTrade?: boolean; /** * * @type {boolean} * @memberof AccountInformationResponse */ canWithdraw?: boolean; /** * * @type {number} * @memberof AccountInformationResponse */ feeTier?: number; /** * * @type {number} * @memberof AccountInformationResponse */ updateTime?: number; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 AccountTradeListResponseInner */ interface AccountTradeListResponseInner { /** * * @type {string} * @memberof AccountTradeListResponseInner */ symbol?: string; /** * * @type {number} * @memberof AccountTradeListResponseInner */ id?: number; /** * * @type {number} * @memberof AccountTradeListResponseInner */ orderId?: number; /** * * @type {string} * @memberof AccountTradeListResponseInner */ pair?: string; /** * * @type {string} * @memberof AccountTradeListResponseInner */ side?: string; /** * * @type {string} * @memberof AccountTradeListResponseInner */ price?: string; /** * * @type {string} * @memberof AccountTradeListResponseInner */ qty?: string; /** * * @type {string} * @memberof AccountTradeListResponseInner */ realizedPnl?: string; /** * * @type {string} * @memberof AccountTradeListResponseInner */ marginAsset?: string; /** * * @type {string} * @memberof AccountTradeListResponseInner */ baseQty?: string; /** * * @type {string} * @memberof AccountTradeListResponseInner */ commission?: string; /** * * @type {string} * @memberof AccountTradeListResponseInner */ commissionAsset?: string; /** * * @type {number} * @memberof AccountTradeListResponseInner */ time?: number; /** * * @type {string} * @memberof AccountTradeListResponseInner */ positionSide?: string; /** * * @type {boolean} * @memberof AccountTradeListResponseInner */ buyer?: boolean; /** * * @type {boolean} * @memberof AccountTradeListResponseInner */ maker?: boolean; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 AccountTradeListResponse */ interface AccountTradeListResponse extends Array<AccountTradeListResponseInner> { } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 AllOrdersResponseInner */ interface AllOrdersResponseInner { /** * * @type {string} * @memberof AllOrdersResponseInner */ avgPrice?: string; /** * * @type {string} * @memberof AllOrdersResponseInner */ clientOrderId?: string; /** * * @type {string} * @memberof AllOrdersResponseInner */ cumBase?: string; /** * * @type {string} * @memberof AllOrdersResponseInner */ executedQty?: string; /** * * @type {number} * @memberof AllOrdersResponseInner */ orderId?: number; /** * * @type {string} * @memberof AllOrdersResponseInner */ origQty?: string; /** * * @type {string} * @memberof AllOrdersResponseInner */ origType?: string; /** * * @type {string} * @memberof AllOrdersResponseInner */ price?: string; /** * * @type {boolean} * @memberof AllOrdersResponseInner */ reduceOnly?: boolean; /** * * @type {string} * @memberof AllOrdersResponseInner */ side?: string; /** * * @type {string} * @memberof AllOrdersResponseInner */ positionSide?: string; /** * * @type {string} * @memberof AllOrdersResponseInner */ status?: string; /** * * @type {string} * @memberof AllOrdersResponseInner */ stopPrice?: string; /** * * @type {boolean} * @memberof AllOrdersResponseInner */ closePosition?: boolean; /** * * @type {string} * @memberof AllOrdersResponseInner */ symbol?: string; /** * * @type {string} * @memberof AllOrdersResponseInner */ pair?: string; /** * * @type {number} * @memberof AllOrdersResponseInner */ time?: number; /** * * @type {string} * @memberof AllOrdersResponseInner */ timeInForce?: string; /** * * @type {string} * @memberof AllOrdersResponseInner */ type?: string; /** * * @type {string} * @memberof AllOrdersResponseInner */ activatePrice?: string; /** * * @type {string} * @memberof AllOrdersResponseInner */ priceRate?: string; /** * * @type {number} * @memberof AllOrdersResponseInner */ updateTime?: number; /** * * @type {string} * @memberof AllOrdersResponseInner */ workingType?: string; /** * * @type {boolean} * @memberof AllOrdersResponseInner */ priceProtect?: boolean; /** * * @type {string} * @memberof AllOrdersResponseInner */ priceMatch?: string; /** * * @type {string} * @memberof AllOrdersResponseInner */ selfTradePreventionMode?: string; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 AllOrdersResponse */ interface AllOrdersResponse extends Array<AllOrdersResponseInner> { } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 BasisResponseInner */ interface BasisResponseInner { /** * * @type {string} * @memberof BasisResponseInner */ indexPrice?: string; /** * * @type {string} * @memberof BasisResponseInner */ contractType?: string; /** * * @type {string} * @memberof BasisResponseInner */ basisRate?: string; /** * * @type {string} * @memberof BasisResponseInner */ futuresPrice?: string; /** * * @type {string} * @memberof BasisResponseInner */ annualizedBasisRate?: string; /** * * @type {string} * @memberof BasisResponseInner */ basis?: string; /** * * @type {string} * @memberof BasisResponseInner */ pair?: string; /** * * @type {number} * @memberof BasisResponseInner */ timestamp?: number; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 BasisResponse */ interface BasisResponse extends Array<BasisResponseInner> { } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 CancelAllOpenOrdersResponse */ interface CancelAllOpenOrdersResponse { /** * * @type {number} * @memberof CancelAllOpenOrdersResponse */ code?: number; /** * * @type {string} * @memberof CancelAllOpenOrdersResponse */ msg?: string; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 CancelMultipleOrdersResponseInner */ interface CancelMultipleOrdersResponseInner { /** * * @type {string} * @memberof CancelMultipleOrdersResponseInner */ avgPrice?: string; /** * * @type {string} * @memberof CancelMultipleOrdersResponseInner */ clientOrderId?: string; /** * * @type {string} * @memberof CancelMultipleOrdersResponseInner */ cumQty?: string; /** * * @type {string} * @memberof CancelMultipleOrdersResponseInner */ cumBase?: string; /** * * @type {string} * @memberof CancelMultipleOrdersResponseInner */ executedQty?: string; /** * * @type {number} * @memberof CancelMultipleOrdersResponseInner */ orderId?: number; /** * * @type {string} * @memberof CancelMultipleOrdersResponseInner */ origQty?: string; /** * * @type {string} * @memberof CancelMultipleOrdersResponseInner */ origType?: string; /** * * @type {string} * @memberof CancelMultipleOrdersResponseInner */ price?: string; /** * * @type {boolean} * @memberof CancelMultipleOrdersResponseInner */ reduceOnly?: boolean; /** * * @type {string} * @memberof CancelMultipleOrdersResponseInner */ side?: string; /** * * @type {string} * @memberof CancelMultipleOrdersResponseInner */ positionSide?: string; /** * * @type {string} * @memberof CancelMultipleOrdersResponseInner */ status?: string; /** * * @type {string} * @memberof CancelMultipleOrdersResponseInner */ stopPrice?: string; /** * * @type {boolean} * @memberof CancelMultipleOrdersResponseInner */ closePosition?: boolean; /** * * @type {string} * @memberof CancelMultipleOrdersResponseInner */ symbol?: string; /** * * @type {string} * @memberof CancelMultipleOrdersResponseInner */ timeInForce?: string; /** * * @type {string} * @memberof CancelMultipleOrdersResponseInner */ type?: string; /** * * @type {string} * @memberof CancelMultipleOrdersResponseInner */ activatePrice?: string; /** * * @type {string} * @memberof CancelMultipleOrdersResponseInner */ priceRate?: string; /** * * @type {string} * @memberof CancelMultipleOrdersResponseInner */ workingType?: string; /** * * @type {boolean} * @memberof CancelMultipleOrdersResponseInner */ priceProtect?: boolean; /** * * @type {string} * @memberof CancelMultipleOrdersResponseInner */ priceMatch?: string; /** * * @type {string} * @memberof CancelMultipleOrdersResponseInner */ selfTradePreventionMode?: string; /** * * @type {number} * @memberof CancelMultipleOrdersResponseInner */ updateTime?: number; /** * * @type {number} * @memberof CancelMultipleOrdersResponseInner */ code?: number; /** * * @type {string} * @memberof CancelMultipleOrdersResponseInner */ msg?: string; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 CancelMultipleOrdersResponse */ interface CancelMultipleOrdersResponse extends Array<CancelMultipleOrdersResponseInner> { } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 CancelOrderResponse */ interface CancelOrderResponse$1 { /** * * @type {string} * @memberof CancelOrderResponse */ avgPrice?: string; /** * * @type {string} * @memberof CancelOrderResponse */ clientOrderId?: string; /** * * @type {string} * @memberof CancelOrderResponse */ cumQty?: string; /** * * @type {string} * @memberof CancelOrderResponse */ cumBase?: string; /** * * @type {string} * @memberof CancelOrderResponse */ executedQty?: string; /** * * @type {number} * @memberof CancelOrderResponse */ orderId?: number; /** * * @type {string} * @memberof CancelOrderResponse */ origQty?: string; /** * * @type {string} * @memberof CancelOrderResponse */ origType?: string; /** * * @type {string} * @memberof CancelOrderResponse */ price?: string; /** * * @type {boolean} * @memberof CancelOrderResponse */ reduceOnly?: boolean; /** * * @type {string} * @memberof CancelOrderResponse */ side?: string; /** * * @type {string} * @memberof CancelOrderResponse */ positionSide?: string; /** * * @type {string} * @memberof CancelOrderResponse */ status?: string; /** * * @type {string} * @memberof CancelOrderResponse */ stopPrice?: string; /** * * @type {boolean} * @memberof CancelOrderResponse */ closePosition?: boolean; /** * * @type {string} * @memberof CancelOrderResponse */ symbol?: string; /** * * @type {string} * @memberof CancelOrderResponse */ pair?: string; /** * * @type {string} * @memberof CancelOrderResponse */ timeInForce?: string; /** * * @type {string} * @memberof CancelOrderResponse */ type?: string; /** * * @type {string} * @memberof CancelOrderResponse */ activatePrice?: string; /** * * @type {string} * @memberof CancelOrderResponse */ priceRate?: string; /** * * @type {number} * @memberof CancelOrderResponse */ updateTime?: number; /** * * @type {string} * @memberof CancelOrderResponse */ workingType?: string; /** * * @type {boolean} * @memberof CancelOrderResponse */ priceProtect?: boolean; /** * * @type {string} * @memberof CancelOrderResponse */ priceMatch?: string; /** * * @type {string} * @memberof CancelOrderResponse */ selfTradePreventionMode?: string; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 ChangeInitialLeverageResponse */ interface ChangeInitialLeverageResponse { /** * * @type {number} * @memberof ChangeInitialLeverageResponse */ leverage?: number; /** * * @type {string} * @memberof ChangeInitialLeverageResponse */ maxQty?: string; /** * * @type {string} * @memberof ChangeInitialLeverageResponse */ symbol?: string; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 ChangeMarginTypeResponse */ interface ChangeMarginTypeResponse { /** * * @type {number} * @memberof ChangeMarginTypeResponse */ code?: number; /** * * @type {string} * @memberof ChangeMarginTypeResponse */ msg?: string; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 ChangePositionModeResponse */ interface ChangePositionModeResponse { /** * * @type {number} * @memberof ChangePositionModeResponse */ code?: number; /** * * @type {string} * @memberof ChangePositionModeResponse */ msg?: string; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 CheckServerTimeResponse */ interface CheckServerTimeResponse { /** * * @type {number} * @memberof CheckServerTimeResponse */ serverTime?: number; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 ClassicPortfolioMarginAccountInformationResponse */ interface ClassicPortfolioMarginAccountInformationResponse { /** * * @type {string} * @memberof ClassicPortfolioMarginAccountInformationResponse */ maxWithdrawAmountUSD?: string; /** * * @type {string} * @memberof ClassicPortfolioMarginAccountInformationResponse */ asset?: string; /** * * @type {string} * @memberof ClassicPortfolioMarginAccountInformationResponse */ maxWithdrawAmount?: string; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 CompressedAggregateTradesListResponseInner */ interface CompressedAggregateTradesListResponseInner { /** * * @type {number} * @memberof CompressedAggregateTradesListResponseInner */ a?: number; /** * * @type {string} * @memberof CompressedAggregateTradesListResponseInner */ p?: string; /** * * @type {string} * @memberof CompressedAggregateTradesListResponseInner */ q?: string; /** * * @type {number} * @memberof CompressedAggregateTradesListResponseInner */ f?: number; /** * * @type {number} * @memberof CompressedAggregateTradesListResponseInner */ l?: number; /** * * @type {number} * @memberof CompressedAggregateTradesListResponseInner */ T?: number; /** * * @type {boolean} * @memberof CompressedAggregateTradesListResponseInner */ m?: boolean; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 CompressedAggregateTradesListResponse */ interface CompressedAggregateTradesListResponse extends Array<CompressedAggregateTradesListResponseInner> { } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 ContinuousContractKlineCandlestickDataResponseItemInner * @export */ type ContinuousContractKlineCandlestickDataResponseItemInner = number | string; /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 ContinuousContractKlineCandlestickDataResponseItem */ interface ContinuousContractKlineCandlestickDataResponseItem extends Array<ContinuousContractKlineCandlestickDataResponseItemInner> { } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 ContinuousContractKlineCandlestickDataResponse */ interface ContinuousContractKlineCandlestickDataResponse extends Array<ContinuousContractKlineCandlestickDataResponseItem> { } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 CurrentAllOpenOrdersResponseInner */ interface CurrentAllOpenOrdersResponseInner { /** * * @type {string} * @memberof CurrentAllOpenOrdersResponseInner */ avgPrice?: string; /** * * @type {string} * @memberof CurrentAllOpenOrdersResponseInner */ clientOrderId?: string; /** * * @type {string} * @memberof CurrentAllOpenOrdersResponseInner */ cumBase?: string; /** * * @type {string} * @memberof CurrentAllOpenOrdersResponseInner */ executedQty?: string; /** * * @type {number} * @memberof CurrentAllOpenOrdersResponseInner */ orderId?: number; /** * * @type {string} * @memberof CurrentAllOpenOrdersResponseInner */ origQty?: string; /** * * @type {string} * @memberof CurrentAllOpenOrdersResponseInner */ origType?: string; /** * * @type {string} * @memberof CurrentAllOpenOrdersResponseInner */ price?: string; /** * * @type {boolean} * @memberof CurrentAllOpenOrdersResponseInner */ reduceOnly?: boolean; /** * * @type {string} * @memberof CurrentAllOpenOrdersResponseInner */ side?: string; /** * * @type {string} * @memberof CurrentAllOpenOrdersResponseInner */ positionSide?: string; /** * * @type {string} * @memberof CurrentAllOpenOrdersResponseInner */ status?: string; /** * * @type {string} * @memberof CurrentAllOpenOrdersResponseInner */ stopPrice?: string; /** * * @type {boolean} * @memberof CurrentAllOpenOrdersResponseInner */ closePosition?: boolean; /** * * @type {string} * @memberof CurrentAllOpenOrdersResponseInner */ symbol?: string; /** * * @type {number} * @memberof CurrentAllOpenOrdersResponseInner */ time?: number; /** * * @type {string} * @memberof CurrentAllOpenOrdersResponseInner */ timeInForce?: string; /** * * @type {string} * @memberof CurrentAllOpenOrdersResponseInner */ type?: string; /** * * @type {string} * @memberof CurrentAllOpenOrdersResponseInner */ activatePrice?: string; /** * * @type {string} * @memberof CurrentAllOpenOrdersResponseInner */ priceRate?: string; /** * * @type {number} * @memberof CurrentAllOpenOrdersResponseInner */ updateTime?: number; /** * * @type {string} * @memberof CurrentAllOpenOrdersResponseInner */ workingType?: string; /** * * @type {boolean} * @memberof CurrentAllOpenOrdersResponseInner */ priceProtect?: boolean; /** * * @type {string} * @memberof CurrentAllOpenOrdersResponseInner */ priceMatch?: string; /** * * @type {string} * @memberof CurrentAllOpenOrdersResponseInner */ selfTradePreventionMode?: string; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 CurrentAllOpenOrdersResponse */ interface CurrentAllOpenOrdersResponse extends Array<CurrentAllOpenOrdersResponseInner> { } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 ExchangeInformationResponseRateLimitsInner */ interface ExchangeInformationResponseRateLimitsInner { /** * * @type {string} * @memberof ExchangeInformationResponseRateLimitsInner */ interval?: string; /** * * @type {number} * @memberof ExchangeInformationResponseRateLimitsInner */ intervalNum?: number; /** * * @type {number} * @memberof ExchangeInformationResponseRateLimitsInner */ limit?: number; /** * * @type {string} * @memberof ExchangeInformationResponseRateLimitsInner */ rateLimitType?: string; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 ExchangeInformationResponseSymbolsInnerFiltersInner */ interface ExchangeInformationResponseSymbolsInnerFiltersInner { /** * * @type {string} * @memberof ExchangeInformationResponseSymbolsInnerFiltersInner */ filterType?: string; /** * * @type {string} * @memberof ExchangeInformationResponseSymbolsInnerFiltersInner */ maxPrice?: string; /** * * @type {string} * @memberof ExchangeInformationResponseSymbolsInnerFiltersInner */ minPrice?: string; /** * * @type {string} * @memberof ExchangeInformationResponseSymbolsInnerFiltersInner */ tickSize?: string; /** * * @type {string} * @memberof ExchangeInformationResponseSymbolsInnerFiltersInner */ maxQty?: string; /** * * @type {string} * @memberof ExchangeInformationResponseSymbolsInnerFiltersInner */ minQty?: string; /** * * @type {string} * @memberof ExchangeInformationResponseSymbolsInnerFiltersInner */ stepSize?: string; /** * * @type {number} * @memberof ExchangeInformationResponseSymbolsInnerFiltersInner */ limit?: number; /** * * @type {string} * @memberof ExchangeInformationResponseSymbolsInnerFiltersInner */ multiplierUp?: string; /** * * @type {string} * @memberof ExchangeInformationResponseSymbolsInnerFiltersInner */ multiplierDown?: string; /** * * @type {number} * @memberof ExchangeInformationResponseSymbolsInnerFiltersInner */ multiplierDecimal?: number; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 ExchangeInformationResponseSymbolsInner */ interface ExchangeInformationResponseSymbolsInner { /** * * @type {Array<ExchangeInformationResponseSymbolsInnerFiltersInner>} * @memberof ExchangeInformationResponseSymbolsInner */ filters?: Array<ExchangeInformationResponseSymbolsInnerFiltersInner>; /** * * @type {Array<string>} * @memberof ExchangeInformationResponseSymbolsInner */ OrderType?: Array<string>; /** * * @type {Array<string>} * @memberof ExchangeInformationResponseSymbolsInner */ timeInForce?: Array<string>; /** * * @type {string} * @memberof ExchangeInformationResponseSymbolsInner */ liquidationFee?: string; /** * * @type {string} * @memberof ExchangeInformationResponseSymbolsInner */ marketTakeBound?: string; /** * * @type {string} * @memberof ExchangeInformationResponseSymbolsInner */ symbol?: string; /** * * @type {string} * @memberof ExchangeInformationResponseSymbolsInner */ pair?: string; /** * * @type {string} * @memberof ExchangeInformationResponseSymbolsInner */ contractType?: string; /** * * @type {number} * @memberof ExchangeInformationResponseSymbolsInner */ deliveryDate?: number; /** * * @type {number} * @memberof ExchangeInformationResponseSymbolsInner */ onboardDate?: number; /** * * @type {string} * @memberof ExchangeInformationResponseSymbolsInner */ contractStatus?: string; /** * * @type {number} * @memberof ExchangeInformationResponseSymbolsInner */ contractSize?: number; /** * * @type {string} * @memberof ExchangeInformationResponseSymbolsInner */ quoteAsset?: string; /** * * @type {string} * @memberof ExchangeInformationResponseSymbolsInner */ baseAsset?: string; /** * * @type {string} * @memberof ExchangeInformationResponseSymbolsInner */ marginAsset?: string; /** * * @type {number} * @memberof ExchangeInformationResponseSymbolsInner */ pricePrecision?: number; /** * * @type {number} * @memberof ExchangeInformationResponseSymbolsInner */ quantityPrecision?: number; /** * * @type {number} * @memberof ExchangeInformationResponseSymbolsInner */ baseAssetPrecision?: number; /** * * @type {number} * @memberof ExchangeInformationResponseSymbolsInner */ quotePrecision?: number; /** * * @type {number} * @memberof ExchangeInformationResponseSymbolsInner */ equalQtyPrecision?: number; /** * * @type {string} * @memberof ExchangeInformationResponseSymbolsInner */ triggerProtect?: string; /** * * @type {string} * @memberof ExchangeInformationResponseSymbolsInner */ maintMarginPercent?: string; /** * * @type {string} * @memberof ExchangeInformationResponseSymbolsInner */ requiredMarginPercent?: string; /** * * @type {string} * @memberof ExchangeInformationResponseSymbolsInner */ underlyingType?: string; /** * * @type {Array<string>} * @memberof ExchangeInformationResponseSymbolsInner */ underlyingSubType?: Array<string>; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 ExchangeInformationResponse */ interface ExchangeInformationResponse { /** * * @type {Array<string>} * @memberof ExchangeInformationResponse */ exchangeFilters?: Array<string>; /** * * @type {Array<ExchangeInformationResponseRateLimitsInner>} * @memberof ExchangeInformationResponse */ rateLimits?: Array<ExchangeInformationResponseRateLimitsInner>; /** * * @type {number} * @memberof ExchangeInformationResponse */ serverTime?: number; /** * * @type {Array<ExchangeInformationResponseSymbolsInner>} * @memberof ExchangeInformationResponse */ symbols?: Array<ExchangeInformationResponseSymbolsInner>; /** * * @type {string} * @memberof ExchangeInformationResponse */ timezone?: string; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 FuturesAccountBalanceResponseInner */ interface FuturesAccountBalanceResponseInner { /** * * @type {string} * @memberof FuturesAccountBalanceResponseInner */ accountAlias?: string; /** * * @type {string} * @memberof FuturesAccountBalanceResponseInner */ asset?: string; /** * * @type {string} * @memberof FuturesAccountBalanceResponseInner */ balance?: string; /** * * @type {string} * @memberof FuturesAccountBalanceResponseInner */ withdrawAvailable?: string; /** * * @type {string} * @memberof FuturesAccountBalanceResponseInner */ crossWalletBalance?: string; /** * * @type {string} * @memberof FuturesAccountBalanceResponseInner */ crossUnPnl?: string; /** * * @type {string} * @memberof FuturesAccountBalanceResponseInner */ availableBalance?: string; /** * * @type {number} * @memberof FuturesAccountBalanceResponseInner */ updateTime?: number; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 FuturesAccountBalanceResponse */ interface FuturesAccountBalanceResponse$1 extends Array<FuturesAccountBalanceResponseInner> { } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 GetCurrentPositionModeResponse */ interface GetCurrentPositionModeResponse { /** * * @type {boolean} * @memberof GetCurrentPositionModeResponse */ dualSidePosition?: boolean; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 GetDownloadIdForFuturesOrderHistoryResponse */ interface GetDownloadIdForFuturesOrderHistoryResponse { /** * * @type {number} * @memberof GetDownloadIdForFuturesOrderHistoryResponse */ avgCostTimestampOfLast30d?: number; /** * * @type {string} * @memberof GetDownloadIdForFuturesOrderHistoryResponse */ downloadId?: string; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 GetDownloadIdForFuturesTradeHistoryResponse */ interface GetDownloadIdForFuturesTradeHistoryResponse { /** * * @type {number} * @memberof GetDownloadIdForFuturesTradeHistoryResponse */ avgCostTimestampOfLast30d?: number; /** * * @type {string} * @memberof GetDownloadIdForFuturesTradeHistoryResponse */ downloadId?: string; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 GetDownloadIdForFuturesTransactionHistoryResponse */ interface GetDownloadIdForFuturesTransactionHistoryResponse { /** * * @type {number} * @memberof GetDownloadIdForFuturesTransactionHistoryResponse */ avgCostTimestampOfLast30d?: number; /** * * @type {string} * @memberof GetDownloadIdForFuturesTransactionHistoryResponse */ downloadId?: string; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 GetFundingRateHistoryOfPerpetualFuturesResponseInner */ interface GetFundingRateHistoryOfPerpetualFuturesResponseInner { /** * * @type {string} * @memberof GetFundingRateHistoryOfPerpetualFuturesResponseInner */ symbol?: string; /** * * @type {number} * @memberof GetFundingRateHistoryOfPerpetualFuturesResponseInner */ fundingTime?: number; /** * * @type {string} * @memberof GetFundingRateHistoryOfPerpetualFuturesResponseInner */ fundingRate?: string; } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 GetFundingRateHistoryOfPerpetualFuturesResponse */ interface GetFundingRateHistoryOfPerpetualFuturesResponse extends Array<GetFundingRateHistoryOfPerpetualFuturesResponseInner> { } /** * Binance Derivatives Trading COIN Futures REST API * * OpenAPI Specification for the Binance Derivatives Trading COIN Futures 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 GetFundingRateInfoResponseInner */ interface GetFundingRateInfoResponseInner { /** * * @type {string} * @memberof GetFundingRateInfoResponseInner */ symbol?: string; /** * * @type {string} * @memberof GetFundingRateInfoResponseInner