UNPKG

@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,248 lines (2,246 loc) 278 kB
import { BadRequestError, ConfigurationRestAPI, ConfigurationWebsocketStreams, ConnectorClientError, DERIVATIVES_TRADING_OPTIONS_REST_API_PROD_URL, DERIVATIVES_TRADING_OPTIONS_REST_API_TESTNET_URL, DERIVATIVES_TRADING_OPTIONS_WS_STREAMS_PROD_URL, DERIVATIVES_TRADING_OPTIONS_WS_STREAMS_TESTNET_URL, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, RestApiResponse, ServerError, TooManyRequestsError, UnauthorizedError, WebsocketStream, WebsocketStreamsBase } from "@binance/common"; //#region rolldown:runtime //#endregion //#region src/rest-api/types/accept-block-trade-order-response-legs-inner.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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; } //#endregion //#region src/rest-api/types/accept-block-trade-order-response.d.ts /** * * @export * @interface AcceptBlockTradeOrderResponse */ interface AcceptBlockTradeOrderResponse { /** * * @type {string} * @memberof AcceptBlockTradeOrderResponse */ blockTradeSettlementKey?: string; /** * * @type {number | bigint} * @memberof AcceptBlockTradeOrderResponse */ expireTime?: number | bigint; /** * * @type {string} * @memberof AcceptBlockTradeOrderResponse */ liquidity?: string; /** * * @type {string} * @memberof AcceptBlockTradeOrderResponse */ status?: string; /** * * @type {number | bigint} * @memberof AcceptBlockTradeOrderResponse */ createTime?: number | bigint; /** * * @type {Array<AcceptBlockTradeOrderResponseLegsInner>} * @memberof AcceptBlockTradeOrderResponse */ legs?: Array<AcceptBlockTradeOrderResponseLegsInner>; } //#endregion //#region src/rest-api/types/account-block-trade-list-response-inner-legs-inner.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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 | bigint} * @memberof AccountBlockTradeListResponseInnerLegsInner */ createTime?: number | bigint; /** * * @type {number | bigint} * @memberof AccountBlockTradeListResponseInnerLegsInner */ updateTime?: number | bigint; /** * * @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 | bigint} * @memberof AccountBlockTradeListResponseInnerLegsInner */ tradeId?: number | bigint; /** * * @type {number} * @memberof AccountBlockTradeListResponseInnerLegsInner */ tradePrice?: number; /** * * @type {number} * @memberof AccountBlockTradeListResponseInnerLegsInner */ tradeQty?: number; /** * * @type {number | bigint} * @memberof AccountBlockTradeListResponseInnerLegsInner */ tradeTime?: number | bigint; /** * * @type {string} * @memberof AccountBlockTradeListResponseInnerLegsInner */ liquidity?: string; /** * * @type {number} * @memberof AccountBlockTradeListResponseInnerLegsInner */ commission?: number; } //#endregion //#region src/rest-api/types/account-block-trade-list-response-inner.d.ts /** * * @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; } //#endregion //#region src/rest-api/types/account-block-trade-list-response.d.ts /** * * @export * @interface AccountBlockTradeListResponse */ interface AccountBlockTradeListResponse extends Array<AccountBlockTradeListResponseInner> {} //#endregion //#region src/rest-api/types/account-funding-flow-response-inner.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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 | bigint} * @memberof AccountFundingFlowResponseInner */ id?: number | bigint; /** * * @type {string} * @memberof AccountFundingFlowResponseInner */ asset?: string; /** * * @type {string} * @memberof AccountFundingFlowResponseInner */ amount?: string; /** * * @type {string} * @memberof AccountFundingFlowResponseInner */ type?: string; /** * * @type {number | bigint} * @memberof AccountFundingFlowResponseInner */ createDate?: number | bigint; } //#endregion //#region src/rest-api/types/account-funding-flow-response.d.ts /** * * @export * @interface AccountFundingFlowResponse */ interface AccountFundingFlowResponse extends Array<AccountFundingFlowResponseInner> {} //#endregion //#region src/rest-api/types/account-trade-list-response-inner.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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 | bigint} * @memberof AccountTradeListResponseInner */ id?: number | bigint; /** * * @type {number | bigint} * @memberof AccountTradeListResponseInner */ tradeId?: number | bigint; /** * * @type {number | bigint} * @memberof AccountTradeListResponseInner */ orderId?: number | bigint; /** * * @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 */ liquidity?: string; /** * * @type {number | bigint} * @memberof AccountTradeListResponseInner */ time?: number | bigint; /** * * @type {number | bigint} * @memberof AccountTradeListResponseInner */ priceScale?: number | bigint; /** * * @type {number | bigint} * @memberof AccountTradeListResponseInner */ quantityScale?: number | bigint; /** * * @type {string} * @memberof AccountTradeListResponseInner */ optionSide?: string; /** * * @type {string} * @memberof AccountTradeListResponseInner */ quoteAsset?: string; } //#endregion //#region src/rest-api/types/account-trade-list-response.d.ts /** * * @export * @interface AccountTradeListResponse */ interface AccountTradeListResponse extends Array<AccountTradeListResponseInner> {} //#endregion //#region src/rest-api/types/auto-cancel-all-open-orders-response.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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>; } //#endregion //#region src/rest-api/types/cancel-all-option-orders-by-underlying-response.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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 | bigint} * @memberof CancelAllOptionOrdersByUnderlyingResponse */ code?: number | bigint; /** * * @type {string} * @memberof CancelAllOptionOrdersByUnderlyingResponse */ msg?: string; } //#endregion //#region src/rest-api/types/cancel-all-option-orders-on-specific-symbol-response.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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 {string} * @memberof CancelAllOptionOrdersOnSpecificSymbolResponse */ code?: string; /** * * @type {string} * @memberof CancelAllOptionOrdersOnSpecificSymbolResponse */ msg?: string; } //#endregion //#region src/rest-api/types/cancel-multiple-option-orders-response-inner.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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 | bigint} * @memberof CancelMultipleOptionOrdersResponseInner */ orderId?: number | bigint; /** * * @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 {string} * @memberof CancelMultipleOptionOrdersResponseInner */ side?: string; /** * * @type {string} * @memberof CancelMultipleOptionOrdersResponseInner */ type?: string; /** * * @type {string} * @memberof CancelMultipleOptionOrdersResponseInner */ timeInForce?: string; /** * * @type {boolean} * @memberof CancelMultipleOptionOrdersResponseInner */ reduceOnly?: boolean; /** * * @type {number | bigint} * @memberof CancelMultipleOptionOrdersResponseInner */ createTime?: number | bigint; /** * * @type {number | bigint} * @memberof CancelMultipleOptionOrdersResponseInner */ updateTime?: number | bigint; /** * * @type {string} * @memberof CancelMultipleOptionOrdersResponseInner */ status?: string; /** * * @type {string} * @memberof CancelMultipleOptionOrdersResponseInner */ avgPrice?: string; /** * * @type {string} * @memberof CancelMultipleOptionOrdersResponseInner */ source?: string; /** * * @type {string} * @memberof CancelMultipleOptionOrdersResponseInner */ clientOrderId?: string; /** * * @type {number | bigint} * @memberof CancelMultipleOptionOrdersResponseInner */ priceScale?: number | bigint; /** * * @type {number | bigint} * @memberof CancelMultipleOptionOrdersResponseInner */ quantityScale?: number | bigint; /** * * @type {string} * @memberof CancelMultipleOptionOrdersResponseInner */ optionSide?: string; /** * * @type {string} * @memberof CancelMultipleOptionOrdersResponseInner */ quoteAsset?: string; /** * * @type {boolean} * @memberof CancelMultipleOptionOrdersResponseInner */ mmp?: boolean; /** * * @type {string} * @memberof CancelMultipleOptionOrdersResponseInner */ selfTradePreventionMode?: string; } //#endregion //#region src/rest-api/types/cancel-multiple-option-orders-response.d.ts /** * * @export * @interface CancelMultipleOptionOrdersResponse */ interface CancelMultipleOptionOrdersResponse extends Array<CancelMultipleOptionOrdersResponseInner> {} //#endregion //#region src/rest-api/types/cancel-option-order-response.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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 | bigint} * @memberof CancelOptionOrderResponse */ orderId?: number | bigint; /** * * @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 */ side?: string; /** * * @type {string} * @memberof CancelOptionOrderResponse */ type?: string; /** * * @type {string} * @memberof CancelOptionOrderResponse */ timeInForce?: string; /** * * @type {boolean} * @memberof CancelOptionOrderResponse */ reduceOnly?: boolean; /** * * @type {number | bigint} * @memberof CancelOptionOrderResponse */ createDate?: number | bigint; /** * * @type {number | bigint} * @memberof CancelOptionOrderResponse */ updateTime?: number | bigint; /** * * @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 | bigint} * @memberof CancelOptionOrderResponse */ priceScale?: number | bigint; /** * * @type {number | bigint} * @memberof CancelOptionOrderResponse */ quantityScale?: number | bigint; /** * * @type {string} * @memberof CancelOptionOrderResponse */ optionSide?: string; /** * * @type {string} * @memberof CancelOptionOrderResponse */ quoteAsset?: string; /** * * @type {boolean} * @memberof CancelOptionOrderResponse */ mmp?: boolean; /** * * @type {string} * @memberof CancelOptionOrderResponse */ selfTradePreventionMode?: string; } //#endregion //#region src/rest-api/types/check-server-time-response.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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 | bigint} * @memberof CheckServerTimeResponse */ serverTime?: number | bigint; } //#endregion //#region src/rest-api/types/exchange-information-response-option-assets-inner.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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; } //#endregion //#region src/rest-api/types/exchange-information-response-option-contracts-inner.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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; } //#endregion //#region src/rest-api/types/exchange-information-response-option-symbols-inner-filters-inner.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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; } //#endregion //#region src/rest-api/types/exchange-information-response-option-symbols-inner.d.ts /** * * @export * @interface ExchangeInformationResponseOptionSymbolsInner */ interface ExchangeInformationResponseOptionSymbolsInner { /** * * @type {number | bigint} * @memberof ExchangeInformationResponseOptionSymbolsInner */ expiryDate?: number | bigint; /** * * @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 | bigint} * @memberof ExchangeInformationResponseOptionSymbolsInner */ unit?: number | bigint; /** * * @type {string} * @memberof ExchangeInformationResponseOptionSymbolsInner */ liquidationFeeRate?: 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 | bigint} * @memberof ExchangeInformationResponseOptionSymbolsInner */ priceScale?: number | bigint; /** * * @type {number | bigint} * @memberof ExchangeInformationResponseOptionSymbolsInner */ quantityScale?: number | bigint; /** * * @type {string} * @memberof ExchangeInformationResponseOptionSymbolsInner */ quoteAsset?: string; /** * * @type {string} * @memberof ExchangeInformationResponseOptionSymbolsInner */ status?: string; } //#endregion //#region src/rest-api/types/exchange-information-response-rate-limits-inner.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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 | bigint} * @memberof ExchangeInformationResponseRateLimitsInner */ intervalNum?: number | bigint; /** * * @type {number | bigint} * @memberof ExchangeInformationResponseRateLimitsInner */ limit?: number | bigint; } //#endregion //#region src/rest-api/types/exchange-information-response.d.ts /** * * @export * @interface ExchangeInformationResponse */ interface ExchangeInformationResponse { /** * * @type {string} * @memberof ExchangeInformationResponse */ timezone?: string; /** * * @type {number | bigint} * @memberof ExchangeInformationResponse */ serverTime?: number | bigint; /** * * @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>; } //#endregion //#region src/rest-api/types/extend-block-trade-order-response-legs-inner.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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; } //#endregion //#region src/rest-api/types/extend-block-trade-order-response.d.ts /** * * @export * @interface ExtendBlockTradeOrderResponse */ interface ExtendBlockTradeOrderResponse { /** * * @type {string} * @memberof ExtendBlockTradeOrderResponse */ blockTradeSettlementKey?: string; /** * * @type {number | bigint} * @memberof ExtendBlockTradeOrderResponse */ expireTime?: number | bigint; /** * * @type {string} * @memberof ExtendBlockTradeOrderResponse */ liquidity?: string; /** * * @type {string} * @memberof ExtendBlockTradeOrderResponse */ status?: string; /** * * @type {number | bigint} * @memberof ExtendBlockTradeOrderResponse */ createTime?: number | bigint; /** * * @type {Array<ExtendBlockTradeOrderResponseLegsInner>} * @memberof ExtendBlockTradeOrderResponse */ legs?: Array<ExtendBlockTradeOrderResponseLegsInner>; } //#endregion //#region src/rest-api/types/get-auto-cancel-all-open-orders-response.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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 | bigint} * @memberof GetAutoCancelAllOpenOrdersResponse */ countdownTime?: number | bigint; } //#endregion //#region src/rest-api/types/get-market-maker-protection-config-response.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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 | bigint} * @memberof GetMarketMakerProtectionConfigResponse */ underlyingId?: number | bigint; /** * * @type {string} * @memberof GetMarketMakerProtectionConfigResponse */ underlying?: string; /** * * @type {number | bigint} * @memberof GetMarketMakerProtectionConfigResponse */ windowTimeInMilliseconds?: number | bigint; /** * * @type {number | bigint} * @memberof GetMarketMakerProtectionConfigResponse */ frozenTimeInMilliseconds?: number | bigint; /** * * @type {string} * @memberof GetMarketMakerProtectionConfigResponse */ qtyLimit?: string; /** * * @type {string} * @memberof GetMarketMakerProtectionConfigResponse */ deltaLimit?: string; /** * * @type {number | bigint} * @memberof GetMarketMakerProtectionConfigResponse */ lastTriggerTime?: number | bigint; } //#endregion //#region src/rest-api/types/historical-exercise-records-response-inner.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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 | bigint} * @memberof HistoricalExerciseRecordsResponseInner */ expiryDate?: number | bigint; /** * * @type {string} * @memberof HistoricalExerciseRecordsResponseInner */ strikeResult?: string; } //#endregion //#region src/rest-api/types/historical-exercise-records-response.d.ts /** * * @export * @interface HistoricalExerciseRecordsResponse */ interface HistoricalExerciseRecordsResponse extends Array<HistoricalExerciseRecordsResponseInner> {} //#endregion //#region src/rest-api/types/index-price-response.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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 IndexPriceResponse */ interface IndexPriceResponse { /** * * @type {number | bigint} * @memberof IndexPriceResponse */ time?: number | bigint; /** * * @type {string} * @memberof IndexPriceResponse */ indexPrice?: string; } //#endregion //#region src/rest-api/types/kline-candlestick-data-response-item-inner.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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 KlineCandlestickDataResponseItemInner * @export */ type KlineCandlestickDataResponseItemInner = number | string; //#endregion //#region src/rest-api/types/kline-candlestick-data-response-item.d.ts /** * * @export * @interface KlineCandlestickDataResponseItem */ interface KlineCandlestickDataResponseItem extends Array<KlineCandlestickDataResponseItemInner> {} //#endregion //#region src/rest-api/types/kline-candlestick-data-response.d.ts /** * * @export * @interface KlineCandlestickDataResponse */ interface KlineCandlestickDataResponse extends Array<KlineCandlestickDataResponseItem> {} //#endregion //#region src/rest-api/types/new-block-trade-order-response.d.ts /** * * @export * @interface NewBlockTradeOrderResponse */ interface NewBlockTradeOrderResponse { /** * * @type {string} * @memberof NewBlockTradeOrderResponse */ blockTradeSettlementKey?: string; /** * * @type {number | bigint} * @memberof NewBlockTradeOrderResponse */ expireTime?: number | bigint; /** * * @type {string} * @memberof NewBlockTradeOrderResponse */ liquidity?: string; /** * * @type {string} * @memberof NewBlockTradeOrderResponse */ status?: string; /** * * @type {Array<ExtendBlockTradeOrderResponseLegsInner>} * @memberof NewBlockTradeOrderResponse */ legs?: Array<ExtendBlockTradeOrderResponseLegsInner>; } //#endregion //#region src/rest-api/types/new-order-response.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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 NewOrderResponse */ interface NewOrderResponse { /** * * @type {number | bigint} * @memberof NewOrderResponse */ orderId?: number | bigint; /** * * @type {string} * @memberof NewOrderResponse */ symbol?: string; /** * * @type {string} * @memberof NewOrderResponse */ price?: string; /** * * @type {string} * @memberof NewOrderResponse */ quantity?: string; /** * * @type {string} * @memberof NewOrderResponse */ executedQty?: string; /** * * @type {string} * @memberof NewOrderResponse */ side?: string; /** * * @type {string} * @memberof NewOrderResponse */ type?: string; /** * * @type {string} * @memberof NewOrderResponse */ timeInForce?: string; /** * * @type {boolean} * @memberof NewOrderResponse */ reduceOnly?: boolean; /** * * @type {number | bigint} * @memberof NewOrderResponse */ createTime?: number | bigint; /** * * @type {number | bigint} * @memberof NewOrderResponse */ updateTime?: number | bigint; /** * * @type {string} * @memberof NewOrderResponse */ status?: string; /** * * @type {string} * @memberof NewOrderResponse */ avgPrice?: string; /** * * @type {string} * @memberof NewOrderResponse */ source?: string; /** * * @type {string} * @memberof NewOrderResponse */ clientOrderId?: string; /** * * @type {number | bigint} * @memberof NewOrderResponse */ priceScale?: number | bigint; /** * * @type {number | bigint} * @memberof NewOrderResponse */ quantityScale?: number | bigint; /** * * @type {string} * @memberof NewOrderResponse */ optionSide?: string; /** * * @type {string} * @memberof NewOrderResponse */ quoteAsset?: string; /** * * @type {boolean} * @memberof NewOrderResponse */ mmp?: boolean; /** * * @type {string} * @memberof NewOrderResponse */ selfTradePreventionMode?: string; } //#endregion //#region src/rest-api/types/open-interest-response-inner.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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 OpenInterestResponseInner */ interface OpenInterestResponseInner$1 { /** * * @type {string} * @memberof OpenInterestResponseInner */ symbol?: string; /** * * @type {string} * @memberof OpenInterestResponseInner */ sumOpenInterest?: string; /** * * @type {string} * @memberof OpenInterestResponseInner */ sumOpenInterestUsd?: string; /** * * @type {string} * @memberof OpenInterestResponseInner */ timestamp?: string; } //#endregion //#region src/rest-api/types/open-interest-response.d.ts /** * * @export * @interface OpenInterestResponse */ interface OpenInterestResponse$1 extends Array<OpenInterestResponseInner$1> {} //#endregion //#region src/rest-api/types/option-margin-account-information-response-asset-inner.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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 OptionMarginAccountInformationResponseAssetInner */ interface OptionMarginAccountInformationResponseAssetInner { /** * * @type {string} * @memberof OptionMarginAccountInformationResponseAssetInner */ asset?: string; /** * * @type {string} * @memberof OptionMarginAccountInformationResponseAssetInner */ marginBalance?: string; /** * * @type {string} * @memberof OptionMarginAccountInformationResponseAssetInner */ equity?: string; /** * * @type {string} * @memberof OptionMarginAccountInformationResponseAssetInner */ available?: string; /** * * @type {string} * @memberof OptionMarginAccountInformationResponseAssetInner */ initialMargin?: string; /** * * @type {string} * @memberof OptionMarginAccountInformationResponseAssetInner */ maintMargin?: string; /** * * @type {string} * @memberof OptionMarginAccountInformationResponseAssetInner */ unrealizedPNL?: string; /** * * @type {string} * @memberof OptionMarginAccountInformationResponseAssetInner */ adjustedEquity?: string; } //#endregion //#region src/rest-api/types/option-margin-account-information-response-greek-inner.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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 OptionMarginAccountInformationResponseGreekInner */ interface OptionMarginAccountInformationResponseGreekInner { /** * * @type {string} * @memberof OptionMarginAccountInformationResponseGreekInner */ underlying?: string; /** * * @type {string} * @memberof OptionMarginAccountInformationResponseGreekInner */ delta?: string; /** * * @type {string} * @memberof OptionMarginAccountInformationResponseGreekInner */ theta?: string; /** * * @type {string} * @memberof OptionMarginAccountInformationResponseGreekInner */ gamma?: string; /** * * @type {string} * @memberof OptionMarginAccountInformationResponseGreekInner */ vega?: string; } //#endregion //#region src/rest-api/types/option-margin-account-information-response.d.ts /** * * @export * @interface OptionMarginAccountInformationResponse */ interface OptionMarginAccountInformationResponse { /** * * @type {Array<OptionMarginAccountInformationResponseAssetInner>} * @memberof OptionMarginAccountInformationResponse */ asset?: Array<OptionMarginAccountInformationResponseAssetInner>; /** * * @type {Array<OptionMarginAccountInformationResponseGreekInner>} * @memberof OptionMarginAccountInformationResponse */ greek?: Array<OptionMarginAccountInformationResponseGreekInner>; /** * * @type {number | bigint} * @memberof OptionMarginAccountInformationResponse */ time?: number | bigint; /** * * @type {boolean} * @memberof OptionMarginAccountInformationResponse */ canTrade?: boolean; /** * * @type {boolean} * @memberof OptionMarginAccountInformationResponse */ canDeposit?: boolean; /** * * @type {boolean} * @memberof OptionMarginAccountInformationResponse */ canWithdraw?: boolean; /** * * @type {boolean} * @memberof OptionMarginAccountInformationResponse */ reduceOnly?: boolean; /** * * @type {number | bigint} * @memberof OptionMarginAccountInformationResponse */ tradeGroupId?: number | bigint; } //#endregion //#region src/rest-api/types/option-mark-price-response-inner.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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 OptionMarkPriceResponseInner */ interface OptionMarkPriceResponseInner { /** * * @type {string} * @memberof OptionMarkPriceResponseInner */ symbol?: string; /** * * @type {string} * @memberof OptionMarkPriceResponseInner */ markPrice?: string; /** * * @type {string} * @memberof OptionMarkPriceResponseInner */ bidIV?: string; /** * * @type {string} * @memberof OptionMarkPriceResponseInner */ askIV?: string; /** * * @type {string} * @memberof OptionMarkPriceResponseInner */ markIV?: string; /** * * @type {string} * @memberof OptionMarkPriceResponseInner */ delta?: string; /** * * @type {string} * @memberof OptionMarkPriceResponseInner */ theta?: string; /** * * @type {string} * @memberof OptionMarkPriceResponseInner */ gamma?: string; /** * * @type {string} * @memberof OptionMarkPriceResponseInner */ vega?: string; /** * * @type {string} * @memberof OptionMarkPriceResponseInner */ highPriceLimit?: string; /** * * @type {string} * @memberof OptionMarkPriceResponseInner */ lowPriceLimit?: string; /** * * @type {string} * @memberof OptionMarkPriceResponseInner */ riskFreeInterest?: string; } //#endregion //#region src/rest-api/types/option-mark-price-response.d.ts /** * * @export * @interface OptionMarkPriceResponse */ interface OptionMarkPriceResponse extends Array<OptionMarkPriceResponseInner> {} //#endregion //#region src/rest-api/types/option-position-information-response-inner.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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 OptionPositionInformationResponseInner */ interface OptionPositionInformationResponseInner { /** * * @type {string} * @memberof OptionPositionInformationResponseInner */ entryPrice?: string; /** * * @type {string} * @memberof OptionPositionInformationResponseInner */ symbol?: string; /** * * @type {string} * @memberof OptionPositionInformationResponseInner */ side?: string; /** * * @type {string} * @memberof OptionPositionInformationResponseInner */ quantity?: string; /** * * @type {string} * @memberof OptionPositionInformationResponseInner */ markValue?: string; /** * * @type {string} * @memberof OptionPositionInformationResponseInner */ unrealizedPNL?: string; /** * * @type {string} * @memberof OptionPositionInformationResponseInner */ markPrice?: string; /** * * @type {string} * @memberof OptionPositionInformationResponseInner */ strikePrice?: string; /** * * @type {number | bigint} * @memberof OptionPositionInformationResponseInner */ expiryDate?: number | bigint; /** * * @type {number | bigint} * @memberof OptionPositionInformationResponseInner */ priceScale?: number | bigint; /** * * @type {number | bigint} * @memberof OptionPositionInformationResponseInner */ quantityScale?: number | bigint; /** * * @type {string} * @memberof OptionPositionInformationResponseInner */ optionSide?: string; /** * * @type {string} * @memberof OptionPositionInformationResponseInner */ quoteAsset?: string; /** * * @type {number | bigint} * @memberof OptionPositionInformationResponseInner */ time?: number | bigint; /** * * @type {string} * @memberof OptionPositionInformationResponseInner */ bidQuantity?: string; /** * * @type {string} * @memberof OptionPositionInformationResponseInner */ askQuantity?: string; } //#endregion //#region src/rest-api/types/option-position-information-response.d.ts /** * * @export * @interface OptionPositionInformationResponse */ interface OptionPositionInformationResponse extends Array<OptionPositionInformationResponseInner> {} //#endregion //#region src/rest-api/types/order-book-response-asks-item.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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 OrderBookResponseAsksItem */ interface OrderBookResponseAsksItem extends Array<string> {} //#endregion //#region src/rest-api/types/order-book-response-bids-item.d.ts /** * Binance Derivatives Trading Options REST API * * OpenAPI Specification for the Binance 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 OrderBookResponseBidsItem */ interface OrderBookResponseBidsItem extends Array<string> {} //#endregion //#region src/rest-api/types/order-book-response.d.ts /** * * @export * @interface OrderBookResponse */ interface OrderBookResponse { /** * * @type {Array<OrderBookResponseBidsItem>} * @memberof OrderBookResponse */ bids?: Array<OrderBookResponseBidsItem>; /** * * @type {Array<OrderBookResponseAsksItem>} * @memberof OrderBookResponse */ asks?: Array<OrderBookResponseAsksItem>; /** * * @type {number | bigint} * @memberof OrderBookResponse */ T?: number | bigint; /** * * @type {number | bigint} * @memberof OrderBookResponse */ lastUpdateId?: number | bigint; } //#endregion //#region src/rest-api/types/place-multiple-orders-orders-