UNPKG

@binance/derivatives-trading-usds-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,247 lines (2,202 loc) 863 kB
import { RestApiResponse, ConfigurationRestAPI, WebsocketApiResponse, WebsocketAPIBase, WebsocketSendMsgOptions, ConfigurationWebsocketAPI, WebsocketStream, WebsocketStreamsBase, ConfigurationWebsocketStreams } from '@binance/common'; export { BadRequestError, ConnectorClientError, DERIVATIVES_TRADING_USDS_FUTURES_REST_API_PROD_URL, DERIVATIVES_TRADING_USDS_FUTURES_REST_API_TESTNET_URL, DERIVATIVES_TRADING_USDS_FUTURES_WS_API_PROD_URL, DERIVATIVES_TRADING_USDS_FUTURES_WS_API_TESTNET_URL, DERIVATIVES_TRADING_USDS_FUTURES_WS_STREAMS_PROD_URL, DERIVATIVES_TRADING_USDS_FUTURES_WS_STREAMS_TESTNET_URL, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError } from '@binance/common'; /** * Binance Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 AcceptTheOfferedQuoteResponse */ interface AcceptTheOfferedQuoteResponse { /** * * @type {string} * @memberof AcceptTheOfferedQuoteResponse */ orderId?: string; /** * * @type {number} * @memberof AcceptTheOfferedQuoteResponse */ createTime?: number; /** * * @type {string} * @memberof AcceptTheOfferedQuoteResponse */ orderStatus?: string; } /** * Binance Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 AccountInformationV2Response1AssetsInner */ interface AccountInformationV2Response1AssetsInner { /** * * @type {string} * @memberof AccountInformationV2Response1AssetsInner */ asset?: string; /** * * @type {string} * @memberof AccountInformationV2Response1AssetsInner */ walletBalance?: string; /** * * @type {string} * @memberof AccountInformationV2Response1AssetsInner */ unrealizedProfit?: string; /** * * @type {string} * @memberof AccountInformationV2Response1AssetsInner */ marginBalance?: string; /** * * @type {string} * @memberof AccountInformationV2Response1AssetsInner */ maintMargin?: string; /** * * @type {string} * @memberof AccountInformationV2Response1AssetsInner */ initialMargin?: string; /** * * @type {string} * @memberof AccountInformationV2Response1AssetsInner */ positionInitialMargin?: string; /** * * @type {string} * @memberof AccountInformationV2Response1AssetsInner */ openOrderInitialMargin?: string; /** * * @type {string} * @memberof AccountInformationV2Response1AssetsInner */ crossWalletBalance?: string; /** * * @type {string} * @memberof AccountInformationV2Response1AssetsInner */ crossUnPnl?: string; /** * * @type {string} * @memberof AccountInformationV2Response1AssetsInner */ availableBalance?: string; /** * * @type {string} * @memberof AccountInformationV2Response1AssetsInner */ maxWithdrawAmount?: string; /** * * @type {boolean} * @memberof AccountInformationV2Response1AssetsInner */ marginAvailable?: boolean; /** * * @type {number} * @memberof AccountInformationV2Response1AssetsInner */ updateTime?: number; } /** * Binance Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 AccountInformationV2Response1PositionsInner */ interface AccountInformationV2Response1PositionsInner { /** * * @type {string} * @memberof AccountInformationV2Response1PositionsInner */ symbol?: string; /** * * @type {string} * @memberof AccountInformationV2Response1PositionsInner */ initialMargin?: string; /** * * @type {string} * @memberof AccountInformationV2Response1PositionsInner */ maintMargin?: string; /** * * @type {string} * @memberof AccountInformationV2Response1PositionsInner */ unrealizedProfit?: string; /** * * @type {string} * @memberof AccountInformationV2Response1PositionsInner */ positionInitialMargin?: string; /** * * @type {string} * @memberof AccountInformationV2Response1PositionsInner */ openOrderInitialMargin?: string; /** * * @type {string} * @memberof AccountInformationV2Response1PositionsInner */ leverage?: string; /** * * @type {boolean} * @memberof AccountInformationV2Response1PositionsInner */ isolated?: boolean; /** * * @type {string} * @memberof AccountInformationV2Response1PositionsInner */ entryPrice?: string; /** * * @type {string} * @memberof AccountInformationV2Response1PositionsInner */ maxNotional?: string; /** * * @type {string} * @memberof AccountInformationV2Response1PositionsInner */ bidNotional?: string; /** * * @type {string} * @memberof AccountInformationV2Response1PositionsInner */ askNotional?: string; /** * * @type {string} * @memberof AccountInformationV2Response1PositionsInner */ positionSide?: string; /** * * @type {string} * @memberof AccountInformationV2Response1PositionsInner */ positionAmt?: string; /** * * @type {number} * @memberof AccountInformationV2Response1PositionsInner */ updateTime?: number; } /** * Binance Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 AccountInformationV2Response1 */ interface AccountInformationV2Response1$1 { /** * * @type {number} * @memberof AccountInformationV2Response1 */ feeTier?: number; /** * * @type {boolean} * @memberof AccountInformationV2Response1 */ feeBurn?: boolean; /** * * @type {boolean} * @memberof AccountInformationV2Response1 */ canDeposit?: boolean; /** * * @type {boolean} * @memberof AccountInformationV2Response1 */ canWithdraw?: boolean; /** * * @type {number} * @memberof AccountInformationV2Response1 */ updateTime?: number; /** * * @type {boolean} * @memberof AccountInformationV2Response1 */ multiAssetsMargin?: boolean; /** * * @type {number} * @memberof AccountInformationV2Response1 */ tradeGroupId?: number; /** * * @type {string} * @memberof AccountInformationV2Response1 */ totalInitialMargin?: string; /** * * @type {string} * @memberof AccountInformationV2Response1 */ totalMaintMargin?: string; /** * * @type {string} * @memberof AccountInformationV2Response1 */ totalWalletBalance?: string; /** * * @type {string} * @memberof AccountInformationV2Response1 */ totalUnrealizedProfit?: string; /** * * @type {string} * @memberof AccountInformationV2Response1 */ totalMarginBalance?: string; /** * * @type {string} * @memberof AccountInformationV2Response1 */ totalPositionInitialMargin?: string; /** * * @type {string} * @memberof AccountInformationV2Response1 */ totalOpenOrderInitialMargin?: string; /** * * @type {string} * @memberof AccountInformationV2Response1 */ totalCrossWalletBalance?: string; /** * * @type {string} * @memberof AccountInformationV2Response1 */ totalCrossUnPnl?: string; /** * * @type {string} * @memberof AccountInformationV2Response1 */ availableBalance?: string; /** * * @type {string} * @memberof AccountInformationV2Response1 */ maxWithdrawAmount?: string; /** * * @type {Array<AccountInformationV2Response1AssetsInner>} * @memberof AccountInformationV2Response1 */ assets?: Array<AccountInformationV2Response1AssetsInner>; /** * * @type {Array<AccountInformationV2Response1PositionsInner>} * @memberof AccountInformationV2Response1 */ positions?: Array<AccountInformationV2Response1PositionsInner>; } /** * Binance Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 AccountInformationV2Response2AssetsInner */ interface AccountInformationV2Response2AssetsInner { /** * * @type {string} * @memberof AccountInformationV2Response2AssetsInner */ asset?: string; /** * * @type {string} * @memberof AccountInformationV2Response2AssetsInner */ walletBalance?: string; /** * * @type {string} * @memberof AccountInformationV2Response2AssetsInner */ unrealizedProfit?: string; /** * * @type {string} * @memberof AccountInformationV2Response2AssetsInner */ marginBalance?: string; /** * * @type {string} * @memberof AccountInformationV2Response2AssetsInner */ maintMargin?: string; /** * * @type {string} * @memberof AccountInformationV2Response2AssetsInner */ initialMargin?: string; /** * * @type {string} * @memberof AccountInformationV2Response2AssetsInner */ positionInitialMargin?: string; /** * * @type {string} * @memberof AccountInformationV2Response2AssetsInner */ openOrderInitialMargin?: string; /** * * @type {string} * @memberof AccountInformationV2Response2AssetsInner */ crossWalletBalance?: string; /** * * @type {string} * @memberof AccountInformationV2Response2AssetsInner */ crossUnPnl?: string; /** * * @type {string} * @memberof AccountInformationV2Response2AssetsInner */ availableBalance?: string; /** * * @type {string} * @memberof AccountInformationV2Response2AssetsInner */ maxWithdrawAmount?: string; /** * * @type {boolean} * @memberof AccountInformationV2Response2AssetsInner */ marginAvailable?: boolean; /** * * @type {number} * @memberof AccountInformationV2Response2AssetsInner */ updateTime?: number; } /** * Binance Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 AccountInformationV2Response2 */ interface AccountInformationV2Response2$1 { /** * * @type {number} * @memberof AccountInformationV2Response2 */ feeTier?: number; /** * * @type {boolean} * @memberof AccountInformationV2Response2 */ feeBurn?: boolean; /** * * @type {boolean} * @memberof AccountInformationV2Response2 */ canTrade?: boolean; /** * * @type {boolean} * @memberof AccountInformationV2Response2 */ canDeposit?: boolean; /** * * @type {boolean} * @memberof AccountInformationV2Response2 */ canWithdraw?: boolean; /** * * @type {number} * @memberof AccountInformationV2Response2 */ updateTime?: number; /** * * @type {boolean} * @memberof AccountInformationV2Response2 */ multiAssetsMargin?: boolean; /** * * @type {number} * @memberof AccountInformationV2Response2 */ tradeGroupId?: number; /** * * @type {string} * @memberof AccountInformationV2Response2 */ totalInitialMargin?: string; /** * * @type {string} * @memberof AccountInformationV2Response2 */ totalMaintMargin?: string; /** * * @type {string} * @memberof AccountInformationV2Response2 */ totalWalletBalance?: string; /** * * @type {string} * @memberof AccountInformationV2Response2 */ totalUnrealizedProfit?: string; /** * * @type {string} * @memberof AccountInformationV2Response2 */ totalMarginBalance?: string; /** * * @type {string} * @memberof AccountInformationV2Response2 */ totalPositionInitialMargin?: string; /** * * @type {string} * @memberof AccountInformationV2Response2 */ totalOpenOrderInitialMargin?: string; /** * * @type {string} * @memberof AccountInformationV2Response2 */ totalCrossWalletBalance?: string; /** * * @type {string} * @memberof AccountInformationV2Response2 */ totalCrossUnPnl?: string; /** * * @type {string} * @memberof AccountInformationV2Response2 */ availableBalance?: string; /** * * @type {string} * @memberof AccountInformationV2Response2 */ maxWithdrawAmount?: string; /** * * @type {Array<AccountInformationV2Response2AssetsInner>} * @memberof AccountInformationV2Response2 */ assets?: Array<AccountInformationV2Response2AssetsInner>; /** * * @type {Array<AccountInformationV2Response1PositionsInner>} * @memberof AccountInformationV2Response2 */ positions?: Array<AccountInformationV2Response1PositionsInner>; } /** * Binance Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 AccountInformationV2Response * @export */ type AccountInformationV2Response$1 = AccountInformationV2Response1$1 | AccountInformationV2Response2$1; /** * Binance Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 AccountInformationV3Response1AssetsInner */ interface AccountInformationV3Response1AssetsInner { /** * * @type {string} * @memberof AccountInformationV3Response1AssetsInner */ asset?: string; /** * * @type {string} * @memberof AccountInformationV3Response1AssetsInner */ walletBalance?: string; /** * * @type {string} * @memberof AccountInformationV3Response1AssetsInner */ unrealizedProfit?: string; /** * * @type {string} * @memberof AccountInformationV3Response1AssetsInner */ marginBalance?: string; /** * * @type {string} * @memberof AccountInformationV3Response1AssetsInner */ maintMargin?: string; /** * * @type {string} * @memberof AccountInformationV3Response1AssetsInner */ initialMargin?: string; /** * * @type {string} * @memberof AccountInformationV3Response1AssetsInner */ positionInitialMargin?: string; /** * * @type {string} * @memberof AccountInformationV3Response1AssetsInner */ openOrderInitialMargin?: string; /** * * @type {string} * @memberof AccountInformationV3Response1AssetsInner */ crossWalletBalance?: string; /** * * @type {string} * @memberof AccountInformationV3Response1AssetsInner */ crossUnPnl?: string; /** * * @type {string} * @memberof AccountInformationV3Response1AssetsInner */ availableBalance?: string; /** * * @type {string} * @memberof AccountInformationV3Response1AssetsInner */ maxWithdrawAmount?: string; /** * * @type {number} * @memberof AccountInformationV3Response1AssetsInner */ updateTime?: number; } /** * Binance Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 AccountInformationV3Response1PositionsInner */ interface AccountInformationV3Response1PositionsInner { /** * * @type {string} * @memberof AccountInformationV3Response1PositionsInner */ symbol?: string; /** * * @type {string} * @memberof AccountInformationV3Response1PositionsInner */ positionSide?: string; /** * * @type {string} * @memberof AccountInformationV3Response1PositionsInner */ positionAmt?: string; /** * * @type {string} * @memberof AccountInformationV3Response1PositionsInner */ unrealizedProfit?: string; /** * * @type {string} * @memberof AccountInformationV3Response1PositionsInner */ isolatedMargin?: string; /** * * @type {string} * @memberof AccountInformationV3Response1PositionsInner */ notional?: string; /** * * @type {string} * @memberof AccountInformationV3Response1PositionsInner */ isolatedWallet?: string; /** * * @type {string} * @memberof AccountInformationV3Response1PositionsInner */ initialMargin?: string; /** * * @type {string} * @memberof AccountInformationV3Response1PositionsInner */ maintMargin?: string; /** * * @type {number} * @memberof AccountInformationV3Response1PositionsInner */ updateTime?: number; } /** * Binance Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 AccountInformationV3Response1 */ interface AccountInformationV3Response1 { /** * * @type {string} * @memberof AccountInformationV3Response1 */ totalInitialMargin?: string; /** * * @type {string} * @memberof AccountInformationV3Response1 */ totalMaintMargin?: string; /** * * @type {string} * @memberof AccountInformationV3Response1 */ totalWalletBalance?: string; /** * * @type {string} * @memberof AccountInformationV3Response1 */ totalUnrealizedProfit?: string; /** * * @type {string} * @memberof AccountInformationV3Response1 */ totalMarginBalance?: string; /** * * @type {string} * @memberof AccountInformationV3Response1 */ totalPositionInitialMargin?: string; /** * * @type {string} * @memberof AccountInformationV3Response1 */ totalOpenOrderInitialMargin?: string; /** * * @type {string} * @memberof AccountInformationV3Response1 */ totalCrossWalletBalance?: string; /** * * @type {string} * @memberof AccountInformationV3Response1 */ totalCrossUnPnl?: string; /** * * @type {string} * @memberof AccountInformationV3Response1 */ availableBalance?: string; /** * * @type {string} * @memberof AccountInformationV3Response1 */ maxWithdrawAmount?: string; /** * * @type {Array<AccountInformationV3Response1AssetsInner>} * @memberof AccountInformationV3Response1 */ assets?: Array<AccountInformationV3Response1AssetsInner>; /** * * @type {Array<AccountInformationV3Response1PositionsInner>} * @memberof AccountInformationV3Response1 */ positions?: Array<AccountInformationV3Response1PositionsInner>; } /** * Binance Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 AccountInformationV3Response2 */ interface AccountInformationV3Response2 { /** * * @type {string} * @memberof AccountInformationV3Response2 */ totalInitialMargin?: string; /** * * @type {string} * @memberof AccountInformationV3Response2 */ totalMaintMargin?: string; /** * * @type {string} * @memberof AccountInformationV3Response2 */ totalWalletBalance?: string; /** * * @type {string} * @memberof AccountInformationV3Response2 */ totalUnrealizedProfit?: string; /** * * @type {string} * @memberof AccountInformationV3Response2 */ totalMarginBalance?: string; /** * * @type {string} * @memberof AccountInformationV3Response2 */ totalPositionInitialMargin?: string; /** * * @type {string} * @memberof AccountInformationV3Response2 */ totalOpenOrderInitialMargin?: string; /** * * @type {string} * @memberof AccountInformationV3Response2 */ totalCrossWalletBalance?: string; /** * * @type {string} * @memberof AccountInformationV3Response2 */ totalCrossUnPnl?: string; /** * * @type {string} * @memberof AccountInformationV3Response2 */ availableBalance?: string; /** * * @type {string} * @memberof AccountInformationV3Response2 */ maxWithdrawAmount?: string; /** * * @type {Array<AccountInformationV2Response2AssetsInner>} * @memberof AccountInformationV3Response2 */ assets?: Array<AccountInformationV2Response2AssetsInner>; /** * * @type {Array<AccountInformationV3Response1PositionsInner>} * @memberof AccountInformationV3Response2 */ positions?: Array<AccountInformationV3Response1PositionsInner>; } /** * @type AccountInformationV3Response * @export */ type AccountInformationV3Response = AccountInformationV3Response1 | AccountInformationV3Response2; /** * Binance Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 {boolean} * @memberof AccountTradeListResponseInner */ buyer?: boolean; /** * * @type {string} * @memberof AccountTradeListResponseInner */ commission?: string; /** * * @type {string} * @memberof AccountTradeListResponseInner */ commissionAsset?: string; /** * * @type {number} * @memberof AccountTradeListResponseInner */ id?: number; /** * * @type {boolean} * @memberof AccountTradeListResponseInner */ maker?: boolean; /** * * @type {number} * @memberof AccountTradeListResponseInner */ orderId?: number; /** * * @type {string} * @memberof AccountTradeListResponseInner */ price?: string; /** * * @type {string} * @memberof AccountTradeListResponseInner */ qty?: string; /** * * @type {string} * @memberof AccountTradeListResponseInner */ quoteQty?: string; /** * * @type {string} * @memberof AccountTradeListResponseInner */ realizedPnl?: string; /** * * @type {string} * @memberof AccountTradeListResponseInner */ side?: string; /** * * @type {string} * @memberof AccountTradeListResponseInner */ positionSide?: string; /** * * @type {string} * @memberof AccountTradeListResponseInner */ symbol?: string; /** * * @type {number} * @memberof AccountTradeListResponseInner */ time?: number; } /** * Binance Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 */ cumQuote?: 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 {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; /** * * @type {number} * @memberof AllOrdersResponseInner */ goodTillDate?: number; } /** * Binance Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 AutoCancelAllOpenOrdersResponse */ interface AutoCancelAllOpenOrdersResponse { /** * * @type {string} * @memberof AutoCancelAllOpenOrdersResponse */ symbol?: string; /** * * @type {string} * @memberof AutoCancelAllOpenOrdersResponse */ countdownTime?: string; } /** * Binance Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 BadRequest */ interface BadRequest { /** * * @type {number} * @memberof BadRequest */ code: number; /** * * @type {string} * @memberof BadRequest */ message: string; } /** * Binance Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 */ clientOrderId?: string; /** * * @type {string} * @memberof CancelMultipleOrdersResponseInner */ cumQty?: string; /** * * @type {string} * @memberof CancelMultipleOrdersResponseInner */ cumQuote?: 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 {number} * @memberof CancelMultipleOrdersResponseInner */ updateTime?: number; /** * * @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 */ goodTillDate?: number; /** * * @type {number} * @memberof CancelMultipleOrdersResponseInner */ code?: number; /** * * @type {string} * @memberof CancelMultipleOrdersResponseInner */ msg?: string; } /** * Binance Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 */ clientOrderId?: string; /** * * @type {string} * @memberof CancelOrderResponse */ cumQty?: string; /** * * @type {string} * @memberof CancelOrderResponse */ cumQuote?: 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 */ 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; /** * * @type {number} * @memberof CancelOrderResponse */ goodTillDate?: number; } /** * Binance Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 */ maxNotionalValue?: string; /** * * @type {string} * @memberof ChangeInitialLeverageResponse */ symbol?: string; } /** * Binance Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 ChangeMultiAssetsModeResponse */ interface ChangeMultiAssetsModeResponse { /** * * @type {number} * @memberof ChangeMultiAssetsModeResponse */ code?: number; /** * * @type {string} * @memberof ChangeMultiAssetsModeResponse */ msg?: string; } /** * Binance Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 CompositeIndexSymbolInformationResponseInnerBaseAssetListInner */ interface CompositeIndexSymbolInformationResponseInnerBaseAssetListInner { /** * * @type {string} * @memberof CompositeIndexSymbolInformationResponseInnerBaseAssetListInner */ baseAsset?: string; /** * * @type {string} * @memberof CompositeIndexSymbolInformationResponseInnerBaseAssetListInner */ quoteAsset?: string; /** * * @type {string} * @memberof CompositeIndexSymbolInformationResponseInnerBaseAssetListInner */ weightInQuantity?: string; /** * * @type {string} * @memberof CompositeIndexSymbolInformationResponseInnerBaseAssetListInner */ weightInPercentage?: string; } /** * Binance Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 CompositeIndexSymbolInformationResponseInner */ interface CompositeIndexSymbolInformationResponseInner { /** * * @type {string} * @memberof CompositeIndexSymbolInformationResponseInner */ symbol?: string; /** * * @type {number} * @memberof CompositeIndexSymbolInformationResponseInner */ time?: number; /** * * @type {string} * @memberof CompositeIndexSymbolInformationResponseInner */ component?: string; /** * * @type {Array<CompositeIndexSymbolInformationResponseInnerBaseAssetListInner>} * @memberof CompositeIndexSymbolInformationResponseInner */ baseAssetList?: Array<CompositeIndexSymbolInformationResponseInnerBaseAssetListInner>; } /** * Binance Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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 CompositeIndexSymbolInformationResponse */ interface CompositeIndexSymbolInformationResponse extends Array<CompositeIndexSymbolInformationResponseInner> { } /** * Binance Public Derivatives Trading USDS Futures REST API * * OpenAPI Specification for the Binance Public Derivatives Trading USDS 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