@binance/derivatives-trading-options
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,237 lines (2,180 loc) • 325 kB
TypeScript
import { RestApiResponse, ConfigurationRestAPI, WebsocketStream, WebsocketStreamsBase, ConfigurationWebsocketStreams } from '@binance/common';
export { BadRequestError, ConnectorClientError, DERIVATIVES_TRADING_OPTIONS_REST_API_PROD_URL, DERIVATIVES_TRADING_OPTIONS_WS_STREAMS_PROD_URL, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError } from '@binance/common';
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 AcceptBlockTradeOrderResponseLegsInner
*/
interface AcceptBlockTradeOrderResponseLegsInner {
/**
*
* @type {string}
* @memberof AcceptBlockTradeOrderResponseLegsInner
*/
symbol?: string;
/**
*
* @type {string}
* @memberof AcceptBlockTradeOrderResponseLegsInner
*/
side?: string;
/**
*
* @type {string}
* @memberof AcceptBlockTradeOrderResponseLegsInner
*/
quantity?: string;
/**
*
* @type {string}
* @memberof AcceptBlockTradeOrderResponseLegsInner
*/
price?: string;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 AcceptBlockTradeOrderResponse
*/
interface AcceptBlockTradeOrderResponse {
/**
*
* @type {string}
* @memberof AcceptBlockTradeOrderResponse
*/
blockTradeSettlementKey?: string;
/**
*
* @type {number}
* @memberof AcceptBlockTradeOrderResponse
*/
expireTime?: number;
/**
*
* @type {string}
* @memberof AcceptBlockTradeOrderResponse
*/
liquidity?: string;
/**
*
* @type {string}
* @memberof AcceptBlockTradeOrderResponse
*/
status?: string;
/**
*
* @type {number}
* @memberof AcceptBlockTradeOrderResponse
*/
createTime?: number;
/**
*
* @type {Array<AcceptBlockTradeOrderResponseLegsInner>}
* @memberof AcceptBlockTradeOrderResponse
*/
legs?: Array<AcceptBlockTradeOrderResponseLegsInner>;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 AccountBlockTradeListResponseInnerLegsInner
*/
interface AccountBlockTradeListResponseInnerLegsInner {
/**
*
* @type {number}
* @memberof AccountBlockTradeListResponseInnerLegsInner
*/
createTime?: number;
/**
*
* @type {number}
* @memberof AccountBlockTradeListResponseInnerLegsInner
*/
updateTime?: number;
/**
*
* @type {string}
* @memberof AccountBlockTradeListResponseInnerLegsInner
*/
symbol?: string;
/**
*
* @type {string}
* @memberof AccountBlockTradeListResponseInnerLegsInner
*/
orderId?: string;
/**
*
* @type {number}
* @memberof AccountBlockTradeListResponseInnerLegsInner
*/
orderPrice?: number;
/**
*
* @type {number}
* @memberof AccountBlockTradeListResponseInnerLegsInner
*/
orderQuantity?: number;
/**
*
* @type {string}
* @memberof AccountBlockTradeListResponseInnerLegsInner
*/
orderStatus?: string;
/**
*
* @type {number}
* @memberof AccountBlockTradeListResponseInnerLegsInner
*/
executedQty?: number;
/**
*
* @type {number}
* @memberof AccountBlockTradeListResponseInnerLegsInner
*/
executedAmount?: number;
/**
*
* @type {number}
* @memberof AccountBlockTradeListResponseInnerLegsInner
*/
fee?: number;
/**
*
* @type {string}
* @memberof AccountBlockTradeListResponseInnerLegsInner
*/
orderType?: string;
/**
*
* @type {string}
* @memberof AccountBlockTradeListResponseInnerLegsInner
*/
orderSide?: string;
/**
*
* @type {string}
* @memberof AccountBlockTradeListResponseInnerLegsInner
*/
id?: string;
/**
*
* @type {number}
* @memberof AccountBlockTradeListResponseInnerLegsInner
*/
tradeId?: number;
/**
*
* @type {number}
* @memberof AccountBlockTradeListResponseInnerLegsInner
*/
tradePrice?: number;
/**
*
* @type {number}
* @memberof AccountBlockTradeListResponseInnerLegsInner
*/
tradeQty?: number;
/**
*
* @type {number}
* @memberof AccountBlockTradeListResponseInnerLegsInner
*/
tradeTime?: number;
/**
*
* @type {string}
* @memberof AccountBlockTradeListResponseInnerLegsInner
*/
liquidity?: string;
/**
*
* @type {number}
* @memberof AccountBlockTradeListResponseInnerLegsInner
*/
commission?: number;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 AccountBlockTradeListResponseInner
*/
interface AccountBlockTradeListResponseInner {
/**
*
* @type {string}
* @memberof AccountBlockTradeListResponseInner
*/
parentOrderId?: string;
/**
*
* @type {string}
* @memberof AccountBlockTradeListResponseInner
*/
crossType?: string;
/**
*
* @type {Array<AccountBlockTradeListResponseInnerLegsInner>}
* @memberof AccountBlockTradeListResponseInner
*/
legs?: Array<AccountBlockTradeListResponseInnerLegsInner>;
/**
*
* @type {string}
* @memberof AccountBlockTradeListResponseInner
*/
blockTradeSettlementKey?: string;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 AccountBlockTradeListResponse
*/
interface AccountBlockTradeListResponse extends Array<AccountBlockTradeListResponseInner> {
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 AccountFundingFlowResponseInner
*/
interface AccountFundingFlowResponseInner {
/**
*
* @type {number}
* @memberof AccountFundingFlowResponseInner
*/
id?: number;
/**
*
* @type {string}
* @memberof AccountFundingFlowResponseInner
*/
asset?: string;
/**
*
* @type {string}
* @memberof AccountFundingFlowResponseInner
*/
amount?: string;
/**
*
* @type {string}
* @memberof AccountFundingFlowResponseInner
*/
type?: string;
/**
*
* @type {number}
* @memberof AccountFundingFlowResponseInner
*/
createDate?: number;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 AccountFundingFlowResponse
*/
interface AccountFundingFlowResponse extends Array<AccountFundingFlowResponseInner> {
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 {number}
* @memberof AccountTradeListResponseInner
*/
id?: number;
/**
*
* @type {number}
* @memberof AccountTradeListResponseInner
*/
tradeId?: number;
/**
*
* @type {number}
* @memberof AccountTradeListResponseInner
*/
orderId?: number;
/**
*
* @type {string}
* @memberof AccountTradeListResponseInner
*/
symbol?: string;
/**
*
* @type {string}
* @memberof AccountTradeListResponseInner
*/
price?: string;
/**
*
* @type {string}
* @memberof AccountTradeListResponseInner
*/
quantity?: string;
/**
*
* @type {string}
* @memberof AccountTradeListResponseInner
*/
fee?: string;
/**
*
* @type {string}
* @memberof AccountTradeListResponseInner
*/
realizedProfit?: string;
/**
*
* @type {string}
* @memberof AccountTradeListResponseInner
*/
side?: string;
/**
*
* @type {string}
* @memberof AccountTradeListResponseInner
*/
type?: string;
/**
*
* @type {string}
* @memberof AccountTradeListResponseInner
*/
volatility?: string;
/**
*
* @type {string}
* @memberof AccountTradeListResponseInner
*/
liquidity?: string;
/**
*
* @type {string}
* @memberof AccountTradeListResponseInner
*/
quoteAsset?: string;
/**
*
* @type {number}
* @memberof AccountTradeListResponseInner
*/
time?: number;
/**
*
* @type {number}
* @memberof AccountTradeListResponseInner
*/
priceScale?: number;
/**
*
* @type {number}
* @memberof AccountTradeListResponseInner
*/
quantityScale?: number;
/**
*
* @type {string}
* @memberof AccountTradeListResponseInner
*/
optionSide?: string;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 {Array<string>}
* @memberof AutoCancelAllOpenOrdersResponse
*/
underlyings?: Array<string>;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 CancelAllOptionOrdersByUnderlyingResponse
*/
interface CancelAllOptionOrdersByUnderlyingResponse {
/**
*
* @type {number}
* @memberof CancelAllOptionOrdersByUnderlyingResponse
*/
code?: number;
/**
*
* @type {string}
* @memberof CancelAllOptionOrdersByUnderlyingResponse
*/
msg?: string;
/**
*
* @type {number}
* @memberof CancelAllOptionOrdersByUnderlyingResponse
*/
data?: number;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 CancelAllOptionOrdersOnSpecificSymbolResponse
*/
interface CancelAllOptionOrdersOnSpecificSymbolResponse {
/**
*
* @type {number}
* @memberof CancelAllOptionOrdersOnSpecificSymbolResponse
*/
code?: number;
/**
*
* @type {string}
* @memberof CancelAllOptionOrdersOnSpecificSymbolResponse
*/
msg?: string;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 CancelMultipleOptionOrdersResponseInner
*/
interface CancelMultipleOptionOrdersResponseInner {
/**
*
* @type {number}
* @memberof CancelMultipleOptionOrdersResponseInner
*/
orderId?: number;
/**
*
* @type {string}
* @memberof CancelMultipleOptionOrdersResponseInner
*/
symbol?: string;
/**
*
* @type {string}
* @memberof CancelMultipleOptionOrdersResponseInner
*/
price?: string;
/**
*
* @type {string}
* @memberof CancelMultipleOptionOrdersResponseInner
*/
quantity?: string;
/**
*
* @type {string}
* @memberof CancelMultipleOptionOrdersResponseInner
*/
executedQty?: string;
/**
*
* @type {number}
* @memberof CancelMultipleOptionOrdersResponseInner
*/
fee?: number;
/**
*
* @type {string}
* @memberof CancelMultipleOptionOrdersResponseInner
*/
side?: string;
/**
*
* @type {string}
* @memberof CancelMultipleOptionOrdersResponseInner
*/
type?: string;
/**
*
* @type {string}
* @memberof CancelMultipleOptionOrdersResponseInner
*/
timeInForce?: string;
/**
*
* @type {number}
* @memberof CancelMultipleOptionOrdersResponseInner
*/
createTime?: number;
/**
*
* @type {string}
* @memberof CancelMultipleOptionOrdersResponseInner
*/
status?: string;
/**
*
* @type {string}
* @memberof CancelMultipleOptionOrdersResponseInner
*/
avgPrice?: string;
/**
*
* @type {boolean}
* @memberof CancelMultipleOptionOrdersResponseInner
*/
reduceOnly?: boolean;
/**
*
* @type {string}
* @memberof CancelMultipleOptionOrdersResponseInner
*/
clientOrderId?: string;
/**
*
* @type {number}
* @memberof CancelMultipleOptionOrdersResponseInner
*/
updateTime?: number;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 CancelMultipleOptionOrdersResponse
*/
interface CancelMultipleOptionOrdersResponse extends Array<CancelMultipleOptionOrdersResponseInner> {
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 CancelOptionOrderResponse
*/
interface CancelOptionOrderResponse {
/**
*
* @type {number}
* @memberof CancelOptionOrderResponse
*/
orderId?: number;
/**
*
* @type {string}
* @memberof CancelOptionOrderResponse
*/
symbol?: string;
/**
*
* @type {string}
* @memberof CancelOptionOrderResponse
*/
price?: string;
/**
*
* @type {string}
* @memberof CancelOptionOrderResponse
*/
quantity?: string;
/**
*
* @type {string}
* @memberof CancelOptionOrderResponse
*/
executedQty?: string;
/**
*
* @type {string}
* @memberof CancelOptionOrderResponse
*/
fee?: string;
/**
*
* @type {string}
* @memberof CancelOptionOrderResponse
*/
side?: string;
/**
*
* @type {string}
* @memberof CancelOptionOrderResponse
*/
type?: string;
/**
*
* @type {string}
* @memberof CancelOptionOrderResponse
*/
timeInForce?: string;
/**
*
* @type {boolean}
* @memberof CancelOptionOrderResponse
*/
reduceOnly?: boolean;
/**
*
* @type {boolean}
* @memberof CancelOptionOrderResponse
*/
postOnly?: boolean;
/**
*
* @type {number}
* @memberof CancelOptionOrderResponse
*/
createDate?: number;
/**
*
* @type {number}
* @memberof CancelOptionOrderResponse
*/
updateTime?: number;
/**
*
* @type {string}
* @memberof CancelOptionOrderResponse
*/
status?: string;
/**
*
* @type {string}
* @memberof CancelOptionOrderResponse
*/
avgPrice?: string;
/**
*
* @type {string}
* @memberof CancelOptionOrderResponse
*/
source?: string;
/**
*
* @type {string}
* @memberof CancelOptionOrderResponse
*/
clientOrderId?: string;
/**
*
* @type {number}
* @memberof CancelOptionOrderResponse
*/
priceScale?: number;
/**
*
* @type {number}
* @memberof CancelOptionOrderResponse
*/
quantityScale?: number;
/**
*
* @type {string}
* @memberof CancelOptionOrderResponse
*/
optionSide?: string;
/**
*
* @type {string}
* @memberof CancelOptionOrderResponse
*/
quoteAsset?: string;
/**
*
* @type {boolean}
* @memberof CancelOptionOrderResponse
*/
mmp?: boolean;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 ExchangeInformationResponseOptionAssetsInner
*/
interface ExchangeInformationResponseOptionAssetsInner {
/**
*
* @type {string}
* @memberof ExchangeInformationResponseOptionAssetsInner
*/
name?: string;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 ExchangeInformationResponseOptionContractsInner
*/
interface ExchangeInformationResponseOptionContractsInner {
/**
*
* @type {string}
* @memberof ExchangeInformationResponseOptionContractsInner
*/
baseAsset?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseOptionContractsInner
*/
quoteAsset?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseOptionContractsInner
*/
underlying?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseOptionContractsInner
*/
settleAsset?: string;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 ExchangeInformationResponseOptionSymbolsInnerFiltersInner
*/
interface ExchangeInformationResponseOptionSymbolsInnerFiltersInner {
/**
*
* @type {string}
* @memberof ExchangeInformationResponseOptionSymbolsInnerFiltersInner
*/
filterType?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseOptionSymbolsInnerFiltersInner
*/
minPrice?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseOptionSymbolsInnerFiltersInner
*/
maxPrice?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseOptionSymbolsInnerFiltersInner
*/
tickSize?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseOptionSymbolsInnerFiltersInner
*/
minQty?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseOptionSymbolsInnerFiltersInner
*/
maxQty?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseOptionSymbolsInnerFiltersInner
*/
stepSize?: string;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 ExchangeInformationResponseOptionSymbolsInner
*/
interface ExchangeInformationResponseOptionSymbolsInner {
/**
*
* @type {number}
* @memberof ExchangeInformationResponseOptionSymbolsInner
*/
expiryDate?: number;
/**
*
* @type {Array<ExchangeInformationResponseOptionSymbolsInnerFiltersInner>}
* @memberof ExchangeInformationResponseOptionSymbolsInner
*/
filters?: Array<ExchangeInformationResponseOptionSymbolsInnerFiltersInner>;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseOptionSymbolsInner
*/
symbol?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseOptionSymbolsInner
*/
side?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseOptionSymbolsInner
*/
strikePrice?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseOptionSymbolsInner
*/
underlying?: string;
/**
*
* @type {number}
* @memberof ExchangeInformationResponseOptionSymbolsInner
*/
unit?: number;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseOptionSymbolsInner
*/
makerFeeRate?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseOptionSymbolsInner
*/
takerFeeRate?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseOptionSymbolsInner
*/
minQty?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseOptionSymbolsInner
*/
maxQty?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseOptionSymbolsInner
*/
initialMargin?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseOptionSymbolsInner
*/
maintenanceMargin?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseOptionSymbolsInner
*/
minInitialMargin?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseOptionSymbolsInner
*/
minMaintenanceMargin?: string;
/**
*
* @type {number}
* @memberof ExchangeInformationResponseOptionSymbolsInner
*/
priceScale?: number;
/**
*
* @type {number}
* @memberof ExchangeInformationResponseOptionSymbolsInner
*/
quantityScale?: number;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseOptionSymbolsInner
*/
quoteAsset?: string;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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
*/
rateLimitType?: string;
/**
*
* @type {string}
* @memberof ExchangeInformationResponseRateLimitsInner
*/
interval?: string;
/**
*
* @type {number}
* @memberof ExchangeInformationResponseRateLimitsInner
*/
intervalNum?: number;
/**
*
* @type {number}
* @memberof ExchangeInformationResponseRateLimitsInner
*/
limit?: number;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 {string}
* @memberof ExchangeInformationResponse
*/
timezone?: string;
/**
*
* @type {number}
* @memberof ExchangeInformationResponse
*/
serverTime?: number;
/**
*
* @type {Array<ExchangeInformationResponseOptionContractsInner>}
* @memberof ExchangeInformationResponse
*/
optionContracts?: Array<ExchangeInformationResponseOptionContractsInner>;
/**
*
* @type {Array<ExchangeInformationResponseOptionAssetsInner>}
* @memberof ExchangeInformationResponse
*/
optionAssets?: Array<ExchangeInformationResponseOptionAssetsInner>;
/**
*
* @type {Array<ExchangeInformationResponseOptionSymbolsInner>}
* @memberof ExchangeInformationResponse
*/
optionSymbols?: Array<ExchangeInformationResponseOptionSymbolsInner>;
/**
*
* @type {Array<ExchangeInformationResponseRateLimitsInner>}
* @memberof ExchangeInformationResponse
*/
rateLimits?: Array<ExchangeInformationResponseRateLimitsInner>;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 ExtendBlockTradeOrderResponseLegsInner
*/
interface ExtendBlockTradeOrderResponseLegsInner {
/**
*
* @type {string}
* @memberof ExtendBlockTradeOrderResponseLegsInner
*/
symbol?: string;
/**
*
* @type {string}
* @memberof ExtendBlockTradeOrderResponseLegsInner
*/
side?: string;
/**
*
* @type {string}
* @memberof ExtendBlockTradeOrderResponseLegsInner
*/
quantity?: string;
/**
*
* @type {string}
* @memberof ExtendBlockTradeOrderResponseLegsInner
*/
price?: string;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 ExtendBlockTradeOrderResponse
*/
interface ExtendBlockTradeOrderResponse {
/**
*
* @type {string}
* @memberof ExtendBlockTradeOrderResponse
*/
blockTradeSettlementKey?: string;
/**
*
* @type {number}
* @memberof ExtendBlockTradeOrderResponse
*/
expireTime?: number;
/**
*
* @type {string}
* @memberof ExtendBlockTradeOrderResponse
*/
liquidity?: string;
/**
*
* @type {string}
* @memberof ExtendBlockTradeOrderResponse
*/
status?: string;
/**
*
* @type {number}
* @memberof ExtendBlockTradeOrderResponse
*/
createTime?: number;
/**
*
* @type {Array<ExtendBlockTradeOrderResponseLegsInner>}
* @memberof ExtendBlockTradeOrderResponse
*/
legs?: Array<ExtendBlockTradeOrderResponseLegsInner>;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 GetAutoCancelAllOpenOrdersResponse
*/
interface GetAutoCancelAllOpenOrdersResponse {
/**
*
* @type {string}
* @memberof GetAutoCancelAllOpenOrdersResponse
*/
underlying?: string;
/**
*
* @type {number}
* @memberof GetAutoCancelAllOpenOrdersResponse
*/
countdownTime?: number;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 GetDownloadIdForOptionTransactionHistoryResponse
*/
interface GetDownloadIdForOptionTransactionHistoryResponse {
/**
*
* @type {number}
* @memberof GetDownloadIdForOptionTransactionHistoryResponse
*/
avgCostTimestampOfLast30d?: number;
/**
*
* @type {string}
* @memberof GetDownloadIdForOptionTransactionHistoryResponse
*/
downloadId?: string;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 GetMarketMakerProtectionConfigResponse
*/
interface GetMarketMakerProtectionConfigResponse {
/**
*
* @type {number}
* @memberof GetMarketMakerProtectionConfigResponse
*/
underlyingId?: number;
/**
*
* @type {string}
* @memberof GetMarketMakerProtectionConfigResponse
*/
underlying?: string;
/**
*
* @type {number}
* @memberof GetMarketMakerProtectionConfigResponse
*/
windowTimeInMilliseconds?: number;
/**
*
* @type {number}
* @memberof GetMarketMakerProtectionConfigResponse
*/
frozenTimeInMilliseconds?: number;
/**
*
* @type {string}
* @memberof GetMarketMakerProtectionConfigResponse
*/
qtyLimit?: string;
/**
*
* @type {string}
* @memberof GetMarketMakerProtectionConfigResponse
*/
deltaLimit?: string;
/**
*
* @type {number}
* @memberof GetMarketMakerProtectionConfigResponse
*/
lastTriggerTime?: number;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 GetOptionTransactionHistoryDownloadLinkByIdResponse1
*/
interface GetOptionTransactionHistoryDownloadLinkByIdResponse1 {
/**
*
* @type {string}
* @memberof GetOptionTransactionHistoryDownloadLinkByIdResponse1
*/
downloadId?: string;
/**
*
* @type {string}
* @memberof GetOptionTransactionHistoryDownloadLinkByIdResponse1
*/
status?: string;
/**
*
* @type {string}
* @memberof GetOptionTransactionHistoryDownloadLinkByIdResponse1
*/
url?: string;
/**
*
* @type {boolean}
* @memberof GetOptionTransactionHistoryDownloadLinkByIdResponse1
*/
notified?: boolean;
/**
*
* @type {number}
* @memberof GetOptionTransactionHistoryDownloadLinkByIdResponse1
*/
expirationTimestamp?: number;
/**
*
* @type {string}
* @memberof GetOptionTransactionHistoryDownloadLinkByIdResponse1
*/
isExpired?: string;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 GetOptionTransactionHistoryDownloadLinkByIdResponse2
*/
interface GetOptionTransactionHistoryDownloadLinkByIdResponse2 {
/**
*
* @type {string}
* @memberof GetOptionTransactionHistoryDownloadLinkByIdResponse2
*/
downloadId?: string;
/**
*
* @type {string}
* @memberof GetOptionTransactionHistoryDownloadLinkByIdResponse2
*/
status?: string;
/**
*
* @type {string}
* @memberof GetOptionTransactionHistoryDownloadLinkByIdResponse2
*/
url?: string;
/**
*
* @type {boolean}
* @memberof GetOptionTransactionHistoryDownloadLinkByIdResponse2
*/
notified?: boolean;
/**
*
* @type {number}
* @memberof GetOptionTransactionHistoryDownloadLinkByIdResponse2
*/
expirationTimestamp?: number;
/**
*
* @type {string}
* @memberof GetOptionTransactionHistoryDownloadLinkByIdResponse2
*/
isExpired?: string;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 GetOptionTransactionHistoryDownloadLinkByIdResponse
* @export
*/
type GetOptionTransactionHistoryDownloadLinkByIdResponse = GetOptionTransactionHistoryDownloadLinkByIdResponse1 | GetOptionTransactionHistoryDownloadLinkByIdResponse2;
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 HistoricalExerciseRecordsResponseInner
*/
interface HistoricalExerciseRecordsResponseInner {
/**
*
* @type {string}
* @memberof HistoricalExerciseRecordsResponseInner
*/
symbol?: string;
/**
*
* @type {string}
* @memberof HistoricalExerciseRecordsResponseInner
*/
strikePrice?: string;
/**
*
* @type {string}
* @memberof HistoricalExerciseRecordsResponseInner
*/
realStrikePrice?: string;
/**
*
* @type {number}
* @memberof HistoricalExerciseRecordsResponseInner
*/
expiryDate?: number;
/**
*
* @type {string}
* @memberof HistoricalExerciseRecordsResponseInner
*/
strikeResult?: string;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 HistoricalExerciseRecordsResponse
*/
interface HistoricalExerciseRecordsResponse extends Array<HistoricalExerciseRecordsResponseInner> {
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 KlineCandlestickDataResponseInner
*/
interface KlineCandlestickDataResponseInner {
/**
*
* @type {string}
* @memberof KlineCandlestickDataResponseInner
*/
open?: string;
/**
*
* @type {string}
* @memberof KlineCandlestickDataResponseInner
*/
high?: string;
/**
*
* @type {string}
* @memberof KlineCandlestickDataResponseInner
*/
low?: string;
/**
*
* @type {string}
* @memberof KlineCandlestickDataResponseInner
*/
close?: string;
/**
*
* @type {string}
* @memberof KlineCandlestickDataResponseInner
*/
volume?: string;
/**
*
* @type {string}
* @memberof KlineCandlestickDataResponseInner
*/
amount?: string;
/**
*
* @type {string}
* @memberof KlineCandlestickDataResponseInner
*/
interval?: string;
/**
*
* @type {number}
* @memberof KlineCandlestickDataResponseInner
*/
tradeCount?: number;
/**
*
* @type {string}
* @memberof KlineCandlestickDataResponseInner
*/
takerVolume?: string;
/**
*
* @type {string}
* @memberof KlineCandlestickDataResponseInner
*/
takerAmount?: string;
/**
*
* @type {number}
* @memberof KlineCandlestickDataResponseInner
*/
openTime?: number;
/**
*
* @type {number}
* @memberof KlineCandlestickDataResponseInner
*/
closeTime?: number;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 KlineCandlestickDataResponse
*/
interface KlineCandlestickDataResponse extends Array<KlineCandlestickDataResponseInner> {
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 NewBlockTradeOrderResponse
*/
interface NewBlockTradeOrderResponse {
/**
*
* @type {string}
* @memberof NewBlockTradeOrderResponse
*/
blockTradeSettlementKey?: string;
/**
*
* @type {number}
* @memberof NewBlockTradeOrderResponse
*/
expireTime?: number;
/**
*
* @type {string}
* @memberof NewBlockTradeOrderResponse
*/
liquidity?: string;
/**
*
* @type {string}
* @memberof NewBlockTradeOrderResponse
*/
status?: string;
/**
*
* @type {Array<ExtendBlockTradeOrderResponseLegsInner>}
* @memberof NewBlockTradeOrderResponse
*/
legs?: Array<ExtendBlockTradeOrderResponseLegsInner>;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 NewOrderResponse1
*/
interface NewOrderResponse1 {
/**
*
* @type {number}
* @memberof NewOrderResponse1
*/
orderId?: number;
/**
*
* @type {string}
* @memberof NewOrderResponse1
*/
symbol?: string;
/**
*
* @type {string}
* @memberof NewOrderResponse1
*/
price?: string;
/**
*
* @type {string}
* @memberof NewOrderResponse1
*/
quantity?: string;
/**
*
* @type {string}
* @memberof NewOrderResponse1
*/
side?: string;
/**
*
* @type {string}
* @memberof NewOrderResponse1
*/
type?: string;
/**
*
* @type {number}
* @memberof NewOrderResponse1
*/
createDate?: number;
/**
*
* @type {boolean}
* @memberof NewOrderResponse1
*/
reduceOnly?: boolean;
/**
*
* @type {boolean}
* @memberof NewOrderResponse1
*/
postOnly?: boolean;
/**
*
* @type {boolean}
* @memberof NewOrderResponse1
*/
mmp?: boolean;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 NewOrderResponse2
*/
interface NewOrderResponse2 {
/**
*
* @type {number}
* @memberof NewOrderResponse2
*/
orderId?: number;
/**
*
* @type {string}
* @memberof NewOrderResponse2
*/
symbol?: string;
/**
*
* @type {string}
* @memberof NewOrderResponse2
*/
price?: string;
/**
*
* @type {string}
* @memberof NewOrderResponse2
*/
quantity?: string;
/**
*
* @type {string}
* @memberof NewOrderResponse2
*/
executedQty?: string;
/**
*
* @type {string}
* @memberof NewOrderResponse2
*/
fee?: string;
/**
*
* @type {string}
* @memberof NewOrderResponse2
*/
side?: string;
/**
*
* @type {string}
* @memberof NewOrderResponse2
*/
type?: string;
/**
*
* @type {string}
* @memberof NewOrderResponse2
*/
timeInForce?: string;
/**
*
* @type {boolean}
* @memberof NewOrderResponse2
*/
reduceOnly?: boolean;
/**
*
* @type {boolean}
* @memberof NewOrderResponse2
*/
postOnly?: boolean;
/**
*
* @type {number}
* @memberof NewOrderResponse2
*/
createTime?: number;
/**
*
* @type {number}
* @memberof NewOrderResponse2
*/
updateTime?: number;
/**
*
* @type {string}
* @memberof NewOrderResponse2
*/
status?: string;
/**
*
* @type {string}
* @memberof NewOrderResponse2
*/
avgPrice?: string;
/**
*
* @type {string}
* @memberof NewOrderResponse2
*/
clientOrderId?: string;
/**
*
* @type {number}
* @memberof NewOrderResponse2
*/
priceScale?: number;
/**
*
* @type {number}
* @memberof NewOrderResponse2
*/
quantityScale?: number;
/**
*
* @type {string}
* @memberof NewOrderResponse2
*/
optionSide?: string;
/**
*
* @type {string}
* @memberof NewOrderResponse2
*/
quoteAsset?: string;
/**
*
* @type {boolean}
* @memberof NewOrderResponse2
*/
mmp?: boolean;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 NewOrderResponse
* @export
*/
type NewOrderResponse = NewOrderResponse1 | NewOrderResponse2;
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 OldTradesLookupResponseInner
*/
interface OldTradesLookupResponseInner {
/**
*
* @type {string}
* @memberof OldTradesLookupResponseInner
*/
id?: string;
/**
*
* @type {string}
* @memberof OldTradesLookupResponseInner
*/
tradeId?: string;
/**
*
* @type {string}
* @memberof OldTradesLookupResponseInner
*/
price?: string;
/**
*
* @type {string}
* @memberof OldTradesLookupResponseInner
*/
qty?: string;
/**
*
* @type {string}
* @memberof OldTradesLookupResponseInner
*/
quoteQty?: string;
/**
*
* @type {number}
* @memberof OldTradesLookupResponseInner
*/
side?: number;
/**
*
* @type {number}
* @memberof OldTradesLookupResponseInner
*/
time?: number;
}
/**
* Binance Public Derivatives Trading Options REST API
*
* OpenAPI Specification for the Binance Public Derivatives Trading Options 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 OldTradesLookupResponse
*/
interface OldTradesLookupResponse extends Array<OldTradesLookupResponseInner> {