@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,251 lines (2,200 loc) • 832 kB
text/typescript
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 Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 AccountInformationV2ResponseAssetsInner
*/
interface AccountInformationV2ResponseAssetsInner {
/**
*
* @type {string}
* @memberof AccountInformationV2ResponseAssetsInner
*/
asset?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2ResponseAssetsInner
*/
walletBalance?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2ResponseAssetsInner
*/
unrealizedProfit?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2ResponseAssetsInner
*/
marginBalance?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2ResponseAssetsInner
*/
maintMargin?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2ResponseAssetsInner
*/
initialMargin?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2ResponseAssetsInner
*/
positionInitialMargin?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2ResponseAssetsInner
*/
openOrderInitialMargin?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2ResponseAssetsInner
*/
crossWalletBalance?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2ResponseAssetsInner
*/
crossUnPnl?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2ResponseAssetsInner
*/
availableBalance?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2ResponseAssetsInner
*/
maxWithdrawAmount?: string;
/**
*
* @type {boolean}
* @memberof AccountInformationV2ResponseAssetsInner
*/
marginAvailable?: boolean;
/**
*
* @type {number}
* @memberof AccountInformationV2ResponseAssetsInner
*/
updateTime?: number;
}
/**
* Binance Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 AccountInformationV2ResponsePositionsInner
*/
interface AccountInformationV2ResponsePositionsInner {
/**
*
* @type {string}
* @memberof AccountInformationV2ResponsePositionsInner
*/
symbol?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2ResponsePositionsInner
*/
initialMargin?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2ResponsePositionsInner
*/
maintMargin?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2ResponsePositionsInner
*/
unrealizedProfit?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2ResponsePositionsInner
*/
positionInitialMargin?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2ResponsePositionsInner
*/
openOrderInitialMargin?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2ResponsePositionsInner
*/
leverage?: string;
/**
*
* @type {boolean}
* @memberof AccountInformationV2ResponsePositionsInner
*/
isolated?: boolean;
/**
*
* @type {string}
* @memberof AccountInformationV2ResponsePositionsInner
*/
entryPrice?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2ResponsePositionsInner
*/
maxNotional?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2ResponsePositionsInner
*/
bidNotional?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2ResponsePositionsInner
*/
askNotional?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2ResponsePositionsInner
*/
positionSide?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2ResponsePositionsInner
*/
positionAmt?: string;
/**
*
* @type {number}
* @memberof AccountInformationV2ResponsePositionsInner
*/
updateTime?: number;
}
/**
* Binance Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 AccountInformationV2Response
*/
interface AccountInformationV2Response$1 {
/**
*
* @type {number}
* @memberof AccountInformationV2Response
*/
feeTier?: number;
/**
*
* @type {boolean}
* @memberof AccountInformationV2Response
*/
feeBurn?: boolean;
/**
*
* @type {boolean}
* @memberof AccountInformationV2Response
*/
canDeposit?: boolean;
/**
*
* @type {boolean}
* @memberof AccountInformationV2Response
*/
canWithdraw?: boolean;
/**
*
* @type {number}
* @memberof AccountInformationV2Response
*/
updateTime?: number;
/**
*
* @type {boolean}
* @memberof AccountInformationV2Response
*/
multiAssetsMargin?: boolean;
/**
*
* @type {number}
* @memberof AccountInformationV2Response
*/
tradeGroupId?: number;
/**
*
* @type {string}
* @memberof AccountInformationV2Response
*/
totalInitialMargin?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2Response
*/
totalMaintMargin?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2Response
*/
totalWalletBalance?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2Response
*/
totalUnrealizedProfit?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2Response
*/
totalMarginBalance?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2Response
*/
totalPositionInitialMargin?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2Response
*/
totalOpenOrderInitialMargin?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2Response
*/
totalCrossWalletBalance?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2Response
*/
totalCrossUnPnl?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2Response
*/
availableBalance?: string;
/**
*
* @type {string}
* @memberof AccountInformationV2Response
*/
maxWithdrawAmount?: string;
/**
*
* @type {Array<AccountInformationV2ResponseAssetsInner>}
* @memberof AccountInformationV2Response
*/
assets?: Array<AccountInformationV2ResponseAssetsInner>;
/**
*
* @type {Array<AccountInformationV2ResponsePositionsInner>}
* @memberof AccountInformationV2Response
*/
positions?: Array<AccountInformationV2ResponsePositionsInner>;
/**
*
* @type {boolean}
* @memberof AccountInformationV2Response
*/
canTrade?: boolean;
}
/**
* Binance Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 AccountInformationV3ResponseAssetsInner
*/
interface AccountInformationV3ResponseAssetsInner {
/**
*
* @type {string}
* @memberof AccountInformationV3ResponseAssetsInner
*/
asset?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3ResponseAssetsInner
*/
walletBalance?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3ResponseAssetsInner
*/
unrealizedProfit?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3ResponseAssetsInner
*/
marginBalance?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3ResponseAssetsInner
*/
maintMargin?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3ResponseAssetsInner
*/
initialMargin?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3ResponseAssetsInner
*/
positionInitialMargin?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3ResponseAssetsInner
*/
openOrderInitialMargin?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3ResponseAssetsInner
*/
crossWalletBalance?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3ResponseAssetsInner
*/
crossUnPnl?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3ResponseAssetsInner
*/
availableBalance?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3ResponseAssetsInner
*/
maxWithdrawAmount?: string;
/**
*
* @type {number}
* @memberof AccountInformationV3ResponseAssetsInner
*/
updateTime?: number;
/**
*
* @type {boolean}
* @memberof AccountInformationV3ResponseAssetsInner
*/
marginAvailable?: boolean;
}
/**
* Binance Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 AccountInformationV3ResponsePositionsInner
*/
interface AccountInformationV3ResponsePositionsInner {
/**
*
* @type {string}
* @memberof AccountInformationV3ResponsePositionsInner
*/
symbol?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3ResponsePositionsInner
*/
positionSide?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3ResponsePositionsInner
*/
positionAmt?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3ResponsePositionsInner
*/
unrealizedProfit?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3ResponsePositionsInner
*/
isolatedMargin?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3ResponsePositionsInner
*/
notional?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3ResponsePositionsInner
*/
isolatedWallet?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3ResponsePositionsInner
*/
initialMargin?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3ResponsePositionsInner
*/
maintMargin?: string;
/**
*
* @type {number}
* @memberof AccountInformationV3ResponsePositionsInner
*/
updateTime?: number;
}
/**
* Binance Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 AccountInformationV3Response
*/
interface AccountInformationV3Response {
/**
*
* @type {string}
* @memberof AccountInformationV3Response
*/
totalInitialMargin?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3Response
*/
totalMaintMargin?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3Response
*/
totalWalletBalance?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3Response
*/
totalUnrealizedProfit?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3Response
*/
totalMarginBalance?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3Response
*/
totalPositionInitialMargin?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3Response
*/
totalOpenOrderInitialMargin?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3Response
*/
totalCrossWalletBalance?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3Response
*/
totalCrossUnPnl?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3Response
*/
availableBalance?: string;
/**
*
* @type {string}
* @memberof AccountInformationV3Response
*/
maxWithdrawAmount?: string;
/**
*
* @type {Array<AccountInformationV3ResponseAssetsInner>}
* @memberof AccountInformationV3Response
*/
assets?: Array<AccountInformationV3ResponseAssetsInner>;
/**
*
* @type {Array<AccountInformationV3ResponsePositionsInner>}
* @memberof AccountInformationV3Response
*/
positions?: Array<AccountInformationV3ResponsePositionsInner>;
}
/**
* Binance Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 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 USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 CompressedAggregateTradesListResponse
*/
interface CompressedAggregateTradesListResponse extends Array<CompressedAggregateTradesListResponseInner> {
}
/**
* Binance Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 ContinuousContractKlineCandlestickDataResponseItemInner
* @export
*/
type ContinuousContractKlineCandlestickDataResponseItemInner = number | string;
/**
* Binance Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 ContinuousContractKlineCandlestickDataResponseItem
*/
interface ContinuousContractKlineCandlestickDataResponseItem extends Array<ContinuousContractKlineCandlestickDataResponseItemInner> {
}
/**
* Binance Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 ContinuousContractKlineCandlestickDataResponse
*/
interface ContinuousContractKlineCandlestickDataResponse extends Array<ContinuousContractKlineCandlestickDataResponseItem> {
}
/**
* Binance Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 CurrentAllOpenOrdersResponse
*/
interface CurrentAllOpenOrdersResponse extends Array<AllOrdersResponseInner> {
}
/**
* Binance Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 ExchangeInformationResponseAssetsInner
*/
interface ExchangeInformationResponseAssetsInner {
/**
*
* @type {string}
* @memberof ExchangeInformationResponseAssetsInner
*/
asset?: string;
/**
*
* @type {boolean}
* @memberof ExchangeInformationResponseAssetsInner
*/
marginAvailable?: boolean;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseAssetsInner
*/
autoAssetExchange?: string;
}
/**
* Binance Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 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 USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 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
*/
notional?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseSymbolsInnerFiltersInner
*/
multiplierUp?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseSymbolsInnerFiltersInner
*/
multiplierDown?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseSymbolsInnerFiltersInner
*/
multiplierDecimal?: string;
}
/**
* Binance Derivatives Trading USDS Futures REST API
*
* OpenAPI Specification for the Binance 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 ExchangeInformationResponseSymbolsInner
*/
interface ExchangeInformationResponseSymbolsInner {
/**
*
* @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
*/
status?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseSymbolsInner
*/
maintMarginPercent?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseSymbolsInner
*/
requiredMarginPercent?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseSymbolsInner