import { RestApiResponse, ConfigurationRestAPI, WebsocketApiResponse, WebsocketAPIBase, WebsocketSendMsgOptions, ConfigurationWebsocketAPI, WebsocketStream, WebsocketStreamsBase, ConfigurationWebsocketStreams } from '@binance/common';
export { BadRequestError, ConnectorClientError, DERIVATIVES_TRADING_COIN_FUTURES_REST_API_PROD_URL, DERIVATIVES_TRADING_COIN_FUTURES_REST_API_TESTNET_URL, DERIVATIVES_TRADING_COIN_FUTURES_WS_API_PROD_URL, DERIVATIVES_TRADING_COIN_FUTURES_WS_API_TESTNET_URL, DERIVATIVES_TRADING_COIN_FUTURES_WS_STREAMS_PROD_URL, DERIVATIVES_TRADING_COIN_FUTURES_WS_STREAMS_TESTNET_URL, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError } from '@binance/common';

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface AccountInformationResponseAssetsInner
 */
interface AccountInformationResponseAssetsInner {
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseAssetsInner
     */
    asset?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseAssetsInner
     */
    walletBalance?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseAssetsInner
     */
    unrealizedProfit?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseAssetsInner
     */
    marginBalance?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseAssetsInner
     */
    maintMargin?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseAssetsInner
     */
    initialMargin?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseAssetsInner
     */
    positionInitialMargin?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseAssetsInner
     */
    openOrderInitialMargin?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseAssetsInner
     */
    maxWithdrawAmount?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseAssetsInner
     */
    crossWalletBalance?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseAssetsInner
     */
    crossUnPnl?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseAssetsInner
     */
    availableBalance?: string;
    /**
     *
     * @type {number}
     * @memberof AccountInformationResponseAssetsInner
     */
    updateTime?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface AccountInformationResponsePositionsInner
 */
interface AccountInformationResponsePositionsInner {
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponsePositionsInner
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponsePositionsInner
     */
    positionAmt?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponsePositionsInner
     */
    initialMargin?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponsePositionsInner
     */
    maintMargin?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponsePositionsInner
     */
    unrealizedProfit?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponsePositionsInner
     */
    positionInitialMargin?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponsePositionsInner
     */
    openOrderInitialMargin?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponsePositionsInner
     */
    leverage?: string;
    /**
     *
     * @type {boolean}
     * @memberof AccountInformationResponsePositionsInner
     */
    isolated?: boolean;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponsePositionsInner
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponsePositionsInner
     */
    entryPrice?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponsePositionsInner
     */
    breakEvenPrice?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponsePositionsInner
     */
    maxQty?: string;
    /**
     *
     * @type {number}
     * @memberof AccountInformationResponsePositionsInner
     */
    updateTime?: number;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponsePositionsInner
     */
    notionalValue?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface AccountInformationResponse
 */
interface AccountInformationResponse$1 {
    /**
     *
     * @type {Array<AccountInformationResponseAssetsInner>}
     * @memberof AccountInformationResponse
     */
    assets?: Array<AccountInformationResponseAssetsInner>;
    /**
     *
     * @type {Array<AccountInformationResponsePositionsInner>}
     * @memberof AccountInformationResponse
     */
    positions?: Array<AccountInformationResponsePositionsInner>;
    /**
     *
     * @type {boolean}
     * @memberof AccountInformationResponse
     */
    canDeposit?: boolean;
    /**
     *
     * @type {boolean}
     * @memberof AccountInformationResponse
     */
    canTrade?: boolean;
    /**
     *
     * @type {boolean}
     * @memberof AccountInformationResponse
     */
    canWithdraw?: boolean;
    /**
     *
     * @type {number}
     * @memberof AccountInformationResponse
     */
    feeTier?: number;
    /**
     *
     * @type {number}
     * @memberof AccountInformationResponse
     */
    updateTime?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface AccountTradeListResponseInner
 */
interface AccountTradeListResponseInner {
    /**
     *
     * @type {string}
     * @memberof AccountTradeListResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {number}
     * @memberof AccountTradeListResponseInner
     */
    id?: number;
    /**
     *
     * @type {number}
     * @memberof AccountTradeListResponseInner
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof AccountTradeListResponseInner
     */
    pair?: string;
    /**
     *
     * @type {string}
     * @memberof AccountTradeListResponseInner
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof AccountTradeListResponseInner
     */
    price?: string;
    /**
     *
     * @type {string}
     * @memberof AccountTradeListResponseInner
     */
    qty?: string;
    /**
     *
     * @type {string}
     * @memberof AccountTradeListResponseInner
     */
    realizedPnl?: string;
    /**
     *
     * @type {string}
     * @memberof AccountTradeListResponseInner
     */
    marginAsset?: string;
    /**
     *
     * @type {string}
     * @memberof AccountTradeListResponseInner
     */
    baseQty?: string;
    /**
     *
     * @type {string}
     * @memberof AccountTradeListResponseInner
     */
    commission?: string;
    /**
     *
     * @type {string}
     * @memberof AccountTradeListResponseInner
     */
    commissionAsset?: string;
    /**
     *
     * @type {number}
     * @memberof AccountTradeListResponseInner
     */
    time?: number;
    /**
     *
     * @type {string}
     * @memberof AccountTradeListResponseInner
     */
    positionSide?: string;
    /**
     *
     * @type {boolean}
     * @memberof AccountTradeListResponseInner
     */
    buyer?: boolean;
    /**
     *
     * @type {boolean}
     * @memberof AccountTradeListResponseInner
     */
    maker?: boolean;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface AccountTradeListResponse
 */
interface AccountTradeListResponse extends Array<AccountTradeListResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface AllOrdersResponseInner
 */
interface AllOrdersResponseInner {
    /**
     *
     * @type {string}
     * @memberof AllOrdersResponseInner
     */
    avgPrice?: string;
    /**
     *
     * @type {string}
     * @memberof AllOrdersResponseInner
     */
    clientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof AllOrdersResponseInner
     */
    cumBase?: string;
    /**
     *
     * @type {string}
     * @memberof AllOrdersResponseInner
     */
    executedQty?: string;
    /**
     *
     * @type {number}
     * @memberof AllOrdersResponseInner
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof AllOrdersResponseInner
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof AllOrdersResponseInner
     */
    origType?: string;
    /**
     *
     * @type {string}
     * @memberof AllOrdersResponseInner
     */
    price?: string;
    /**
     *
     * @type {boolean}
     * @memberof AllOrdersResponseInner
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {string}
     * @memberof AllOrdersResponseInner
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof AllOrdersResponseInner
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof AllOrdersResponseInner
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof AllOrdersResponseInner
     */
    stopPrice?: string;
    /**
     *
     * @type {boolean}
     * @memberof AllOrdersResponseInner
     */
    closePosition?: boolean;
    /**
     *
     * @type {string}
     * @memberof AllOrdersResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof AllOrdersResponseInner
     */
    pair?: string;
    /**
     *
     * @type {number}
     * @memberof AllOrdersResponseInner
     */
    time?: number;
    /**
     *
     * @type {string}
     * @memberof AllOrdersResponseInner
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof AllOrdersResponseInner
     */
    type?: string;
    /**
     *
     * @type {string}
     * @memberof AllOrdersResponseInner
     */
    activatePrice?: string;
    /**
     *
     * @type {string}
     * @memberof AllOrdersResponseInner
     */
    priceRate?: string;
    /**
     *
     * @type {number}
     * @memberof AllOrdersResponseInner
     */
    updateTime?: number;
    /**
     *
     * @type {string}
     * @memberof AllOrdersResponseInner
     */
    workingType?: string;
    /**
     *
     * @type {boolean}
     * @memberof AllOrdersResponseInner
     */
    priceProtect?: boolean;
    /**
     *
     * @type {string}
     * @memberof AllOrdersResponseInner
     */
    priceMatch?: string;
    /**
     *
     * @type {string}
     * @memberof AllOrdersResponseInner
     */
    selfTradePreventionMode?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface AllOrdersResponse
 */
interface AllOrdersResponse extends Array<AllOrdersResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface BadRequest
 */
interface BadRequest {
    /**
     *
     * @type {number}
     * @memberof BadRequest
     */
    code: number;
    /**
     *
     * @type {string}
     * @memberof BadRequest
     */
    message: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface BasisResponseInner
 */
interface BasisResponseInner {
    /**
     *
     * @type {string}
     * @memberof BasisResponseInner
     */
    indexPrice?: string;
    /**
     *
     * @type {string}
     * @memberof BasisResponseInner
     */
    contractType?: string;
    /**
     *
     * @type {string}
     * @memberof BasisResponseInner
     */
    basisRate?: string;
    /**
     *
     * @type {string}
     * @memberof BasisResponseInner
     */
    futuresPrice?: string;
    /**
     *
     * @type {string}
     * @memberof BasisResponseInner
     */
    annualizedBasisRate?: string;
    /**
     *
     * @type {string}
     * @memberof BasisResponseInner
     */
    basis?: string;
    /**
     *
     * @type {string}
     * @memberof BasisResponseInner
     */
    pair?: string;
    /**
     *
     * @type {number}
     * @memberof BasisResponseInner
     */
    timestamp?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface BasisResponse
 */
interface BasisResponse extends Array<BasisResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface CancelAllOpenOrdersResponse
 */
interface CancelAllOpenOrdersResponse {
    /**
     *
     * @type {number}
     * @memberof CancelAllOpenOrdersResponse
     */
    code?: number;
    /**
     *
     * @type {string}
     * @memberof CancelAllOpenOrdersResponse
     */
    msg?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface CancelMultipleOrdersResponseInner
 */
interface CancelMultipleOrdersResponseInner {
    /**
     *
     * @type {string}
     * @memberof CancelMultipleOrdersResponseInner
     */
    avgPrice?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMultipleOrdersResponseInner
     */
    clientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMultipleOrdersResponseInner
     */
    cumQty?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMultipleOrdersResponseInner
     */
    cumBase?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMultipleOrdersResponseInner
     */
    executedQty?: string;
    /**
     *
     * @type {number}
     * @memberof CancelMultipleOrdersResponseInner
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof CancelMultipleOrdersResponseInner
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMultipleOrdersResponseInner
     */
    origType?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMultipleOrdersResponseInner
     */
    price?: string;
    /**
     *
     * @type {boolean}
     * @memberof CancelMultipleOrdersResponseInner
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {string}
     * @memberof CancelMultipleOrdersResponseInner
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMultipleOrdersResponseInner
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMultipleOrdersResponseInner
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMultipleOrdersResponseInner
     */
    stopPrice?: string;
    /**
     *
     * @type {boolean}
     * @memberof CancelMultipleOrdersResponseInner
     */
    closePosition?: boolean;
    /**
     *
     * @type {string}
     * @memberof CancelMultipleOrdersResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMultipleOrdersResponseInner
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMultipleOrdersResponseInner
     */
    type?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMultipleOrdersResponseInner
     */
    activatePrice?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMultipleOrdersResponseInner
     */
    priceRate?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMultipleOrdersResponseInner
     */
    workingType?: string;
    /**
     *
     * @type {boolean}
     * @memberof CancelMultipleOrdersResponseInner
     */
    priceProtect?: boolean;
    /**
     *
     * @type {string}
     * @memberof CancelMultipleOrdersResponseInner
     */
    priceMatch?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMultipleOrdersResponseInner
     */
    selfTradePreventionMode?: string;
    /**
     *
     * @type {number}
     * @memberof CancelMultipleOrdersResponseInner
     */
    updateTime?: number;
    /**
     *
     * @type {number}
     * @memberof CancelMultipleOrdersResponseInner
     */
    code?: number;
    /**
     *
     * @type {string}
     * @memberof CancelMultipleOrdersResponseInner
     */
    msg?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface CancelMultipleOrdersResponse
 */
interface CancelMultipleOrdersResponse extends Array<CancelMultipleOrdersResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface CancelOrderResponse
 */
interface CancelOrderResponse$1 {
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponse
     */
    avgPrice?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponse
     */
    clientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponse
     */
    cumQty?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponse
     */
    cumBase?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponse
     */
    executedQty?: string;
    /**
     *
     * @type {number}
     * @memberof CancelOrderResponse
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponse
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponse
     */
    origType?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponse
     */
    price?: string;
    /**
     *
     * @type {boolean}
     * @memberof CancelOrderResponse
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponse
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponse
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponse
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponse
     */
    stopPrice?: string;
    /**
     *
     * @type {boolean}
     * @memberof CancelOrderResponse
     */
    closePosition?: boolean;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponse
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponse
     */
    pair?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponse
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponse
     */
    type?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponse
     */
    activatePrice?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponse
     */
    priceRate?: string;
    /**
     *
     * @type {number}
     * @memberof CancelOrderResponse
     */
    updateTime?: number;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponse
     */
    workingType?: string;
    /**
     *
     * @type {boolean}
     * @memberof CancelOrderResponse
     */
    priceProtect?: boolean;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponse
     */
    priceMatch?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponse
     */
    selfTradePreventionMode?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface ChangeInitialLeverageResponse
 */
interface ChangeInitialLeverageResponse {
    /**
     *
     * @type {number}
     * @memberof ChangeInitialLeverageResponse
     */
    leverage?: number;
    /**
     *
     * @type {string}
     * @memberof ChangeInitialLeverageResponse
     */
    maxQty?: string;
    /**
     *
     * @type {string}
     * @memberof ChangeInitialLeverageResponse
     */
    symbol?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface ChangeMarginTypeResponse
 */
interface ChangeMarginTypeResponse {
    /**
     *
     * @type {number}
     * @memberof ChangeMarginTypeResponse
     */
    code?: number;
    /**
     *
     * @type {string}
     * @memberof ChangeMarginTypeResponse
     */
    msg?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface ChangePositionModeResponse
 */
interface ChangePositionModeResponse {
    /**
     *
     * @type {number}
     * @memberof ChangePositionModeResponse
     */
    code?: number;
    /**
     *
     * @type {string}
     * @memberof ChangePositionModeResponse
     */
    msg?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface CheckServerTimeResponse
 */
interface CheckServerTimeResponse {
    /**
     *
     * @type {number}
     * @memberof CheckServerTimeResponse
     */
    serverTime?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface ClassicPortfolioMarginAccountInformationResponse
 */
interface ClassicPortfolioMarginAccountInformationResponse {
    /**
     *
     * @type {string}
     * @memberof ClassicPortfolioMarginAccountInformationResponse
     */
    maxWithdrawAmountUSD?: string;
    /**
     *
     * @type {string}
     * @memberof ClassicPortfolioMarginAccountInformationResponse
     */
    asset?: string;
    /**
     *
     * @type {string}
     * @memberof ClassicPortfolioMarginAccountInformationResponse
     */
    maxWithdrawAmount?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface CompressedAggregateTradesListResponseInner
 */
interface CompressedAggregateTradesListResponseInner {
    /**
     *
     * @type {number}
     * @memberof CompressedAggregateTradesListResponseInner
     */
    a?: number;
    /**
     *
     * @type {string}
     * @memberof CompressedAggregateTradesListResponseInner
     */
    p?: string;
    /**
     *
     * @type {string}
     * @memberof CompressedAggregateTradesListResponseInner
     */
    q?: string;
    /**
     *
     * @type {number}
     * @memberof CompressedAggregateTradesListResponseInner
     */
    f?: number;
    /**
     *
     * @type {number}
     * @memberof CompressedAggregateTradesListResponseInner
     */
    l?: number;
    /**
     *
     * @type {number}
     * @memberof CompressedAggregateTradesListResponseInner
     */
    T?: number;
    /**
     *
     * @type {boolean}
     * @memberof CompressedAggregateTradesListResponseInner
     */
    m?: boolean;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface CompressedAggregateTradesListResponse
 */
interface CompressedAggregateTradesListResponse extends Array<CompressedAggregateTradesListResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 * @type ContinuousContractKlineCandlestickDataResponseItemInner
 * @export
 */
type ContinuousContractKlineCandlestickDataResponseItemInner = number | string;

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface ContinuousContractKlineCandlestickDataResponseItem
 */
interface ContinuousContractKlineCandlestickDataResponseItem extends Array<ContinuousContractKlineCandlestickDataResponseItemInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface ContinuousContractKlineCandlestickDataResponse
 */
interface ContinuousContractKlineCandlestickDataResponse extends Array<ContinuousContractKlineCandlestickDataResponseItem> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface CurrentAllOpenOrdersResponseInner
 */
interface CurrentAllOpenOrdersResponseInner {
    /**
     *
     * @type {string}
     * @memberof CurrentAllOpenOrdersResponseInner
     */
    avgPrice?: string;
    /**
     *
     * @type {string}
     * @memberof CurrentAllOpenOrdersResponseInner
     */
    clientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof CurrentAllOpenOrdersResponseInner
     */
    cumBase?: string;
    /**
     *
     * @type {string}
     * @memberof CurrentAllOpenOrdersResponseInner
     */
    executedQty?: string;
    /**
     *
     * @type {number}
     * @memberof CurrentAllOpenOrdersResponseInner
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof CurrentAllOpenOrdersResponseInner
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof CurrentAllOpenOrdersResponseInner
     */
    origType?: string;
    /**
     *
     * @type {string}
     * @memberof CurrentAllOpenOrdersResponseInner
     */
    price?: string;
    /**
     *
     * @type {boolean}
     * @memberof CurrentAllOpenOrdersResponseInner
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {string}
     * @memberof CurrentAllOpenOrdersResponseInner
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof CurrentAllOpenOrdersResponseInner
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof CurrentAllOpenOrdersResponseInner
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof CurrentAllOpenOrdersResponseInner
     */
    stopPrice?: string;
    /**
     *
     * @type {boolean}
     * @memberof CurrentAllOpenOrdersResponseInner
     */
    closePosition?: boolean;
    /**
     *
     * @type {string}
     * @memberof CurrentAllOpenOrdersResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {number}
     * @memberof CurrentAllOpenOrdersResponseInner
     */
    time?: number;
    /**
     *
     * @type {string}
     * @memberof CurrentAllOpenOrdersResponseInner
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof CurrentAllOpenOrdersResponseInner
     */
    type?: string;
    /**
     *
     * @type {string}
     * @memberof CurrentAllOpenOrdersResponseInner
     */
    activatePrice?: string;
    /**
     *
     * @type {string}
     * @memberof CurrentAllOpenOrdersResponseInner
     */
    priceRate?: string;
    /**
     *
     * @type {number}
     * @memberof CurrentAllOpenOrdersResponseInner
     */
    updateTime?: number;
    /**
     *
     * @type {string}
     * @memberof CurrentAllOpenOrdersResponseInner
     */
    workingType?: string;
    /**
     *
     * @type {boolean}
     * @memberof CurrentAllOpenOrdersResponseInner
     */
    priceProtect?: boolean;
    /**
     *
     * @type {string}
     * @memberof CurrentAllOpenOrdersResponseInner
     */
    priceMatch?: string;
    /**
     *
     * @type {string}
     * @memberof CurrentAllOpenOrdersResponseInner
     */
    selfTradePreventionMode?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface CurrentAllOpenOrdersResponse
 */
interface CurrentAllOpenOrdersResponse extends Array<CurrentAllOpenOrdersResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface ExchangeInformationResponseRateLimitsInner
 */
interface ExchangeInformationResponseRateLimitsInner {
    /**
     *
     * @type {string}
     * @memberof ExchangeInformationResponseRateLimitsInner
     */
    interval?: string;
    /**
     *
     * @type {number}
     * @memberof ExchangeInformationResponseRateLimitsInner
     */
    intervalNum?: number;
    /**
     *
     * @type {number}
     * @memberof ExchangeInformationResponseRateLimitsInner
     */
    limit?: number;
    /**
     *
     * @type {string}
     * @memberof ExchangeInformationResponseRateLimitsInner
     */
    rateLimitType?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface ExchangeInformationResponseSymbolsInnerFiltersInner
 */
interface ExchangeInformationResponseSymbolsInnerFiltersInner {
    /**
     *
     * @type {string}
     * @memberof ExchangeInformationResponseSymbolsInnerFiltersInner
     */
    filterType?: string;
    /**
     *
     * @type {string}
     * @memberof ExchangeInformationResponseSymbolsInnerFiltersInner
     */
    maxPrice?: string;
    /**
     *
     * @type {string}
     * @memberof ExchangeInformationResponseSymbolsInnerFiltersInner
     */
    minPrice?: string;
    /**
     *
     * @type {string}
     * @memberof ExchangeInformationResponseSymbolsInnerFiltersInner
     */
    tickSize?: string;
    /**
     *
     * @type {string}
     * @memberof ExchangeInformationResponseSymbolsInnerFiltersInner
     */
    maxQty?: string;
    /**
     *
     * @type {string}
     * @memberof ExchangeInformationResponseSymbolsInnerFiltersInner
     */
    minQty?: string;
    /**
     *
     * @type {string}
     * @memberof ExchangeInformationResponseSymbolsInnerFiltersInner
     */
    stepSize?: string;
    /**
     *
     * @type {number}
     * @memberof ExchangeInformationResponseSymbolsInnerFiltersInner
     */
    limit?: number;
    /**
     *
     * @type {string}
     * @memberof ExchangeInformationResponseSymbolsInnerFiltersInner
     */
    multiplierUp?: string;
    /**
     *
     * @type {string}
     * @memberof ExchangeInformationResponseSymbolsInnerFiltersInner
     */
    multiplierDown?: string;
    /**
     *
     * @type {number}
     * @memberof ExchangeInformationResponseSymbolsInnerFiltersInner
     */
    multiplierDecimal?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface ExchangeInformationResponseSymbolsInner
 */
interface ExchangeInformationResponseSymbolsInner {
    /**
     *
     * @type {Array<ExchangeInformationResponseSymbolsInnerFiltersInner>}
     * @memberof ExchangeInformationResponseSymbolsInner
     */
    filters?: Array<ExchangeInformationResponseSymbolsInnerFiltersInner>;
    /**
     *
     * @type {Array<string>}
     * @memberof ExchangeInformationResponseSymbolsInner
     */
    OrderType?: Array<string>;
    /**
     *
     * @type {Array<string>}
     * @memberof ExchangeInformationResponseSymbolsInner
     */
    timeInForce?: Array<string>;
    /**
     *
     * @type {string}
     * @memberof ExchangeInformationResponseSymbolsInner
     */
    liquidationFee?: string;
    /**
     *
     * @type {string}
     * @memberof ExchangeInformationResponseSymbolsInner
     */
    marketTakeBound?: string;
    /**
     *
     * @type {string}
     * @memberof ExchangeInformationResponseSymbolsInner
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof ExchangeInformationResponseSymbolsInner
     */
    pair?: string;
    /**
     *
     * @type {string}
     * @memberof ExchangeInformationResponseSymbolsInner
     */
    contractType?: string;
    /**
     *
     * @type {number}
     * @memberof ExchangeInformationResponseSymbolsInner
     */
    deliveryDate?: number;
    /**
     *
     * @type {number}
     * @memberof ExchangeInformationResponseSymbolsInner
     */
    onboardDate?: number;
    /**
     *
     * @type {string}
     * @memberof ExchangeInformationResponseSymbolsInner
     */
    contractStatus?: string;
    /**
     *
     * @type {number}
     * @memberof ExchangeInformationResponseSymbolsInner
     */
    contractSize?: number;
    /**
     *
     * @type {string}
     * @memberof ExchangeInformationResponseSymbolsInner
     */
    quoteAsset?: string;
    /**
     *
     * @type {string}
     * @memberof ExchangeInformationResponseSymbolsInner
     */
    baseAsset?: string;
    /**
     *
     * @type {string}
     * @memberof ExchangeInformationResponseSymbolsInner
     */
    marginAsset?: string;
    /**
     *
     * @type {number}
     * @memberof ExchangeInformationResponseSymbolsInner
     */
    pricePrecision?: number;
    /**
     *
     * @type {number}
     * @memberof ExchangeInformationResponseSymbolsInner
     */
    quantityPrecision?: number;
    /**
     *
     * @type {number}
     * @memberof ExchangeInformationResponseSymbolsInner
     */
    baseAssetPrecision?: number;
    /**
     *
     * @type {number}
     * @memberof ExchangeInformationResponseSymbolsInner
     */
    quotePrecision?: number;
    /**
     *
     * @type {number}
     * @memberof ExchangeInformationResponseSymbolsInner
     */
    equalQtyPrecision?: number;
    /**
     *
     * @type {string}
     * @memberof ExchangeInformationResponseSymbolsInner
     */
    triggerProtect?: string;
    /**
     *
     * @type {string}
     * @memberof ExchangeInformationResponseSymbolsInner
     */
    maintMarginPercent?: string;
    /**
     *
     * @type {string}
     * @memberof ExchangeInformationResponseSymbolsInner
     */
    requiredMarginPercent?: string;
    /**
     *
     * @type {string}
     * @memberof ExchangeInformationResponseSymbolsInner
     */
    underlyingType?: string;
    /**
     *
     * @type {Array<string>}
     * @memberof ExchangeInformationResponseSymbolsInner
     */
    underlyingSubType?: Array<string>;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface ExchangeInformationResponse
 */
interface ExchangeInformationResponse {
    /**
     *
     * @type {Array<string>}
     * @memberof ExchangeInformationResponse
     */
    exchangeFilters?: Array<string>;
    /**
     *
     * @type {Array<ExchangeInformationResponseRateLimitsInner>}
     * @memberof ExchangeInformationResponse
     */
    rateLimits?: Array<ExchangeInformationResponseRateLimitsInner>;
    /**
     *
     * @type {number}
     * @memberof ExchangeInformationResponse
     */
    serverTime?: number;
    /**
     *
     * @type {Array<ExchangeInformationResponseSymbolsInner>}
     * @memberof ExchangeInformationResponse
     */
    symbols?: Array<ExchangeInformationResponseSymbolsInner>;
    /**
     *
     * @type {string}
     * @memberof ExchangeInformationResponse
     */
    timezone?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface FuturesAccountBalanceResponseInner
 */
interface FuturesAccountBalanceResponseInner {
    /**
     *
     * @type {string}
     * @memberof FuturesAccountBalanceResponseInner
     */
    accountAlias?: string;
    /**
     *
     * @type {string}
     * @memberof FuturesAccountBalanceResponseInner
     */
    asset?: string;
    /**
     *
     * @type {string}
     * @memberof FuturesAccountBalanceResponseInner
     */
    balance?: string;
    /**
     *
     * @type {string}
     * @memberof FuturesAccountBalanceResponseInner
     */
    withdrawAvailable?: string;
    /**
     *
     * @type {string}
     * @memberof FuturesAccountBalanceResponseInner
     */
    crossWalletBalance?: string;
    /**
     *
     * @type {string}
     * @memberof FuturesAccountBalanceResponseInner
     */
    crossUnPnl?: string;
    /**
     *
     * @type {string}
     * @memberof FuturesAccountBalanceResponseInner
     */
    availableBalance?: string;
    /**
     *
     * @type {number}
     * @memberof FuturesAccountBalanceResponseInner
     */
    updateTime?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface FuturesAccountBalanceResponse
 */
interface FuturesAccountBalanceResponse$1 extends Array<FuturesAccountBalanceResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface GetCurrentPositionModeResponse
 */
interface GetCurrentPositionModeResponse {
    /**
     *
     * @type {boolean}
     * @memberof GetCurrentPositionModeResponse
     */
    dualSidePosition?: boolean;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface GetDownloadIdForFuturesOrderHistoryResponse
 */
interface GetDownloadIdForFuturesOrderHistoryResponse {
    /**
     *
     * @type {number}
     * @memberof GetDownloadIdForFuturesOrderHistoryResponse
     */
    avgCostTimestampOfLast30d?: number;
    /**
     *
     * @type {string}
     * @memberof GetDownloadIdForFuturesOrderHistoryResponse
     */
    downloadId?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface GetDownloadIdForFuturesTradeHistoryResponse
 */
interface GetDownloadIdForFuturesTradeHistoryResponse {
    /**
     *
     * @type {number}
     * @memberof GetDownloadIdForFuturesTradeHistoryResponse
     */
    avgCostTimestampOfLast30d?: number;
    /**
     *
     * @type {string}
     * @memberof GetDownloadIdForFuturesTradeHistoryResponse
     */
    downloadId?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface GetDownloadIdForFuturesTransactionHistoryResponse
 */
interface GetDownloadIdForFuturesTransactionHistoryResponse {
    /**
     *
     * @type {number}
     * @memberof GetDownloadIdForFuturesTransactionHistoryResponse
     */
    avgCostTimestampOfLast30d?: number;
    /**
     *
     * @type {string}
     * @memberof GetDownloadIdForFuturesTransactionHistoryResponse
     */
    downloadId?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface GetFundingRateHistoryOfPerpetualFuturesResponseInner
 */
interface GetFundingRateHistoryOfPerpetualFuturesResponseInner {
    /**
     *
     * @type {string}
     * @memberof GetFundingRateHistoryOfPerpetualFuturesResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {number}
     * @memberof GetFundingRateHistoryOfPerpetualFuturesResponseInner
     */
    fundingTime?: number;
    /**
     *
     * @type {string}
     * @memberof GetFundingRateHistoryOfPerpetualFuturesResponseInner
     */
    fundingRate?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface GetFundingRateHistoryOfPerpetualFuturesResponse
 */
interface GetFundingRateHistoryOfPerpetualFuturesResponse extends Array<GetFundingRateHistoryOfPerpetualFuturesResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface GetFundingRateInfoResponseInner
 */
interface GetFundingRateInfoResponseInner {
    /**
     *
     * @type {string}
     * @memberof GetFundingRateInfoResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof GetFundingRateInfoResponseInner
     */
    adjustedFundingRateCap?: string;
    /**
     *
     * @type {string}
     * @memberof GetFundingRateInfoResponseInner
     */
    adjustedFundingRateFloor?: string;
    /**
     *
     * @type {number}
     * @memberof GetFundingRateInfoResponseInner
     */
    fundingIntervalHours?: number;
    /**
     *
     * @type {boolean}
     * @memberof GetFundingRateInfoResponseInner
     */
    disclaimer?: boolean;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface GetFundingRateInfoResponse
 */
interface GetFundingRateInfoResponse extends Array<GetFundingRateInfoResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface GetFuturesOrderHistoryDownloadLinkByIdResponse1
 */
interface GetFuturesOrderHistoryDownloadLinkByIdResponse1 {
    /**
     *
     * @type {string}
     * @memberof GetFuturesOrderHistoryDownloadLinkByIdResponse1
     */
    downloadId?: string;
    /**
     *
     * @type {string}
     * @memberof GetFuturesOrderHistoryDownloadLinkByIdResponse1
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof GetFuturesOrderHistoryDownloadLinkByIdResponse1
     */
    url?: string;
    /**
     *
     * @type {boolean}
     * @memberof GetFuturesOrderHistoryDownloadLinkByIdResponse1
     */
    notified?: boolean;
    /**
     *
     * @type {number}
     * @memberof GetFuturesOrderHistoryDownloadLinkByIdResponse1
     */
    expirationTimestamp?: number;
    /**
     *
     * @type {string}
     * @memberof GetFuturesOrderHistoryDownloadLinkByIdResponse1
     */
    isExpired?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface GetFuturesOrderHistoryDownloadLinkByIdResponse2
 */
interface GetFuturesOrderHistoryDownloadLinkByIdResponse2 {
    /**
     *
     * @type {string}
     * @memberof GetFuturesOrderHistoryDownloadLinkByIdResponse2
     */
    downloadId?: string;
    /**
     *
     * @type {string}
     * @memberof GetFuturesOrderHistoryDownloadLinkByIdResponse2
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof GetFuturesOrderHistoryDownloadLinkByIdResponse2
     */
    url?: string;
    /**
     *
     * @type {boolean}
     * @memberof GetFuturesOrderHistoryDownloadLinkByIdResponse2
     */
    notified?: boolean;
    /**
     *
     * @type {number}
     * @memberof GetFuturesOrderHistoryDownloadLinkByIdResponse2
     */
    expirationTimestamp?: number;
    /**
     *
     * @type {string}
     * @memberof GetFuturesOrderHistoryDownloadLinkByIdResponse2
     */
    isExpired?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 * @type GetFuturesOrderHistoryDownloadLinkByIdResponse
 * @export
 */
type GetFuturesOrderHistoryDownloadLinkByIdResponse = GetFuturesOrderHistoryDownloadLinkByIdResponse1 | GetFuturesOrderHistoryDownloadLinkByIdResponse2;

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface GetFuturesTradeDownloadLinkByIdResponse1
 */
interface GetFuturesTradeDownloadLinkByIdResponse1 {
    /**
     *
     * @type {string}
     * @memberof GetFuturesTradeDownloadLinkByIdResponse1
     */
    downloadId?: string;
    /**
     *
     * @type {string}
     * @memberof GetFuturesTradeDownloadLinkByIdResponse1
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof GetFuturesTradeDownloadLinkByIdResponse1
     */
    url?: string;
    /**
     *
     * @type {boolean}
     * @memberof GetFuturesTradeDownloadLinkByIdResponse1
     */
    notified?: boolean;
    /**
     *
     * @type {number}
     * @memberof GetFuturesTradeDownloadLinkByIdResponse1
     */
    expirationTimestamp?: number;
    /**
     *
     * @type {string}
     * @memberof GetFuturesTradeDownloadLinkByIdResponse1
     */
    isExpired?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface GetFuturesTradeDownloadLinkByIdResponse2
 */
interface GetFuturesTradeDownloadLinkByIdResponse2 {
    /**
     *
     * @type {string}
     * @memberof GetFuturesTradeDownloadLinkByIdResponse2
     */
    downloadId?: string;
    /**
     *
     * @type {string}
     * @memberof GetFuturesTradeDownloadLinkByIdResponse2
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof GetFuturesTradeDownloadLinkByIdResponse2
     */
    url?: string;
    /**
     *
     * @type {boolean}
     * @memberof GetFuturesTradeDownloadLinkByIdResponse2
     */
    notified?: boolean;
    /**
     *
     * @type {number}
     * @memberof GetFuturesTradeDownloadLinkByIdResponse2
     */
    expirationTimestamp?: number;
    /**
     *
     * @type {string}
     * @memberof GetFuturesTradeDownloadLinkByIdResponse2
     */
    isExpired?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 * @type GetFuturesTradeDownloadLinkByIdResponse
 * @export
 */
type GetFuturesTradeDownloadLinkByIdResponse = GetFuturesTradeDownloadLinkByIdResponse1 | GetFuturesTradeDownloadLinkByIdResponse2;

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface GetFuturesTransactionHistoryDownloadLinkByIdResponse1
 */
interface GetFuturesTransactionHistoryDownloadLinkByIdResponse1 {
    /**
     *
     * @type {string}
     * @memberof GetFuturesTransactionHistoryDownloadLinkByIdResponse1
     */
    downloadId?: string;
    /**
     *
     * @type {string}
     * @memberof GetFuturesTransactionHistoryDownloadLinkByIdResponse1
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof GetFuturesTransactionHistoryDownloadLinkByIdResponse1
     */
    url?: string;
    /**
     *
     * @type {boolean}
     * @memberof GetFuturesTransactionHistoryDownloadLinkByIdResponse1
     */
    notified?: boolean;
    /**
     *
     * @type {number}
     * @memberof GetFuturesTransactionHistoryDownloadLinkByIdResponse1
     */
    expirationTimestamp?: number;
    /**
     *
     * @type {string}
     * @memberof GetFuturesTransactionHistoryDownloadLinkByIdResponse1
     */
    isExpired?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface GetFuturesTransactionHistoryDownloadLinkByIdResponse2
 */
interface GetFuturesTransactionHistoryDownloadLinkByIdResponse2 {
    /**
     *
     * @type {string}
     * @memberof GetFuturesTransactionHistoryDownloadLinkByIdResponse2
     */
    downloadId?: string;
    /**
     *
     * @type {string}
     * @memberof GetFuturesTransactionHistoryDownloadLinkByIdResponse2
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof GetFuturesTransactionHistoryDownloadLinkByIdResponse2
     */
    url?: string;
    /**
     *
     * @type {boolean}
     * @memberof GetFuturesTransactionHistoryDownloadLinkByIdResponse2
     */
    notified?: boolean;
    /**
     *
     * @type {number}
     * @memberof GetFuturesTransactionHistoryDownloadLinkByIdResponse2
     */
    expirationTimestamp?: number;
    /**
     *
     * @type {string}
     * @memberof GetFuturesTransactionHistoryDownloadLinkByIdResponse2
     */
    isExpired?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 * @type GetFuturesTransactionHistoryDownloadLinkByIdResponse
 * @export
 */
type GetFuturesTransactionHistoryDownloadLinkByIdResponse = GetFuturesTransactionHistoryDownloadLinkByIdResponse1 | GetFuturesTransactionHistoryDownloadLinkByIdResponse2;

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface GetIncomeHistoryResponseInner
 */
interface GetIncomeHistoryResponseInner {
    /**
     *
     * @type {string}
     * @memberof GetIncomeHistoryResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof GetIncomeHistoryResponseInner
     */
    incomeType?: string;
    /**
     *
     * @type {string}
     * @memberof GetIncomeHistoryResponseInner
     */
    income?: string;
    /**
     *
     * @type {string}
     * @memberof GetIncomeHistoryResponseInner
     */
    asset?: string;
    /**
     *
     * @type {string}
     * @memberof GetIncomeHistoryResponseInner
     */
    info?: string;
    /**
     *
     * @type {number}
     * @memberof GetIncomeHistoryResponseInner
     */
    time?: number;
    /**
     *
     * @type {string}
     * @memberof GetIncomeHistoryResponseInner
     */
    tranId?: string;
    /**
     *
     * @type {string}
     * @memberof GetIncomeHistoryResponseInner
     */
    tradeId?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface GetIncomeHistoryResponse
 */
interface GetIncomeHistoryResponse extends Array<GetIncomeHistoryResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface GetOrderModifyHistoryResponseInnerAmendmentOrigQty
 */
interface GetOrderModifyHistoryResponseInnerAmendmentOrigQty {
    /**
     *
     * @type {string}
     * @memberof GetOrderModifyHistoryResponseInnerAmendmentOrigQty
     */
    before?: string;
    /**
     *
     * @type {string}
     * @memberof GetOrderModifyHistoryResponseInnerAmendmentOrigQty
     */
    after?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface GetOrderModifyHistoryResponseInnerAmendmentPrice
 */
interface GetOrderModifyHistoryResponseInnerAmendmentPrice {
    /**
     *
     * @type {string}
     * @memberof GetOrderModifyHistoryResponseInnerAmendmentPrice
     */
    before?: string;
    /**
     *
     * @type {string}
     * @memberof GetOrderModifyHistoryResponseInnerAmendmentPrice
     */
    after?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface GetOrderModifyHistoryResponseInnerAmendment
 */
interface GetOrderModifyHistoryResponseInnerAmendment {
    /**
     *
     * @type {GetOrderModifyHistoryResponseInnerAmendmentPrice}
     * @memberof GetOrderModifyHistoryResponseInnerAmendment
     */
    price?: GetOrderModifyHistoryResponseInnerAmendmentPrice;
    /**
     *
     * @type {GetOrderModifyHistoryResponseInnerAmendmentOrigQty}
     * @memberof GetOrderModifyHistoryResponseInnerAmendment
     */
    origQty?: GetOrderModifyHistoryResponseInnerAmendmentOrigQty;
    /**
     *
     * @type {number}
     * @memberof GetOrderModifyHistoryResponseInnerAmendment
     */
    count?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface GetOrderModifyHistoryResponseInner
 */
interface GetOrderModifyHistoryResponseInner {
    /**
     *
     * @type {number}
     * @memberof GetOrderModifyHistoryResponseInner
     */
    amendmentId?: number;
    /**
     *
     * @type {string}
     * @memberof GetOrderModifyHistoryResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof GetOrderModifyHistoryResponseInner
     */
    pair?: string;
    /**
     *
     * @type {number}
     * @memberof GetOrderModifyHistoryResponseInner
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof GetOrderModifyHistoryResponseInner
     */
    clientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof GetOrderModifyHistoryResponseInner
     */
    time?: number;
    /**
     *
     * @type {GetOrderModifyHistoryResponseInnerAmendment}
     * @memberof GetOrderModifyHistoryResponseInner
     */
    amendment?: GetOrderModifyHistoryResponseInnerAmendment;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface GetOrderModifyHistoryResponse
 */
interface GetOrderModifyHistoryResponse extends Array<GetOrderModifyHistoryResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface GetPositionMarginChangeHistoryResponseInner
 */
interface GetPositionMarginChangeHistoryResponseInner {
    /**
     *
     * @type {string}
     * @memberof GetPositionMarginChangeHistoryResponseInner
     */
    amount?: string;
    /**
     *
     * @type {string}
     * @memberof GetPositionMarginChangeHistoryResponseInner
     */
    asset?: string;
    /**
     *
     * @type {string}
     * @memberof GetPositionMarginChangeHistoryResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {number}
     * @memberof GetPositionMarginChangeHistoryResponseInner
     */
    time?: number;
    /**
     *
     * @type {number}
     * @memberof GetPositionMarginChangeHistoryResponseInner
     */
    type?: number;
    /**
     *
     * @type {string}
     * @memberof GetPositionMarginChangeHistoryResponseInner
     */
    positionSide?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface GetPositionMarginChangeHistoryResponse
 */
interface GetPositionMarginChangeHistoryResponse extends Array<GetPositionMarginChangeHistoryResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface IndexPriceAndMarkPriceResponseInner
 */
interface IndexPriceAndMarkPriceResponseInner {
    /**
     *
     * @type {string}
     * @memberof IndexPriceAndMarkPriceResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof IndexPriceAndMarkPriceResponseInner
     */
    pair?: string;
    /**
     *
     * @type {string}
     * @memberof IndexPriceAndMarkPriceResponseInner
     */
    markPrice?: string;
    /**
     *
     * @type {string}
     * @memberof IndexPriceAndMarkPriceResponseInner
     */
    indexPrice?: string;
    /**
     *
     * @type {string}
     * @memberof IndexPriceAndMarkPriceResponseInner
     */
    estimatedSettlePrice?: string;
    /**
     *
     * @type {string}
     * @memberof IndexPriceAndMarkPriceResponseInner
     */
    lastFundingRate?: string;
    /**
     *
     * @type {string}
     * @memberof IndexPriceAndMarkPriceResponseInner
     */
    interestRate?: string;
    /**
     *
     * @type {number}
     * @memberof IndexPriceAndMarkPriceResponseInner
     */
    nextFundingTime?: number;
    /**
     *
     * @type {number}
     * @memberof IndexPriceAndMarkPriceResponseInner
     */
    time?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface IndexPriceAndMarkPriceResponse
 */
interface IndexPriceAndMarkPriceResponse extends Array<IndexPriceAndMarkPriceResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 * @type IndexPriceKlineCandlestickDataResponseItemInner
 * @export
 */
type IndexPriceKlineCandlestickDataResponseItemInner = number | string;

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface IndexPriceKlineCandlestickDataResponseItem
 */
interface IndexPriceKlineCandlestickDataResponseItem extends Array<IndexPriceKlineCandlestickDataResponseItemInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface IndexPriceKlineCandlestickDataResponse
 */
interface IndexPriceKlineCandlestickDataResponse extends Array<IndexPriceKlineCandlestickDataResponseItem> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface KlineCandlestickDataResponseItem
 */
interface KlineCandlestickDataResponseItem extends Array<ContinuousContractKlineCandlestickDataResponseItemInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface KlineCandlestickDataResponse
 */
interface KlineCandlestickDataResponse extends Array<KlineCandlestickDataResponseItem> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface LongShortRatioResponseInner
 */
interface LongShortRatioResponseInner {
    /**
     *
     * @type {string}
     * @memberof LongShortRatioResponseInner
     */
    pair?: string;
    /**
     *
     * @type {string}
     * @memberof LongShortRatioResponseInner
     */
    longShortRatio?: string;
    /**
     *
     * @type {string}
     * @memberof LongShortRatioResponseInner
     */
    longAccount?: string;
    /**
     *
     * @type {string}
     * @memberof LongShortRatioResponseInner
     */
    shortAccount?: string;
    /**
     *
     * @type {number}
     * @memberof LongShortRatioResponseInner
     */
    timestamp?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface LongShortRatioResponse
 */
interface LongShortRatioResponse extends Array<LongShortRatioResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 * @type MarkPriceKlineCandlestickDataResponseItemInner
 * @export
 */
type MarkPriceKlineCandlestickDataResponseItemInner = number | string;

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface MarkPriceKlineCandlestickDataResponseItem
 */
interface MarkPriceKlineCandlestickDataResponseItem extends Array<MarkPriceKlineCandlestickDataResponseItemInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface MarkPriceKlineCandlestickDataResponse
 */
interface MarkPriceKlineCandlestickDataResponse extends Array<MarkPriceKlineCandlestickDataResponseItem> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface ModifyIsolatedPositionMarginResponse
 */
interface ModifyIsolatedPositionMarginResponse {
    /**
     *
     * @type {number}
     * @memberof ModifyIsolatedPositionMarginResponse
     */
    amount?: number;
    /**
     *
     * @type {number}
     * @memberof ModifyIsolatedPositionMarginResponse
     */
    code?: number;
    /**
     *
     * @type {string}
     * @memberof ModifyIsolatedPositionMarginResponse
     */
    msg?: string;
    /**
     *
     * @type {number}
     * @memberof ModifyIsolatedPositionMarginResponse
     */
    type?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface ModifyMultipleOrdersBatchOrdersParameterInner
 */
interface ModifyMultipleOrdersBatchOrdersParameterInner {
    /**
     *
     * @type {number}
     * @memberof ModifyMultipleOrdersBatchOrdersParameterInner
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof ModifyMultipleOrdersBatchOrdersParameterInner
     */
    origClientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyMultipleOrdersBatchOrdersParameterInner
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyMultipleOrdersBatchOrdersParameterInner
     */
    side?: ModifyMultipleOrdersBatchOrdersParameterInnerSideEnum;
    /**
     *
     * @type {number}
     * @memberof ModifyMultipleOrdersBatchOrdersParameterInner
     */
    quantity?: number;
    /**
     *
     * @type {number}
     * @memberof ModifyMultipleOrdersBatchOrdersParameterInner
     */
    price?: number;
    /**
     *
     * @type {number}
     * @memberof ModifyMultipleOrdersBatchOrdersParameterInner
     */
    recvWindow?: number;
}
declare const ModifyMultipleOrdersBatchOrdersParameterInnerSideEnum: {
    readonly BUY: "BUY";
    readonly SELL: "SELL";
};
type ModifyMultipleOrdersBatchOrdersParameterInnerSideEnum = (typeof ModifyMultipleOrdersBatchOrdersParameterInnerSideEnum)[keyof typeof ModifyMultipleOrdersBatchOrdersParameterInnerSideEnum];

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface ModifyMultipleOrdersResponseInner
 */
interface ModifyMultipleOrdersResponseInner {
    /**
     *
     * @type {number}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    pair?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    clientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    price?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    avgPrice?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    executedQty?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    cumQty?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    cumBase?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    type?: string;
    /**
     *
     * @type {boolean}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {boolean}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    closePosition?: boolean;
    /**
     *
     * @type {string}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    stopPrice?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    workingType?: string;
    /**
     *
     * @type {boolean}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    priceProtect?: boolean;
    /**
     *
     * @type {string}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    origType?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    priceMatch?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    selfTradePreventionMode?: string;
    /**
     *
     * @type {number}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    updateTime?: number;
    /**
     *
     * @type {number}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    code?: number;
    /**
     *
     * @type {string}
     * @memberof ModifyMultipleOrdersResponseInner
     */
    msg?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface ModifyMultipleOrdersResponse
 */
interface ModifyMultipleOrdersResponse extends Array<ModifyMultipleOrdersResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface ModifyOrderResponse
 */
interface ModifyOrderResponse$1 {
    /**
     *
     * @type {number}
     * @memberof ModifyOrderResponse
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponse
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponse
     */
    pair?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponse
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponse
     */
    clientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponse
     */
    price?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponse
     */
    avgPrice?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponse
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponse
     */
    executedQty?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponse
     */
    cumQty?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponse
     */
    cumBase?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponse
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponse
     */
    type?: string;
    /**
     *
     * @type {boolean}
     * @memberof ModifyOrderResponse
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {boolean}
     * @memberof ModifyOrderResponse
     */
    closePosition?: boolean;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponse
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponse
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponse
     */
    stopPrice?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponse
     */
    workingType?: string;
    /**
     *
     * @type {boolean}
     * @memberof ModifyOrderResponse
     */
    priceProtect?: boolean;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponse
     */
    origType?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponse
     */
    priceMatch?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponse
     */
    selfTradePreventionMode?: string;
    /**
     *
     * @type {number}
     * @memberof ModifyOrderResponse
     */
    updateTime?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface NewOrderResponse
 */
interface NewOrderResponse$1 {
    /**
     *
     * @type {string}
     * @memberof NewOrderResponse
     */
    clientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponse
     */
    cumQty?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponse
     */
    cumBase?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponse
     */
    executedQty?: string;
    /**
     *
     * @type {number}
     * @memberof NewOrderResponse
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponse
     */
    avgPrice?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponse
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponse
     */
    price?: string;
    /**
     *
     * @type {boolean}
     * @memberof NewOrderResponse
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponse
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponse
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponse
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponse
     */
    stopPrice?: string;
    /**
     *
     * @type {boolean}
     * @memberof NewOrderResponse
     */
    closePosition?: boolean;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponse
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponse
     */
    pair?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponse
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponse
     */
    type?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponse
     */
    origType?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponse
     */
    activatePrice?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponse
     */
    priceRate?: string;
    /**
     *
     * @type {number}
     * @memberof NewOrderResponse
     */
    updateTime?: number;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponse
     */
    workingType?: string;
    /**
     *
     * @type {boolean}
     * @memberof NewOrderResponse
     */
    priceProtect?: boolean;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponse
     */
    priceMatch?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponse
     */
    selfTradePreventionMode?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface NotionalBracketForPairResponseInnerBracketsInner
 */
interface NotionalBracketForPairResponseInnerBracketsInner {
    /**
     *
     * @type {number}
     * @memberof NotionalBracketForPairResponseInnerBracketsInner
     */
    bracket?: number;
    /**
     *
     * @type {number}
     * @memberof NotionalBracketForPairResponseInnerBracketsInner
     */
    initialLeverage?: number;
    /**
     *
     * @type {number}
     * @memberof NotionalBracketForPairResponseInnerBracketsInner
     */
    qtyCap?: number;
    /**
     *
     * @type {number}
     * @memberof NotionalBracketForPairResponseInnerBracketsInner
     */
    qtylFloor?: number;
    /**
     *
     * @type {number}
     * @memberof NotionalBracketForPairResponseInnerBracketsInner
     */
    maintMarginRatio?: number;
    /**
     *
     * @type {number}
     * @memberof NotionalBracketForPairResponseInnerBracketsInner
     */
    cum?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface NotionalBracketForPairResponseInner
 */
interface NotionalBracketForPairResponseInner {
    /**
     *
     * @type {string}
     * @memberof NotionalBracketForPairResponseInner
     */
    pair?: string;
    /**
     *
     * @type {Array<NotionalBracketForPairResponseInnerBracketsInner>}
     * @memberof NotionalBracketForPairResponseInner
     */
    brackets?: Array<NotionalBracketForPairResponseInnerBracketsInner>;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface NotionalBracketForPairResponse
 */
interface NotionalBracketForPairResponse extends Array<NotionalBracketForPairResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface NotionalBracketForSymbolResponseInner
 */
interface NotionalBracketForSymbolResponseInner {
    /**
     *
     * @type {string}
     * @memberof NotionalBracketForSymbolResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {number}
     * @memberof NotionalBracketForSymbolResponseInner
     */
    notionalCoef?: number;
    /**
     *
     * @type {Array<NotionalBracketForPairResponseInnerBracketsInner>}
     * @memberof NotionalBracketForSymbolResponseInner
     */
    brackets?: Array<NotionalBracketForPairResponseInnerBracketsInner>;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface NotionalBracketForSymbolResponse
 */
interface NotionalBracketForSymbolResponse extends Array<NotionalBracketForSymbolResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface OldTradesLookupResponseInner
 */
interface OldTradesLookupResponseInner {
    /**
     *
     * @type {number}
     * @memberof OldTradesLookupResponseInner
     */
    id?: number;
    /**
     *
     * @type {string}
     * @memberof OldTradesLookupResponseInner
     */
    price?: string;
    /**
     *
     * @type {string}
     * @memberof OldTradesLookupResponseInner
     */
    qty?: string;
    /**
     *
     * @type {string}
     * @memberof OldTradesLookupResponseInner
     */
    baseQty?: string;
    /**
     *
     * @type {number}
     * @memberof OldTradesLookupResponseInner
     */
    time?: number;
    /**
     *
     * @type {boolean}
     * @memberof OldTradesLookupResponseInner
     */
    isBuyerMaker?: boolean;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface OldTradesLookupResponse
 */
interface OldTradesLookupResponse extends Array<OldTradesLookupResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface OpenInterestResponse
 */
interface OpenInterestResponse {
    /**
     *
     * @type {string}
     * @memberof OpenInterestResponse
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof OpenInterestResponse
     */
    pair?: string;
    /**
     *
     * @type {string}
     * @memberof OpenInterestResponse
     */
    openInterest?: string;
    /**
     *
     * @type {string}
     * @memberof OpenInterestResponse
     */
    contractType?: string;
    /**
     *
     * @type {number}
     * @memberof OpenInterestResponse
     */
    time?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface OpenInterestStatisticsResponseInner
 */
interface OpenInterestStatisticsResponseInner {
    /**
     *
     * @type {string}
     * @memberof OpenInterestStatisticsResponseInner
     */
    pair?: string;
    /**
     *
     * @type {string}
     * @memberof OpenInterestStatisticsResponseInner
     */
    contractType?: string;
    /**
     *
     * @type {string}
     * @memberof OpenInterestStatisticsResponseInner
     */
    sumOpenInterest?: string;
    /**
     *
     * @type {string}
     * @memberof OpenInterestStatisticsResponseInner
     */
    sumOpenInterestValue?: string;
    /**
     *
     * @type {number}
     * @memberof OpenInterestStatisticsResponseInner
     */
    timestamp?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface OpenInterestStatisticsResponse
 */
interface OpenInterestStatisticsResponse extends Array<OpenInterestStatisticsResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface OrderBookResponseAsksItem
 */
interface OrderBookResponseAsksItem extends Array<string> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface OrderBookResponseBidsItem
 */
interface OrderBookResponseBidsItem extends Array<string> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface OrderBookResponse
 */
interface OrderBookResponse {
    /**
     *
     * @type {number}
     * @memberof OrderBookResponse
     */
    lastUpdateId?: number;
    /**
     *
     * @type {string}
     * @memberof OrderBookResponse
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof OrderBookResponse
     */
    pair?: string;
    /**
     *
     * @type {number}
     * @memberof OrderBookResponse
     */
    E?: number;
    /**
     *
     * @type {number}
     * @memberof OrderBookResponse
     */
    T?: number;
    /**
     *
     * @type {Array<OrderBookResponseBidsItem>}
     * @memberof OrderBookResponse
     */
    bids?: Array<OrderBookResponseBidsItem>;
    /**
     *
     * @type {Array<OrderBookResponseAsksItem>}
     * @memberof OrderBookResponse
     */
    asks?: Array<OrderBookResponseAsksItem>;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface PositionAdlQuantileEstimationResponseInnerAdlQuantile
 */
interface PositionAdlQuantileEstimationResponseInnerAdlQuantile {
    /**
     *
     * @type {number}
     * @memberof PositionAdlQuantileEstimationResponseInnerAdlQuantile
     */
    LONG?: number;
    /**
     *
     * @type {number}
     * @memberof PositionAdlQuantileEstimationResponseInnerAdlQuantile
     */
    SHORT?: number;
    /**
     *
     * @type {number}
     * @memberof PositionAdlQuantileEstimationResponseInnerAdlQuantile
     */
    HEDGE?: number;
    /**
     *
     * @type {number}
     * @memberof PositionAdlQuantileEstimationResponseInnerAdlQuantile
     */
    BOTH?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface PositionAdlQuantileEstimationResponseInner
 */
interface PositionAdlQuantileEstimationResponseInner {
    /**
     *
     * @type {string}
     * @memberof PositionAdlQuantileEstimationResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {PositionAdlQuantileEstimationResponseInnerAdlQuantile}
     * @memberof PositionAdlQuantileEstimationResponseInner
     */
    adlQuantile?: PositionAdlQuantileEstimationResponseInnerAdlQuantile;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface PositionAdlQuantileEstimationResponse
 */
interface PositionAdlQuantileEstimationResponse extends Array<PositionAdlQuantileEstimationResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface PositionInformationResponseInner
 */
interface PositionInformationResponseInner {
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseInner
     */
    positionAmt?: string;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseInner
     */
    entryPrice?: string;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseInner
     */
    breakEvenPrice?: string;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseInner
     */
    markPrice?: string;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseInner
     */
    unRealizedProfit?: string;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseInner
     */
    liquidationPrice?: string;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseInner
     */
    leverage?: string;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseInner
     */
    maxQty?: string;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseInner
     */
    marginType?: string;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseInner
     */
    isolatedMargin?: string;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseInner
     */
    isAutoAddMargin?: string;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseInner
     */
    positionSide?: string;
    /**
     *
     * @type {number}
     * @memberof PositionInformationResponseInner
     */
    updateTime?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface PositionInformationResponse
 */
interface PositionInformationResponse$1 extends Array<PositionInformationResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 * @type PremiumIndexKlineDataResponseItemInner
 * @export
 */
type PremiumIndexKlineDataResponseItemInner = number | string;

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface PremiumIndexKlineDataResponseItem
 */
interface PremiumIndexKlineDataResponseItem extends Array<PremiumIndexKlineDataResponseItemInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface PremiumIndexKlineDataResponse
 */
interface PremiumIndexKlineDataResponse extends Array<PremiumIndexKlineDataResponseItem> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface QueryCurrentOpenOrderResponse
 */
interface QueryCurrentOpenOrderResponse {
    /**
     *
     * @type {string}
     * @memberof QueryCurrentOpenOrderResponse
     */
    avgPrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentOpenOrderResponse
     */
    clientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentOpenOrderResponse
     */
    cumBase?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentOpenOrderResponse
     */
    executedQty?: string;
    /**
     *
     * @type {number}
     * @memberof QueryCurrentOpenOrderResponse
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentOpenOrderResponse
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentOpenOrderResponse
     */
    origType?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentOpenOrderResponse
     */
    price?: string;
    /**
     *
     * @type {boolean}
     * @memberof QueryCurrentOpenOrderResponse
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentOpenOrderResponse
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentOpenOrderResponse
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentOpenOrderResponse
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentOpenOrderResponse
     */
    stopPrice?: string;
    /**
     *
     * @type {boolean}
     * @memberof QueryCurrentOpenOrderResponse
     */
    closePosition?: boolean;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentOpenOrderResponse
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentOpenOrderResponse
     */
    pair?: string;
    /**
     *
     * @type {number}
     * @memberof QueryCurrentOpenOrderResponse
     */
    time?: number;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentOpenOrderResponse
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentOpenOrderResponse
     */
    type?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentOpenOrderResponse
     */
    activatePrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentOpenOrderResponse
     */
    priceRate?: string;
    /**
     *
     * @type {number}
     * @memberof QueryCurrentOpenOrderResponse
     */
    updateTime?: number;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentOpenOrderResponse
     */
    workingType?: string;
    /**
     *
     * @type {boolean}
     * @memberof QueryCurrentOpenOrderResponse
     */
    priceProtect?: boolean;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentOpenOrderResponse
     */
    priceMatch?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentOpenOrderResponse
     */
    selfTradePreventionMode?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface QueryIndexPriceConstituentsResponseConstituentsInner
 */
interface QueryIndexPriceConstituentsResponseConstituentsInner {
    /**
     *
     * @type {string}
     * @memberof QueryIndexPriceConstituentsResponseConstituentsInner
     */
    exchange?: string;
    /**
     *
     * @type {string}
     * @memberof QueryIndexPriceConstituentsResponseConstituentsInner
     */
    symbol?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface QueryIndexPriceConstituentsResponse
 */
interface QueryIndexPriceConstituentsResponse {
    /**
     *
     * @type {string}
     * @memberof QueryIndexPriceConstituentsResponse
     */
    symbol?: string;
    /**
     *
     * @type {number}
     * @memberof QueryIndexPriceConstituentsResponse
     */
    time?: number;
    /**
     *
     * @type {Array<QueryIndexPriceConstituentsResponseConstituentsInner>}
     * @memberof QueryIndexPriceConstituentsResponse
     */
    constituents?: Array<QueryIndexPriceConstituentsResponseConstituentsInner>;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface QueryOrderResponse
 */
interface QueryOrderResponse$1 {
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponse
     */
    avgPrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponse
     */
    clientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponse
     */
    cumBase?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponse
     */
    executedQty?: string;
    /**
     *
     * @type {number}
     * @memberof QueryOrderResponse
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponse
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponse
     */
    origType?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponse
     */
    price?: string;
    /**
     *
     * @type {boolean}
     * @memberof QueryOrderResponse
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponse
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponse
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponse
     */
    stopPrice?: string;
    /**
     *
     * @type {boolean}
     * @memberof QueryOrderResponse
     */
    closePosition?: boolean;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponse
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponse
     */
    pair?: string;
    /**
     *
     * @type {number}
     * @memberof QueryOrderResponse
     */
    time?: number;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponse
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponse
     */
    type?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponse
     */
    activatePrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponse
     */
    priceRate?: string;
    /**
     *
     * @type {number}
     * @memberof QueryOrderResponse
     */
    updateTime?: number;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponse
     */
    workingType?: string;
    /**
     *
     * @type {boolean}
     * @memberof QueryOrderResponse
     */
    priceProtect?: boolean;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponse
     */
    priceMatch?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponse
     */
    selfTradePreventionMode?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface RecentTradesListResponseInner
 */
interface RecentTradesListResponseInner {
    /**
     *
     * @type {number}
     * @memberof RecentTradesListResponseInner
     */
    id?: number;
    /**
     *
     * @type {string}
     * @memberof RecentTradesListResponseInner
     */
    price?: string;
    /**
     *
     * @type {string}
     * @memberof RecentTradesListResponseInner
     */
    qty?: string;
    /**
     *
     * @type {string}
     * @memberof RecentTradesListResponseInner
     */
    baseQty?: string;
    /**
     *
     * @type {number}
     * @memberof RecentTradesListResponseInner
     */
    time?: number;
    /**
     *
     * @type {boolean}
     * @memberof RecentTradesListResponseInner
     */
    isBuyerMaker?: boolean;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface RecentTradesListResponse
 */
interface RecentTradesListResponse extends Array<RecentTradesListResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface StartUserDataStreamResponse
 */
interface StartUserDataStreamResponse$1 {
    /**
     *
     * @type {string}
     * @memberof StartUserDataStreamResponse
     */
    listenKey?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface SymbolOrderBookTickerResponseInner
 */
interface SymbolOrderBookTickerResponseInner {
    /**
     *
     * @type {number}
     * @memberof SymbolOrderBookTickerResponseInner
     */
    lastUpdateId?: number;
    /**
     *
     * @type {string}
     * @memberof SymbolOrderBookTickerResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof SymbolOrderBookTickerResponseInner
     */
    pair?: string;
    /**
     *
     * @type {string}
     * @memberof SymbolOrderBookTickerResponseInner
     */
    bidPrice?: string;
    /**
     *
     * @type {string}
     * @memberof SymbolOrderBookTickerResponseInner
     */
    bidQty?: string;
    /**
     *
     * @type {string}
     * @memberof SymbolOrderBookTickerResponseInner
     */
    askPrice?: string;
    /**
     *
     * @type {string}
     * @memberof SymbolOrderBookTickerResponseInner
     */
    askQty?: string;
    /**
     *
     * @type {number}
     * @memberof SymbolOrderBookTickerResponseInner
     */
    time?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface SymbolOrderBookTickerResponse
 */
interface SymbolOrderBookTickerResponse extends Array<SymbolOrderBookTickerResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface SymbolPriceTickerResponseInner
 */
interface SymbolPriceTickerResponseInner {
    /**
     *
     * @type {string}
     * @memberof SymbolPriceTickerResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof SymbolPriceTickerResponseInner
     */
    ps?: string;
    /**
     *
     * @type {string}
     * @memberof SymbolPriceTickerResponseInner
     */
    price?: string;
    /**
     *
     * @type {number}
     * @memberof SymbolPriceTickerResponseInner
     */
    time?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface SymbolPriceTickerResponse
 */
interface SymbolPriceTickerResponse extends Array<SymbolPriceTickerResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface TakerBuySellVolumeResponseInner
 */
interface TakerBuySellVolumeResponseInner {
    /**
     *
     * @type {string}
     * @memberof TakerBuySellVolumeResponseInner
     */
    pair?: string;
    /**
     *
     * @type {string}
     * @memberof TakerBuySellVolumeResponseInner
     */
    contractType?: string;
    /**
     *
     * @type {string}
     * @memberof TakerBuySellVolumeResponseInner
     */
    takerBuyVol?: string;
    /**
     *
     * @type {string}
     * @memberof TakerBuySellVolumeResponseInner
     */
    takerSellVol?: string;
    /**
     *
     * @type {string}
     * @memberof TakerBuySellVolumeResponseInner
     */
    takerBuyVolValue?: string;
    /**
     *
     * @type {string}
     * @memberof TakerBuySellVolumeResponseInner
     */
    takerSellVolValue?: string;
    /**
     *
     * @type {number}
     * @memberof TakerBuySellVolumeResponseInner
     */
    timestamp?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface TakerBuySellVolumeResponse
 */
interface TakerBuySellVolumeResponse extends Array<TakerBuySellVolumeResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface Ticker24hrPriceChangeStatisticsResponseInner
 */
interface Ticker24hrPriceChangeStatisticsResponseInner {
    /**
     *
     * @type {string}
     * @memberof Ticker24hrPriceChangeStatisticsResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof Ticker24hrPriceChangeStatisticsResponseInner
     */
    pair?: string;
    /**
     *
     * @type {string}
     * @memberof Ticker24hrPriceChangeStatisticsResponseInner
     */
    priceChange?: string;
    /**
     *
     * @type {string}
     * @memberof Ticker24hrPriceChangeStatisticsResponseInner
     */
    priceChangePercent?: string;
    /**
     *
     * @type {string}
     * @memberof Ticker24hrPriceChangeStatisticsResponseInner
     */
    weightedAvgPrice?: string;
    /**
     *
     * @type {string}
     * @memberof Ticker24hrPriceChangeStatisticsResponseInner
     */
    lastPrice?: string;
    /**
     *
     * @type {string}
     * @memberof Ticker24hrPriceChangeStatisticsResponseInner
     */
    lastQty?: string;
    /**
     *
     * @type {string}
     * @memberof Ticker24hrPriceChangeStatisticsResponseInner
     */
    openPrice?: string;
    /**
     *
     * @type {string}
     * @memberof Ticker24hrPriceChangeStatisticsResponseInner
     */
    highPrice?: string;
    /**
     *
     * @type {string}
     * @memberof Ticker24hrPriceChangeStatisticsResponseInner
     */
    lowPrice?: string;
    /**
     *
     * @type {string}
     * @memberof Ticker24hrPriceChangeStatisticsResponseInner
     */
    volume?: string;
    /**
     *
     * @type {string}
     * @memberof Ticker24hrPriceChangeStatisticsResponseInner
     */
    baseVolume?: string;
    /**
     *
     * @type {number}
     * @memberof Ticker24hrPriceChangeStatisticsResponseInner
     */
    openTime?: number;
    /**
     *
     * @type {number}
     * @memberof Ticker24hrPriceChangeStatisticsResponseInner
     */
    closeTime?: number;
    /**
     *
     * @type {number}
     * @memberof Ticker24hrPriceChangeStatisticsResponseInner
     */
    firstId?: number;
    /**
     *
     * @type {number}
     * @memberof Ticker24hrPriceChangeStatisticsResponseInner
     */
    lastId?: number;
    /**
     *
     * @type {number}
     * @memberof Ticker24hrPriceChangeStatisticsResponseInner
     */
    count?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface Ticker24hrPriceChangeStatisticsResponse
 */
interface Ticker24hrPriceChangeStatisticsResponse extends Array<Ticker24hrPriceChangeStatisticsResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface TopTraderLongShortRatioAccountsResponseInner
 */
interface TopTraderLongShortRatioAccountsResponseInner {
    /**
     *
     * @type {string}
     * @memberof TopTraderLongShortRatioAccountsResponseInner
     */
    pair?: string;
    /**
     *
     * @type {string}
     * @memberof TopTraderLongShortRatioAccountsResponseInner
     */
    longShortRatio?: string;
    /**
     *
     * @type {string}
     * @memberof TopTraderLongShortRatioAccountsResponseInner
     */
    longAccount?: string;
    /**
     *
     * @type {string}
     * @memberof TopTraderLongShortRatioAccountsResponseInner
     */
    shortAccount?: string;
    /**
     *
     * @type {number}
     * @memberof TopTraderLongShortRatioAccountsResponseInner
     */
    timestamp?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface TopTraderLongShortRatioAccountsResponse
 */
interface TopTraderLongShortRatioAccountsResponse extends Array<TopTraderLongShortRatioAccountsResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface TopTraderLongShortRatioPositionsResponseInner
 */
interface TopTraderLongShortRatioPositionsResponseInner {
    /**
     *
     * @type {string}
     * @memberof TopTraderLongShortRatioPositionsResponseInner
     */
    pair?: string;
    /**
     *
     * @type {string}
     * @memberof TopTraderLongShortRatioPositionsResponseInner
     */
    longShortRatio?: string;
    /**
     *
     * @type {string}
     * @memberof TopTraderLongShortRatioPositionsResponseInner
     */
    longPosition?: string;
    /**
     *
     * @type {string}
     * @memberof TopTraderLongShortRatioPositionsResponseInner
     */
    shortPosition?: string;
    /**
     *
     * @type {number}
     * @memberof TopTraderLongShortRatioPositionsResponseInner
     */
    timestamp?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface TopTraderLongShortRatioPositionsResponse
 */
interface TopTraderLongShortRatioPositionsResponse extends Array<TopTraderLongShortRatioPositionsResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface UserCommissionRateResponse
 */
interface UserCommissionRateResponse {
    /**
     *
     * @type {string}
     * @memberof UserCommissionRateResponse
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof UserCommissionRateResponse
     */
    makerCommissionRate?: string;
    /**
     *
     * @type {string}
     * @memberof UserCommissionRateResponse
     */
    takerCommissionRate?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface UsersForceOrdersResponseInner
 */
interface UsersForceOrdersResponseInner {
    /**
     *
     * @type {number}
     * @memberof UsersForceOrdersResponseInner
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof UsersForceOrdersResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof UsersForceOrdersResponseInner
     */
    pair?: string;
    /**
     *
     * @type {string}
     * @memberof UsersForceOrdersResponseInner
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof UsersForceOrdersResponseInner
     */
    clientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof UsersForceOrdersResponseInner
     */
    price?: string;
    /**
     *
     * @type {string}
     * @memberof UsersForceOrdersResponseInner
     */
    avgPrice?: string;
    /**
     *
     * @type {string}
     * @memberof UsersForceOrdersResponseInner
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof UsersForceOrdersResponseInner
     */
    executedQty?: string;
    /**
     *
     * @type {string}
     * @memberof UsersForceOrdersResponseInner
     */
    cumBase?: string;
    /**
     *
     * @type {string}
     * @memberof UsersForceOrdersResponseInner
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof UsersForceOrdersResponseInner
     */
    type?: string;
    /**
     *
     * @type {boolean}
     * @memberof UsersForceOrdersResponseInner
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {boolean}
     * @memberof UsersForceOrdersResponseInner
     */
    closePosition?: boolean;
    /**
     *
     * @type {string}
     * @memberof UsersForceOrdersResponseInner
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof UsersForceOrdersResponseInner
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof UsersForceOrdersResponseInner
     */
    stopPrice?: string;
    /**
     *
     * @type {string}
     * @memberof UsersForceOrdersResponseInner
     */
    workingType?: string;
    /**
     *
     * @type {boolean}
     * @memberof UsersForceOrdersResponseInner
     */
    priceProtect?: boolean;
    /**
     *
     * @type {string}
     * @memberof UsersForceOrdersResponseInner
     */
    origType?: string;
    /**
     *
     * @type {number}
     * @memberof UsersForceOrdersResponseInner
     */
    time?: number;
    /**
     *
     * @type {number}
     * @memberof UsersForceOrdersResponseInner
     */
    updateTime?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface UsersForceOrdersResponse
 */
interface UsersForceOrdersResponse extends Array<UsersForceOrdersResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 * AccountApi - interface
 * @interface AccountApi
 */
interface AccountApiInterface$1 {
    /**
     * Get current account information.
     *
     * for One-way Mode user, the "positions" will only show the "BOTH" positions
     * for Hedge Mode user, the "positions" will show "BOTH", "LONG", and "SHORT" positions.
     *
     * Weight: 5
     *
     * @summary Account Information (USER_DATA)
     * @param {AccountInformationRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    accountInformation(requestParameters?: AccountInformationRequest$1): Promise<RestApiResponse<AccountInformationResponse$1>>;
    /**
     * Check futures account balance
     *
     * Weight: 1
     *
     * @summary Futures Account Balance (USER_DATA)
     * @param {FuturesAccountBalanceRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    futuresAccountBalance(requestParameters?: FuturesAccountBalanceRequest$1): Promise<RestApiResponse<FuturesAccountBalanceResponse$1>>;
    /**
     * Get user's position mode (Hedge Mode or One-way Mode ) on ***EVERY symbol***
     *
     * Weight: 30
     *
     * @summary Get Current Position Mode(USER_DATA)
     * @param {GetCurrentPositionModeRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    getCurrentPositionMode(requestParameters?: GetCurrentPositionModeRequest): Promise<RestApiResponse<GetCurrentPositionModeResponse>>;
    /**
     * Get Download Id For Futures Order History
     *
     * Request Limitation is 10 times per month, shared by front end download page and rest api
     * The time between `startTime` and `endTime` can not be longer than 1 year
     *
     * Weight: 5
     *
     * @summary Get Download Id For Futures Order History (USER_DATA)
     * @param {GetDownloadIdForFuturesOrderHistoryRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    getDownloadIdForFuturesOrderHistory(requestParameters: GetDownloadIdForFuturesOrderHistoryRequest): Promise<RestApiResponse<GetDownloadIdForFuturesOrderHistoryResponse>>;
    /**
     * Get download id for futures trade history
     *
     * Request Limitation is 5 times per month, shared by front end download page and rest api
     * The time between `startTime` and `endTime` can not be longer than 1 year
     *
     * Weight: 5
     *
     * @summary Get Download Id For Futures Trade History (USER_DATA)
     * @param {GetDownloadIdForFuturesTradeHistoryRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    getDownloadIdForFuturesTradeHistory(requestParameters: GetDownloadIdForFuturesTradeHistoryRequest): Promise<RestApiResponse<GetDownloadIdForFuturesTradeHistoryResponse>>;
    /**
     * Get download id for futures transaction history
     *
     * Request Limitation is 5 times per month, shared by front end download page and rest api
     * The time between `startTime` and `endTime` can not be longer than 1 year
     *
     * Weight: 5
     *
     * @summary Get Download Id For Futures Transaction History(USER_DATA)
     * @param {GetDownloadIdForFuturesTransactionHistoryRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    getDownloadIdForFuturesTransactionHistory(requestParameters: GetDownloadIdForFuturesTransactionHistoryRequest): Promise<RestApiResponse<GetDownloadIdForFuturesTransactionHistoryResponse>>;
    /**
     * Get futures order history download link by Id
     *
     * Download link expiration: 24h
     *
     * Weight: 5
     *
     * @summary Get Futures Order History Download Link by Id (USER_DATA)
     * @param {GetFuturesOrderHistoryDownloadLinkByIdRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    getFuturesOrderHistoryDownloadLinkById(requestParameters: GetFuturesOrderHistoryDownloadLinkByIdRequest): Promise<RestApiResponse<GetFuturesOrderHistoryDownloadLinkByIdResponse>>;
    /**
     * Get futures trade download link by Id
     *
     * Download link expiration: 24h
     *
     * Weight: 5
     *
     * @summary Get Futures Trade Download Link by Id(USER_DATA)
     * @param {GetFuturesTradeDownloadLinkByIdRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    getFuturesTradeDownloadLinkById(requestParameters: GetFuturesTradeDownloadLinkByIdRequest): Promise<RestApiResponse<GetFuturesTradeDownloadLinkByIdResponse>>;
    /**
     * Get futures transaction history download link by Id
     *
     * Download link expiration: 24h
     *
     * Weight: 5
     *
     * @summary Get Futures Transaction History Download Link by Id (USER_DATA)
     * @param {GetFuturesTransactionHistoryDownloadLinkByIdRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    getFuturesTransactionHistoryDownloadLinkById(requestParameters: GetFuturesTransactionHistoryDownloadLinkByIdRequest): Promise<RestApiResponse<GetFuturesTransactionHistoryDownloadLinkByIdResponse>>;
    /**
     * Get income history
     *
     * If `incomeType ` is not sent, all kinds of flow will be returned
     * "trandId" is unique in the same "incomeType" for a user
     * The time between `startTime` and `endTime` can not be longer than 1 year
     *
     * Weight: 20
     *
     * @summary Get Income History(USER_DATA)
     * @param {GetIncomeHistoryRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    getIncomeHistory(requestParameters?: GetIncomeHistoryRequest): Promise<RestApiResponse<GetIncomeHistoryResponse>>;
    /**
     * **Not recommended to continue using this v1 endpoint**
     *
     * Get the pair's default notional bracket list, may return ambiguous values when there have been multiple different `symbol` brackets under the `pair`, suggest using the following `GET /dapi/v2/leverageBracket` query instead to get the specific `symbol` notional bracket list.
     *
     * Weight: 1
     *
     * @summary Notional Bracket for Pair(USER_DATA)
     * @param {NotionalBracketForPairRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    notionalBracketForPair(requestParameters?: NotionalBracketForPairRequest): Promise<RestApiResponse<NotionalBracketForPairResponse>>;
    /**
     * Get the symbol's notional bracket list.
     *
     * Weight: 1
     *
     * @summary Notional Bracket for Symbol(USER_DATA)
     * @param {NotionalBracketForSymbolRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    notionalBracketForSymbol(requestParameters?: NotionalBracketForSymbolRequest): Promise<RestApiResponse<NotionalBracketForSymbolResponse>>;
    /**
     * Query user commission rate
     *
     * Weight: 20
     *
     * @summary User Commission Rate (USER_DATA)
     * @param {UserCommissionRateRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    userCommissionRate(requestParameters: UserCommissionRateRequest): Promise<RestApiResponse<UserCommissionRateResponse>>;
}
/**
 * Request parameters for accountInformation operation in AccountApi.
 * @interface AccountInformationRequest
 */
interface AccountInformationRequest$1 {
    /**
     *
     * @type {number}
     * @memberof AccountApiAccountInformation
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for futuresAccountBalance operation in AccountApi.
 * @interface FuturesAccountBalanceRequest
 */
interface FuturesAccountBalanceRequest$1 {
    /**
     *
     * @type {number}
     * @memberof AccountApiFuturesAccountBalance
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getCurrentPositionMode operation in AccountApi.
 * @interface GetCurrentPositionModeRequest
 */
interface GetCurrentPositionModeRequest {
    /**
     *
     * @type {number}
     * @memberof AccountApiGetCurrentPositionMode
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getDownloadIdForFuturesOrderHistory operation in AccountApi.
 * @interface GetDownloadIdForFuturesOrderHistoryRequest
 */
interface GetDownloadIdForFuturesOrderHistoryRequest {
    /**
     * Timestamp in ms
     * @type {number}
     * @memberof AccountApiGetDownloadIdForFuturesOrderHistory
     */
    readonly startTime: number;
    /**
     * Timestamp in ms
     * @type {number}
     * @memberof AccountApiGetDownloadIdForFuturesOrderHistory
     */
    readonly endTime: number;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetDownloadIdForFuturesOrderHistory
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getDownloadIdForFuturesTradeHistory operation in AccountApi.
 * @interface GetDownloadIdForFuturesTradeHistoryRequest
 */
interface GetDownloadIdForFuturesTradeHistoryRequest {
    /**
     * Timestamp in ms
     * @type {number}
     * @memberof AccountApiGetDownloadIdForFuturesTradeHistory
     */
    readonly startTime: number;
    /**
     * Timestamp in ms
     * @type {number}
     * @memberof AccountApiGetDownloadIdForFuturesTradeHistory
     */
    readonly endTime: number;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetDownloadIdForFuturesTradeHistory
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getDownloadIdForFuturesTransactionHistory operation in AccountApi.
 * @interface GetDownloadIdForFuturesTransactionHistoryRequest
 */
interface GetDownloadIdForFuturesTransactionHistoryRequest {
    /**
     * Timestamp in ms
     * @type {number}
     * @memberof AccountApiGetDownloadIdForFuturesTransactionHistory
     */
    readonly startTime: number;
    /**
     * Timestamp in ms
     * @type {number}
     * @memberof AccountApiGetDownloadIdForFuturesTransactionHistory
     */
    readonly endTime: number;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetDownloadIdForFuturesTransactionHistory
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getFuturesOrderHistoryDownloadLinkById operation in AccountApi.
 * @interface GetFuturesOrderHistoryDownloadLinkByIdRequest
 */
interface GetFuturesOrderHistoryDownloadLinkByIdRequest {
    /**
     * get by download id api
     * @type {string}
     * @memberof AccountApiGetFuturesOrderHistoryDownloadLinkById
     */
    readonly downloadId: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetFuturesOrderHistoryDownloadLinkById
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getFuturesTradeDownloadLinkById operation in AccountApi.
 * @interface GetFuturesTradeDownloadLinkByIdRequest
 */
interface GetFuturesTradeDownloadLinkByIdRequest {
    /**
     * get by download id api
     * @type {string}
     * @memberof AccountApiGetFuturesTradeDownloadLinkById
     */
    readonly downloadId: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetFuturesTradeDownloadLinkById
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getFuturesTransactionHistoryDownloadLinkById operation in AccountApi.
 * @interface GetFuturesTransactionHistoryDownloadLinkByIdRequest
 */
interface GetFuturesTransactionHistoryDownloadLinkByIdRequest {
    /**
     * get by download id api
     * @type {string}
     * @memberof AccountApiGetFuturesTransactionHistoryDownloadLinkById
     */
    readonly downloadId: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetFuturesTransactionHistoryDownloadLinkById
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getIncomeHistory operation in AccountApi.
 * @interface GetIncomeHistoryRequest
 */
interface GetIncomeHistoryRequest {
    /**
     *
     * @type {string}
     * @memberof AccountApiGetIncomeHistory
     */
    readonly symbol?: string;
    /**
     * "TRANSFER","WELCOME_BONUS", "FUNDING_FEE", "REALIZED_PNL", "COMMISSION", "INSURANCE_CLEAR", and "DELIVERED_SETTELMENT"
     * @type {string}
     * @memberof AccountApiGetIncomeHistory
     */
    readonly incomeType?: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetIncomeHistory
     */
    readonly startTime?: number;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetIncomeHistory
     */
    readonly endTime?: number;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetIncomeHistory
     */
    readonly page?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof AccountApiGetIncomeHistory
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetIncomeHistory
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for notionalBracketForPair operation in AccountApi.
 * @interface NotionalBracketForPairRequest
 */
interface NotionalBracketForPairRequest {
    /**
     *
     * @type {string}
     * @memberof AccountApiNotionalBracketForPair
     */
    readonly pair?: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiNotionalBracketForPair
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for notionalBracketForSymbol operation in AccountApi.
 * @interface NotionalBracketForSymbolRequest
 */
interface NotionalBracketForSymbolRequest {
    /**
     *
     * @type {string}
     * @memberof AccountApiNotionalBracketForSymbol
     */
    readonly symbol?: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiNotionalBracketForSymbol
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for userCommissionRate operation in AccountApi.
 * @interface UserCommissionRateRequest
 */
interface UserCommissionRateRequest {
    /**
     *
     * @type {string}
     * @memberof AccountApiUserCommissionRate
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiUserCommissionRate
     */
    readonly recvWindow?: number;
}
/**
 * AccountApi - object-oriented interface
 * @class AccountApi
 */
declare class AccountApi$1 implements AccountApiInterface$1 {
    private readonly configuration;
    private localVarAxiosParamCreator;
    constructor(configuration: ConfigurationRestAPI);
    /**
     * Get current account information.
     *
     * for One-way Mode user, the "positions" will only show the "BOTH" positions
     * for Hedge Mode user, the "positions" will show "BOTH", "LONG", and "SHORT" positions.
     *
     * Weight: 5
     *
     * @summary Account Information (USER_DATA)
     * @param {AccountInformationRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<AccountInformationResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information Binance API Documentation}
     */
    accountInformation(requestParameters?: AccountInformationRequest$1): Promise<RestApiResponse<AccountInformationResponse$1>>;
    /**
     * Check futures account balance
     *
     * Weight: 1
     *
     * @summary Futures Account Balance (USER_DATA)
     * @param {FuturesAccountBalanceRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<FuturesAccountBalanceResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Futures-Account-Balance Binance API Documentation}
     */
    futuresAccountBalance(requestParameters?: FuturesAccountBalanceRequest$1): Promise<RestApiResponse<FuturesAccountBalanceResponse$1>>;
    /**
     * Get user's position mode (Hedge Mode or One-way Mode ) on ***EVERY symbol***
     *
     * Weight: 30
     *
     * @summary Get Current Position Mode(USER_DATA)
     * @param {GetCurrentPositionModeRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetCurrentPositionModeResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Current-Position-Mode Binance API Documentation}
     */
    getCurrentPositionMode(requestParameters?: GetCurrentPositionModeRequest): Promise<RestApiResponse<GetCurrentPositionModeResponse>>;
    /**
     * Get Download Id For Futures Order History
     *
     * Request Limitation is 10 times per month, shared by front end download page and rest api
     * The time between `startTime` and `endTime` can not be longer than 1 year
     *
     * Weight: 5
     *
     * @summary Get Download Id For Futures Order History (USER_DATA)
     * @param {GetDownloadIdForFuturesOrderHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetDownloadIdForFuturesOrderHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Download-Id-For-Futures-Order-History Binance API Documentation}
     */
    getDownloadIdForFuturesOrderHistory(requestParameters: GetDownloadIdForFuturesOrderHistoryRequest): Promise<RestApiResponse<GetDownloadIdForFuturesOrderHistoryResponse>>;
    /**
     * Get download id for futures trade history
     *
     * Request Limitation is 5 times per month, shared by front end download page and rest api
     * The time between `startTime` and `endTime` can not be longer than 1 year
     *
     * Weight: 5
     *
     * @summary Get Download Id For Futures Trade History (USER_DATA)
     * @param {GetDownloadIdForFuturesTradeHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetDownloadIdForFuturesTradeHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Download-Id-For-Futures-Trade-History Binance API Documentation}
     */
    getDownloadIdForFuturesTradeHistory(requestParameters: GetDownloadIdForFuturesTradeHistoryRequest): Promise<RestApiResponse<GetDownloadIdForFuturesTradeHistoryResponse>>;
    /**
     * Get download id for futures transaction history
     *
     * Request Limitation is 5 times per month, shared by front end download page and rest api
     * The time between `startTime` and `endTime` can not be longer than 1 year
     *
     * Weight: 5
     *
     * @summary Get Download Id For Futures Transaction History(USER_DATA)
     * @param {GetDownloadIdForFuturesTransactionHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetDownloadIdForFuturesTransactionHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Download-Id-For-Futures-Transaction-History Binance API Documentation}
     */
    getDownloadIdForFuturesTransactionHistory(requestParameters: GetDownloadIdForFuturesTransactionHistoryRequest): Promise<RestApiResponse<GetDownloadIdForFuturesTransactionHistoryResponse>>;
    /**
     * Get futures order history download link by Id
     *
     * Download link expiration: 24h
     *
     * Weight: 5
     *
     * @summary Get Futures Order History Download Link by Id (USER_DATA)
     * @param {GetFuturesOrderHistoryDownloadLinkByIdRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetFuturesOrderHistoryDownloadLinkByIdResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Futures-Order-History-Download-Link-by-Id Binance API Documentation}
     */
    getFuturesOrderHistoryDownloadLinkById(requestParameters: GetFuturesOrderHistoryDownloadLinkByIdRequest): Promise<RestApiResponse<GetFuturesOrderHistoryDownloadLinkByIdResponse>>;
    /**
     * Get futures trade download link by Id
     *
     * Download link expiration: 24h
     *
     * Weight: 5
     *
     * @summary Get Futures Trade Download Link by Id(USER_DATA)
     * @param {GetFuturesTradeDownloadLinkByIdRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetFuturesTradeDownloadLinkByIdResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Futures-Trade-Download-Link-by-Id Binance API Documentation}
     */
    getFuturesTradeDownloadLinkById(requestParameters: GetFuturesTradeDownloadLinkByIdRequest): Promise<RestApiResponse<GetFuturesTradeDownloadLinkByIdResponse>>;
    /**
     * Get futures transaction history download link by Id
     *
     * Download link expiration: 24h
     *
     * Weight: 5
     *
     * @summary Get Futures Transaction History Download Link by Id (USER_DATA)
     * @param {GetFuturesTransactionHistoryDownloadLinkByIdRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetFuturesTransactionHistoryDownloadLinkByIdResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Futures-Transaction-History-Download-Link-by-Id Binance API Documentation}
     */
    getFuturesTransactionHistoryDownloadLinkById(requestParameters: GetFuturesTransactionHistoryDownloadLinkByIdRequest): Promise<RestApiResponse<GetFuturesTransactionHistoryDownloadLinkByIdResponse>>;
    /**
     * Get income history
     *
     * If `incomeType ` is not sent, all kinds of flow will be returned
     * "trandId" is unique in the same "incomeType" for a user
     * The time between `startTime` and `endTime` can not be longer than 1 year
     *
     * Weight: 20
     *
     * @summary Get Income History(USER_DATA)
     * @param {GetIncomeHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetIncomeHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Income-History Binance API Documentation}
     */
    getIncomeHistory(requestParameters?: GetIncomeHistoryRequest): Promise<RestApiResponse<GetIncomeHistoryResponse>>;
    /**
     * **Not recommended to continue using this v1 endpoint**
     *
     * Get the pair's default notional bracket list, may return ambiguous values when there have been multiple different `symbol` brackets under the `pair`, suggest using the following `GET /dapi/v2/leverageBracket` query instead to get the specific `symbol` notional bracket list.
     *
     * Weight: 1
     *
     * @summary Notional Bracket for Pair(USER_DATA)
     * @param {NotionalBracketForPairRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<NotionalBracketForPairResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Notional-Bracket-for-Pair Binance API Documentation}
     */
    notionalBracketForPair(requestParameters?: NotionalBracketForPairRequest): Promise<RestApiResponse<NotionalBracketForPairResponse>>;
    /**
     * Get the symbol's notional bracket list.
     *
     * Weight: 1
     *
     * @summary Notional Bracket for Symbol(USER_DATA)
     * @param {NotionalBracketForSymbolRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<NotionalBracketForSymbolResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Notional-Bracket-for-Symbol Binance API Documentation}
     */
    notionalBracketForSymbol(requestParameters?: NotionalBracketForSymbolRequest): Promise<RestApiResponse<NotionalBracketForSymbolResponse>>;
    /**
     * Query user commission rate
     *
     * Weight: 20
     *
     * @summary User Commission Rate (USER_DATA)
     * @param {UserCommissionRateRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<UserCommissionRateResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/User-Commission-Rate Binance API Documentation}
     */
    userCommissionRate(requestParameters: UserCommissionRateRequest): Promise<RestApiResponse<UserCommissionRateResponse>>;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 * MarketDataApi - interface
 * @interface MarketDataApi
 */
interface MarketDataApiInterface {
    /**
     * Query basis
     *
     * If startTime and endTime are not sent, the most recent data is returned.
     * Only the data of the latest 30 days is available.
     *
     * Weight: 1
     *
     * @summary Basis
     * @param {BasisRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    basis(requestParameters: BasisRequest): Promise<RestApiResponse<BasisResponse>>;
    /**
     * Test connectivity to the Rest API and get the current server time.
     *
     * Weight: 1
     *
     * @summary Check Server time
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    checkServerTime(): Promise<RestApiResponse<CheckServerTimeResponse>>;
    /**
     * Get compressed, aggregate trades. Market trades that fill in 100ms with the same price and the same taking side will have the quantity aggregated.
     *
     * support querying futures trade histories that are not older than one year
     * If both `startTime` and `endTime` are sent, time between `startTime` and `endTime` must be less than 1 hour.
     * If `fromId`, `startTime`, and `endTime` are not sent, the most recent aggregate trades will be returned.
     * Only market trades will be aggregated and returned, which means the insurance fund trades and ADL trades won't be aggregated.
     * Sending both `startTime`/`endTime` and `fromId` might cause response timeout, please send either `fromId` or `startTime`/`endTime`
     *
     * Weight: 20
     *
     * @summary Compressed/Aggregate Trades List
     * @param {CompressedAggregateTradesListRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    compressedAggregateTradesList(requestParameters: CompressedAggregateTradesListRequest): Promise<RestApiResponse<CompressedAggregateTradesListResponse>>;
    /**
     * Kline/candlestick bars for a specific contract type.
     * Klines are uniquely identified by their open time.
     *
     * Contract type:
     * PERPETUAL
     * CURRENT_QUARTER
     * NEXT_QUARTER
     *
     *
     * 1000 | 10
     * The difference between `startTime` and `endTime` can only be up to 200 days
     * Between `startTime` and `endTime`, the most recent `limit` data from `endTime` will be returned:
     * If `startTime` and `endTime` are not sent, current timestamp will be set as `endTime`, and the most recent data will be returned.
     * If `startTime` is sent only, the timestamp of 200 days after `startTime` will be set as `endTime`(up to the current time)
     * If `endTime` is sent only, the timestamp of 200 days before `endTime` will be set as `startTime`
     *
     * Weight: based on parameter LIMIT
     * LIMIT | weight
     * ---|---
     * [1,100) | 1
     * [100, 500) | 2
     * [500, 1000] | 5
     * > 1000 | 10
     *
     * @summary Continuous Contract Kline/Candlestick Data
     * @param {ContinuousContractKlineCandlestickDataRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    continuousContractKlineCandlestickData(requestParameters: ContinuousContractKlineCandlestickDataRequest): Promise<RestApiResponse<ContinuousContractKlineCandlestickDataResponse>>;
    /**
     * Current exchange trading rules and symbol information
     *
     * Weight: 1
     *
     * @summary Exchange Information
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    exchangeInformation(): Promise<RestApiResponse<ExchangeInformationResponse>>;
    /**
     * Get Funding Rate History of Perpetual Futures
     *
     * empty array will be returned for delivery symbols.
     *
     * Weight: 1
     *
     * @summary Get Funding Rate History of Perpetual Futures
     * @param {GetFundingRateHistoryOfPerpetualFuturesRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    getFundingRateHistoryOfPerpetualFutures(requestParameters: GetFundingRateHistoryOfPerpetualFuturesRequest): Promise<RestApiResponse<GetFundingRateHistoryOfPerpetualFuturesResponse>>;
    /**
     * Query funding rate info for symbols that had FundingRateCap/ FundingRateFloor / fundingIntervalHours adjustment
     *
     * Weight: 0
     *
     * @summary Get Funding Rate Info
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    getFundingRateInfo(): Promise<RestApiResponse<GetFundingRateInfoResponse>>;
    /**
     * Query index price and mark price
     *
     * Weight: 10
     *
     * @summary Index Price and Mark Price
     * @param {IndexPriceAndMarkPriceRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    indexPriceAndMarkPrice(requestParameters?: IndexPriceAndMarkPriceRequest): Promise<RestApiResponse<IndexPriceAndMarkPriceResponse>>;
    /**
     * Kline/candlestick bars for the index price of a pair. Klines are uniquely identified by their open time.
     *
     *
     * 1000 | 10
     * The difference between `startTime` and `endTime` can only be up to 200 days
     * Between `startTime` and `endTime`, the most recent `limit` data from `endTime` will be returned:
     * If `startTime` and `endTime` are not sent, current timestamp will be set as `endTime`, and the most recent data will be returned.
     * If `startTime` is sent only, the timestamp of 200 days after `startTime` will be set as `endTime`(up to the current time)
     * If `endTime` is sent only, the timestamp of 200 days before `endTime` will be set as `startTime`
     *
     * Weight: based on parameter LIMIT
     * LIMIT | weight
     * ---|---
     * [1,100) | 1
     * [100, 500) | 2
     * [500, 1000] | 5
     * > 1000 | 10
     *
     * @summary Index Price Kline/Candlestick Data
     * @param {IndexPriceKlineCandlestickDataRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    indexPriceKlineCandlestickData(requestParameters: IndexPriceKlineCandlestickDataRequest): Promise<RestApiResponse<IndexPriceKlineCandlestickDataResponse>>;
    /**
     * Kline/candlestick bars for a symbol.
     * Klines are uniquely identified by their open time.
     *
     * 1000 | 10
     * The difference between `startTime` and `endTime` can only be up to 200 days
     * Between `startTime` and `endTime`, the most recent `limit` data from `endTime` will be returned:
     * If `startTime` and `endTime` are not sent, current timestamp will be set as `endTime`, and the most recent data will be returned.
     * If `startTime` is sent only, the timestamp of 200 days after `startTime` will be set as `endTime`(up to the current time)
     * If `endTime` is sent only, the timestamp of 200 days before `endTime` will be set as `startTime`
     *
     * Weight: based on parameter LIMIT
     * LIMIT | weight
     * ---|---
     * [1,100) | 1
     * [100, 500) | 2
     * [500, 1000] | 5
     * > 1000 | 10
     *
     * @summary Kline/Candlestick Data
     * @param {KlineCandlestickDataRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    klineCandlestickData(requestParameters: KlineCandlestickDataRequest): Promise<RestApiResponse<KlineCandlestickDataResponse>>;
    /**
     * Query symbol Long/Short Ratio
     *
     * If startTime and endTime are not sent, the most recent data is returned.
     * Only the data of the latest 30 days is available.
     *
     * Weight: 1
     *
     * @summary Long/Short Ratio
     * @param {LongShortRatioRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    longShortRatio(requestParameters: LongShortRatioRequest): Promise<RestApiResponse<LongShortRatioResponse>>;
    /**
     * Kline/candlestick bars for the mark price of a symbol.
     * Klines are uniquely identified by their open time.
     *
     *
     * 1000 | 10
     * The difference between `startTime` and `endTime` can only be up to 200 days
     * Between `startTime` and `endTime`, the most recent `limit` data from `endTime` will be returned:
     * If `startTime` and `endTime` are not sent, current timestamp will be set as `endTime`, and the most recent data will be returned.
     * If `startTime` is sent only, the timestamp of 200 days after `startTime` will be set as `endTime`(up to the current time)
     * If `endTime` is sent only, the timestamp of 200 days before `endTime` will be set as `startTime`
     *
     * Weight: based on parameter LIMIT
     * LIMIT | weight
     * ---|---
     * [1,100) | 1
     * [100, 500) | 2
     * [500, 1000] | 5
     * > 1000 | 10
     *
     * @summary Mark Price Kline/Candlestick Data
     * @param {MarkPriceKlineCandlestickDataRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    markPriceKlineCandlestickData(requestParameters: MarkPriceKlineCandlestickDataRequest): Promise<RestApiResponse<MarkPriceKlineCandlestickDataResponse>>;
    /**
     * Get older market historical trades.
     *
     * Market trades means trades filled in the order book. Only market trades will be returned, which means the insurance fund trades and ADL trades won't be returned.
     *
     * Weight: 20
     *
     * @summary Old Trades Lookup(MARKET_DATA)
     * @param {OldTradesLookupRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    oldTradesLookup(requestParameters: OldTradesLookupRequest): Promise<RestApiResponse<OldTradesLookupResponse>>;
    /**
     * Get present open interest of a specific symbol.
     *
     * Weight: 1
     *
     * @summary Open Interest
     * @param {OpenInterestRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    openInterest(requestParameters: OpenInterestRequest): Promise<RestApiResponse<OpenInterestResponse>>;
    /**
     * Query open interest stats
     *
     *
     * If startTime and endTime are not sent, the most recent data is returned.
     * Only the data of the latest 30 days is available.
     *
     * Weight: 1
     *
     * @summary Open Interest Statistics
     * @param {OpenInterestStatisticsRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    openInterestStatistics(requestParameters: OpenInterestStatisticsRequest): Promise<RestApiResponse<OpenInterestStatisticsResponse>>;
    /**
     * Query orderbook on specific symbol
     *
     * Weight: Adjusted based on the limit:
     * Limit | Weight
     * ------------ | ------------
     * 5, 10, 20, 50 | 2
     * 100 | 5
     * 500 | 10
     * 1000 | 20
     *
     * @summary Order Book
     * @param {OrderBookRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    orderBook(requestParameters: OrderBookRequest): Promise<RestApiResponse<OrderBookResponse>>;
    /**
     * Premium index kline bars of a symbol. Klines are uniquely identified by their open time.
     *
     *
     * If startTime and endTime are not sent, the most recent klines are returned.
     *
     * Weight: based on parameter LIMIT
     * | LIMIT       | weight |
     * | ----------- | ------ |
     * | [1,100)     | 1      |
     * | [100, 500)  | 2      |
     * | [500, 1000] | 5      |
     * | > 1000      | 10     |
     *
     * @summary Premium index Kline Data
     * @param {PremiumIndexKlineDataRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    premiumIndexKlineData(requestParameters: PremiumIndexKlineDataRequest): Promise<RestApiResponse<PremiumIndexKlineDataResponse>>;
    /**
     * Query index price constituents
     *
     * Weight: 2
     *
     * @summary Query Index Price Constituents
     * @param {QueryIndexPriceConstituentsRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    queryIndexPriceConstituents(requestParameters: QueryIndexPriceConstituentsRequest): Promise<RestApiResponse<QueryIndexPriceConstituentsResponse>>;
    /**
     * Get recent market trades
     *
     * Market trades means trades filled in the order book. Only market trades will be returned, which means the insurance fund trades and ADL trades won't be returned.
     *
     * Weight: 5
     *
     * @summary Recent Trades List
     * @param {RecentTradesListRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    recentTradesList(requestParameters: RecentTradesListRequest): Promise<RestApiResponse<RecentTradesListResponse>>;
    /**
     * Best price/qty on the order book for a symbol or symbols.
     *
     * Symbol and pair cannot be sent together
     * If a pair is sent,tickers for all symbols of the pair will be returned
     * If either a pair or symbol is sent, tickers for all symbols of all pairs will be returned
     *
     * Weight: 2 for a single symbol, 5 when the symbol parameter is omitted
     *
     * @summary Symbol Order Book Ticker
     * @param {SymbolOrderBookTickerRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    symbolOrderBookTicker(requestParameters?: SymbolOrderBookTickerRequest): Promise<RestApiResponse<SymbolOrderBookTickerResponse>>;
    /**
     * Latest price for a symbol or symbols.
     *
     * Symbol and pair cannot be sent together
     * If a pair is sent,tickers for all symbols of the pair will be returned
     * If either a pair or symbol is sent, tickers for all symbols of all pairs will be returned
     *
     * Weight: 1 for a single symbol, 2 when the symbol parameter is omitted
     *
     * @summary Symbol Price Ticker
     * @param {SymbolPriceTickerRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    symbolPriceTicker(requestParameters?: SymbolPriceTickerRequest): Promise<RestApiResponse<SymbolPriceTickerResponse>>;
    /**
     * Taker Buy Volume: the total volume of buy orders filled by takers within the period.
     * Taker Sell Volume: the total volume of sell orders filled by takers within the period.
     *
     * If startTime and endTime are not sent, the most recent data is returned.
     * Only the data of the latest 30 days is available.
     *
     * Weight: 1
     *
     * @summary Taker Buy/Sell Volume
     * @param {TakerBuySellVolumeRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    takerBuySellVolume(requestParameters: TakerBuySellVolumeRequest): Promise<RestApiResponse<TakerBuySellVolumeResponse>>;
    /**
     * Test connectivity to the Rest API.
     *
     * Weight: 1
     *
     * @summary Test Connectivity
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    testConnectivity(): Promise<RestApiResponse<void>>;
    /**
     * 24 hour rolling window price change statistics.
     *
     * Symbol and pair cannot be sent together
     * If a pair is sent,tickers for all symbols of the pair will be returned
     * If either a pair or symbol is sent, tickers for all symbols of all pairs will be returned
     *
     * Weight: 1 for a single symbol, 40 when the symbol parameter is omitted
     * Careful when accessing this with no symbol.
     *
     * @summary 24hr Ticker Price Change Statistics
     * @param {Ticker24hrPriceChangeStatisticsRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    ticker24hrPriceChangeStatistics(requestParameters?: Ticker24hrPriceChangeStatisticsRequest): Promise<RestApiResponse<Ticker24hrPriceChangeStatisticsResponse>>;
    /**
     * The proportion of net long and net short accounts to total accounts of the top 20% users with the highest margin balance. Each account is counted once only.
     * Long Account % = Accounts of top traders with net long positions / Total accounts of top traders with open positions
     * Short Account % = Accounts of top traders with net short positions / Total accounts of top traders with open positions
     * Long/Short Ratio (Accounts) = Long Account % / Short Account %
     *
     * If startTime and endTime are not sent, the most recent data is returned.
     * Only the data of the latest 30 days is available.
     *
     * Weight: 1
     *
     * @summary Top Trader Long/Short Ratio (Accounts)
     * @param {TopTraderLongShortRatioAccountsRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    topTraderLongShortRatioAccounts(requestParameters: TopTraderLongShortRatioAccountsRequest): Promise<RestApiResponse<TopTraderLongShortRatioAccountsResponse>>;
    /**
     * The proportion of net long and net short positions to total open positions of the top 20% users with the highest margin balance.
     * Long Position % = Long positions of top traders / Total open positions of top traders
     * Short Position % = Short positions of top traders / Total open positions of top traders
     * Long/Short Ratio (Positions) = Long Position % / Short Position %
     *
     * If startTime and endTime are not sent, the most recent data is returned.
     * Only the data of the latest 30 days is available.
     *
     * Weight: 1
     *
     * @summary Top Trader Long/Short Ratio (Positions)
     * @param {TopTraderLongShortRatioPositionsRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApiInterface
     */
    topTraderLongShortRatioPositions(requestParameters: TopTraderLongShortRatioPositionsRequest): Promise<RestApiResponse<TopTraderLongShortRatioPositionsResponse>>;
}
/**
 * Request parameters for basis operation in MarketDataApi.
 * @interface BasisRequest
 */
interface BasisRequest {
    /**
     * BTCUSD
     * @type {string}
     * @memberof MarketDataApiBasis
     */
    readonly pair: string;
    /**
     * ALL, CURRENT_QUARTER, NEXT_QUARTER, PERPETUAL
     * @type {'PERPETUAL' | 'CURRENT_QUARTER' | 'NEXT_QUARTER' | 'CURRENT_QUARTER_DELIVERING' | 'NEXT_QUARTER_DELIVERING' | 'PERPETUAL_DELIVERING'}
     * @memberof MarketDataApiBasis
     */
    readonly contractType: BasisContractTypeEnum;
    /**
     * "5m","15m","30m","1h","2h","4h","6h","12h","1d"
     * @type {'5m' | '15m' | '30m' | '1h' | '2h' | '4h' | '6h' | '12h' | '1d'}
     * @memberof MarketDataApiBasis
     */
    readonly period: BasisPeriodEnum;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof MarketDataApiBasis
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiBasis
     */
    readonly startTime?: number;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiBasis
     */
    readonly endTime?: number;
}
/**
 * Request parameters for compressedAggregateTradesList operation in MarketDataApi.
 * @interface CompressedAggregateTradesListRequest
 */
interface CompressedAggregateTradesListRequest {
    /**
     *
     * @type {string}
     * @memberof MarketDataApiCompressedAggregateTradesList
     */
    readonly symbol: string;
    /**
     * ID to get aggregate trades from INCLUSIVE.
     * @type {number}
     * @memberof MarketDataApiCompressedAggregateTradesList
     */
    readonly fromId?: number;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiCompressedAggregateTradesList
     */
    readonly startTime?: number;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiCompressedAggregateTradesList
     */
    readonly endTime?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof MarketDataApiCompressedAggregateTradesList
     */
    readonly limit?: number;
}
/**
 * Request parameters for continuousContractKlineCandlestickData operation in MarketDataApi.
 * @interface ContinuousContractKlineCandlestickDataRequest
 */
interface ContinuousContractKlineCandlestickDataRequest {
    /**
     * BTCUSD
     * @type {string}
     * @memberof MarketDataApiContinuousContractKlineCandlestickData
     */
    readonly pair: string;
    /**
     * ALL, CURRENT_QUARTER, NEXT_QUARTER, PERPETUAL
     * @type {'PERPETUAL' | 'CURRENT_QUARTER' | 'NEXT_QUARTER' | 'CURRENT_QUARTER_DELIVERING' | 'NEXT_QUARTER_DELIVERING' | 'PERPETUAL_DELIVERING'}
     * @memberof MarketDataApiContinuousContractKlineCandlestickData
     */
    readonly contractType: ContinuousContractKlineCandlestickDataContractTypeEnum;
    /**
     *
     * @type {'1m' | '3m' | '5m' | '15m' | '30m' | '1h' | '2h' | '4h' | '6h' | '8h' | '12h' | '1d' | '3d' | '1w' | '1M'}
     * @memberof MarketDataApiContinuousContractKlineCandlestickData
     */
    readonly interval: ContinuousContractKlineCandlestickDataIntervalEnum;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiContinuousContractKlineCandlestickData
     */
    readonly startTime?: number;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiContinuousContractKlineCandlestickData
     */
    readonly endTime?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof MarketDataApiContinuousContractKlineCandlestickData
     */
    readonly limit?: number;
}
/**
 * Request parameters for getFundingRateHistoryOfPerpetualFutures operation in MarketDataApi.
 * @interface GetFundingRateHistoryOfPerpetualFuturesRequest
 */
interface GetFundingRateHistoryOfPerpetualFuturesRequest {
    /**
     *
     * @type {string}
     * @memberof MarketDataApiGetFundingRateHistoryOfPerpetualFutures
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiGetFundingRateHistoryOfPerpetualFutures
     */
    readonly startTime?: number;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiGetFundingRateHistoryOfPerpetualFutures
     */
    readonly endTime?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof MarketDataApiGetFundingRateHistoryOfPerpetualFutures
     */
    readonly limit?: number;
}
/**
 * Request parameters for indexPriceAndMarkPrice operation in MarketDataApi.
 * @interface IndexPriceAndMarkPriceRequest
 */
interface IndexPriceAndMarkPriceRequest {
    /**
     *
     * @type {string}
     * @memberof MarketDataApiIndexPriceAndMarkPrice
     */
    readonly symbol?: string;
    /**
     *
     * @type {string}
     * @memberof MarketDataApiIndexPriceAndMarkPrice
     */
    readonly pair?: string;
}
/**
 * Request parameters for indexPriceKlineCandlestickData operation in MarketDataApi.
 * @interface IndexPriceKlineCandlestickDataRequest
 */
interface IndexPriceKlineCandlestickDataRequest {
    /**
     * BTCUSD
     * @type {string}
     * @memberof MarketDataApiIndexPriceKlineCandlestickData
     */
    readonly pair: string;
    /**
     *
     * @type {'1m' | '3m' | '5m' | '15m' | '30m' | '1h' | '2h' | '4h' | '6h' | '8h' | '12h' | '1d' | '3d' | '1w' | '1M'}
     * @memberof MarketDataApiIndexPriceKlineCandlestickData
     */
    readonly interval: IndexPriceKlineCandlestickDataIntervalEnum;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiIndexPriceKlineCandlestickData
     */
    readonly startTime?: number;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiIndexPriceKlineCandlestickData
     */
    readonly endTime?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof MarketDataApiIndexPriceKlineCandlestickData
     */
    readonly limit?: number;
}
/**
 * Request parameters for klineCandlestickData operation in MarketDataApi.
 * @interface KlineCandlestickDataRequest
 */
interface KlineCandlestickDataRequest {
    /**
     *
     * @type {string}
     * @memberof MarketDataApiKlineCandlestickData
     */
    readonly symbol: string;
    /**
     *
     * @type {'1m' | '3m' | '5m' | '15m' | '30m' | '1h' | '2h' | '4h' | '6h' | '8h' | '12h' | '1d' | '3d' | '1w' | '1M'}
     * @memberof MarketDataApiKlineCandlestickData
     */
    readonly interval: KlineCandlestickDataIntervalEnum;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiKlineCandlestickData
     */
    readonly startTime?: number;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiKlineCandlestickData
     */
    readonly endTime?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof MarketDataApiKlineCandlestickData
     */
    readonly limit?: number;
}
/**
 * Request parameters for longShortRatio operation in MarketDataApi.
 * @interface LongShortRatioRequest
 */
interface LongShortRatioRequest {
    /**
     * BTCUSD
     * @type {string}
     * @memberof MarketDataApiLongShortRatio
     */
    readonly pair: string;
    /**
     * "5m","15m","30m","1h","2h","4h","6h","12h","1d"
     * @type {'5m' | '15m' | '30m' | '1h' | '2h' | '4h' | '6h' | '12h' | '1d'}
     * @memberof MarketDataApiLongShortRatio
     */
    readonly period: LongShortRatioPeriodEnum;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof MarketDataApiLongShortRatio
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiLongShortRatio
     */
    readonly startTime?: number;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiLongShortRatio
     */
    readonly endTime?: number;
}
/**
 * Request parameters for markPriceKlineCandlestickData operation in MarketDataApi.
 * @interface MarkPriceKlineCandlestickDataRequest
 */
interface MarkPriceKlineCandlestickDataRequest {
    /**
     *
     * @type {string}
     * @memberof MarketDataApiMarkPriceKlineCandlestickData
     */
    readonly symbol: string;
    /**
     *
     * @type {'1m' | '3m' | '5m' | '15m' | '30m' | '1h' | '2h' | '4h' | '6h' | '8h' | '12h' | '1d' | '3d' | '1w' | '1M'}
     * @memberof MarketDataApiMarkPriceKlineCandlestickData
     */
    readonly interval: MarkPriceKlineCandlestickDataIntervalEnum;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiMarkPriceKlineCandlestickData
     */
    readonly startTime?: number;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiMarkPriceKlineCandlestickData
     */
    readonly endTime?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof MarketDataApiMarkPriceKlineCandlestickData
     */
    readonly limit?: number;
}
/**
 * Request parameters for oldTradesLookup operation in MarketDataApi.
 * @interface OldTradesLookupRequest
 */
interface OldTradesLookupRequest {
    /**
     *
     * @type {string}
     * @memberof MarketDataApiOldTradesLookup
     */
    readonly symbol: string;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof MarketDataApiOldTradesLookup
     */
    readonly limit?: number;
    /**
     * ID to get aggregate trades from INCLUSIVE.
     * @type {number}
     * @memberof MarketDataApiOldTradesLookup
     */
    readonly fromId?: number;
}
/**
 * Request parameters for openInterest operation in MarketDataApi.
 * @interface OpenInterestRequest
 */
interface OpenInterestRequest {
    /**
     *
     * @type {string}
     * @memberof MarketDataApiOpenInterest
     */
    readonly symbol: string;
}
/**
 * Request parameters for openInterestStatistics operation in MarketDataApi.
 * @interface OpenInterestStatisticsRequest
 */
interface OpenInterestStatisticsRequest {
    /**
     * BTCUSD
     * @type {string}
     * @memberof MarketDataApiOpenInterestStatistics
     */
    readonly pair: string;
    /**
     * ALL, CURRENT_QUARTER, NEXT_QUARTER, PERPETUAL
     * @type {'PERPETUAL' | 'CURRENT_QUARTER' | 'NEXT_QUARTER' | 'CURRENT_QUARTER_DELIVERING' | 'NEXT_QUARTER_DELIVERING' | 'PERPETUAL_DELIVERING'}
     * @memberof MarketDataApiOpenInterestStatistics
     */
    readonly contractType: OpenInterestStatisticsContractTypeEnum;
    /**
     * "5m","15m","30m","1h","2h","4h","6h","12h","1d"
     * @type {'5m' | '15m' | '30m' | '1h' | '2h' | '4h' | '6h' | '12h' | '1d'}
     * @memberof MarketDataApiOpenInterestStatistics
     */
    readonly period: OpenInterestStatisticsPeriodEnum;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof MarketDataApiOpenInterestStatistics
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiOpenInterestStatistics
     */
    readonly startTime?: number;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiOpenInterestStatistics
     */
    readonly endTime?: number;
}
/**
 * Request parameters for orderBook operation in MarketDataApi.
 * @interface OrderBookRequest
 */
interface OrderBookRequest {
    /**
     *
     * @type {string}
     * @memberof MarketDataApiOrderBook
     */
    readonly symbol: string;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof MarketDataApiOrderBook
     */
    readonly limit?: number;
}
/**
 * Request parameters for premiumIndexKlineData operation in MarketDataApi.
 * @interface PremiumIndexKlineDataRequest
 */
interface PremiumIndexKlineDataRequest {
    /**
     *
     * @type {string}
     * @memberof MarketDataApiPremiumIndexKlineData
     */
    readonly symbol: string;
    /**
     *
     * @type {'1m' | '3m' | '5m' | '15m' | '30m' | '1h' | '2h' | '4h' | '6h' | '8h' | '12h' | '1d' | '3d' | '1w' | '1M'}
     * @memberof MarketDataApiPremiumIndexKlineData
     */
    readonly interval: PremiumIndexKlineDataIntervalEnum;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiPremiumIndexKlineData
     */
    readonly startTime?: number;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiPremiumIndexKlineData
     */
    readonly endTime?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof MarketDataApiPremiumIndexKlineData
     */
    readonly limit?: number;
}
/**
 * Request parameters for queryIndexPriceConstituents operation in MarketDataApi.
 * @interface QueryIndexPriceConstituentsRequest
 */
interface QueryIndexPriceConstituentsRequest {
    /**
     *
     * @type {string}
     * @memberof MarketDataApiQueryIndexPriceConstituents
     */
    readonly symbol: string;
}
/**
 * Request parameters for recentTradesList operation in MarketDataApi.
 * @interface RecentTradesListRequest
 */
interface RecentTradesListRequest {
    /**
     *
     * @type {string}
     * @memberof MarketDataApiRecentTradesList
     */
    readonly symbol: string;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof MarketDataApiRecentTradesList
     */
    readonly limit?: number;
}
/**
 * Request parameters for symbolOrderBookTicker operation in MarketDataApi.
 * @interface SymbolOrderBookTickerRequest
 */
interface SymbolOrderBookTickerRequest {
    /**
     *
     * @type {string}
     * @memberof MarketDataApiSymbolOrderBookTicker
     */
    readonly symbol?: string;
    /**
     *
     * @type {string}
     * @memberof MarketDataApiSymbolOrderBookTicker
     */
    readonly pair?: string;
}
/**
 * Request parameters for symbolPriceTicker operation in MarketDataApi.
 * @interface SymbolPriceTickerRequest
 */
interface SymbolPriceTickerRequest {
    /**
     *
     * @type {string}
     * @memberof MarketDataApiSymbolPriceTicker
     */
    readonly symbol?: string;
    /**
     *
     * @type {string}
     * @memberof MarketDataApiSymbolPriceTicker
     */
    readonly pair?: string;
}
/**
 * Request parameters for takerBuySellVolume operation in MarketDataApi.
 * @interface TakerBuySellVolumeRequest
 */
interface TakerBuySellVolumeRequest {
    /**
     * BTCUSD
     * @type {string}
     * @memberof MarketDataApiTakerBuySellVolume
     */
    readonly pair: string;
    /**
     * ALL, CURRENT_QUARTER, NEXT_QUARTER, PERPETUAL
     * @type {'PERPETUAL' | 'CURRENT_QUARTER' | 'NEXT_QUARTER' | 'CURRENT_QUARTER_DELIVERING' | 'NEXT_QUARTER_DELIVERING' | 'PERPETUAL_DELIVERING'}
     * @memberof MarketDataApiTakerBuySellVolume
     */
    readonly contractType: TakerBuySellVolumeContractTypeEnum;
    /**
     * "5m","15m","30m","1h","2h","4h","6h","12h","1d"
     * @type {'5m' | '15m' | '30m' | '1h' | '2h' | '4h' | '6h' | '12h' | '1d'}
     * @memberof MarketDataApiTakerBuySellVolume
     */
    readonly period: TakerBuySellVolumePeriodEnum;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof MarketDataApiTakerBuySellVolume
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiTakerBuySellVolume
     */
    readonly startTime?: number;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiTakerBuySellVolume
     */
    readonly endTime?: number;
}
/**
 * Request parameters for ticker24hrPriceChangeStatistics operation in MarketDataApi.
 * @interface Ticker24hrPriceChangeStatisticsRequest
 */
interface Ticker24hrPriceChangeStatisticsRequest {
    /**
     *
     * @type {string}
     * @memberof MarketDataApiTicker24hrPriceChangeStatistics
     */
    readonly symbol?: string;
    /**
     *
     * @type {string}
     * @memberof MarketDataApiTicker24hrPriceChangeStatistics
     */
    readonly pair?: string;
}
/**
 * Request parameters for topTraderLongShortRatioAccounts operation in MarketDataApi.
 * @interface TopTraderLongShortRatioAccountsRequest
 */
interface TopTraderLongShortRatioAccountsRequest {
    /**
     *
     * @type {string}
     * @memberof MarketDataApiTopTraderLongShortRatioAccounts
     */
    readonly symbol: string;
    /**
     * "5m","15m","30m","1h","2h","4h","6h","12h","1d"
     * @type {'5m' | '15m' | '30m' | '1h' | '2h' | '4h' | '6h' | '12h' | '1d'}
     * @memberof MarketDataApiTopTraderLongShortRatioAccounts
     */
    readonly period: TopTraderLongShortRatioAccountsPeriodEnum;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof MarketDataApiTopTraderLongShortRatioAccounts
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiTopTraderLongShortRatioAccounts
     */
    readonly startTime?: number;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiTopTraderLongShortRatioAccounts
     */
    readonly endTime?: number;
}
/**
 * Request parameters for topTraderLongShortRatioPositions operation in MarketDataApi.
 * @interface TopTraderLongShortRatioPositionsRequest
 */
interface TopTraderLongShortRatioPositionsRequest {
    /**
     * BTCUSD
     * @type {string}
     * @memberof MarketDataApiTopTraderLongShortRatioPositions
     */
    readonly pair: string;
    /**
     * "5m","15m","30m","1h","2h","4h","6h","12h","1d"
     * @type {'5m' | '15m' | '30m' | '1h' | '2h' | '4h' | '6h' | '12h' | '1d'}
     * @memberof MarketDataApiTopTraderLongShortRatioPositions
     */
    readonly period: TopTraderLongShortRatioPositionsPeriodEnum;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof MarketDataApiTopTraderLongShortRatioPositions
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiTopTraderLongShortRatioPositions
     */
    readonly startTime?: number;
    /**
     *
     * @type {number}
     * @memberof MarketDataApiTopTraderLongShortRatioPositions
     */
    readonly endTime?: number;
}
/**
 * MarketDataApi - object-oriented interface
 * @class MarketDataApi
 */
declare class MarketDataApi implements MarketDataApiInterface {
    private readonly configuration;
    private localVarAxiosParamCreator;
    constructor(configuration: ConfigurationRestAPI);
    /**
     * Query basis
     *
     * If startTime and endTime are not sent, the most recent data is returned.
     * Only the data of the latest 30 days is available.
     *
     * Weight: 1
     *
     * @summary Basis
     * @param {BasisRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<BasisResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Basis Binance API Documentation}
     */
    basis(requestParameters: BasisRequest): Promise<RestApiResponse<BasisResponse>>;
    /**
     * Test connectivity to the Rest API and get the current server time.
     *
     * Weight: 1
     *
     * @summary Check Server time
     * @returns {Promise<RestApiResponse<CheckServerTimeResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Check-Server-time Binance API Documentation}
     */
    checkServerTime(): Promise<RestApiResponse<CheckServerTimeResponse>>;
    /**
     * Get compressed, aggregate trades. Market trades that fill in 100ms with the same price and the same taking side will have the quantity aggregated.
     *
     * support querying futures trade histories that are not older than one year
     * If both `startTime` and `endTime` are sent, time between `startTime` and `endTime` must be less than 1 hour.
     * If `fromId`, `startTime`, and `endTime` are not sent, the most recent aggregate trades will be returned.
     * Only market trades will be aggregated and returned, which means the insurance fund trades and ADL trades won't be aggregated.
     * Sending both `startTime`/`endTime` and `fromId` might cause response timeout, please send either `fromId` or `startTime`/`endTime`
     *
     * Weight: 20
     *
     * @summary Compressed/Aggregate Trades List
     * @param {CompressedAggregateTradesListRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CompressedAggregateTradesListResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Compressed-Aggregate-Trades-List Binance API Documentation}
     */
    compressedAggregateTradesList(requestParameters: CompressedAggregateTradesListRequest): Promise<RestApiResponse<CompressedAggregateTradesListResponse>>;
    /**
     * Kline/candlestick bars for a specific contract type.
     * Klines are uniquely identified by their open time.
     *
     * Contract type:
     * PERPETUAL
     * CURRENT_QUARTER
     * NEXT_QUARTER
     *
     *
     * 1000 | 10
     * The difference between `startTime` and `endTime` can only be up to 200 days
     * Between `startTime` and `endTime`, the most recent `limit` data from `endTime` will be returned:
     * If `startTime` and `endTime` are not sent, current timestamp will be set as `endTime`, and the most recent data will be returned.
     * If `startTime` is sent only, the timestamp of 200 days after `startTime` will be set as `endTime`(up to the current time)
     * If `endTime` is sent only, the timestamp of 200 days before `endTime` will be set as `startTime`
     *
     * Weight: based on parameter LIMIT
     * LIMIT | weight
     * ---|---
     * [1,100) | 1
     * [100, 500) | 2
     * [500, 1000] | 5
     * > 1000 | 10
     *
     * @summary Continuous Contract Kline/Candlestick Data
     * @param {ContinuousContractKlineCandlestickDataRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ContinuousContractKlineCandlestickDataResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Continuous-Contract-Kline-Candlestick-Data Binance API Documentation}
     */
    continuousContractKlineCandlestickData(requestParameters: ContinuousContractKlineCandlestickDataRequest): Promise<RestApiResponse<ContinuousContractKlineCandlestickDataResponse>>;
    /**
     * Current exchange trading rules and symbol information
     *
     * Weight: 1
     *
     * @summary Exchange Information
     * @returns {Promise<RestApiResponse<ExchangeInformationResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Exchange-Information Binance API Documentation}
     */
    exchangeInformation(): Promise<RestApiResponse<ExchangeInformationResponse>>;
    /**
     * Get Funding Rate History of Perpetual Futures
     *
     * empty array will be returned for delivery symbols.
     *
     * Weight: 1
     *
     * @summary Get Funding Rate History of Perpetual Futures
     * @param {GetFundingRateHistoryOfPerpetualFuturesRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetFundingRateHistoryOfPerpetualFuturesResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Get-Funding-Rate-History-of-Perpetual-Futures Binance API Documentation}
     */
    getFundingRateHistoryOfPerpetualFutures(requestParameters: GetFundingRateHistoryOfPerpetualFuturesRequest): Promise<RestApiResponse<GetFundingRateHistoryOfPerpetualFuturesResponse>>;
    /**
     * Query funding rate info for symbols that had FundingRateCap/ FundingRateFloor / fundingIntervalHours adjustment
     *
     * Weight: 0
     *
     * @summary Get Funding Rate Info
     * @returns {Promise<RestApiResponse<GetFundingRateInfoResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Get-Funding-Info Binance API Documentation}
     */
    getFundingRateInfo(): Promise<RestApiResponse<GetFundingRateInfoResponse>>;
    /**
     * Query index price and mark price
     *
     * Weight: 10
     *
     * @summary Index Price and Mark Price
     * @param {IndexPriceAndMarkPriceRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<IndexPriceAndMarkPriceResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price Binance API Documentation}
     */
    indexPriceAndMarkPrice(requestParameters?: IndexPriceAndMarkPriceRequest): Promise<RestApiResponse<IndexPriceAndMarkPriceResponse>>;
    /**
     * Kline/candlestick bars for the index price of a pair. Klines are uniquely identified by their open time.
     *
     *
     * 1000 | 10
     * The difference between `startTime` and `endTime` can only be up to 200 days
     * Between `startTime` and `endTime`, the most recent `limit` data from `endTime` will be returned:
     * If `startTime` and `endTime` are not sent, current timestamp will be set as `endTime`, and the most recent data will be returned.
     * If `startTime` is sent only, the timestamp of 200 days after `startTime` will be set as `endTime`(up to the current time)
     * If `endTime` is sent only, the timestamp of 200 days before `endTime` will be set as `startTime`
     *
     * Weight: based on parameter LIMIT
     * LIMIT | weight
     * ---|---
     * [1,100) | 1
     * [100, 500) | 2
     * [500, 1000] | 5
     * > 1000 | 10
     *
     * @summary Index Price Kline/Candlestick Data
     * @param {IndexPriceKlineCandlestickDataRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<IndexPriceKlineCandlestickDataResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-Kline-Candlestick-Data Binance API Documentation}
     */
    indexPriceKlineCandlestickData(requestParameters: IndexPriceKlineCandlestickDataRequest): Promise<RestApiResponse<IndexPriceKlineCandlestickDataResponse>>;
    /**
     * Kline/candlestick bars for a symbol.
     * Klines are uniquely identified by their open time.
     *
     * 1000 | 10
     * The difference between `startTime` and `endTime` can only be up to 200 days
     * Between `startTime` and `endTime`, the most recent `limit` data from `endTime` will be returned:
     * If `startTime` and `endTime` are not sent, current timestamp will be set as `endTime`, and the most recent data will be returned.
     * If `startTime` is sent only, the timestamp of 200 days after `startTime` will be set as `endTime`(up to the current time)
     * If `endTime` is sent only, the timestamp of 200 days before `endTime` will be set as `startTime`
     *
     * Weight: based on parameter LIMIT
     * LIMIT | weight
     * ---|---
     * [1,100) | 1
     * [100, 500) | 2
     * [500, 1000] | 5
     * > 1000 | 10
     *
     * @summary Kline/Candlestick Data
     * @param {KlineCandlestickDataRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<KlineCandlestickDataResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Kline-Candlestick-Data Binance API Documentation}
     */
    klineCandlestickData(requestParameters: KlineCandlestickDataRequest): Promise<RestApiResponse<KlineCandlestickDataResponse>>;
    /**
     * Query symbol Long/Short Ratio
     *
     * If startTime and endTime are not sent, the most recent data is returned.
     * Only the data of the latest 30 days is available.
     *
     * Weight: 1
     *
     * @summary Long/Short Ratio
     * @param {LongShortRatioRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<LongShortRatioResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Long-Short-Ratio Binance API Documentation}
     */
    longShortRatio(requestParameters: LongShortRatioRequest): Promise<RestApiResponse<LongShortRatioResponse>>;
    /**
     * Kline/candlestick bars for the mark price of a symbol.
     * Klines are uniquely identified by their open time.
     *
     *
     * 1000 | 10
     * The difference between `startTime` and `endTime` can only be up to 200 days
     * Between `startTime` and `endTime`, the most recent `limit` data from `endTime` will be returned:
     * If `startTime` and `endTime` are not sent, current timestamp will be set as `endTime`, and the most recent data will be returned.
     * If `startTime` is sent only, the timestamp of 200 days after `startTime` will be set as `endTime`(up to the current time)
     * If `endTime` is sent only, the timestamp of 200 days before `endTime` will be set as `startTime`
     *
     * Weight: based on parameter LIMIT
     * LIMIT | weight
     * ---|---
     * [1,100) | 1
     * [100, 500) | 2
     * [500, 1000] | 5
     * > 1000 | 10
     *
     * @summary Mark Price Kline/Candlestick Data
     * @param {MarkPriceKlineCandlestickDataRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<MarkPriceKlineCandlestickDataResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Mark-Price-Kline-Candlestick-Data Binance API Documentation}
     */
    markPriceKlineCandlestickData(requestParameters: MarkPriceKlineCandlestickDataRequest): Promise<RestApiResponse<MarkPriceKlineCandlestickDataResponse>>;
    /**
     * Get older market historical trades.
     *
     * Market trades means trades filled in the order book. Only market trades will be returned, which means the insurance fund trades and ADL trades won't be returned.
     *
     * Weight: 20
     *
     * @summary Old Trades Lookup(MARKET_DATA)
     * @param {OldTradesLookupRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<OldTradesLookupResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Old-Trades-Lookup Binance API Documentation}
     */
    oldTradesLookup(requestParameters: OldTradesLookupRequest): Promise<RestApiResponse<OldTradesLookupResponse>>;
    /**
     * Get present open interest of a specific symbol.
     *
     * Weight: 1
     *
     * @summary Open Interest
     * @param {OpenInterestRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<OpenInterestResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Open-Interest Binance API Documentation}
     */
    openInterest(requestParameters: OpenInterestRequest): Promise<RestApiResponse<OpenInterestResponse>>;
    /**
     * Query open interest stats
     *
     *
     * If startTime and endTime are not sent, the most recent data is returned.
     * Only the data of the latest 30 days is available.
     *
     * Weight: 1
     *
     * @summary Open Interest Statistics
     * @param {OpenInterestStatisticsRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<OpenInterestStatisticsResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Open-Interest-Statistics Binance API Documentation}
     */
    openInterestStatistics(requestParameters: OpenInterestStatisticsRequest): Promise<RestApiResponse<OpenInterestStatisticsResponse>>;
    /**
     * Query orderbook on specific symbol
     *
     * Weight: Adjusted based on the limit:
     * Limit | Weight
     * ------------ | ------------
     * 5, 10, 20, 50 | 2
     * 100 | 5
     * 500 | 10
     * 1000 | 20
     *
     * @summary Order Book
     * @param {OrderBookRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<OrderBookResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Order-Book Binance API Documentation}
     */
    orderBook(requestParameters: OrderBookRequest): Promise<RestApiResponse<OrderBookResponse>>;
    /**
     * Premium index kline bars of a symbol. Klines are uniquely identified by their open time.
     *
     *
     * If startTime and endTime are not sent, the most recent klines are returned.
     *
     * Weight: based on parameter LIMIT
     * | LIMIT       | weight |
     * | ----------- | ------ |
     * | [1,100)     | 1      |
     * | [100, 500)  | 2      |
     * | [500, 1000] | 5      |
     * | > 1000      | 10     |
     *
     * @summary Premium index Kline Data
     * @param {PremiumIndexKlineDataRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<PremiumIndexKlineDataResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Premium-index-Kline-Data Binance API Documentation}
     */
    premiumIndexKlineData(requestParameters: PremiumIndexKlineDataRequest): Promise<RestApiResponse<PremiumIndexKlineDataResponse>>;
    /**
     * Query index price constituents
     *
     * Weight: 2
     *
     * @summary Query Index Price Constituents
     * @param {QueryIndexPriceConstituentsRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryIndexPriceConstituentsResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Constituents Binance API Documentation}
     */
    queryIndexPriceConstituents(requestParameters: QueryIndexPriceConstituentsRequest): Promise<RestApiResponse<QueryIndexPriceConstituentsResponse>>;
    /**
     * Get recent market trades
     *
     * Market trades means trades filled in the order book. Only market trades will be returned, which means the insurance fund trades and ADL trades won't be returned.
     *
     * Weight: 5
     *
     * @summary Recent Trades List
     * @param {RecentTradesListRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<RecentTradesListResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Recent-Trades-List Binance API Documentation}
     */
    recentTradesList(requestParameters: RecentTradesListRequest): Promise<RestApiResponse<RecentTradesListResponse>>;
    /**
     * Best price/qty on the order book for a symbol or symbols.
     *
     * Symbol and pair cannot be sent together
     * If a pair is sent,tickers for all symbols of the pair will be returned
     * If either a pair or symbol is sent, tickers for all symbols of all pairs will be returned
     *
     * Weight: 2 for a single symbol, 5 when the symbol parameter is omitted
     *
     * @summary Symbol Order Book Ticker
     * @param {SymbolOrderBookTickerRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<SymbolOrderBookTickerResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Symbol-Order-Book-Ticker Binance API Documentation}
     */
    symbolOrderBookTicker(requestParameters?: SymbolOrderBookTickerRequest): Promise<RestApiResponse<SymbolOrderBookTickerResponse>>;
    /**
     * Latest price for a symbol or symbols.
     *
     * Symbol and pair cannot be sent together
     * If a pair is sent,tickers for all symbols of the pair will be returned
     * If either a pair or symbol is sent, tickers for all symbols of all pairs will be returned
     *
     * Weight: 1 for a single symbol, 2 when the symbol parameter is omitted
     *
     * @summary Symbol Price Ticker
     * @param {SymbolPriceTickerRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<SymbolPriceTickerResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Symbol-Price-Ticker Binance API Documentation}
     */
    symbolPriceTicker(requestParameters?: SymbolPriceTickerRequest): Promise<RestApiResponse<SymbolPriceTickerResponse>>;
    /**
     * Taker Buy Volume: the total volume of buy orders filled by takers within the period.
     * Taker Sell Volume: the total volume of sell orders filled by takers within the period.
     *
     * If startTime and endTime are not sent, the most recent data is returned.
     * Only the data of the latest 30 days is available.
     *
     * Weight: 1
     *
     * @summary Taker Buy/Sell Volume
     * @param {TakerBuySellVolumeRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<TakerBuySellVolumeResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Taker-Buy-Sell-Volume Binance API Documentation}
     */
    takerBuySellVolume(requestParameters: TakerBuySellVolumeRequest): Promise<RestApiResponse<TakerBuySellVolumeResponse>>;
    /**
     * Test connectivity to the Rest API.
     *
     * Weight: 1
     *
     * @summary Test Connectivity
     * @returns {Promise<RestApiResponse<void>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Test-Connectivity Binance API Documentation}
     */
    testConnectivity(): Promise<RestApiResponse<void>>;
    /**
     * 24 hour rolling window price change statistics.
     *
     * Symbol and pair cannot be sent together
     * If a pair is sent,tickers for all symbols of the pair will be returned
     * If either a pair or symbol is sent, tickers for all symbols of all pairs will be returned
     *
     * Weight: 1 for a single symbol, 40 when the symbol parameter is omitted
     * Careful when accessing this with no symbol.
     *
     * @summary 24hr Ticker Price Change Statistics
     * @param {Ticker24hrPriceChangeStatisticsRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<Ticker24hrPriceChangeStatisticsResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics Binance API Documentation}
     */
    ticker24hrPriceChangeStatistics(requestParameters?: Ticker24hrPriceChangeStatisticsRequest): Promise<RestApiResponse<Ticker24hrPriceChangeStatisticsResponse>>;
    /**
     * The proportion of net long and net short accounts to total accounts of the top 20% users with the highest margin balance. Each account is counted once only.
     * Long Account % = Accounts of top traders with net long positions / Total accounts of top traders with open positions
     * Short Account % = Accounts of top traders with net short positions / Total accounts of top traders with open positions
     * Long/Short Ratio (Accounts) = Long Account % / Short Account %
     *
     * If startTime and endTime are not sent, the most recent data is returned.
     * Only the data of the latest 30 days is available.
     *
     * Weight: 1
     *
     * @summary Top Trader Long/Short Ratio (Accounts)
     * @param {TopTraderLongShortRatioAccountsRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<TopTraderLongShortRatioAccountsResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Top-Long-Short-Account-Ratio Binance API Documentation}
     */
    topTraderLongShortRatioAccounts(requestParameters: TopTraderLongShortRatioAccountsRequest): Promise<RestApiResponse<TopTraderLongShortRatioAccountsResponse>>;
    /**
     * The proportion of net long and net short positions to total open positions of the top 20% users with the highest margin balance.
     * Long Position % = Long positions of top traders / Total open positions of top traders
     * Short Position % = Short positions of top traders / Total open positions of top traders
     * Long/Short Ratio (Positions) = Long Position % / Short Position %
     *
     * If startTime and endTime are not sent, the most recent data is returned.
     * Only the data of the latest 30 days is available.
     *
     * Weight: 1
     *
     * @summary Top Trader Long/Short Ratio (Positions)
     * @param {TopTraderLongShortRatioPositionsRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<TopTraderLongShortRatioPositionsResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof MarketDataApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Top-Trader-Long-Short-Ratio Binance API Documentation}
     */
    topTraderLongShortRatioPositions(requestParameters: TopTraderLongShortRatioPositionsRequest): Promise<RestApiResponse<TopTraderLongShortRatioPositionsResponse>>;
}
declare const BasisContractTypeEnum: {
    readonly PERPETUAL: "PERPETUAL";
    readonly CURRENT_QUARTER: "CURRENT_QUARTER";
    readonly NEXT_QUARTER: "NEXT_QUARTER";
    readonly CURRENT_QUARTER_DELIVERING: "CURRENT_QUARTER_DELIVERING";
    readonly NEXT_QUARTER_DELIVERING: "NEXT_QUARTER_DELIVERING";
    readonly PERPETUAL_DELIVERING: "PERPETUAL_DELIVERING";
};
type BasisContractTypeEnum = (typeof BasisContractTypeEnum)[keyof typeof BasisContractTypeEnum];
declare const BasisPeriodEnum: {
    readonly PERIOD_5m: "5m";
    readonly PERIOD_15m: "15m";
    readonly PERIOD_30m: "30m";
    readonly PERIOD_1h: "1h";
    readonly PERIOD_2h: "2h";
    readonly PERIOD_4h: "4h";
    readonly PERIOD_6h: "6h";
    readonly PERIOD_12h: "12h";
    readonly PERIOD_1d: "1d";
};
type BasisPeriodEnum = (typeof BasisPeriodEnum)[keyof typeof BasisPeriodEnum];
declare const ContinuousContractKlineCandlestickDataContractTypeEnum: {
    readonly PERPETUAL: "PERPETUAL";
    readonly CURRENT_QUARTER: "CURRENT_QUARTER";
    readonly NEXT_QUARTER: "NEXT_QUARTER";
    readonly CURRENT_QUARTER_DELIVERING: "CURRENT_QUARTER_DELIVERING";
    readonly NEXT_QUARTER_DELIVERING: "NEXT_QUARTER_DELIVERING";
    readonly PERPETUAL_DELIVERING: "PERPETUAL_DELIVERING";
};
type ContinuousContractKlineCandlestickDataContractTypeEnum = (typeof ContinuousContractKlineCandlestickDataContractTypeEnum)[keyof typeof ContinuousContractKlineCandlestickDataContractTypeEnum];
declare const ContinuousContractKlineCandlestickDataIntervalEnum: {
    readonly INTERVAL_1m: "1m";
    readonly INTERVAL_3m: "3m";
    readonly INTERVAL_5m: "5m";
    readonly INTERVAL_15m: "15m";
    readonly INTERVAL_30m: "30m";
    readonly INTERVAL_1h: "1h";
    readonly INTERVAL_2h: "2h";
    readonly INTERVAL_4h: "4h";
    readonly INTERVAL_6h: "6h";
    readonly INTERVAL_8h: "8h";
    readonly INTERVAL_12h: "12h";
    readonly INTERVAL_1d: "1d";
    readonly INTERVAL_3d: "3d";
    readonly INTERVAL_1w: "1w";
    readonly INTERVAL_1M: "1M";
};
type ContinuousContractKlineCandlestickDataIntervalEnum = (typeof ContinuousContractKlineCandlestickDataIntervalEnum)[keyof typeof ContinuousContractKlineCandlestickDataIntervalEnum];
declare const IndexPriceKlineCandlestickDataIntervalEnum: {
    readonly INTERVAL_1m: "1m";
    readonly INTERVAL_3m: "3m";
    readonly INTERVAL_5m: "5m";
    readonly INTERVAL_15m: "15m";
    readonly INTERVAL_30m: "30m";
    readonly INTERVAL_1h: "1h";
    readonly INTERVAL_2h: "2h";
    readonly INTERVAL_4h: "4h";
    readonly INTERVAL_6h: "6h";
    readonly INTERVAL_8h: "8h";
    readonly INTERVAL_12h: "12h";
    readonly INTERVAL_1d: "1d";
    readonly INTERVAL_3d: "3d";
    readonly INTERVAL_1w: "1w";
    readonly INTERVAL_1M: "1M";
};
type IndexPriceKlineCandlestickDataIntervalEnum = (typeof IndexPriceKlineCandlestickDataIntervalEnum)[keyof typeof IndexPriceKlineCandlestickDataIntervalEnum];
declare const KlineCandlestickDataIntervalEnum: {
    readonly INTERVAL_1m: "1m";
    readonly INTERVAL_3m: "3m";
    readonly INTERVAL_5m: "5m";
    readonly INTERVAL_15m: "15m";
    readonly INTERVAL_30m: "30m";
    readonly INTERVAL_1h: "1h";
    readonly INTERVAL_2h: "2h";
    readonly INTERVAL_4h: "4h";
    readonly INTERVAL_6h: "6h";
    readonly INTERVAL_8h: "8h";
    readonly INTERVAL_12h: "12h";
    readonly INTERVAL_1d: "1d";
    readonly INTERVAL_3d: "3d";
    readonly INTERVAL_1w: "1w";
    readonly INTERVAL_1M: "1M";
};
type KlineCandlestickDataIntervalEnum = (typeof KlineCandlestickDataIntervalEnum)[keyof typeof KlineCandlestickDataIntervalEnum];
declare const LongShortRatioPeriodEnum: {
    readonly PERIOD_5m: "5m";
    readonly PERIOD_15m: "15m";
    readonly PERIOD_30m: "30m";
    readonly PERIOD_1h: "1h";
    readonly PERIOD_2h: "2h";
    readonly PERIOD_4h: "4h";
    readonly PERIOD_6h: "6h";
    readonly PERIOD_12h: "12h";
    readonly PERIOD_1d: "1d";
};
type LongShortRatioPeriodEnum = (typeof LongShortRatioPeriodEnum)[keyof typeof LongShortRatioPeriodEnum];
declare const MarkPriceKlineCandlestickDataIntervalEnum: {
    readonly INTERVAL_1m: "1m";
    readonly INTERVAL_3m: "3m";
    readonly INTERVAL_5m: "5m";
    readonly INTERVAL_15m: "15m";
    readonly INTERVAL_30m: "30m";
    readonly INTERVAL_1h: "1h";
    readonly INTERVAL_2h: "2h";
    readonly INTERVAL_4h: "4h";
    readonly INTERVAL_6h: "6h";
    readonly INTERVAL_8h: "8h";
    readonly INTERVAL_12h: "12h";
    readonly INTERVAL_1d: "1d";
    readonly INTERVAL_3d: "3d";
    readonly INTERVAL_1w: "1w";
    readonly INTERVAL_1M: "1M";
};
type MarkPriceKlineCandlestickDataIntervalEnum = (typeof MarkPriceKlineCandlestickDataIntervalEnum)[keyof typeof MarkPriceKlineCandlestickDataIntervalEnum];
declare const OpenInterestStatisticsContractTypeEnum: {
    readonly PERPETUAL: "PERPETUAL";
    readonly CURRENT_QUARTER: "CURRENT_QUARTER";
    readonly NEXT_QUARTER: "NEXT_QUARTER";
    readonly CURRENT_QUARTER_DELIVERING: "CURRENT_QUARTER_DELIVERING";
    readonly NEXT_QUARTER_DELIVERING: "NEXT_QUARTER_DELIVERING";
    readonly PERPETUAL_DELIVERING: "PERPETUAL_DELIVERING";
};
type OpenInterestStatisticsContractTypeEnum = (typeof OpenInterestStatisticsContractTypeEnum)[keyof typeof OpenInterestStatisticsContractTypeEnum];
declare const OpenInterestStatisticsPeriodEnum: {
    readonly PERIOD_5m: "5m";
    readonly PERIOD_15m: "15m";
    readonly PERIOD_30m: "30m";
    readonly PERIOD_1h: "1h";
    readonly PERIOD_2h: "2h";
    readonly PERIOD_4h: "4h";
    readonly PERIOD_6h: "6h";
    readonly PERIOD_12h: "12h";
    readonly PERIOD_1d: "1d";
};
type OpenInterestStatisticsPeriodEnum = (typeof OpenInterestStatisticsPeriodEnum)[keyof typeof OpenInterestStatisticsPeriodEnum];
declare const PremiumIndexKlineDataIntervalEnum: {
    readonly INTERVAL_1m: "1m";
    readonly INTERVAL_3m: "3m";
    readonly INTERVAL_5m: "5m";
    readonly INTERVAL_15m: "15m";
    readonly INTERVAL_30m: "30m";
    readonly INTERVAL_1h: "1h";
    readonly INTERVAL_2h: "2h";
    readonly INTERVAL_4h: "4h";
    readonly INTERVAL_6h: "6h";
    readonly INTERVAL_8h: "8h";
    readonly INTERVAL_12h: "12h";
    readonly INTERVAL_1d: "1d";
    readonly INTERVAL_3d: "3d";
    readonly INTERVAL_1w: "1w";
    readonly INTERVAL_1M: "1M";
};
type PremiumIndexKlineDataIntervalEnum = (typeof PremiumIndexKlineDataIntervalEnum)[keyof typeof PremiumIndexKlineDataIntervalEnum];
declare const TakerBuySellVolumeContractTypeEnum: {
    readonly PERPETUAL: "PERPETUAL";
    readonly CURRENT_QUARTER: "CURRENT_QUARTER";
    readonly NEXT_QUARTER: "NEXT_QUARTER";
    readonly CURRENT_QUARTER_DELIVERING: "CURRENT_QUARTER_DELIVERING";
    readonly NEXT_QUARTER_DELIVERING: "NEXT_QUARTER_DELIVERING";
    readonly PERPETUAL_DELIVERING: "PERPETUAL_DELIVERING";
};
type TakerBuySellVolumeContractTypeEnum = (typeof TakerBuySellVolumeContractTypeEnum)[keyof typeof TakerBuySellVolumeContractTypeEnum];
declare const TakerBuySellVolumePeriodEnum: {
    readonly PERIOD_5m: "5m";
    readonly PERIOD_15m: "15m";
    readonly PERIOD_30m: "30m";
    readonly PERIOD_1h: "1h";
    readonly PERIOD_2h: "2h";
    readonly PERIOD_4h: "4h";
    readonly PERIOD_6h: "6h";
    readonly PERIOD_12h: "12h";
    readonly PERIOD_1d: "1d";
};
type TakerBuySellVolumePeriodEnum = (typeof TakerBuySellVolumePeriodEnum)[keyof typeof TakerBuySellVolumePeriodEnum];
declare const TopTraderLongShortRatioAccountsPeriodEnum: {
    readonly PERIOD_5m: "5m";
    readonly PERIOD_15m: "15m";
    readonly PERIOD_30m: "30m";
    readonly PERIOD_1h: "1h";
    readonly PERIOD_2h: "2h";
    readonly PERIOD_4h: "4h";
    readonly PERIOD_6h: "6h";
    readonly PERIOD_12h: "12h";
    readonly PERIOD_1d: "1d";
};
type TopTraderLongShortRatioAccountsPeriodEnum = (typeof TopTraderLongShortRatioAccountsPeriodEnum)[keyof typeof TopTraderLongShortRatioAccountsPeriodEnum];
declare const TopTraderLongShortRatioPositionsPeriodEnum: {
    readonly PERIOD_5m: "5m";
    readonly PERIOD_15m: "15m";
    readonly PERIOD_30m: "30m";
    readonly PERIOD_1h: "1h";
    readonly PERIOD_2h: "2h";
    readonly PERIOD_4h: "4h";
    readonly PERIOD_6h: "6h";
    readonly PERIOD_12h: "12h";
    readonly PERIOD_1d: "1d";
};
type TopTraderLongShortRatioPositionsPeriodEnum = (typeof TopTraderLongShortRatioPositionsPeriodEnum)[keyof typeof TopTraderLongShortRatioPositionsPeriodEnum];

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 * PortfolioMarginEndpointsApi - interface
 * @interface PortfolioMarginEndpointsApi
 */
interface PortfolioMarginEndpointsApiInterface {
    /**
     * Get Classic Portfolio Margin current account information.
     *
     * maxWithdrawAmount is for asset transfer out to the spot wallet.
     *
     * Weight: 5
     *
     * @summary Classic Portfolio Margin Account Information (USER_DATA)
     * @param {ClassicPortfolioMarginAccountInformationRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof PortfolioMarginEndpointsApiInterface
     */
    classicPortfolioMarginAccountInformation(requestParameters: ClassicPortfolioMarginAccountInformationRequest): Promise<RestApiResponse<ClassicPortfolioMarginAccountInformationResponse>>;
}
/**
 * Request parameters for classicPortfolioMarginAccountInformation operation in PortfolioMarginEndpointsApi.
 * @interface ClassicPortfolioMarginAccountInformationRequest
 */
interface ClassicPortfolioMarginAccountInformationRequest {
    /**
     *
     * @type {string}
     * @memberof PortfolioMarginEndpointsApiClassicPortfolioMarginAccountInformation
     */
    readonly asset: string;
    /**
     *
     * @type {number}
     * @memberof PortfolioMarginEndpointsApiClassicPortfolioMarginAccountInformation
     */
    readonly recvWindow?: number;
}
/**
 * PortfolioMarginEndpointsApi - object-oriented interface
 * @class PortfolioMarginEndpointsApi
 */
declare class PortfolioMarginEndpointsApi implements PortfolioMarginEndpointsApiInterface {
    private readonly configuration;
    private localVarAxiosParamCreator;
    constructor(configuration: ConfigurationRestAPI);
    /**
     * Get Classic Portfolio Margin current account information.
     *
     * maxWithdrawAmount is for asset transfer out to the spot wallet.
     *
     * Weight: 5
     *
     * @summary Classic Portfolio Margin Account Information (USER_DATA)
     * @param {ClassicPortfolioMarginAccountInformationRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ClassicPortfolioMarginAccountInformationResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof PortfolioMarginEndpointsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/portfolio-margin-endpoints/Classic-Portfolio-Margin-Account-Information Binance API Documentation}
     */
    classicPortfolioMarginAccountInformation(requestParameters: ClassicPortfolioMarginAccountInformationRequest): Promise<RestApiResponse<ClassicPortfolioMarginAccountInformationResponse>>;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 * TradeApi - interface
 * @interface TradeApi
 */
interface TradeApiInterface$1 {
    /**
     * Get trades for a specific account and symbol.
     *
     *
     * Either symbol or pair must be sent
     * Symbol and pair cannot be sent together
     * Pair and fromId cannot be sent together
     * OrderId can only be sent together with symbol
     * If a pair is sent,tickers for all symbols of the pair will be returned
     * The parameter `fromId` cannot be sent with `startTime` or `endTime`
     * If startTime and endTime are both not sent, then the last 7 days' data will be returned.
     * The time between startTime and endTime cannot be longer than 7 days.
     *
     * Weight: 20 with symbol，40 with pair
     *
     * @summary Account Trade List (USER_DATA)
     * @param {AccountTradeListRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    accountTradeList(requestParameters?: AccountTradeListRequest): Promise<RestApiResponse<AccountTradeListResponse>>;
    /**
     * Get all account orders; active, canceled, or filled.
     *
     * These orders will not be found:
     * order status is CANCELED or EXPIRED AND order has NO filled trade AND created time + 3 days < current time
     * order create time + 90 days < current time
     *
     *
     * Either `symbol` or `pair` must be sent.
     * `pair` can't be sent with `orderId`
     * If `orderId` is set, it will get orders >= that `orderId`. Otherwise most recent orders are returned.
     * If orderId is set, it will get orders >= that orderId. Otherwise most recent orders are returned.
     * The query time period must be less then 7 days( default as the recent 7 days).
     *
     * Weight: 20 with symbol, 40 with pair
     *
     * @summary All Orders (USER_DATA)
     * @param {AllOrdersRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    allOrders(requestParameters?: AllOrdersRequest): Promise<RestApiResponse<AllOrdersResponse>>;
    /**
     * Cancel all open orders of the specified symbol at the end of the specified countdown. This rest endpoint means to ensure your open orders are canceled in case of an outage. The endpoint should be called repeatedly as heartbeats so that the existing countdown time can be canceled and repalced by a new one. The system will check all countdowns **approximately every 10 milliseconds**, so please note that sufficient redundancy should be considered when using this function. We do not recommend setting the countdown time to be too precise or too small.
     *
     * Example usage:
     * Call this endpoint at 30s intervals with an countdownTime of 120000 (120s).
     * If this endpoint is not called within 120 seconds, all your orders of the specified symbol will be automatically canceled.
     * If this endpoint is called with an countdownTime of 0, the countdown timer will be stopped.
     *
     * Weight: 10
     *
     * @summary Auto-Cancel All Open Orders (TRADE)
     * @param {AutoCancelAllOpenOrdersRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    autoCancelAllOpenOrders(requestParameters: AutoCancelAllOpenOrdersRequest): Promise<RestApiResponse<void>>;
    /**
     * Cancel All Open Orders
     *
     * Weight: 1
     *
     * @summary Cancel All Open Orders(TRADE)
     * @param {CancelAllOpenOrdersRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    cancelAllOpenOrders(requestParameters: CancelAllOpenOrdersRequest): Promise<RestApiResponse<CancelAllOpenOrdersResponse>>;
    /**
     * Cancel Multiple Orders
     *
     * Either `orderIdList` or `origClientOrderIdList ` must be sent.
     *
     * Weight: 1
     *
     * @summary Cancel Multiple Orders(TRADE)
     * @param {CancelMultipleOrdersRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    cancelMultipleOrders(requestParameters: CancelMultipleOrdersRequest): Promise<RestApiResponse<CancelMultipleOrdersResponse>>;
    /**
     * Cancel an active order.
     *
     *
     * Either `orderId` or `origClientOrderId` must be sent.
     *
     * Weight: 1
     *
     * @summary Cancel Order (TRADE)
     * @param {CancelOrderRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    cancelOrder(requestParameters: CancelOrderRequest$1): Promise<RestApiResponse<CancelOrderResponse$1>>;
    /**
     * Change user's initial leverage in the specific symbol market.
     * For Hedge Mode, LONG and SHORT positions of one symbol use the same initial leverage and share a total notional value.
     *
     * Weight: 1
     *
     * @summary Change Initial Leverage (TRADE)
     * @param {ChangeInitialLeverageRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    changeInitialLeverage(requestParameters: ChangeInitialLeverageRequest): Promise<RestApiResponse<ChangeInitialLeverageResponse>>;
    /**
     * Change user's margin type in the specific symbol market.For Hedge Mode, LONG and SHORT positions of one symbol use the same margin type.
     * With ISOLATED margin type, margins of the LONG and SHORT positions are isolated from each other.
     *
     * Weight: 1
     *
     * @summary Change Margin Type (TRADE)
     * @param {ChangeMarginTypeRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    changeMarginType(requestParameters: ChangeMarginTypeRequest): Promise<RestApiResponse<ChangeMarginTypeResponse>>;
    /**
     * Change user's position mode (Hedge Mode or One-way Mode ) on ***EVERY symbol***
     *
     * Weight: 1
     *
     * @summary Change Position Mode(TRADE)
     * @param {ChangePositionModeRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    changePositionMode(requestParameters: ChangePositionModeRequest): Promise<RestApiResponse<ChangePositionModeResponse>>;
    /**
     * Get all open orders on a symbol. **Careful** when accessing this with no symbol.
     *
     * Weight: 1 for a single symbol, 40 for mutltiple symbols
     *
     * @summary Current All Open Orders (USER_DATA)
     * @param {CurrentAllOpenOrdersRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    currentAllOpenOrders(requestParameters?: CurrentAllOpenOrdersRequest): Promise<RestApiResponse<CurrentAllOpenOrdersResponse>>;
    /**
     * Get order modification history
     *
     *
     * Either `orderId` or `origClientOrderId` must be sent, and the `orderId` will prevail if both are sent.
     * Order modify history longer than 3 month is not avaliable
     *
     * Weight: 1
     *
     * @summary Get Order Modify History (USER_DATA)
     * @param {GetOrderModifyHistoryRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    getOrderModifyHistory(requestParameters: GetOrderModifyHistoryRequest): Promise<RestApiResponse<GetOrderModifyHistoryResponse>>;
    /**
     * Get position margin change history
     *
     * Weight: 1
     *
     * @summary Get Position Margin Change History(TRADE)
     * @param {GetPositionMarginChangeHistoryRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    getPositionMarginChangeHistory(requestParameters: GetPositionMarginChangeHistoryRequest): Promise<RestApiResponse<GetPositionMarginChangeHistoryResponse>>;
    /**
     * Modify Isolated Position Margin
     *
     * Only for isolated symbol
     *
     * Weight: 1
     *
     * @summary Modify Isolated Position Margin(TRADE)
     * @param {ModifyIsolatedPositionMarginRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    modifyIsolatedPositionMargin(requestParameters: ModifyIsolatedPositionMarginRequest): Promise<RestApiResponse<ModifyIsolatedPositionMarginResponse>>;
    /**
     * Modify Multiple Orders
     *
     * Parameter rules are same with `Modify Order`
     * Batch modify orders are processed concurrently, and the order of matching is not guaranteed.
     * The order of returned contents for batch modify orders is the same as the order of the order list.
     * One order can only be modfied for less than 10000 times
     *
     * Weight: 5
     *
     * @summary Modify Multiple Orders(TRADE)
     * @param {ModifyMultipleOrdersRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    modifyMultipleOrders(requestParameters: ModifyMultipleOrdersRequest): Promise<RestApiResponse<ModifyMultipleOrdersResponse>>;
    /**
     * Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue
     *
     * Either `orderId` or `origClientOrderId` must be sent, and the `orderId` will prevail if both are sent.
     * Either `quantity` or `price` must be sent.
     * When the new `quantity` or `price` doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.
     * However the order will be cancelled by the amendment in the following situations:
     * when the order is in partially filled status and the new `quantity` <= `executedQty`
     * When the order is `GTX` and the new price will cause it to be executed immediately
     * One order can only be modfied for less than 10000 times
     * Modify order will set `selfTradePreventionMode` to `NONE`
     *
     * Weight: 1
     *
     * @summary Modify Order (TRADE)
     * @param {ModifyOrderRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    modifyOrder(requestParameters: ModifyOrderRequest$1): Promise<RestApiResponse<ModifyOrderResponse$1>>;
    /**
     * Send in a new order.
     *
     *
     * Order with type `STOP`,  parameter `timeInForce` can be sent ( default `GTC`).
     * Order with type `TAKE_PROFIT`,  parameter `timeInForce` can be sent ( default `GTC`).
     * Condition orders will be triggered when:
     *
     * If parameter`priceProtect`is sent as true:
     * when price reaches the `stopPrice` ，the difference rate between "MARK_PRICE" and "CONTRACT_PRICE" cannot be larger than the "triggerProtect" of the symbol
     * "triggerProtect" of a symbol can be got from `GET /dapi/v1/exchangeInfo`
     *
     * `STOP`, `STOP_MARKET`:
     * BUY: latest price ("MARK_PRICE" or "CONTRACT_PRICE") >= `stopPrice`
     * SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") <= `stopPrice`
     * `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`:
     * BUY: latest price ("MARK_PRICE" or "CONTRACT_PRICE") <= `stopPrice`
     * SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") >= `stopPrice`
     * `TRAILING_STOP_MARKET`:
     * BUY: the lowest price after order placed `<= `activationPrice`, and the latest price >`= the lowest price * (1 + `callbackRate`)
     * SELL: the highest price after order placed >= `activationPrice`, and the latest price <= the highest price * (1 - `callbackRate`)
     *
     * For `TRAILING_STOP_MARKET`, if you got such error code.
     * ``{"code": -2021, "msg": "Order would immediately trigger."}``
     * means that the parameters you send do not meet the following requirements:
     * BUY: `activationPrice` should be smaller than latest price.
     * SELL: `activationPrice` should be larger than latest price.
     *
     * If `newOrderRespType ` is sent as `RESULT` :
     * `MARKET` order: the final FILLED result of the order will be return directly.
     * `LIMIT` order with special `timeInForce`: the final status result of the order(FILLED or EXPIRED) will be returned directly.
     *
     * `STOP_MARKET`, `TAKE_PROFIT_MARKET` with `closePosition`=`true`:
     * Follow the same rules for condition orders.
     * If triggered,**close all** current long position( if `SELL`) or current short position( if `BUY`).
     * Cannot be used with `quantity` parameter
     * Cannot be used with `reduceOnly` parameter
     * In Hedge Mode,cannot be used with `BUY` orders in `LONG` position side. and cannot be used with `SELL` orders in `SHORT` position side
     * `selfTradePreventionMode` is only effective when `timeInForce` set to `IOC` or `GTC`.
     *
     * Weight: 1 on 1min order rate limit(X-MBX-ORDER-COUNT-1M)\
     * 0 on IP rate limit(x-mbx-used-weight-1m)
     *
     * @summary New Order (TRADE)
     * @param {NewOrderRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    newOrder(requestParameters: NewOrderRequest$1): Promise<RestApiResponse<NewOrderResponse$1>>;
    /**
     * Query position ADL quantile estimation
     *
     * Values update every 30s.
     * Values 0, 1, 2, 3, 4 shows the queue position and possibility of ADL from low to high.
     * For positions of the symbol are in One-way Mode or isolated margined in Hedge Mode, "LONG", "SHORT", and "BOTH" will be returned to show the positions' adl quantiles of different position sides.
     * If the positions of the symbol are crossed margined in Hedge Mode:
     * "HEDGE" as a sign will be returned instead of "BOTH";
     * A same value caculated on unrealized pnls on long and short sides' positions will be shown for "LONG" and "SHORT" when there are positions in both of long and short sides.
     *
     * Weight: 5
     *
     * @summary Position ADL Quantile Estimation(USER_DATA)
     * @param {PositionAdlQuantileEstimationRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    positionAdlQuantileEstimation(requestParameters?: PositionAdlQuantileEstimationRequest): Promise<RestApiResponse<PositionAdlQuantileEstimationResponse>>;
    /**
     * Get current account information.
     *
     * If neither `marginAsset` nor `pair` is sent, positions of all symbols with `TRADING` status will be returned.
     * for One-way Mode user, the response  will only show the "BOTH" positions
     * for Hedge Mode user, the response will show "BOTH", "LONG", and "SHORT" positions.
     * Please use with user data stream `ACCOUNT_UPDATE` to meet your timeliness and accuracy needs.
     *
     * Weight: 1
     *
     * @summary Position Information(USER_DATA)
     * @param {PositionInformationRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    positionInformation(requestParameters?: PositionInformationRequest$1): Promise<RestApiResponse<PositionInformationResponse$1>>;
    /**
     * Query Current Open Order
     *
     * Either`orderId` or `origClientOrderId` must be sent
     * If the queried order has been filled or cancelled, the error message "Order does not exist" will be returned.
     *
     * Weight: 1
     *
     * @summary Query Current Open Order(USER_DATA)
     * @param {QueryCurrentOpenOrderRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryCurrentOpenOrder(requestParameters: QueryCurrentOpenOrderRequest): Promise<RestApiResponse<QueryCurrentOpenOrderResponse>>;
    /**
     * Check an order's status.
     *
     * These orders will not be found:
     * order status is CANCELED or EXPIRED AND order has NO filled trade AND created time + 3 days < current time
     * order create time + 90 days < current time
     *
     *
     * Either `orderId` or `origClientOrderId` must be sent.
     *
     * Weight: 1
     *
     * @summary Query Order (USER_DATA)
     * @param {QueryOrderRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryOrder(requestParameters: QueryOrderRequest$1): Promise<RestApiResponse<QueryOrderResponse$1>>;
    /**
     * User's Force Orders
     *
     * If "autoCloseType" is not sent, orders with both of the types will be returned
     * If "startTime" is not sent, data within 200 days before "endTime" can be queried
     *
     * Weight: 20 with symbol, 50 without symbol
     *
     * @summary User\'s Force Orders(USER_DATA)
     * @param {UsersForceOrdersRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    usersForceOrders(requestParameters?: UsersForceOrdersRequest): Promise<RestApiResponse<UsersForceOrdersResponse>>;
}
/**
 * Request parameters for accountTradeList operation in TradeApi.
 * @interface AccountTradeListRequest
 */
interface AccountTradeListRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiAccountTradeList
     */
    readonly symbol?: string;
    /**
     *
     * @type {string}
     * @memberof TradeApiAccountTradeList
     */
    readonly pair?: string;
    /**
     *
     * @type {string}
     * @memberof TradeApiAccountTradeList
     */
    readonly orderId?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiAccountTradeList
     */
    readonly startTime?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiAccountTradeList
     */
    readonly endTime?: number;
    /**
     * ID to get aggregate trades from INCLUSIVE.
     * @type {number}
     * @memberof TradeApiAccountTradeList
     */
    readonly fromId?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof TradeApiAccountTradeList
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiAccountTradeList
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for allOrders operation in TradeApi.
 * @interface AllOrdersRequest
 */
interface AllOrdersRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiAllOrders
     */
    readonly symbol?: string;
    /**
     *
     * @type {string}
     * @memberof TradeApiAllOrders
     */
    readonly pair?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiAllOrders
     */
    readonly orderId?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiAllOrders
     */
    readonly startTime?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiAllOrders
     */
    readonly endTime?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof TradeApiAllOrders
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiAllOrders
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for autoCancelAllOpenOrders operation in TradeApi.
 * @interface AutoCancelAllOpenOrdersRequest
 */
interface AutoCancelAllOpenOrdersRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiAutoCancelAllOpenOrders
     */
    readonly symbol: string;
    /**
     * countdown time, 1000 for 1 second. 0 to cancel the timer
     * @type {number}
     * @memberof TradeApiAutoCancelAllOpenOrders
     */
    readonly countdownTime: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiAutoCancelAllOpenOrders
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for cancelAllOpenOrders operation in TradeApi.
 * @interface CancelAllOpenOrdersRequest
 */
interface CancelAllOpenOrdersRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiCancelAllOpenOrders
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiCancelAllOpenOrders
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for cancelMultipleOrders operation in TradeApi.
 * @interface CancelMultipleOrdersRequest
 */
interface CancelMultipleOrdersRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiCancelMultipleOrders
     */
    readonly symbol: string;
    /**
     * max length 10 <br /> e.g. [1234567,2345678]
     * @type {Array<number>}
     * @memberof TradeApiCancelMultipleOrders
     */
    readonly orderIdList?: Array<number>;
    /**
     * max length 10<br /> e.g. ["my_id_1","my_id_2"], encode the double quotes. No space after comma.
     * @type {Array<string>}
     * @memberof TradeApiCancelMultipleOrders
     */
    readonly origClientOrderIdList?: Array<string>;
    /**
     *
     * @type {number}
     * @memberof TradeApiCancelMultipleOrders
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for cancelOrder operation in TradeApi.
 * @interface CancelOrderRequest
 */
interface CancelOrderRequest$1 {
    /**
     *
     * @type {string}
     * @memberof TradeApiCancelOrder
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiCancelOrder
     */
    readonly orderId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiCancelOrder
     */
    readonly origClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiCancelOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for changeInitialLeverage operation in TradeApi.
 * @interface ChangeInitialLeverageRequest
 */
interface ChangeInitialLeverageRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiChangeInitialLeverage
     */
    readonly symbol: string;
    /**
     * target initial leverage: int from 1 to 125
     * @type {number}
     * @memberof TradeApiChangeInitialLeverage
     */
    readonly leverage: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiChangeInitialLeverage
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for changeMarginType operation in TradeApi.
 * @interface ChangeMarginTypeRequest
 */
interface ChangeMarginTypeRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiChangeMarginType
     */
    readonly symbol: string;
    /**
     * ISOLATED, CROSSED
     * @type {'ISOLATED' | 'CROSSED'}
     * @memberof TradeApiChangeMarginType
     */
    readonly marginType: ChangeMarginTypeMarginTypeEnum;
    /**
     *
     * @type {number}
     * @memberof TradeApiChangeMarginType
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for changePositionMode operation in TradeApi.
 * @interface ChangePositionModeRequest
 */
interface ChangePositionModeRequest {
    /**
     * "true": Hedge Mode; "false": One-way Mode
     * @type {string}
     * @memberof TradeApiChangePositionMode
     */
    readonly dualSidePosition: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiChangePositionMode
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for currentAllOpenOrders operation in TradeApi.
 * @interface CurrentAllOpenOrdersRequest
 */
interface CurrentAllOpenOrdersRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiCurrentAllOpenOrders
     */
    readonly symbol?: string;
    /**
     *
     * @type {string}
     * @memberof TradeApiCurrentAllOpenOrders
     */
    readonly pair?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiCurrentAllOpenOrders
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getOrderModifyHistory operation in TradeApi.
 * @interface GetOrderModifyHistoryRequest
 */
interface GetOrderModifyHistoryRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiGetOrderModifyHistory
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiGetOrderModifyHistory
     */
    readonly orderId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiGetOrderModifyHistory
     */
    readonly origClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiGetOrderModifyHistory
     */
    readonly startTime?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiGetOrderModifyHistory
     */
    readonly endTime?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof TradeApiGetOrderModifyHistory
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiGetOrderModifyHistory
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getPositionMarginChangeHistory operation in TradeApi.
 * @interface GetPositionMarginChangeHistoryRequest
 */
interface GetPositionMarginChangeHistoryRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiGetPositionMarginChangeHistory
     */
    readonly symbol: string;
    /**
     * 1: Add position margin,2: Reduce position margin
     * @type {number}
     * @memberof TradeApiGetPositionMarginChangeHistory
     */
    readonly type?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiGetPositionMarginChangeHistory
     */
    readonly startTime?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiGetPositionMarginChangeHistory
     */
    readonly endTime?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof TradeApiGetPositionMarginChangeHistory
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiGetPositionMarginChangeHistory
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for modifyIsolatedPositionMargin operation in TradeApi.
 * @interface ModifyIsolatedPositionMarginRequest
 */
interface ModifyIsolatedPositionMarginRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiModifyIsolatedPositionMargin
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiModifyIsolatedPositionMargin
     */
    readonly amount: number;
    /**
     *
     * @type {'LIMIT' | 'MARKET' | 'STOP' | 'STOP_MARKET' | 'TAKE_PROFIT' | 'TAKE_PROFIT_MARKET' | 'TRAILING_STOP_MARKET'}
     * @memberof TradeApiModifyIsolatedPositionMargin
     */
    readonly type: ModifyIsolatedPositionMarginTypeEnum;
    /**
     * Default `BOTH` for One-way Mode ; `LONG` or `SHORT` for Hedge Mode. It must be sent with Hedge Mode.
     * @type {'BOTH' | 'LONG' | 'SHORT'}
     * @memberof TradeApiModifyIsolatedPositionMargin
     */
    readonly positionSide?: ModifyIsolatedPositionMarginPositionSideEnum;
    /**
     *
     * @type {number}
     * @memberof TradeApiModifyIsolatedPositionMargin
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for modifyMultipleOrders operation in TradeApi.
 * @interface ModifyMultipleOrdersRequest
 */
interface ModifyMultipleOrdersRequest {
    /**
     * order list. Max 5 orders
     * @type {Array<ModifyMultipleOrdersBatchOrdersParameterInner>}
     * @memberof TradeApiModifyMultipleOrders
     */
    readonly batchOrders: Array<ModifyMultipleOrdersBatchOrdersParameterInner>;
    /**
     *
     * @type {number}
     * @memberof TradeApiModifyMultipleOrders
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for modifyOrder operation in TradeApi.
 * @interface ModifyOrderRequest
 */
interface ModifyOrderRequest$1 {
    /**
     *
     * @type {string}
     * @memberof TradeApiModifyOrder
     */
    readonly symbol: string;
    /**
     * `SELL`, `BUY`
     * @type {'BUY' | 'SELL'}
     * @memberof TradeApiModifyOrder
     */
    readonly side: ModifyOrderSideEnum$1;
    /**
     *
     * @type {number}
     * @memberof TradeApiModifyOrder
     */
    readonly orderId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiModifyOrder
     */
    readonly origClientOrderId?: string;
    /**
     * quantity measured by contract number, Cannot be sent with `closePosition`=`true`
     * @type {number}
     * @memberof TradeApiModifyOrder
     */
    readonly quantity?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiModifyOrder
     */
    readonly price?: number;
    /**
     * only avaliable for `LIMIT`/`STOP`/`TAKE_PROFIT` order; can be set to `OPPONENT`/ `OPPONENT_5`/ `OPPONENT_10`/ `OPPONENT_20`: /`QUEUE`/ `QUEUE_5`/ `QUEUE_10`/ `QUEUE_20`; Can't be passed together with `price`
     * @type {'NONE' | 'OPPONENT' | 'OPPONENT_5' | 'OPPONENT_10' | 'OPPONENT_20' | 'QUEUE' | 'QUEUE_5' | 'QUEUE_10' | 'QUEUE_20'}
     * @memberof TradeApiModifyOrder
     */
    readonly priceMatch?: ModifyOrderPriceMatchEnum$1;
    /**
     *
     * @type {number}
     * @memberof TradeApiModifyOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for newOrder operation in TradeApi.
 * @interface NewOrderRequest
 */
interface NewOrderRequest$1 {
    /**
     *
     * @type {string}
     * @memberof TradeApiNewOrder
     */
    readonly symbol: string;
    /**
     * `SELL`, `BUY`
     * @type {'BUY' | 'SELL'}
     * @memberof TradeApiNewOrder
     */
    readonly side: NewOrderSideEnum$1;
    /**
     *
     * @type {'LIMIT' | 'MARKET' | 'STOP' | 'STOP_MARKET' | 'TAKE_PROFIT' | 'TAKE_PROFIT_MARKET' | 'TRAILING_STOP_MARKET'}
     * @memberof TradeApiNewOrder
     */
    readonly type: NewOrderTypeEnum$1;
    /**
     * Default `BOTH` for One-way Mode ; `LONG` or `SHORT` for Hedge Mode. It must be sent with Hedge Mode.
     * @type {'BOTH' | 'LONG' | 'SHORT'}
     * @memberof TradeApiNewOrder
     */
    readonly positionSide?: NewOrderPositionSideEnum$1;
    /**
     *
     * @type {'GTC' | 'IOC' | 'FOK' | 'GTX'}
     * @memberof TradeApiNewOrder
     */
    readonly timeInForce?: NewOrderTimeInForceEnum$1;
    /**
     * quantity measured by contract number, Cannot be sent with `closePosition`=`true`
     * @type {number}
     * @memberof TradeApiNewOrder
     */
    readonly quantity?: number;
    /**
     * "true" or "false". default "false". Cannot be sent in Hedge Mode; cannot be sent with `closePosition`=`true`(Close-All)
     * @type {string}
     * @memberof TradeApiNewOrder
     */
    readonly reduceOnly?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiNewOrder
     */
    readonly price?: number;
    /**
     * A unique id among open orders. Automatically generated if not sent. Can only be string following the rule: `^[\.A-Z\:/a-z0-9_-]{1,36}$`
     * @type {string}
     * @memberof TradeApiNewOrder
     */
    readonly newClientOrderId?: string;
    /**
     * Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders.
     * @type {number}
     * @memberof TradeApiNewOrder
     */
    readonly stopPrice?: number;
    /**
     * `true`, `false`；Close-All,used with `STOP_MARKET` or `TAKE_PROFIT_MARKET`.
     * @type {string}
     * @memberof TradeApiNewOrder
     */
    readonly closePosition?: string;
    /**
     * Used with `TRAILING_STOP_MARKET` orders, default as the latest price(supporting different `workingType`)
     * @type {number}
     * @memberof TradeApiNewOrder
     */
    readonly activationPrice?: number;
    /**
     * Used with `TRAILING_STOP_MARKET` orders, min 0.1, max 5 where 1 for 1%
     * @type {number}
     * @memberof TradeApiNewOrder
     */
    readonly callbackRate?: number;
    /**
     * stopPrice triggered by: "MARK_PRICE", "CONTRACT_PRICE". Default "CONTRACT_PRICE"
     * @type {'MARK_PRICE' | 'CONTRACT_PRICE'}
     * @memberof TradeApiNewOrder
     */
    readonly workingType?: NewOrderWorkingTypeEnum$1;
    /**
     * "TRUE" or "FALSE", default "FALSE". Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders.
     * @type {string}
     * @memberof TradeApiNewOrder
     */
    readonly priceProtect?: string;
    /**
     * "ACK", "RESULT", default "ACK"
     * @type {'ACK' | 'RESULT'}
     * @memberof TradeApiNewOrder
     */
    readonly newOrderRespType?: NewOrderNewOrderRespTypeEnum$1;
    /**
     * only avaliable for `LIMIT`/`STOP`/`TAKE_PROFIT` order; can be set to `OPPONENT`/ `OPPONENT_5`/ `OPPONENT_10`/ `OPPONENT_20`: /`QUEUE`/ `QUEUE_5`/ `QUEUE_10`/ `QUEUE_20`; Can't be passed together with `price`
     * @type {'NONE' | 'OPPONENT' | 'OPPONENT_5' | 'OPPONENT_10' | 'OPPONENT_20' | 'QUEUE' | 'QUEUE_5' | 'QUEUE_10' | 'QUEUE_20'}
     * @memberof TradeApiNewOrder
     */
    readonly priceMatch?: NewOrderPriceMatchEnum$1;
    /**
     * `EXPIRE_TAKER`:expire taker order when STP triggers/ `EXPIRE_MAKER`:expire taker order when STP triggers/ `EXPIRE_BOTH`:expire both orders when STP triggers; default `EXPIRE_MAKER`
     * @type {'NONE' | 'EXPIRE_TAKER' | 'EXPIRE_BOTH' | 'EXPIRE_MAKER'}
     * @memberof TradeApiNewOrder
     */
    readonly selfTradePreventionMode?: NewOrderSelfTradePreventionModeEnum$1;
    /**
     *
     * @type {number}
     * @memberof TradeApiNewOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for positionAdlQuantileEstimation operation in TradeApi.
 * @interface PositionAdlQuantileEstimationRequest
 */
interface PositionAdlQuantileEstimationRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiPositionAdlQuantileEstimation
     */
    readonly symbol?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiPositionAdlQuantileEstimation
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for positionInformation operation in TradeApi.
 * @interface PositionInformationRequest
 */
interface PositionInformationRequest$1 {
    /**
     *
     * @type {string}
     * @memberof TradeApiPositionInformation
     */
    readonly marginAsset?: string;
    /**
     *
     * @type {string}
     * @memberof TradeApiPositionInformation
     */
    readonly pair?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiPositionInformation
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryCurrentOpenOrder operation in TradeApi.
 * @interface QueryCurrentOpenOrderRequest
 */
interface QueryCurrentOpenOrderRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryCurrentOpenOrder
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryCurrentOpenOrder
     */
    readonly orderId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryCurrentOpenOrder
     */
    readonly origClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryCurrentOpenOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryOrder operation in TradeApi.
 * @interface QueryOrderRequest
 */
interface QueryOrderRequest$1 {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryOrder
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryOrder
     */
    readonly orderId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryOrder
     */
    readonly origClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for usersForceOrders operation in TradeApi.
 * @interface UsersForceOrdersRequest
 */
interface UsersForceOrdersRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiUsersForceOrders
     */
    readonly symbol?: string;
    /**
     * "LIQUIDATION" for liquidation orders, "ADL" for ADL orders.
     * @type {'LIQUIDATION' | 'ADL'}
     * @memberof TradeApiUsersForceOrders
     */
    readonly autoCloseType?: UsersForceOrdersAutoCloseTypeEnum;
    /**
     *
     * @type {number}
     * @memberof TradeApiUsersForceOrders
     */
    readonly startTime?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiUsersForceOrders
     */
    readonly endTime?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof TradeApiUsersForceOrders
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiUsersForceOrders
     */
    readonly recvWindow?: number;
}
/**
 * TradeApi - object-oriented interface
 * @class TradeApi
 */
declare class TradeApi$1 implements TradeApiInterface$1 {
    private readonly configuration;
    private localVarAxiosParamCreator;
    constructor(configuration: ConfigurationRestAPI);
    /**
     * Get trades for a specific account and symbol.
     *
     *
     * Either symbol or pair must be sent
     * Symbol and pair cannot be sent together
     * Pair and fromId cannot be sent together
     * OrderId can only be sent together with symbol
     * If a pair is sent,tickers for all symbols of the pair will be returned
     * The parameter `fromId` cannot be sent with `startTime` or `endTime`
     * If startTime and endTime are both not sent, then the last 7 days' data will be returned.
     * The time between startTime and endTime cannot be longer than 7 days.
     *
     * Weight: 20 with symbol，40 with pair
     *
     * @summary Account Trade List (USER_DATA)
     * @param {AccountTradeListRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<AccountTradeListResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Account-Trade-List Binance API Documentation}
     */
    accountTradeList(requestParameters?: AccountTradeListRequest): Promise<RestApiResponse<AccountTradeListResponse>>;
    /**
     * Get all account orders; active, canceled, or filled.
     *
     * These orders will not be found:
     * order status is CANCELED or EXPIRED AND order has NO filled trade AND created time + 3 days < current time
     * order create time + 90 days < current time
     *
     *
     * Either `symbol` or `pair` must be sent.
     * `pair` can't be sent with `orderId`
     * If `orderId` is set, it will get orders >= that `orderId`. Otherwise most recent orders are returned.
     * If orderId is set, it will get orders >= that orderId. Otherwise most recent orders are returned.
     * The query time period must be less then 7 days( default as the recent 7 days).
     *
     * Weight: 20 with symbol, 40 with pair
     *
     * @summary All Orders (USER_DATA)
     * @param {AllOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<AllOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders Binance API Documentation}
     */
    allOrders(requestParameters?: AllOrdersRequest): Promise<RestApiResponse<AllOrdersResponse>>;
    /**
     * Cancel all open orders of the specified symbol at the end of the specified countdown. This rest endpoint means to ensure your open orders are canceled in case of an outage. The endpoint should be called repeatedly as heartbeats so that the existing countdown time can be canceled and repalced by a new one. The system will check all countdowns **approximately every 10 milliseconds**, so please note that sufficient redundancy should be considered when using this function. We do not recommend setting the countdown time to be too precise or too small.
     *
     * Example usage:
     * Call this endpoint at 30s intervals with an countdownTime of 120000 (120s).
     * If this endpoint is not called within 120 seconds, all your orders of the specified symbol will be automatically canceled.
     * If this endpoint is called with an countdownTime of 0, the countdown timer will be stopped.
     *
     * Weight: 10
     *
     * @summary Auto-Cancel All Open Orders (TRADE)
     * @param {AutoCancelAllOpenOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<void>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Auto-Cancel-All-Open-Orders Binance API Documentation}
     */
    autoCancelAllOpenOrders(requestParameters: AutoCancelAllOpenOrdersRequest): Promise<RestApiResponse<void>>;
    /**
     * Cancel All Open Orders
     *
     * Weight: 1
     *
     * @summary Cancel All Open Orders(TRADE)
     * @param {CancelAllOpenOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelAllOpenOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-All-Open-Orders Binance API Documentation}
     */
    cancelAllOpenOrders(requestParameters: CancelAllOpenOrdersRequest): Promise<RestApiResponse<CancelAllOpenOrdersResponse>>;
    /**
     * Cancel Multiple Orders
     *
     * Either `orderIdList` or `origClientOrderIdList ` must be sent.
     *
     * Weight: 1
     *
     * @summary Cancel Multiple Orders(TRADE)
     * @param {CancelMultipleOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelMultipleOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-Multiple-Orders Binance API Documentation}
     */
    cancelMultipleOrders(requestParameters: CancelMultipleOrdersRequest): Promise<RestApiResponse<CancelMultipleOrdersResponse>>;
    /**
     * Cancel an active order.
     *
     *
     * Either `orderId` or `origClientOrderId` must be sent.
     *
     * Weight: 1
     *
     * @summary Cancel Order (TRADE)
     * @param {CancelOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-Order Binance API Documentation}
     */
    cancelOrder(requestParameters: CancelOrderRequest$1): Promise<RestApiResponse<CancelOrderResponse$1>>;
    /**
     * Change user's initial leverage in the specific symbol market.
     * For Hedge Mode, LONG and SHORT positions of one symbol use the same initial leverage and share a total notional value.
     *
     * Weight: 1
     *
     * @summary Change Initial Leverage (TRADE)
     * @param {ChangeInitialLeverageRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ChangeInitialLeverageResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Change-Initial-Leverage Binance API Documentation}
     */
    changeInitialLeverage(requestParameters: ChangeInitialLeverageRequest): Promise<RestApiResponse<ChangeInitialLeverageResponse>>;
    /**
     * Change user's margin type in the specific symbol market.For Hedge Mode, LONG and SHORT positions of one symbol use the same margin type.
     * With ISOLATED margin type, margins of the LONG and SHORT positions are isolated from each other.
     *
     * Weight: 1
     *
     * @summary Change Margin Type (TRADE)
     * @param {ChangeMarginTypeRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ChangeMarginTypeResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Change-Margin-Type Binance API Documentation}
     */
    changeMarginType(requestParameters: ChangeMarginTypeRequest): Promise<RestApiResponse<ChangeMarginTypeResponse>>;
    /**
     * Change user's position mode (Hedge Mode or One-way Mode ) on ***EVERY symbol***
     *
     * Weight: 1
     *
     * @summary Change Position Mode(TRADE)
     * @param {ChangePositionModeRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ChangePositionModeResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Change-Position-Mode Binance API Documentation}
     */
    changePositionMode(requestParameters: ChangePositionModeRequest): Promise<RestApiResponse<ChangePositionModeResponse>>;
    /**
     * Get all open orders on a symbol. **Careful** when accessing this with no symbol.
     *
     * Weight: 1 for a single symbol, 40 for mutltiple symbols
     *
     * @summary Current All Open Orders (USER_DATA)
     * @param {CurrentAllOpenOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CurrentAllOpenOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Current-All-Open-Orders Binance API Documentation}
     */
    currentAllOpenOrders(requestParameters?: CurrentAllOpenOrdersRequest): Promise<RestApiResponse<CurrentAllOpenOrdersResponse>>;
    /**
     * Get order modification history
     *
     *
     * Either `orderId` or `origClientOrderId` must be sent, and the `orderId` will prevail if both are sent.
     * Order modify history longer than 3 month is not avaliable
     *
     * Weight: 1
     *
     * @summary Get Order Modify History (USER_DATA)
     * @param {GetOrderModifyHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetOrderModifyHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Get-Order-Modify-History Binance API Documentation}
     */
    getOrderModifyHistory(requestParameters: GetOrderModifyHistoryRequest): Promise<RestApiResponse<GetOrderModifyHistoryResponse>>;
    /**
     * Get position margin change history
     *
     * Weight: 1
     *
     * @summary Get Position Margin Change History(TRADE)
     * @param {GetPositionMarginChangeHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetPositionMarginChangeHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Get-Position-Margin-Change-History Binance API Documentation}
     */
    getPositionMarginChangeHistory(requestParameters: GetPositionMarginChangeHistoryRequest): Promise<RestApiResponse<GetPositionMarginChangeHistoryResponse>>;
    /**
     * Modify Isolated Position Margin
     *
     * Only for isolated symbol
     *
     * Weight: 1
     *
     * @summary Modify Isolated Position Margin(TRADE)
     * @param {ModifyIsolatedPositionMarginRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ModifyIsolatedPositionMarginResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin Binance API Documentation}
     */
    modifyIsolatedPositionMargin(requestParameters: ModifyIsolatedPositionMarginRequest): Promise<RestApiResponse<ModifyIsolatedPositionMarginResponse>>;
    /**
     * Modify Multiple Orders
     *
     * Parameter rules are same with `Modify Order`
     * Batch modify orders are processed concurrently, and the order of matching is not guaranteed.
     * The order of returned contents for batch modify orders is the same as the order of the order list.
     * One order can only be modfied for less than 10000 times
     *
     * Weight: 5
     *
     * @summary Modify Multiple Orders(TRADE)
     * @param {ModifyMultipleOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ModifyMultipleOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Multiple-Orders Binance API Documentation}
     */
    modifyMultipleOrders(requestParameters: ModifyMultipleOrdersRequest): Promise<RestApiResponse<ModifyMultipleOrdersResponse>>;
    /**
     * Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue
     *
     * Either `orderId` or `origClientOrderId` must be sent, and the `orderId` will prevail if both are sent.
     * Either `quantity` or `price` must be sent.
     * When the new `quantity` or `price` doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.
     * However the order will be cancelled by the amendment in the following situations:
     * when the order is in partially filled status and the new `quantity` <= `executedQty`
     * When the order is `GTX` and the new price will cause it to be executed immediately
     * One order can only be modfied for less than 10000 times
     * Modify order will set `selfTradePreventionMode` to `NONE`
     *
     * Weight: 1
     *
     * @summary Modify Order (TRADE)
     * @param {ModifyOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ModifyOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Order Binance API Documentation}
     */
    modifyOrder(requestParameters: ModifyOrderRequest$1): Promise<RestApiResponse<ModifyOrderResponse$1>>;
    /**
     * Send in a new order.
     *
     *
     * Order with type `STOP`,  parameter `timeInForce` can be sent ( default `GTC`).
     * Order with type `TAKE_PROFIT`,  parameter `timeInForce` can be sent ( default `GTC`).
     * Condition orders will be triggered when:
     *
     * If parameter`priceProtect`is sent as true:
     * when price reaches the `stopPrice` ，the difference rate between "MARK_PRICE" and "CONTRACT_PRICE" cannot be larger than the "triggerProtect" of the symbol
     * "triggerProtect" of a symbol can be got from `GET /dapi/v1/exchangeInfo`
     *
     * `STOP`, `STOP_MARKET`:
     * BUY: latest price ("MARK_PRICE" or "CONTRACT_PRICE") >= `stopPrice`
     * SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") <= `stopPrice`
     * `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`:
     * BUY: latest price ("MARK_PRICE" or "CONTRACT_PRICE") <= `stopPrice`
     * SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") >= `stopPrice`
     * `TRAILING_STOP_MARKET`:
     * BUY: the lowest price after order placed `<= `activationPrice`, and the latest price >`= the lowest price * (1 + `callbackRate`)
     * SELL: the highest price after order placed >= `activationPrice`, and the latest price <= the highest price * (1 - `callbackRate`)
     *
     * For `TRAILING_STOP_MARKET`, if you got such error code.
     * ``{"code": -2021, "msg": "Order would immediately trigger."}``
     * means that the parameters you send do not meet the following requirements:
     * BUY: `activationPrice` should be smaller than latest price.
     * SELL: `activationPrice` should be larger than latest price.
     *
     * If `newOrderRespType ` is sent as `RESULT` :
     * `MARKET` order: the final FILLED result of the order will be return directly.
     * `LIMIT` order with special `timeInForce`: the final status result of the order(FILLED or EXPIRED) will be returned directly.
     *
     * `STOP_MARKET`, `TAKE_PROFIT_MARKET` with `closePosition`=`true`:
     * Follow the same rules for condition orders.
     * If triggered,**close all** current long position( if `SELL`) or current short position( if `BUY`).
     * Cannot be used with `quantity` parameter
     * Cannot be used with `reduceOnly` parameter
     * In Hedge Mode,cannot be used with `BUY` orders in `LONG` position side. and cannot be used with `SELL` orders in `SHORT` position side
     * `selfTradePreventionMode` is only effective when `timeInForce` set to `IOC` or `GTC`.
     *
     * Weight: 1 on 1min order rate limit(X-MBX-ORDER-COUNT-1M)\
     * 0 on IP rate limit(x-mbx-used-weight-1m)
     *
     * @summary New Order (TRADE)
     * @param {NewOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<NewOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/New-Order Binance API Documentation}
     */
    newOrder(requestParameters: NewOrderRequest$1): Promise<RestApiResponse<NewOrderResponse$1>>;
    /**
     * Query position ADL quantile estimation
     *
     * Values update every 30s.
     * Values 0, 1, 2, 3, 4 shows the queue position and possibility of ADL from low to high.
     * For positions of the symbol are in One-way Mode or isolated margined in Hedge Mode, "LONG", "SHORT", and "BOTH" will be returned to show the positions' adl quantiles of different position sides.
     * If the positions of the symbol are crossed margined in Hedge Mode:
     * "HEDGE" as a sign will be returned instead of "BOTH";
     * A same value caculated on unrealized pnls on long and short sides' positions will be shown for "LONG" and "SHORT" when there are positions in both of long and short sides.
     *
     * Weight: 5
     *
     * @summary Position ADL Quantile Estimation(USER_DATA)
     * @param {PositionAdlQuantileEstimationRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<PositionAdlQuantileEstimationResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Position-ADL-Quantile-Estimation Binance API Documentation}
     */
    positionAdlQuantileEstimation(requestParameters?: PositionAdlQuantileEstimationRequest): Promise<RestApiResponse<PositionAdlQuantileEstimationResponse>>;
    /**
     * Get current account information.
     *
     * If neither `marginAsset` nor `pair` is sent, positions of all symbols with `TRADING` status will be returned.
     * for One-way Mode user, the response  will only show the "BOTH" positions
     * for Hedge Mode user, the response will show "BOTH", "LONG", and "SHORT" positions.
     * Please use with user data stream `ACCOUNT_UPDATE` to meet your timeliness and accuracy needs.
     *
     * Weight: 1
     *
     * @summary Position Information(USER_DATA)
     * @param {PositionInformationRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<PositionInformationResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Position-Information Binance API Documentation}
     */
    positionInformation(requestParameters?: PositionInformationRequest$1): Promise<RestApiResponse<PositionInformationResponse$1>>;
    /**
     * Query Current Open Order
     *
     * Either`orderId` or `origClientOrderId` must be sent
     * If the queried order has been filled or cancelled, the error message "Order does not exist" will be returned.
     *
     * Weight: 1
     *
     * @summary Query Current Open Order(USER_DATA)
     * @param {QueryCurrentOpenOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryCurrentOpenOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Query-Current-Open-Order Binance API Documentation}
     */
    queryCurrentOpenOrder(requestParameters: QueryCurrentOpenOrderRequest): Promise<RestApiResponse<QueryCurrentOpenOrderResponse>>;
    /**
     * Check an order's status.
     *
     * These orders will not be found:
     * order status is CANCELED or EXPIRED AND order has NO filled trade AND created time + 3 days < current time
     * order create time + 90 days < current time
     *
     *
     * Either `orderId` or `origClientOrderId` must be sent.
     *
     * Weight: 1
     *
     * @summary Query Order (USER_DATA)
     * @param {QueryOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Query-Order Binance API Documentation}
     */
    queryOrder(requestParameters: QueryOrderRequest$1): Promise<RestApiResponse<QueryOrderResponse$1>>;
    /**
     * User's Force Orders
     *
     * If "autoCloseType" is not sent, orders with both of the types will be returned
     * If "startTime" is not sent, data within 200 days before "endTime" can be queried
     *
     * Weight: 20 with symbol, 50 without symbol
     *
     * @summary User\'s Force Orders(USER_DATA)
     * @param {UsersForceOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<UsersForceOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Users-Force-Orders Binance API Documentation}
     */
    usersForceOrders(requestParameters?: UsersForceOrdersRequest): Promise<RestApiResponse<UsersForceOrdersResponse>>;
}
declare const ChangeMarginTypeMarginTypeEnum: {
    readonly ISOLATED: "ISOLATED";
    readonly CROSSED: "CROSSED";
};
type ChangeMarginTypeMarginTypeEnum = (typeof ChangeMarginTypeMarginTypeEnum)[keyof typeof ChangeMarginTypeMarginTypeEnum];
declare const ModifyIsolatedPositionMarginTypeEnum: {
    readonly LIMIT: "LIMIT";
    readonly MARKET: "MARKET";
    readonly STOP: "STOP";
    readonly STOP_MARKET: "STOP_MARKET";
    readonly TAKE_PROFIT: "TAKE_PROFIT";
    readonly TAKE_PROFIT_MARKET: "TAKE_PROFIT_MARKET";
    readonly TRAILING_STOP_MARKET: "TRAILING_STOP_MARKET";
};
type ModifyIsolatedPositionMarginTypeEnum = (typeof ModifyIsolatedPositionMarginTypeEnum)[keyof typeof ModifyIsolatedPositionMarginTypeEnum];
declare const ModifyIsolatedPositionMarginPositionSideEnum: {
    readonly BOTH: "BOTH";
    readonly LONG: "LONG";
    readonly SHORT: "SHORT";
};
type ModifyIsolatedPositionMarginPositionSideEnum = (typeof ModifyIsolatedPositionMarginPositionSideEnum)[keyof typeof ModifyIsolatedPositionMarginPositionSideEnum];
declare const ModifyOrderSideEnum$1: {
    readonly BUY: "BUY";
    readonly SELL: "SELL";
};
type ModifyOrderSideEnum$1 = (typeof ModifyOrderSideEnum$1)[keyof typeof ModifyOrderSideEnum$1];
declare const ModifyOrderPriceMatchEnum$1: {
    readonly NONE: "NONE";
    readonly OPPONENT: "OPPONENT";
    readonly OPPONENT_5: "OPPONENT_5";
    readonly OPPONENT_10: "OPPONENT_10";
    readonly OPPONENT_20: "OPPONENT_20";
    readonly QUEUE: "QUEUE";
    readonly QUEUE_5: "QUEUE_5";
    readonly QUEUE_10: "QUEUE_10";
    readonly QUEUE_20: "QUEUE_20";
};
type ModifyOrderPriceMatchEnum$1 = (typeof ModifyOrderPriceMatchEnum$1)[keyof typeof ModifyOrderPriceMatchEnum$1];
declare const NewOrderSideEnum$1: {
    readonly BUY: "BUY";
    readonly SELL: "SELL";
};
type NewOrderSideEnum$1 = (typeof NewOrderSideEnum$1)[keyof typeof NewOrderSideEnum$1];
declare const NewOrderTypeEnum$1: {
    readonly LIMIT: "LIMIT";
    readonly MARKET: "MARKET";
    readonly STOP: "STOP";
    readonly STOP_MARKET: "STOP_MARKET";
    readonly TAKE_PROFIT: "TAKE_PROFIT";
    readonly TAKE_PROFIT_MARKET: "TAKE_PROFIT_MARKET";
    readonly TRAILING_STOP_MARKET: "TRAILING_STOP_MARKET";
};
type NewOrderTypeEnum$1 = (typeof NewOrderTypeEnum$1)[keyof typeof NewOrderTypeEnum$1];
declare const NewOrderPositionSideEnum$1: {
    readonly BOTH: "BOTH";
    readonly LONG: "LONG";
    readonly SHORT: "SHORT";
};
type NewOrderPositionSideEnum$1 = (typeof NewOrderPositionSideEnum$1)[keyof typeof NewOrderPositionSideEnum$1];
declare const NewOrderTimeInForceEnum$1: {
    readonly GTC: "GTC";
    readonly IOC: "IOC";
    readonly FOK: "FOK";
    readonly GTX: "GTX";
};
type NewOrderTimeInForceEnum$1 = (typeof NewOrderTimeInForceEnum$1)[keyof typeof NewOrderTimeInForceEnum$1];
declare const NewOrderWorkingTypeEnum$1: {
    readonly MARK_PRICE: "MARK_PRICE";
    readonly CONTRACT_PRICE: "CONTRACT_PRICE";
};
type NewOrderWorkingTypeEnum$1 = (typeof NewOrderWorkingTypeEnum$1)[keyof typeof NewOrderWorkingTypeEnum$1];
declare const NewOrderNewOrderRespTypeEnum$1: {
    readonly ACK: "ACK";
    readonly RESULT: "RESULT";
};
type NewOrderNewOrderRespTypeEnum$1 = (typeof NewOrderNewOrderRespTypeEnum$1)[keyof typeof NewOrderNewOrderRespTypeEnum$1];
declare const NewOrderPriceMatchEnum$1: {
    readonly NONE: "NONE";
    readonly OPPONENT: "OPPONENT";
    readonly OPPONENT_5: "OPPONENT_5";
    readonly OPPONENT_10: "OPPONENT_10";
    readonly OPPONENT_20: "OPPONENT_20";
    readonly QUEUE: "QUEUE";
    readonly QUEUE_5: "QUEUE_5";
    readonly QUEUE_10: "QUEUE_10";
    readonly QUEUE_20: "QUEUE_20";
};
type NewOrderPriceMatchEnum$1 = (typeof NewOrderPriceMatchEnum$1)[keyof typeof NewOrderPriceMatchEnum$1];
declare const NewOrderSelfTradePreventionModeEnum$1: {
    readonly NONE: "NONE";
    readonly EXPIRE_TAKER: "EXPIRE_TAKER";
    readonly EXPIRE_BOTH: "EXPIRE_BOTH";
    readonly EXPIRE_MAKER: "EXPIRE_MAKER";
};
type NewOrderSelfTradePreventionModeEnum$1 = (typeof NewOrderSelfTradePreventionModeEnum$1)[keyof typeof NewOrderSelfTradePreventionModeEnum$1];
declare const UsersForceOrdersAutoCloseTypeEnum: {
    readonly LIQUIDATION: "LIQUIDATION";
    readonly ADL: "ADL";
};
type UsersForceOrdersAutoCloseTypeEnum = (typeof UsersForceOrdersAutoCloseTypeEnum)[keyof typeof UsersForceOrdersAutoCloseTypeEnum];

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 * UserDataStreamsApi - interface
 * @interface UserDataStreamsApi
 */
interface UserDataStreamsApiInterface$1 {
    /**
     * Close out a user data stream.
     *
     * Weight: 1
     *
     * @summary Close User Data Stream(USER_STREAM)
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof UserDataStreamsApiInterface
     */
    closeUserDataStream(): Promise<RestApiResponse<void>>;
    /**
     * Keepalive a user data stream to prevent a time out. User data streams will close after 60 minutes.
     *
     * Weight: 1
     *
     * @summary Keepalive User Data Stream (USER_STREAM)
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof UserDataStreamsApiInterface
     */
    keepaliveUserDataStream(): Promise<RestApiResponse<void>>;
    /**
     * Start a new user data stream. The stream will close after 60 minutes unless a keepalive is sent. If the account has an active `listenKey`, that `listenKey` will be returned and its validity will be extended for 60 minutes.
     *
     * Weight: 1
     *
     * @summary Start User Data Stream (USER_STREAM)
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof UserDataStreamsApiInterface
     */
    startUserDataStream(): Promise<RestApiResponse<StartUserDataStreamResponse$1>>;
}
/**
 * UserDataStreamsApi - object-oriented interface
 * @class UserDataStreamsApi
 */
declare class UserDataStreamsApi$1 implements UserDataStreamsApiInterface$1 {
    private readonly configuration;
    private localVarAxiosParamCreator;
    constructor(configuration: ConfigurationRestAPI);
    /**
     * Close out a user data stream.
     *
     * Weight: 1
     *
     * @summary Close User Data Stream(USER_STREAM)
     * @returns {Promise<RestApiResponse<void>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof UserDataStreamsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/user-data-streams/Close-User-Data-Stream Binance API Documentation}
     */
    closeUserDataStream(): Promise<RestApiResponse<void>>;
    /**
     * Keepalive a user data stream to prevent a time out. User data streams will close after 60 minutes.
     *
     * Weight: 1
     *
     * @summary Keepalive User Data Stream (USER_STREAM)
     * @returns {Promise<RestApiResponse<void>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof UserDataStreamsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/user-data-streams/Keepalive-User-Data-Stream Binance API Documentation}
     */
    keepaliveUserDataStream(): Promise<RestApiResponse<void>>;
    /**
     * Start a new user data stream. The stream will close after 60 minutes unless a keepalive is sent. If the account has an active `listenKey`, that `listenKey` will be returned and its validity will be extended for 60 minutes.
     *
     * Weight: 1
     *
     * @summary Start User Data Stream (USER_STREAM)
     * @returns {Promise<RestApiResponse<StartUserDataStreamResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof UserDataStreamsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/user-data-streams/Start-User-Data-Stream Binance API Documentation}
     */
    startUserDataStream(): Promise<RestApiResponse<StartUserDataStreamResponse$1>>;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

declare class RestAPI {
    private configuration;
    private accountApi;
    private marketDataApi;
    private portfolioMarginEndpointsApi;
    private tradeApi;
    private userDataStreamsApi;
    constructor(configuration: ConfigurationRestAPI);
    /**
     * Generic function to send a request.
     * @param endpoint - The API endpoint to call.
     * @param method - HTTP method to use (GET, POST, DELETE, etc.).
     * @param params - Query parameters for the request.
     *
     * @returns A promise resolving to the response data object.
     */
    sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
    /**
     * Generic function to send a signed request.
     * @param endpoint - The API endpoint to call.
     * @param method - HTTP method to use (GET, POST, DELETE, etc.).
     * @param params - Query parameters for the request.
     *
     * @returns A promise resolving to the response data object.
     */
    sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
    /**
     * Get current account information.
     *
     * for One-way Mode user, the "positions" will only show the "BOTH" positions
     * for Hedge Mode user, the "positions" will show "BOTH", "LONG", and "SHORT" positions.
     *
     * Weight: 5
     *
     * @summary Account Information (USER_DATA)
     * @param {AccountInformationRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<AccountInformationResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information Binance API Documentation}
     */
    accountInformation(requestParameters?: AccountInformationRequest$1): Promise<RestApiResponse<AccountInformationResponse$1>>;
    /**
     * Check futures account balance
     *
     * Weight: 1
     *
     * @summary Futures Account Balance (USER_DATA)
     * @param {FuturesAccountBalanceRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<FuturesAccountBalanceResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Futures-Account-Balance Binance API Documentation}
     */
    futuresAccountBalance(requestParameters?: FuturesAccountBalanceRequest$1): Promise<RestApiResponse<FuturesAccountBalanceResponse$1>>;
    /**
     * Get user's position mode (Hedge Mode or One-way Mode ) on ***EVERY symbol***
     *
     * Weight: 30
     *
     * @summary Get Current Position Mode(USER_DATA)
     * @param {GetCurrentPositionModeRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetCurrentPositionModeResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Current-Position-Mode Binance API Documentation}
     */
    getCurrentPositionMode(requestParameters?: GetCurrentPositionModeRequest): Promise<RestApiResponse<GetCurrentPositionModeResponse>>;
    /**
     * Get Download Id For Futures Order History
     *
     * Request Limitation is 10 times per month, shared by front end download page and rest api
     * The time between `startTime` and `endTime` can not be longer than 1 year
     *
     * Weight: 5
     *
     * @summary Get Download Id For Futures Order History (USER_DATA)
     * @param {GetDownloadIdForFuturesOrderHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetDownloadIdForFuturesOrderHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Download-Id-For-Futures-Order-History Binance API Documentation}
     */
    getDownloadIdForFuturesOrderHistory(requestParameters: GetDownloadIdForFuturesOrderHistoryRequest): Promise<RestApiResponse<GetDownloadIdForFuturesOrderHistoryResponse>>;
    /**
     * Get download id for futures trade history
     *
     * Request Limitation is 5 times per month, shared by front end download page and rest api
     * The time between `startTime` and `endTime` can not be longer than 1 year
     *
     * Weight: 5
     *
     * @summary Get Download Id For Futures Trade History (USER_DATA)
     * @param {GetDownloadIdForFuturesTradeHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetDownloadIdForFuturesTradeHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Download-Id-For-Futures-Trade-History Binance API Documentation}
     */
    getDownloadIdForFuturesTradeHistory(requestParameters: GetDownloadIdForFuturesTradeHistoryRequest): Promise<RestApiResponse<GetDownloadIdForFuturesTradeHistoryResponse>>;
    /**
     * Get download id for futures transaction history
     *
     * Request Limitation is 5 times per month, shared by front end download page and rest api
     * The time between `startTime` and `endTime` can not be longer than 1 year
     *
     * Weight: 5
     *
     * @summary Get Download Id For Futures Transaction History(USER_DATA)
     * @param {GetDownloadIdForFuturesTransactionHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetDownloadIdForFuturesTransactionHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Download-Id-For-Futures-Transaction-History Binance API Documentation}
     */
    getDownloadIdForFuturesTransactionHistory(requestParameters: GetDownloadIdForFuturesTransactionHistoryRequest): Promise<RestApiResponse<GetDownloadIdForFuturesTransactionHistoryResponse>>;
    /**
     * Get futures order history download link by Id
     *
     * Download link expiration: 24h
     *
     * Weight: 5
     *
     * @summary Get Futures Order History Download Link by Id (USER_DATA)
     * @param {GetFuturesOrderHistoryDownloadLinkByIdRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetFuturesOrderHistoryDownloadLinkByIdResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Futures-Order-History-Download-Link-by-Id Binance API Documentation}
     */
    getFuturesOrderHistoryDownloadLinkById(requestParameters: GetFuturesOrderHistoryDownloadLinkByIdRequest): Promise<RestApiResponse<GetFuturesOrderHistoryDownloadLinkByIdResponse>>;
    /**
     * Get futures trade download link by Id
     *
     * Download link expiration: 24h
     *
     * Weight: 5
     *
     * @summary Get Futures Trade Download Link by Id(USER_DATA)
     * @param {GetFuturesTradeDownloadLinkByIdRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetFuturesTradeDownloadLinkByIdResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Futures-Trade-Download-Link-by-Id Binance API Documentation}
     */
    getFuturesTradeDownloadLinkById(requestParameters: GetFuturesTradeDownloadLinkByIdRequest): Promise<RestApiResponse<GetFuturesTradeDownloadLinkByIdResponse>>;
    /**
     * Get futures transaction history download link by Id
     *
     * Download link expiration: 24h
     *
     * Weight: 5
     *
     * @summary Get Futures Transaction History Download Link by Id (USER_DATA)
     * @param {GetFuturesTransactionHistoryDownloadLinkByIdRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetFuturesTransactionHistoryDownloadLinkByIdResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Futures-Transaction-History-Download-Link-by-Id Binance API Documentation}
     */
    getFuturesTransactionHistoryDownloadLinkById(requestParameters: GetFuturesTransactionHistoryDownloadLinkByIdRequest): Promise<RestApiResponse<GetFuturesTransactionHistoryDownloadLinkByIdResponse>>;
    /**
     * Get income history
     *
     * If `incomeType ` is not sent, all kinds of flow will be returned
     * "trandId" is unique in the same "incomeType" for a user
     * The time between `startTime` and `endTime` can not be longer than 1 year
     *
     * Weight: 20
     *
     * @summary Get Income History(USER_DATA)
     * @param {GetIncomeHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetIncomeHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Income-History Binance API Documentation}
     */
    getIncomeHistory(requestParameters?: GetIncomeHistoryRequest): Promise<RestApiResponse<GetIncomeHistoryResponse>>;
    /**
     * **Not recommended to continue using this v1 endpoint**
     *
     * Get the pair's default notional bracket list, may return ambiguous values when there have been multiple different `symbol` brackets under the `pair`, suggest using the following `GET /dapi/v2/leverageBracket` query instead to get the specific `symbol` notional bracket list.
     *
     * Weight: 1
     *
     * @summary Notional Bracket for Pair(USER_DATA)
     * @param {NotionalBracketForPairRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<NotionalBracketForPairResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Notional-Bracket-for-Pair Binance API Documentation}
     */
    notionalBracketForPair(requestParameters?: NotionalBracketForPairRequest): Promise<RestApiResponse<NotionalBracketForPairResponse>>;
    /**
     * Get the symbol's notional bracket list.
     *
     * Weight: 1
     *
     * @summary Notional Bracket for Symbol(USER_DATA)
     * @param {NotionalBracketForSymbolRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<NotionalBracketForSymbolResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Notional-Bracket-for-Symbol Binance API Documentation}
     */
    notionalBracketForSymbol(requestParameters?: NotionalBracketForSymbolRequest): Promise<RestApiResponse<NotionalBracketForSymbolResponse>>;
    /**
     * Query user commission rate
     *
     * Weight: 20
     *
     * @summary User Commission Rate (USER_DATA)
     * @param {UserCommissionRateRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<UserCommissionRateResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/User-Commission-Rate Binance API Documentation}
     */
    userCommissionRate(requestParameters: UserCommissionRateRequest): Promise<RestApiResponse<UserCommissionRateResponse>>;
    /**
     * Query basis
     *
     * If startTime and endTime are not sent, the most recent data is returned.
     * Only the data of the latest 30 days is available.
     *
     * Weight: 1
     *
     * @summary Basis
     * @param {BasisRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<BasisResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Basis Binance API Documentation}
     */
    basis(requestParameters: BasisRequest): Promise<RestApiResponse<BasisResponse>>;
    /**
     * Test connectivity to the Rest API and get the current server time.
     *
     * Weight: 1
     *
     * @summary Check Server time
     * @returns {Promise<RestApiResponse<CheckServerTimeResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Check-Server-time Binance API Documentation}
     */
    checkServerTime(): Promise<RestApiResponse<CheckServerTimeResponse>>;
    /**
     * Get compressed, aggregate trades. Market trades that fill in 100ms with the same price and the same taking side will have the quantity aggregated.
     *
     * support querying futures trade histories that are not older than one year
     * If both `startTime` and `endTime` are sent, time between `startTime` and `endTime` must be less than 1 hour.
     * If `fromId`, `startTime`, and `endTime` are not sent, the most recent aggregate trades will be returned.
     * Only market trades will be aggregated and returned, which means the insurance fund trades and ADL trades won't be aggregated.
     * Sending both `startTime`/`endTime` and `fromId` might cause response timeout, please send either `fromId` or `startTime`/`endTime`
     *
     * Weight: 20
     *
     * @summary Compressed/Aggregate Trades List
     * @param {CompressedAggregateTradesListRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CompressedAggregateTradesListResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Compressed-Aggregate-Trades-List Binance API Documentation}
     */
    compressedAggregateTradesList(requestParameters: CompressedAggregateTradesListRequest): Promise<RestApiResponse<CompressedAggregateTradesListResponse>>;
    /**
     * Kline/candlestick bars for a specific contract type.
     * Klines are uniquely identified by their open time.
     *
     * Contract type:
     * PERPETUAL
     * CURRENT_QUARTER
     * NEXT_QUARTER
     *
     *
     * 1000 | 10
     * The difference between `startTime` and `endTime` can only be up to 200 days
     * Between `startTime` and `endTime`, the most recent `limit` data from `endTime` will be returned:
     * If `startTime` and `endTime` are not sent, current timestamp will be set as `endTime`, and the most recent data will be returned.
     * If `startTime` is sent only, the timestamp of 200 days after `startTime` will be set as `endTime`(up to the current time)
     * If `endTime` is sent only, the timestamp of 200 days before `endTime` will be set as `startTime`
     *
     * Weight: based on parameter LIMIT
     * LIMIT | weight
     * ---|---
     * [1,100) | 1
     * [100, 500) | 2
     * [500, 1000] | 5
     * > 1000 | 10
     *
     * @summary Continuous Contract Kline/Candlestick Data
     * @param {ContinuousContractKlineCandlestickDataRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ContinuousContractKlineCandlestickDataResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Continuous-Contract-Kline-Candlestick-Data Binance API Documentation}
     */
    continuousContractKlineCandlestickData(requestParameters: ContinuousContractKlineCandlestickDataRequest): Promise<RestApiResponse<ContinuousContractKlineCandlestickDataResponse>>;
    /**
     * Current exchange trading rules and symbol information
     *
     * Weight: 1
     *
     * @summary Exchange Information
     * @returns {Promise<RestApiResponse<ExchangeInformationResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Exchange-Information Binance API Documentation}
     */
    exchangeInformation(): Promise<RestApiResponse<ExchangeInformationResponse>>;
    /**
     * Get Funding Rate History of Perpetual Futures
     *
     * empty array will be returned for delivery symbols.
     *
     * Weight: 1
     *
     * @summary Get Funding Rate History of Perpetual Futures
     * @param {GetFundingRateHistoryOfPerpetualFuturesRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetFundingRateHistoryOfPerpetualFuturesResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Get-Funding-Rate-History-of-Perpetual-Futures Binance API Documentation}
     */
    getFundingRateHistoryOfPerpetualFutures(requestParameters: GetFundingRateHistoryOfPerpetualFuturesRequest): Promise<RestApiResponse<GetFundingRateHistoryOfPerpetualFuturesResponse>>;
    /**
     * Query funding rate info for symbols that had FundingRateCap/ FundingRateFloor / fundingIntervalHours adjustment
     *
     * Weight: 0
     *
     * @summary Get Funding Rate Info
     * @returns {Promise<RestApiResponse<GetFundingRateInfoResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Get-Funding-Info Binance API Documentation}
     */
    getFundingRateInfo(): Promise<RestApiResponse<GetFundingRateInfoResponse>>;
    /**
     * Query index price and mark price
     *
     * Weight: 10
     *
     * @summary Index Price and Mark Price
     * @param {IndexPriceAndMarkPriceRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<IndexPriceAndMarkPriceResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price Binance API Documentation}
     */
    indexPriceAndMarkPrice(requestParameters?: IndexPriceAndMarkPriceRequest): Promise<RestApiResponse<IndexPriceAndMarkPriceResponse>>;
    /**
     * Kline/candlestick bars for the index price of a pair. Klines are uniquely identified by their open time.
     *
     *
     * 1000 | 10
     * The difference between `startTime` and `endTime` can only be up to 200 days
     * Between `startTime` and `endTime`, the most recent `limit` data from `endTime` will be returned:
     * If `startTime` and `endTime` are not sent, current timestamp will be set as `endTime`, and the most recent data will be returned.
     * If `startTime` is sent only, the timestamp of 200 days after `startTime` will be set as `endTime`(up to the current time)
     * If `endTime` is sent only, the timestamp of 200 days before `endTime` will be set as `startTime`
     *
     * Weight: based on parameter LIMIT
     * LIMIT | weight
     * ---|---
     * [1,100) | 1
     * [100, 500) | 2
     * [500, 1000] | 5
     * > 1000 | 10
     *
     * @summary Index Price Kline/Candlestick Data
     * @param {IndexPriceKlineCandlestickDataRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<IndexPriceKlineCandlestickDataResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-Kline-Candlestick-Data Binance API Documentation}
     */
    indexPriceKlineCandlestickData(requestParameters: IndexPriceKlineCandlestickDataRequest): Promise<RestApiResponse<IndexPriceKlineCandlestickDataResponse>>;
    /**
     * Kline/candlestick bars for a symbol.
     * Klines are uniquely identified by their open time.
     *
     * 1000 | 10
     * The difference between `startTime` and `endTime` can only be up to 200 days
     * Between `startTime` and `endTime`, the most recent `limit` data from `endTime` will be returned:
     * If `startTime` and `endTime` are not sent, current timestamp will be set as `endTime`, and the most recent data will be returned.
     * If `startTime` is sent only, the timestamp of 200 days after `startTime` will be set as `endTime`(up to the current time)
     * If `endTime` is sent only, the timestamp of 200 days before `endTime` will be set as `startTime`
     *
     * Weight: based on parameter LIMIT
     * LIMIT | weight
     * ---|---
     * [1,100) | 1
     * [100, 500) | 2
     * [500, 1000] | 5
     * > 1000 | 10
     *
     * @summary Kline/Candlestick Data
     * @param {KlineCandlestickDataRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<KlineCandlestickDataResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Kline-Candlestick-Data Binance API Documentation}
     */
    klineCandlestickData(requestParameters: KlineCandlestickDataRequest): Promise<RestApiResponse<KlineCandlestickDataResponse>>;
    /**
     * Query symbol Long/Short Ratio
     *
     * If startTime and endTime are not sent, the most recent data is returned.
     * Only the data of the latest 30 days is available.
     *
     * Weight: 1
     *
     * @summary Long/Short Ratio
     * @param {LongShortRatioRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<LongShortRatioResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Long-Short-Ratio Binance API Documentation}
     */
    longShortRatio(requestParameters: LongShortRatioRequest): Promise<RestApiResponse<LongShortRatioResponse>>;
    /**
     * Kline/candlestick bars for the mark price of a symbol.
     * Klines are uniquely identified by their open time.
     *
     *
     * 1000 | 10
     * The difference between `startTime` and `endTime` can only be up to 200 days
     * Between `startTime` and `endTime`, the most recent `limit` data from `endTime` will be returned:
     * If `startTime` and `endTime` are not sent, current timestamp will be set as `endTime`, and the most recent data will be returned.
     * If `startTime` is sent only, the timestamp of 200 days after `startTime` will be set as `endTime`(up to the current time)
     * If `endTime` is sent only, the timestamp of 200 days before `endTime` will be set as `startTime`
     *
     * Weight: based on parameter LIMIT
     * LIMIT | weight
     * ---|---
     * [1,100) | 1
     * [100, 500) | 2
     * [500, 1000] | 5
     * > 1000 | 10
     *
     * @summary Mark Price Kline/Candlestick Data
     * @param {MarkPriceKlineCandlestickDataRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<MarkPriceKlineCandlestickDataResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Mark-Price-Kline-Candlestick-Data Binance API Documentation}
     */
    markPriceKlineCandlestickData(requestParameters: MarkPriceKlineCandlestickDataRequest): Promise<RestApiResponse<MarkPriceKlineCandlestickDataResponse>>;
    /**
     * Get older market historical trades.
     *
     * Market trades means trades filled in the order book. Only market trades will be returned, which means the insurance fund trades and ADL trades won't be returned.
     *
     * Weight: 20
     *
     * @summary Old Trades Lookup(MARKET_DATA)
     * @param {OldTradesLookupRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<OldTradesLookupResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Old-Trades-Lookup Binance API Documentation}
     */
    oldTradesLookup(requestParameters: OldTradesLookupRequest): Promise<RestApiResponse<OldTradesLookupResponse>>;
    /**
     * Get present open interest of a specific symbol.
     *
     * Weight: 1
     *
     * @summary Open Interest
     * @param {OpenInterestRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<OpenInterestResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Open-Interest Binance API Documentation}
     */
    openInterest(requestParameters: OpenInterestRequest): Promise<RestApiResponse<OpenInterestResponse>>;
    /**
     * Query open interest stats
     *
     *
     * If startTime and endTime are not sent, the most recent data is returned.
     * Only the data of the latest 30 days is available.
     *
     * Weight: 1
     *
     * @summary Open Interest Statistics
     * @param {OpenInterestStatisticsRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<OpenInterestStatisticsResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Open-Interest-Statistics Binance API Documentation}
     */
    openInterestStatistics(requestParameters: OpenInterestStatisticsRequest): Promise<RestApiResponse<OpenInterestStatisticsResponse>>;
    /**
     * Query orderbook on specific symbol
     *
     * Weight: Adjusted based on the limit:
     * Limit | Weight
     * ------------ | ------------
     * 5, 10, 20, 50 | 2
     * 100 | 5
     * 500 | 10
     * 1000 | 20
     *
     * @summary Order Book
     * @param {OrderBookRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<OrderBookResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Order-Book Binance API Documentation}
     */
    orderBook(requestParameters: OrderBookRequest): Promise<RestApiResponse<OrderBookResponse>>;
    /**
     * Premium index kline bars of a symbol. Klines are uniquely identified by their open time.
     *
     *
     * If startTime and endTime are not sent, the most recent klines are returned.
     *
     * Weight: based on parameter LIMIT
     * | LIMIT       | weight |
     * | ----------- | ------ |
     * | [1,100)     | 1      |
     * | [100, 500)  | 2      |
     * | [500, 1000] | 5      |
     * | > 1000      | 10     |
     *
     * @summary Premium index Kline Data
     * @param {PremiumIndexKlineDataRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<PremiumIndexKlineDataResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Premium-index-Kline-Data Binance API Documentation}
     */
    premiumIndexKlineData(requestParameters: PremiumIndexKlineDataRequest): Promise<RestApiResponse<PremiumIndexKlineDataResponse>>;
    /**
     * Query index price constituents
     *
     * Weight: 2
     *
     * @summary Query Index Price Constituents
     * @param {QueryIndexPriceConstituentsRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryIndexPriceConstituentsResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Constituents Binance API Documentation}
     */
    queryIndexPriceConstituents(requestParameters: QueryIndexPriceConstituentsRequest): Promise<RestApiResponse<QueryIndexPriceConstituentsResponse>>;
    /**
     * Get recent market trades
     *
     * Market trades means trades filled in the order book. Only market trades will be returned, which means the insurance fund trades and ADL trades won't be returned.
     *
     * Weight: 5
     *
     * @summary Recent Trades List
     * @param {RecentTradesListRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<RecentTradesListResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Recent-Trades-List Binance API Documentation}
     */
    recentTradesList(requestParameters: RecentTradesListRequest): Promise<RestApiResponse<RecentTradesListResponse>>;
    /**
     * Best price/qty on the order book for a symbol or symbols.
     *
     * Symbol and pair cannot be sent together
     * If a pair is sent,tickers for all symbols of the pair will be returned
     * If either a pair or symbol is sent, tickers for all symbols of all pairs will be returned
     *
     * Weight: 2 for a single symbol, 5 when the symbol parameter is omitted
     *
     * @summary Symbol Order Book Ticker
     * @param {SymbolOrderBookTickerRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<SymbolOrderBookTickerResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Symbol-Order-Book-Ticker Binance API Documentation}
     */
    symbolOrderBookTicker(requestParameters?: SymbolOrderBookTickerRequest): Promise<RestApiResponse<SymbolOrderBookTickerResponse>>;
    /**
     * Latest price for a symbol or symbols.
     *
     * Symbol and pair cannot be sent together
     * If a pair is sent,tickers for all symbols of the pair will be returned
     * If either a pair or symbol is sent, tickers for all symbols of all pairs will be returned
     *
     * Weight: 1 for a single symbol, 2 when the symbol parameter is omitted
     *
     * @summary Symbol Price Ticker
     * @param {SymbolPriceTickerRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<SymbolPriceTickerResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Symbol-Price-Ticker Binance API Documentation}
     */
    symbolPriceTicker(requestParameters?: SymbolPriceTickerRequest): Promise<RestApiResponse<SymbolPriceTickerResponse>>;
    /**
     * Taker Buy Volume: the total volume of buy orders filled by takers within the period.
     * Taker Sell Volume: the total volume of sell orders filled by takers within the period.
     *
     * If startTime and endTime are not sent, the most recent data is returned.
     * Only the data of the latest 30 days is available.
     *
     * Weight: 1
     *
     * @summary Taker Buy/Sell Volume
     * @param {TakerBuySellVolumeRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<TakerBuySellVolumeResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Taker-Buy-Sell-Volume Binance API Documentation}
     */
    takerBuySellVolume(requestParameters: TakerBuySellVolumeRequest): Promise<RestApiResponse<TakerBuySellVolumeResponse>>;
    /**
     * Test connectivity to the Rest API.
     *
     * Weight: 1
     *
     * @summary Test Connectivity
     * @returns {Promise<RestApiResponse<void>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Test-Connectivity Binance API Documentation}
     */
    testConnectivity(): Promise<RestApiResponse<void>>;
    /**
     * 24 hour rolling window price change statistics.
     *
     * Symbol and pair cannot be sent together
     * If a pair is sent,tickers for all symbols of the pair will be returned
     * If either a pair or symbol is sent, tickers for all symbols of all pairs will be returned
     *
     * Weight: 1 for a single symbol, 40 when the symbol parameter is omitted
     * Careful when accessing this with no symbol.
     *
     * @summary 24hr Ticker Price Change Statistics
     * @param {Ticker24hrPriceChangeStatisticsRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<Ticker24hrPriceChangeStatisticsResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics Binance API Documentation}
     */
    ticker24hrPriceChangeStatistics(requestParameters?: Ticker24hrPriceChangeStatisticsRequest): Promise<RestApiResponse<Ticker24hrPriceChangeStatisticsResponse>>;
    /**
     * The proportion of net long and net short accounts to total accounts of the top 20% users with the highest margin balance. Each account is counted once only.
     * Long Account % = Accounts of top traders with net long positions / Total accounts of top traders with open positions
     * Short Account % = Accounts of top traders with net short positions / Total accounts of top traders with open positions
     * Long/Short Ratio (Accounts) = Long Account % / Short Account %
     *
     * If startTime and endTime are not sent, the most recent data is returned.
     * Only the data of the latest 30 days is available.
     *
     * Weight: 1
     *
     * @summary Top Trader Long/Short Ratio (Accounts)
     * @param {TopTraderLongShortRatioAccountsRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<TopTraderLongShortRatioAccountsResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Top-Long-Short-Account-Ratio Binance API Documentation}
     */
    topTraderLongShortRatioAccounts(requestParameters: TopTraderLongShortRatioAccountsRequest): Promise<RestApiResponse<TopTraderLongShortRatioAccountsResponse>>;
    /**
     * The proportion of net long and net short positions to total open positions of the top 20% users with the highest margin balance.
     * Long Position % = Long positions of top traders / Total open positions of top traders
     * Short Position % = Short positions of top traders / Total open positions of top traders
     * Long/Short Ratio (Positions) = Long Position % / Short Position %
     *
     * If startTime and endTime are not sent, the most recent data is returned.
     * Only the data of the latest 30 days is available.
     *
     * Weight: 1
     *
     * @summary Top Trader Long/Short Ratio (Positions)
     * @param {TopTraderLongShortRatioPositionsRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<TopTraderLongShortRatioPositionsResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Top-Trader-Long-Short-Ratio Binance API Documentation}
     */
    topTraderLongShortRatioPositions(requestParameters: TopTraderLongShortRatioPositionsRequest): Promise<RestApiResponse<TopTraderLongShortRatioPositionsResponse>>;
    /**
     * Get Classic Portfolio Margin current account information.
     *
     * maxWithdrawAmount is for asset transfer out to the spot wallet.
     *
     * Weight: 5
     *
     * @summary Classic Portfolio Margin Account Information (USER_DATA)
     * @param {ClassicPortfolioMarginAccountInformationRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ClassicPortfolioMarginAccountInformationResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/portfolio-margin-endpoints/Classic-Portfolio-Margin-Account-Information Binance API Documentation}
     */
    classicPortfolioMarginAccountInformation(requestParameters: ClassicPortfolioMarginAccountInformationRequest): Promise<RestApiResponse<ClassicPortfolioMarginAccountInformationResponse>>;
    /**
     * Get trades for a specific account and symbol.
     *
     *
     * Either symbol or pair must be sent
     * Symbol and pair cannot be sent together
     * Pair and fromId cannot be sent together
     * OrderId can only be sent together with symbol
     * If a pair is sent,tickers for all symbols of the pair will be returned
     * The parameter `fromId` cannot be sent with `startTime` or `endTime`
     * If startTime and endTime are both not sent, then the last 7 days' data will be returned.
     * The time between startTime and endTime cannot be longer than 7 days.
     *
     * Weight: 20 with symbol，40 with pair
     *
     * @summary Account Trade List (USER_DATA)
     * @param {AccountTradeListRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<AccountTradeListResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Account-Trade-List Binance API Documentation}
     */
    accountTradeList(requestParameters?: AccountTradeListRequest): Promise<RestApiResponse<AccountTradeListResponse>>;
    /**
     * Get all account orders; active, canceled, or filled.
     *
     * These orders will not be found:
     * order status is CANCELED or EXPIRED AND order has NO filled trade AND created time + 3 days < current time
     * order create time + 90 days < current time
     *
     *
     * Either `symbol` or `pair` must be sent.
     * `pair` can't be sent with `orderId`
     * If `orderId` is set, it will get orders >= that `orderId`. Otherwise most recent orders are returned.
     * If orderId is set, it will get orders >= that orderId. Otherwise most recent orders are returned.
     * The query time period must be less then 7 days( default as the recent 7 days).
     *
     * Weight: 20 with symbol, 40 with pair
     *
     * @summary All Orders (USER_DATA)
     * @param {AllOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<AllOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders Binance API Documentation}
     */
    allOrders(requestParameters?: AllOrdersRequest): Promise<RestApiResponse<AllOrdersResponse>>;
    /**
     * Cancel all open orders of the specified symbol at the end of the specified countdown. This rest endpoint means to ensure your open orders are canceled in case of an outage. The endpoint should be called repeatedly as heartbeats so that the existing countdown time can be canceled and repalced by a new one. The system will check all countdowns **approximately every 10 milliseconds**, so please note that sufficient redundancy should be considered when using this function. We do not recommend setting the countdown time to be too precise or too small.
     *
     * Example usage:
     * Call this endpoint at 30s intervals with an countdownTime of 120000 (120s).
     * If this endpoint is not called within 120 seconds, all your orders of the specified symbol will be automatically canceled.
     * If this endpoint is called with an countdownTime of 0, the countdown timer will be stopped.
     *
     * Weight: 10
     *
     * @summary Auto-Cancel All Open Orders (TRADE)
     * @param {AutoCancelAllOpenOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<void>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Auto-Cancel-All-Open-Orders Binance API Documentation}
     */
    autoCancelAllOpenOrders(requestParameters: AutoCancelAllOpenOrdersRequest): Promise<RestApiResponse<void>>;
    /**
     * Cancel All Open Orders
     *
     * Weight: 1
     *
     * @summary Cancel All Open Orders(TRADE)
     * @param {CancelAllOpenOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelAllOpenOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-All-Open-Orders Binance API Documentation}
     */
    cancelAllOpenOrders(requestParameters: CancelAllOpenOrdersRequest): Promise<RestApiResponse<CancelAllOpenOrdersResponse>>;
    /**
     * Cancel Multiple Orders
     *
     * Either `orderIdList` or `origClientOrderIdList ` must be sent.
     *
     * Weight: 1
     *
     * @summary Cancel Multiple Orders(TRADE)
     * @param {CancelMultipleOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelMultipleOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-Multiple-Orders Binance API Documentation}
     */
    cancelMultipleOrders(requestParameters: CancelMultipleOrdersRequest): Promise<RestApiResponse<CancelMultipleOrdersResponse>>;
    /**
     * Cancel an active order.
     *
     *
     * Either `orderId` or `origClientOrderId` must be sent.
     *
     * Weight: 1
     *
     * @summary Cancel Order (TRADE)
     * @param {CancelOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-Order Binance API Documentation}
     */
    cancelOrder(requestParameters: CancelOrderRequest$1): Promise<RestApiResponse<CancelOrderResponse$1>>;
    /**
     * Change user's initial leverage in the specific symbol market.
     * For Hedge Mode, LONG and SHORT positions of one symbol use the same initial leverage and share a total notional value.
     *
     * Weight: 1
     *
     * @summary Change Initial Leverage (TRADE)
     * @param {ChangeInitialLeverageRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ChangeInitialLeverageResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Change-Initial-Leverage Binance API Documentation}
     */
    changeInitialLeverage(requestParameters: ChangeInitialLeverageRequest): Promise<RestApiResponse<ChangeInitialLeverageResponse>>;
    /**
     * Change user's margin type in the specific symbol market.For Hedge Mode, LONG and SHORT positions of one symbol use the same margin type.
     * With ISOLATED margin type, margins of the LONG and SHORT positions are isolated from each other.
     *
     * Weight: 1
     *
     * @summary Change Margin Type (TRADE)
     * @param {ChangeMarginTypeRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ChangeMarginTypeResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Change-Margin-Type Binance API Documentation}
     */
    changeMarginType(requestParameters: ChangeMarginTypeRequest): Promise<RestApiResponse<ChangeMarginTypeResponse>>;
    /**
     * Change user's position mode (Hedge Mode or One-way Mode ) on ***EVERY symbol***
     *
     * Weight: 1
     *
     * @summary Change Position Mode(TRADE)
     * @param {ChangePositionModeRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ChangePositionModeResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Change-Position-Mode Binance API Documentation}
     */
    changePositionMode(requestParameters: ChangePositionModeRequest): Promise<RestApiResponse<ChangePositionModeResponse>>;
    /**
     * Get all open orders on a symbol. **Careful** when accessing this with no symbol.
     *
     * Weight: 1 for a single symbol, 40 for mutltiple symbols
     *
     * @summary Current All Open Orders (USER_DATA)
     * @param {CurrentAllOpenOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CurrentAllOpenOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Current-All-Open-Orders Binance API Documentation}
     */
    currentAllOpenOrders(requestParameters?: CurrentAllOpenOrdersRequest): Promise<RestApiResponse<CurrentAllOpenOrdersResponse>>;
    /**
     * Get order modification history
     *
     *
     * Either `orderId` or `origClientOrderId` must be sent, and the `orderId` will prevail if both are sent.
     * Order modify history longer than 3 month is not avaliable
     *
     * Weight: 1
     *
     * @summary Get Order Modify History (USER_DATA)
     * @param {GetOrderModifyHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetOrderModifyHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Get-Order-Modify-History Binance API Documentation}
     */
    getOrderModifyHistory(requestParameters: GetOrderModifyHistoryRequest): Promise<RestApiResponse<GetOrderModifyHistoryResponse>>;
    /**
     * Get position margin change history
     *
     * Weight: 1
     *
     * @summary Get Position Margin Change History(TRADE)
     * @param {GetPositionMarginChangeHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetPositionMarginChangeHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Get-Position-Margin-Change-History Binance API Documentation}
     */
    getPositionMarginChangeHistory(requestParameters: GetPositionMarginChangeHistoryRequest): Promise<RestApiResponse<GetPositionMarginChangeHistoryResponse>>;
    /**
     * Modify Isolated Position Margin
     *
     * Only for isolated symbol
     *
     * Weight: 1
     *
     * @summary Modify Isolated Position Margin(TRADE)
     * @param {ModifyIsolatedPositionMarginRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ModifyIsolatedPositionMarginResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin Binance API Documentation}
     */
    modifyIsolatedPositionMargin(requestParameters: ModifyIsolatedPositionMarginRequest): Promise<RestApiResponse<ModifyIsolatedPositionMarginResponse>>;
    /**
     * Modify Multiple Orders
     *
     * Parameter rules are same with `Modify Order`
     * Batch modify orders are processed concurrently, and the order of matching is not guaranteed.
     * The order of returned contents for batch modify orders is the same as the order of the order list.
     * One order can only be modfied for less than 10000 times
     *
     * Weight: 5
     *
     * @summary Modify Multiple Orders(TRADE)
     * @param {ModifyMultipleOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ModifyMultipleOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Multiple-Orders Binance API Documentation}
     */
    modifyMultipleOrders(requestParameters: ModifyMultipleOrdersRequest): Promise<RestApiResponse<ModifyMultipleOrdersResponse>>;
    /**
     * Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue
     *
     * Either `orderId` or `origClientOrderId` must be sent, and the `orderId` will prevail if both are sent.
     * Either `quantity` or `price` must be sent.
     * When the new `quantity` or `price` doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.
     * However the order will be cancelled by the amendment in the following situations:
     * when the order is in partially filled status and the new `quantity` <= `executedQty`
     * When the order is `GTX` and the new price will cause it to be executed immediately
     * One order can only be modfied for less than 10000 times
     * Modify order will set `selfTradePreventionMode` to `NONE`
     *
     * Weight: 1
     *
     * @summary Modify Order (TRADE)
     * @param {ModifyOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ModifyOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Order Binance API Documentation}
     */
    modifyOrder(requestParameters: ModifyOrderRequest$1): Promise<RestApiResponse<ModifyOrderResponse$1>>;
    /**
     * Send in a new order.
     *
     *
     * Order with type `STOP`,  parameter `timeInForce` can be sent ( default `GTC`).
     * Order with type `TAKE_PROFIT`,  parameter `timeInForce` can be sent ( default `GTC`).
     * Condition orders will be triggered when:
     *
     * If parameter`priceProtect`is sent as true:
     * when price reaches the `stopPrice` ，the difference rate between "MARK_PRICE" and "CONTRACT_PRICE" cannot be larger than the "triggerProtect" of the symbol
     * "triggerProtect" of a symbol can be got from `GET /dapi/v1/exchangeInfo`
     *
     * `STOP`, `STOP_MARKET`:
     * BUY: latest price ("MARK_PRICE" or "CONTRACT_PRICE") >= `stopPrice`
     * SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") <= `stopPrice`
     * `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`:
     * BUY: latest price ("MARK_PRICE" or "CONTRACT_PRICE") <= `stopPrice`
     * SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") >= `stopPrice`
     * `TRAILING_STOP_MARKET`:
     * BUY: the lowest price after order placed `<= `activationPrice`, and the latest price >`= the lowest price * (1 + `callbackRate`)
     * SELL: the highest price after order placed >= `activationPrice`, and the latest price <= the highest price * (1 - `callbackRate`)
     *
     * For `TRAILING_STOP_MARKET`, if you got such error code.
     * ``{"code": -2021, "msg": "Order would immediately trigger."}``
     * means that the parameters you send do not meet the following requirements:
     * BUY: `activationPrice` should be smaller than latest price.
     * SELL: `activationPrice` should be larger than latest price.
     *
     * If `newOrderRespType ` is sent as `RESULT` :
     * `MARKET` order: the final FILLED result of the order will be return directly.
     * `LIMIT` order with special `timeInForce`: the final status result of the order(FILLED or EXPIRED) will be returned directly.
     *
     * `STOP_MARKET`, `TAKE_PROFIT_MARKET` with `closePosition`=`true`:
     * Follow the same rules for condition orders.
     * If triggered,**close all** current long position( if `SELL`) or current short position( if `BUY`).
     * Cannot be used with `quantity` parameter
     * Cannot be used with `reduceOnly` parameter
     * In Hedge Mode,cannot be used with `BUY` orders in `LONG` position side. and cannot be used with `SELL` orders in `SHORT` position side
     * `selfTradePreventionMode` is only effective when `timeInForce` set to `IOC` or `GTC`.
     *
     * Weight: 1 on 1min order rate limit(X-MBX-ORDER-COUNT-1M)\
     * 0 on IP rate limit(x-mbx-used-weight-1m)
     *
     * @summary New Order (TRADE)
     * @param {NewOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<NewOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/New-Order Binance API Documentation}
     */
    newOrder(requestParameters: NewOrderRequest$1): Promise<RestApiResponse<NewOrderResponse$1>>;
    /**
     * Query position ADL quantile estimation
     *
     * Values update every 30s.
     * Values 0, 1, 2, 3, 4 shows the queue position and possibility of ADL from low to high.
     * For positions of the symbol are in One-way Mode or isolated margined in Hedge Mode, "LONG", "SHORT", and "BOTH" will be returned to show the positions' adl quantiles of different position sides.
     * If the positions of the symbol are crossed margined in Hedge Mode:
     * "HEDGE" as a sign will be returned instead of "BOTH";
     * A same value caculated on unrealized pnls on long and short sides' positions will be shown for "LONG" and "SHORT" when there are positions in both of long and short sides.
     *
     * Weight: 5
     *
     * @summary Position ADL Quantile Estimation(USER_DATA)
     * @param {PositionAdlQuantileEstimationRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<PositionAdlQuantileEstimationResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Position-ADL-Quantile-Estimation Binance API Documentation}
     */
    positionAdlQuantileEstimation(requestParameters?: PositionAdlQuantileEstimationRequest): Promise<RestApiResponse<PositionAdlQuantileEstimationResponse>>;
    /**
     * Get current account information.
     *
     * If neither `marginAsset` nor `pair` is sent, positions of all symbols with `TRADING` status will be returned.
     * for One-way Mode user, the response  will only show the "BOTH" positions
     * for Hedge Mode user, the response will show "BOTH", "LONG", and "SHORT" positions.
     * Please use with user data stream `ACCOUNT_UPDATE` to meet your timeliness and accuracy needs.
     *
     * Weight: 1
     *
     * @summary Position Information(USER_DATA)
     * @param {PositionInformationRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<PositionInformationResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Position-Information Binance API Documentation}
     */
    positionInformation(requestParameters?: PositionInformationRequest$1): Promise<RestApiResponse<PositionInformationResponse$1>>;
    /**
     * Query Current Open Order
     *
     * Either`orderId` or `origClientOrderId` must be sent
     * If the queried order has been filled or cancelled, the error message "Order does not exist" will be returned.
     *
     * Weight: 1
     *
     * @summary Query Current Open Order(USER_DATA)
     * @param {QueryCurrentOpenOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryCurrentOpenOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Query-Current-Open-Order Binance API Documentation}
     */
    queryCurrentOpenOrder(requestParameters: QueryCurrentOpenOrderRequest): Promise<RestApiResponse<QueryCurrentOpenOrderResponse>>;
    /**
     * Check an order's status.
     *
     * These orders will not be found:
     * order status is CANCELED or EXPIRED AND order has NO filled trade AND created time + 3 days < current time
     * order create time + 90 days < current time
     *
     *
     * Either `orderId` or `origClientOrderId` must be sent.
     *
     * Weight: 1
     *
     * @summary Query Order (USER_DATA)
     * @param {QueryOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Query-Order Binance API Documentation}
     */
    queryOrder(requestParameters: QueryOrderRequest$1): Promise<RestApiResponse<QueryOrderResponse$1>>;
    /**
     * User's Force Orders
     *
     * If "autoCloseType" is not sent, orders with both of the types will be returned
     * If "startTime" is not sent, data within 200 days before "endTime" can be queried
     *
     * Weight: 20 with symbol, 50 without symbol
     *
     * @summary User\'s Force Orders(USER_DATA)
     * @param {UsersForceOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<UsersForceOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Users-Force-Orders Binance API Documentation}
     */
    usersForceOrders(requestParameters?: UsersForceOrdersRequest): Promise<RestApiResponse<UsersForceOrdersResponse>>;
    /**
     * Close out a user data stream.
     *
     * Weight: 1
     *
     * @summary Close User Data Stream(USER_STREAM)
     * @returns {Promise<RestApiResponse<void>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/user-data-streams/Close-User-Data-Stream Binance API Documentation}
     */
    closeUserDataStream(): Promise<RestApiResponse<void>>;
    /**
     * Keepalive a user data stream to prevent a time out. User data streams will close after 60 minutes.
     *
     * Weight: 1
     *
     * @summary Keepalive User Data Stream (USER_STREAM)
     * @returns {Promise<RestApiResponse<void>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/user-data-streams/Keepalive-User-Data-Stream Binance API Documentation}
     */
    keepaliveUserDataStream(): Promise<RestApiResponse<void>>;
    /**
     * Start a new user data stream. The stream will close after 60 minutes unless a keepalive is sent. If the account has an active `listenKey`, that `listenKey` will be returned and its validity will be extended for 60 minutes.
     *
     * Weight: 1
     *
     * @summary Start User Data Stream (USER_STREAM)
     * @returns {Promise<RestApiResponse<StartUserDataStreamResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/user-data-streams/Start-User-Data-Stream Binance API Documentation}
     */
    startUserDataStream(): Promise<RestApiResponse<StartUserDataStreamResponse$1>>;
}

/**
 * Binance Public Derivatives Trading COIN Futures REST API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

type index$2_AccountInformationResponseAssetsInner = AccountInformationResponseAssetsInner;
type index$2_AccountInformationResponsePositionsInner = AccountInformationResponsePositionsInner;
type index$2_AccountTradeListRequest = AccountTradeListRequest;
type index$2_AccountTradeListResponse = AccountTradeListResponse;
type index$2_AccountTradeListResponseInner = AccountTradeListResponseInner;
type index$2_AllOrdersRequest = AllOrdersRequest;
type index$2_AllOrdersResponse = AllOrdersResponse;
type index$2_AllOrdersResponseInner = AllOrdersResponseInner;
type index$2_AutoCancelAllOpenOrdersRequest = AutoCancelAllOpenOrdersRequest;
type index$2_BadRequest = BadRequest;
type index$2_BasisContractTypeEnum = BasisContractTypeEnum;
type index$2_BasisPeriodEnum = BasisPeriodEnum;
type index$2_BasisRequest = BasisRequest;
type index$2_BasisResponse = BasisResponse;
type index$2_BasisResponseInner = BasisResponseInner;
type index$2_CancelAllOpenOrdersRequest = CancelAllOpenOrdersRequest;
type index$2_CancelAllOpenOrdersResponse = CancelAllOpenOrdersResponse;
type index$2_CancelMultipleOrdersRequest = CancelMultipleOrdersRequest;
type index$2_CancelMultipleOrdersResponse = CancelMultipleOrdersResponse;
type index$2_CancelMultipleOrdersResponseInner = CancelMultipleOrdersResponseInner;
type index$2_ChangeInitialLeverageRequest = ChangeInitialLeverageRequest;
type index$2_ChangeInitialLeverageResponse = ChangeInitialLeverageResponse;
type index$2_ChangeMarginTypeMarginTypeEnum = ChangeMarginTypeMarginTypeEnum;
type index$2_ChangeMarginTypeRequest = ChangeMarginTypeRequest;
type index$2_ChangeMarginTypeResponse = ChangeMarginTypeResponse;
type index$2_ChangePositionModeRequest = ChangePositionModeRequest;
type index$2_ChangePositionModeResponse = ChangePositionModeResponse;
type index$2_CheckServerTimeResponse = CheckServerTimeResponse;
type index$2_ClassicPortfolioMarginAccountInformationRequest = ClassicPortfolioMarginAccountInformationRequest;
type index$2_ClassicPortfolioMarginAccountInformationResponse = ClassicPortfolioMarginAccountInformationResponse;
type index$2_CompressedAggregateTradesListRequest = CompressedAggregateTradesListRequest;
type index$2_CompressedAggregateTradesListResponse = CompressedAggregateTradesListResponse;
type index$2_CompressedAggregateTradesListResponseInner = CompressedAggregateTradesListResponseInner;
type index$2_ContinuousContractKlineCandlestickDataContractTypeEnum = ContinuousContractKlineCandlestickDataContractTypeEnum;
type index$2_ContinuousContractKlineCandlestickDataIntervalEnum = ContinuousContractKlineCandlestickDataIntervalEnum;
type index$2_ContinuousContractKlineCandlestickDataRequest = ContinuousContractKlineCandlestickDataRequest;
type index$2_ContinuousContractKlineCandlestickDataResponse = ContinuousContractKlineCandlestickDataResponse;
type index$2_ContinuousContractKlineCandlestickDataResponseItem = ContinuousContractKlineCandlestickDataResponseItem;
type index$2_ContinuousContractKlineCandlestickDataResponseItemInner = ContinuousContractKlineCandlestickDataResponseItemInner;
type index$2_CurrentAllOpenOrdersRequest = CurrentAllOpenOrdersRequest;
type index$2_CurrentAllOpenOrdersResponse = CurrentAllOpenOrdersResponse;
type index$2_CurrentAllOpenOrdersResponseInner = CurrentAllOpenOrdersResponseInner;
type index$2_ExchangeInformationResponse = ExchangeInformationResponse;
type index$2_ExchangeInformationResponseRateLimitsInner = ExchangeInformationResponseRateLimitsInner;
type index$2_ExchangeInformationResponseSymbolsInner = ExchangeInformationResponseSymbolsInner;
type index$2_ExchangeInformationResponseSymbolsInnerFiltersInner = ExchangeInformationResponseSymbolsInnerFiltersInner;
type index$2_FuturesAccountBalanceResponseInner = FuturesAccountBalanceResponseInner;
type index$2_GetCurrentPositionModeRequest = GetCurrentPositionModeRequest;
type index$2_GetCurrentPositionModeResponse = GetCurrentPositionModeResponse;
type index$2_GetDownloadIdForFuturesOrderHistoryRequest = GetDownloadIdForFuturesOrderHistoryRequest;
type index$2_GetDownloadIdForFuturesOrderHistoryResponse = GetDownloadIdForFuturesOrderHistoryResponse;
type index$2_GetDownloadIdForFuturesTradeHistoryRequest = GetDownloadIdForFuturesTradeHistoryRequest;
type index$2_GetDownloadIdForFuturesTradeHistoryResponse = GetDownloadIdForFuturesTradeHistoryResponse;
type index$2_GetDownloadIdForFuturesTransactionHistoryRequest = GetDownloadIdForFuturesTransactionHistoryRequest;
type index$2_GetDownloadIdForFuturesTransactionHistoryResponse = GetDownloadIdForFuturesTransactionHistoryResponse;
type index$2_GetFundingRateHistoryOfPerpetualFuturesRequest = GetFundingRateHistoryOfPerpetualFuturesRequest;
type index$2_GetFundingRateHistoryOfPerpetualFuturesResponse = GetFundingRateHistoryOfPerpetualFuturesResponse;
type index$2_GetFundingRateHistoryOfPerpetualFuturesResponseInner = GetFundingRateHistoryOfPerpetualFuturesResponseInner;
type index$2_GetFundingRateInfoResponse = GetFundingRateInfoResponse;
type index$2_GetFundingRateInfoResponseInner = GetFundingRateInfoResponseInner;
type index$2_GetFuturesOrderHistoryDownloadLinkByIdRequest = GetFuturesOrderHistoryDownloadLinkByIdRequest;
type index$2_GetFuturesOrderHistoryDownloadLinkByIdResponse = GetFuturesOrderHistoryDownloadLinkByIdResponse;
type index$2_GetFuturesOrderHistoryDownloadLinkByIdResponse1 = GetFuturesOrderHistoryDownloadLinkByIdResponse1;
type index$2_GetFuturesOrderHistoryDownloadLinkByIdResponse2 = GetFuturesOrderHistoryDownloadLinkByIdResponse2;
type index$2_GetFuturesTradeDownloadLinkByIdRequest = GetFuturesTradeDownloadLinkByIdRequest;
type index$2_GetFuturesTradeDownloadLinkByIdResponse = GetFuturesTradeDownloadLinkByIdResponse;
type index$2_GetFuturesTradeDownloadLinkByIdResponse1 = GetFuturesTradeDownloadLinkByIdResponse1;
type index$2_GetFuturesTradeDownloadLinkByIdResponse2 = GetFuturesTradeDownloadLinkByIdResponse2;
type index$2_GetFuturesTransactionHistoryDownloadLinkByIdRequest = GetFuturesTransactionHistoryDownloadLinkByIdRequest;
type index$2_GetFuturesTransactionHistoryDownloadLinkByIdResponse = GetFuturesTransactionHistoryDownloadLinkByIdResponse;
type index$2_GetFuturesTransactionHistoryDownloadLinkByIdResponse1 = GetFuturesTransactionHistoryDownloadLinkByIdResponse1;
type index$2_GetFuturesTransactionHistoryDownloadLinkByIdResponse2 = GetFuturesTransactionHistoryDownloadLinkByIdResponse2;
type index$2_GetIncomeHistoryRequest = GetIncomeHistoryRequest;
type index$2_GetIncomeHistoryResponse = GetIncomeHistoryResponse;
type index$2_GetIncomeHistoryResponseInner = GetIncomeHistoryResponseInner;
type index$2_GetOrderModifyHistoryRequest = GetOrderModifyHistoryRequest;
type index$2_GetOrderModifyHistoryResponse = GetOrderModifyHistoryResponse;
type index$2_GetOrderModifyHistoryResponseInner = GetOrderModifyHistoryResponseInner;
type index$2_GetOrderModifyHistoryResponseInnerAmendment = GetOrderModifyHistoryResponseInnerAmendment;
type index$2_GetOrderModifyHistoryResponseInnerAmendmentOrigQty = GetOrderModifyHistoryResponseInnerAmendmentOrigQty;
type index$2_GetOrderModifyHistoryResponseInnerAmendmentPrice = GetOrderModifyHistoryResponseInnerAmendmentPrice;
type index$2_GetPositionMarginChangeHistoryRequest = GetPositionMarginChangeHistoryRequest;
type index$2_GetPositionMarginChangeHistoryResponse = GetPositionMarginChangeHistoryResponse;
type index$2_GetPositionMarginChangeHistoryResponseInner = GetPositionMarginChangeHistoryResponseInner;
type index$2_IndexPriceAndMarkPriceRequest = IndexPriceAndMarkPriceRequest;
type index$2_IndexPriceAndMarkPriceResponse = IndexPriceAndMarkPriceResponse;
type index$2_IndexPriceAndMarkPriceResponseInner = IndexPriceAndMarkPriceResponseInner;
type index$2_IndexPriceKlineCandlestickDataIntervalEnum = IndexPriceKlineCandlestickDataIntervalEnum;
type index$2_IndexPriceKlineCandlestickDataRequest = IndexPriceKlineCandlestickDataRequest;
type index$2_IndexPriceKlineCandlestickDataResponse = IndexPriceKlineCandlestickDataResponse;
type index$2_IndexPriceKlineCandlestickDataResponseItem = IndexPriceKlineCandlestickDataResponseItem;
type index$2_IndexPriceKlineCandlestickDataResponseItemInner = IndexPriceKlineCandlestickDataResponseItemInner;
type index$2_KlineCandlestickDataIntervalEnum = KlineCandlestickDataIntervalEnum;
type index$2_KlineCandlestickDataRequest = KlineCandlestickDataRequest;
type index$2_KlineCandlestickDataResponse = KlineCandlestickDataResponse;
type index$2_KlineCandlestickDataResponseItem = KlineCandlestickDataResponseItem;
type index$2_LongShortRatioPeriodEnum = LongShortRatioPeriodEnum;
type index$2_LongShortRatioRequest = LongShortRatioRequest;
type index$2_LongShortRatioResponse = LongShortRatioResponse;
type index$2_LongShortRatioResponseInner = LongShortRatioResponseInner;
type index$2_MarkPriceKlineCandlestickDataIntervalEnum = MarkPriceKlineCandlestickDataIntervalEnum;
type index$2_MarkPriceKlineCandlestickDataRequest = MarkPriceKlineCandlestickDataRequest;
type index$2_MarkPriceKlineCandlestickDataResponse = MarkPriceKlineCandlestickDataResponse;
type index$2_MarkPriceKlineCandlestickDataResponseItem = MarkPriceKlineCandlestickDataResponseItem;
type index$2_MarkPriceKlineCandlestickDataResponseItemInner = MarkPriceKlineCandlestickDataResponseItemInner;
type index$2_MarketDataApi = MarketDataApi;
declare const index$2_MarketDataApi: typeof MarketDataApi;
type index$2_MarketDataApiInterface = MarketDataApiInterface;
type index$2_ModifyIsolatedPositionMarginPositionSideEnum = ModifyIsolatedPositionMarginPositionSideEnum;
type index$2_ModifyIsolatedPositionMarginRequest = ModifyIsolatedPositionMarginRequest;
type index$2_ModifyIsolatedPositionMarginResponse = ModifyIsolatedPositionMarginResponse;
type index$2_ModifyIsolatedPositionMarginTypeEnum = ModifyIsolatedPositionMarginTypeEnum;
type index$2_ModifyMultipleOrdersBatchOrdersParameterInner = ModifyMultipleOrdersBatchOrdersParameterInner;
type index$2_ModifyMultipleOrdersBatchOrdersParameterInnerSideEnum = ModifyMultipleOrdersBatchOrdersParameterInnerSideEnum;
type index$2_ModifyMultipleOrdersRequest = ModifyMultipleOrdersRequest;
type index$2_ModifyMultipleOrdersResponse = ModifyMultipleOrdersResponse;
type index$2_ModifyMultipleOrdersResponseInner = ModifyMultipleOrdersResponseInner;
type index$2_NotionalBracketForPairRequest = NotionalBracketForPairRequest;
type index$2_NotionalBracketForPairResponse = NotionalBracketForPairResponse;
type index$2_NotionalBracketForPairResponseInner = NotionalBracketForPairResponseInner;
type index$2_NotionalBracketForPairResponseInnerBracketsInner = NotionalBracketForPairResponseInnerBracketsInner;
type index$2_NotionalBracketForSymbolRequest = NotionalBracketForSymbolRequest;
type index$2_NotionalBracketForSymbolResponse = NotionalBracketForSymbolResponse;
type index$2_NotionalBracketForSymbolResponseInner = NotionalBracketForSymbolResponseInner;
type index$2_OldTradesLookupRequest = OldTradesLookupRequest;
type index$2_OldTradesLookupResponse = OldTradesLookupResponse;
type index$2_OldTradesLookupResponseInner = OldTradesLookupResponseInner;
type index$2_OpenInterestRequest = OpenInterestRequest;
type index$2_OpenInterestResponse = OpenInterestResponse;
type index$2_OpenInterestStatisticsContractTypeEnum = OpenInterestStatisticsContractTypeEnum;
type index$2_OpenInterestStatisticsPeriodEnum = OpenInterestStatisticsPeriodEnum;
type index$2_OpenInterestStatisticsRequest = OpenInterestStatisticsRequest;
type index$2_OpenInterestStatisticsResponse = OpenInterestStatisticsResponse;
type index$2_OpenInterestStatisticsResponseInner = OpenInterestStatisticsResponseInner;
type index$2_OrderBookRequest = OrderBookRequest;
type index$2_OrderBookResponse = OrderBookResponse;
type index$2_OrderBookResponseAsksItem = OrderBookResponseAsksItem;
type index$2_OrderBookResponseBidsItem = OrderBookResponseBidsItem;
type index$2_PortfolioMarginEndpointsApi = PortfolioMarginEndpointsApi;
declare const index$2_PortfolioMarginEndpointsApi: typeof PortfolioMarginEndpointsApi;
type index$2_PortfolioMarginEndpointsApiInterface = PortfolioMarginEndpointsApiInterface;
type index$2_PositionAdlQuantileEstimationRequest = PositionAdlQuantileEstimationRequest;
type index$2_PositionAdlQuantileEstimationResponse = PositionAdlQuantileEstimationResponse;
type index$2_PositionAdlQuantileEstimationResponseInner = PositionAdlQuantileEstimationResponseInner;
type index$2_PositionAdlQuantileEstimationResponseInnerAdlQuantile = PositionAdlQuantileEstimationResponseInnerAdlQuantile;
type index$2_PositionInformationResponseInner = PositionInformationResponseInner;
type index$2_PremiumIndexKlineDataIntervalEnum = PremiumIndexKlineDataIntervalEnum;
type index$2_PremiumIndexKlineDataRequest = PremiumIndexKlineDataRequest;
type index$2_PremiumIndexKlineDataResponse = PremiumIndexKlineDataResponse;
type index$2_PremiumIndexKlineDataResponseItem = PremiumIndexKlineDataResponseItem;
type index$2_PremiumIndexKlineDataResponseItemInner = PremiumIndexKlineDataResponseItemInner;
type index$2_QueryCurrentOpenOrderRequest = QueryCurrentOpenOrderRequest;
type index$2_QueryCurrentOpenOrderResponse = QueryCurrentOpenOrderResponse;
type index$2_QueryIndexPriceConstituentsRequest = QueryIndexPriceConstituentsRequest;
type index$2_QueryIndexPriceConstituentsResponse = QueryIndexPriceConstituentsResponse;
type index$2_QueryIndexPriceConstituentsResponseConstituentsInner = QueryIndexPriceConstituentsResponseConstituentsInner;
type index$2_RecentTradesListRequest = RecentTradesListRequest;
type index$2_RecentTradesListResponse = RecentTradesListResponse;
type index$2_RecentTradesListResponseInner = RecentTradesListResponseInner;
type index$2_RestAPI = RestAPI;
declare const index$2_RestAPI: typeof RestAPI;
type index$2_SymbolOrderBookTickerRequest = SymbolOrderBookTickerRequest;
type index$2_SymbolOrderBookTickerResponse = SymbolOrderBookTickerResponse;
type index$2_SymbolOrderBookTickerResponseInner = SymbolOrderBookTickerResponseInner;
type index$2_SymbolPriceTickerRequest = SymbolPriceTickerRequest;
type index$2_SymbolPriceTickerResponse = SymbolPriceTickerResponse;
type index$2_SymbolPriceTickerResponseInner = SymbolPriceTickerResponseInner;
type index$2_TakerBuySellVolumeContractTypeEnum = TakerBuySellVolumeContractTypeEnum;
type index$2_TakerBuySellVolumePeriodEnum = TakerBuySellVolumePeriodEnum;
type index$2_TakerBuySellVolumeRequest = TakerBuySellVolumeRequest;
type index$2_TakerBuySellVolumeResponse = TakerBuySellVolumeResponse;
type index$2_TakerBuySellVolumeResponseInner = TakerBuySellVolumeResponseInner;
type index$2_Ticker24hrPriceChangeStatisticsRequest = Ticker24hrPriceChangeStatisticsRequest;
type index$2_Ticker24hrPriceChangeStatisticsResponse = Ticker24hrPriceChangeStatisticsResponse;
type index$2_Ticker24hrPriceChangeStatisticsResponseInner = Ticker24hrPriceChangeStatisticsResponseInner;
type index$2_TopTraderLongShortRatioAccountsPeriodEnum = TopTraderLongShortRatioAccountsPeriodEnum;
type index$2_TopTraderLongShortRatioAccountsRequest = TopTraderLongShortRatioAccountsRequest;
type index$2_TopTraderLongShortRatioAccountsResponse = TopTraderLongShortRatioAccountsResponse;
type index$2_TopTraderLongShortRatioAccountsResponseInner = TopTraderLongShortRatioAccountsResponseInner;
type index$2_TopTraderLongShortRatioPositionsPeriodEnum = TopTraderLongShortRatioPositionsPeriodEnum;
type index$2_TopTraderLongShortRatioPositionsRequest = TopTraderLongShortRatioPositionsRequest;
type index$2_TopTraderLongShortRatioPositionsResponse = TopTraderLongShortRatioPositionsResponse;
type index$2_TopTraderLongShortRatioPositionsResponseInner = TopTraderLongShortRatioPositionsResponseInner;
type index$2_UserCommissionRateRequest = UserCommissionRateRequest;
type index$2_UserCommissionRateResponse = UserCommissionRateResponse;
type index$2_UsersForceOrdersAutoCloseTypeEnum = UsersForceOrdersAutoCloseTypeEnum;
type index$2_UsersForceOrdersRequest = UsersForceOrdersRequest;
type index$2_UsersForceOrdersResponse = UsersForceOrdersResponse;
type index$2_UsersForceOrdersResponseInner = UsersForceOrdersResponseInner;
declare namespace index$2 {
  export {
    AccountApi$1 as AccountApi,
    AccountApiInterface$1 as AccountApiInterface,
    AccountInformationRequest$1 as AccountInformationRequest,
    AccountInformationResponse$1 as AccountInformationResponse,
    index$2_AccountInformationResponseAssetsInner as AccountInformationResponseAssetsInner,
    index$2_AccountInformationResponsePositionsInner as AccountInformationResponsePositionsInner,
    index$2_AccountTradeListRequest as AccountTradeListRequest,
    index$2_AccountTradeListResponse as AccountTradeListResponse,
    index$2_AccountTradeListResponseInner as AccountTradeListResponseInner,
    index$2_AllOrdersRequest as AllOrdersRequest,
    index$2_AllOrdersResponse as AllOrdersResponse,
    index$2_AllOrdersResponseInner as AllOrdersResponseInner,
    index$2_AutoCancelAllOpenOrdersRequest as AutoCancelAllOpenOrdersRequest,
    index$2_BadRequest as BadRequest,
    index$2_BasisContractTypeEnum as BasisContractTypeEnum,
    index$2_BasisPeriodEnum as BasisPeriodEnum,
    index$2_BasisRequest as BasisRequest,
    index$2_BasisResponse as BasisResponse,
    index$2_BasisResponseInner as BasisResponseInner,
    index$2_CancelAllOpenOrdersRequest as CancelAllOpenOrdersRequest,
    index$2_CancelAllOpenOrdersResponse as CancelAllOpenOrdersResponse,
    index$2_CancelMultipleOrdersRequest as CancelMultipleOrdersRequest,
    index$2_CancelMultipleOrdersResponse as CancelMultipleOrdersResponse,
    index$2_CancelMultipleOrdersResponseInner as CancelMultipleOrdersResponseInner,
    CancelOrderRequest$1 as CancelOrderRequest,
    CancelOrderResponse$1 as CancelOrderResponse,
    index$2_ChangeInitialLeverageRequest as ChangeInitialLeverageRequest,
    index$2_ChangeInitialLeverageResponse as ChangeInitialLeverageResponse,
    index$2_ChangeMarginTypeMarginTypeEnum as ChangeMarginTypeMarginTypeEnum,
    index$2_ChangeMarginTypeRequest as ChangeMarginTypeRequest,
    index$2_ChangeMarginTypeResponse as ChangeMarginTypeResponse,
    index$2_ChangePositionModeRequest as ChangePositionModeRequest,
    index$2_ChangePositionModeResponse as ChangePositionModeResponse,
    index$2_CheckServerTimeResponse as CheckServerTimeResponse,
    index$2_ClassicPortfolioMarginAccountInformationRequest as ClassicPortfolioMarginAccountInformationRequest,
    index$2_ClassicPortfolioMarginAccountInformationResponse as ClassicPortfolioMarginAccountInformationResponse,
    index$2_CompressedAggregateTradesListRequest as CompressedAggregateTradesListRequest,
    index$2_CompressedAggregateTradesListResponse as CompressedAggregateTradesListResponse,
    index$2_CompressedAggregateTradesListResponseInner as CompressedAggregateTradesListResponseInner,
    index$2_ContinuousContractKlineCandlestickDataContractTypeEnum as ContinuousContractKlineCandlestickDataContractTypeEnum,
    index$2_ContinuousContractKlineCandlestickDataIntervalEnum as ContinuousContractKlineCandlestickDataIntervalEnum,
    index$2_ContinuousContractKlineCandlestickDataRequest as ContinuousContractKlineCandlestickDataRequest,
    index$2_ContinuousContractKlineCandlestickDataResponse as ContinuousContractKlineCandlestickDataResponse,
    index$2_ContinuousContractKlineCandlestickDataResponseItem as ContinuousContractKlineCandlestickDataResponseItem,
    index$2_ContinuousContractKlineCandlestickDataResponseItemInner as ContinuousContractKlineCandlestickDataResponseItemInner,
    index$2_CurrentAllOpenOrdersRequest as CurrentAllOpenOrdersRequest,
    index$2_CurrentAllOpenOrdersResponse as CurrentAllOpenOrdersResponse,
    index$2_CurrentAllOpenOrdersResponseInner as CurrentAllOpenOrdersResponseInner,
    index$2_ExchangeInformationResponse as ExchangeInformationResponse,
    index$2_ExchangeInformationResponseRateLimitsInner as ExchangeInformationResponseRateLimitsInner,
    index$2_ExchangeInformationResponseSymbolsInner as ExchangeInformationResponseSymbolsInner,
    index$2_ExchangeInformationResponseSymbolsInnerFiltersInner as ExchangeInformationResponseSymbolsInnerFiltersInner,
    FuturesAccountBalanceRequest$1 as FuturesAccountBalanceRequest,
    FuturesAccountBalanceResponse$1 as FuturesAccountBalanceResponse,
    index$2_FuturesAccountBalanceResponseInner as FuturesAccountBalanceResponseInner,
    index$2_GetCurrentPositionModeRequest as GetCurrentPositionModeRequest,
    index$2_GetCurrentPositionModeResponse as GetCurrentPositionModeResponse,
    index$2_GetDownloadIdForFuturesOrderHistoryRequest as GetDownloadIdForFuturesOrderHistoryRequest,
    index$2_GetDownloadIdForFuturesOrderHistoryResponse as GetDownloadIdForFuturesOrderHistoryResponse,
    index$2_GetDownloadIdForFuturesTradeHistoryRequest as GetDownloadIdForFuturesTradeHistoryRequest,
    index$2_GetDownloadIdForFuturesTradeHistoryResponse as GetDownloadIdForFuturesTradeHistoryResponse,
    index$2_GetDownloadIdForFuturesTransactionHistoryRequest as GetDownloadIdForFuturesTransactionHistoryRequest,
    index$2_GetDownloadIdForFuturesTransactionHistoryResponse as GetDownloadIdForFuturesTransactionHistoryResponse,
    index$2_GetFundingRateHistoryOfPerpetualFuturesRequest as GetFundingRateHistoryOfPerpetualFuturesRequest,
    index$2_GetFundingRateHistoryOfPerpetualFuturesResponse as GetFundingRateHistoryOfPerpetualFuturesResponse,
    index$2_GetFundingRateHistoryOfPerpetualFuturesResponseInner as GetFundingRateHistoryOfPerpetualFuturesResponseInner,
    index$2_GetFundingRateInfoResponse as GetFundingRateInfoResponse,
    index$2_GetFundingRateInfoResponseInner as GetFundingRateInfoResponseInner,
    index$2_GetFuturesOrderHistoryDownloadLinkByIdRequest as GetFuturesOrderHistoryDownloadLinkByIdRequest,
    index$2_GetFuturesOrderHistoryDownloadLinkByIdResponse as GetFuturesOrderHistoryDownloadLinkByIdResponse,
    index$2_GetFuturesOrderHistoryDownloadLinkByIdResponse1 as GetFuturesOrderHistoryDownloadLinkByIdResponse1,
    index$2_GetFuturesOrderHistoryDownloadLinkByIdResponse2 as GetFuturesOrderHistoryDownloadLinkByIdResponse2,
    index$2_GetFuturesTradeDownloadLinkByIdRequest as GetFuturesTradeDownloadLinkByIdRequest,
    index$2_GetFuturesTradeDownloadLinkByIdResponse as GetFuturesTradeDownloadLinkByIdResponse,
    index$2_GetFuturesTradeDownloadLinkByIdResponse1 as GetFuturesTradeDownloadLinkByIdResponse1,
    index$2_GetFuturesTradeDownloadLinkByIdResponse2 as GetFuturesTradeDownloadLinkByIdResponse2,
    index$2_GetFuturesTransactionHistoryDownloadLinkByIdRequest as GetFuturesTransactionHistoryDownloadLinkByIdRequest,
    index$2_GetFuturesTransactionHistoryDownloadLinkByIdResponse as GetFuturesTransactionHistoryDownloadLinkByIdResponse,
    index$2_GetFuturesTransactionHistoryDownloadLinkByIdResponse1 as GetFuturesTransactionHistoryDownloadLinkByIdResponse1,
    index$2_GetFuturesTransactionHistoryDownloadLinkByIdResponse2 as GetFuturesTransactionHistoryDownloadLinkByIdResponse2,
    index$2_GetIncomeHistoryRequest as GetIncomeHistoryRequest,
    index$2_GetIncomeHistoryResponse as GetIncomeHistoryResponse,
    index$2_GetIncomeHistoryResponseInner as GetIncomeHistoryResponseInner,
    index$2_GetOrderModifyHistoryRequest as GetOrderModifyHistoryRequest,
    index$2_GetOrderModifyHistoryResponse as GetOrderModifyHistoryResponse,
    index$2_GetOrderModifyHistoryResponseInner as GetOrderModifyHistoryResponseInner,
    index$2_GetOrderModifyHistoryResponseInnerAmendment as GetOrderModifyHistoryResponseInnerAmendment,
    index$2_GetOrderModifyHistoryResponseInnerAmendmentOrigQty as GetOrderModifyHistoryResponseInnerAmendmentOrigQty,
    index$2_GetOrderModifyHistoryResponseInnerAmendmentPrice as GetOrderModifyHistoryResponseInnerAmendmentPrice,
    index$2_GetPositionMarginChangeHistoryRequest as GetPositionMarginChangeHistoryRequest,
    index$2_GetPositionMarginChangeHistoryResponse as GetPositionMarginChangeHistoryResponse,
    index$2_GetPositionMarginChangeHistoryResponseInner as GetPositionMarginChangeHistoryResponseInner,
    index$2_IndexPriceAndMarkPriceRequest as IndexPriceAndMarkPriceRequest,
    index$2_IndexPriceAndMarkPriceResponse as IndexPriceAndMarkPriceResponse,
    index$2_IndexPriceAndMarkPriceResponseInner as IndexPriceAndMarkPriceResponseInner,
    index$2_IndexPriceKlineCandlestickDataIntervalEnum as IndexPriceKlineCandlestickDataIntervalEnum,
    index$2_IndexPriceKlineCandlestickDataRequest as IndexPriceKlineCandlestickDataRequest,
    index$2_IndexPriceKlineCandlestickDataResponse as IndexPriceKlineCandlestickDataResponse,
    index$2_IndexPriceKlineCandlestickDataResponseItem as IndexPriceKlineCandlestickDataResponseItem,
    index$2_IndexPriceKlineCandlestickDataResponseItemInner as IndexPriceKlineCandlestickDataResponseItemInner,
    index$2_KlineCandlestickDataIntervalEnum as KlineCandlestickDataIntervalEnum,
    index$2_KlineCandlestickDataRequest as KlineCandlestickDataRequest,
    index$2_KlineCandlestickDataResponse as KlineCandlestickDataResponse,
    index$2_KlineCandlestickDataResponseItem as KlineCandlestickDataResponseItem,
    index$2_LongShortRatioPeriodEnum as LongShortRatioPeriodEnum,
    index$2_LongShortRatioRequest as LongShortRatioRequest,
    index$2_LongShortRatioResponse as LongShortRatioResponse,
    index$2_LongShortRatioResponseInner as LongShortRatioResponseInner,
    index$2_MarkPriceKlineCandlestickDataIntervalEnum as MarkPriceKlineCandlestickDataIntervalEnum,
    index$2_MarkPriceKlineCandlestickDataRequest as MarkPriceKlineCandlestickDataRequest,
    index$2_MarkPriceKlineCandlestickDataResponse as MarkPriceKlineCandlestickDataResponse,
    index$2_MarkPriceKlineCandlestickDataResponseItem as MarkPriceKlineCandlestickDataResponseItem,
    index$2_MarkPriceKlineCandlestickDataResponseItemInner as MarkPriceKlineCandlestickDataResponseItemInner,
    index$2_MarketDataApi as MarketDataApi,
    index$2_MarketDataApiInterface as MarketDataApiInterface,
    index$2_ModifyIsolatedPositionMarginPositionSideEnum as ModifyIsolatedPositionMarginPositionSideEnum,
    index$2_ModifyIsolatedPositionMarginRequest as ModifyIsolatedPositionMarginRequest,
    index$2_ModifyIsolatedPositionMarginResponse as ModifyIsolatedPositionMarginResponse,
    index$2_ModifyIsolatedPositionMarginTypeEnum as ModifyIsolatedPositionMarginTypeEnum,
    index$2_ModifyMultipleOrdersBatchOrdersParameterInner as ModifyMultipleOrdersBatchOrdersParameterInner,
    index$2_ModifyMultipleOrdersBatchOrdersParameterInnerSideEnum as ModifyMultipleOrdersBatchOrdersParameterInnerSideEnum,
    index$2_ModifyMultipleOrdersRequest as ModifyMultipleOrdersRequest,
    index$2_ModifyMultipleOrdersResponse as ModifyMultipleOrdersResponse,
    index$2_ModifyMultipleOrdersResponseInner as ModifyMultipleOrdersResponseInner,
    ModifyOrderPriceMatchEnum$1 as ModifyOrderPriceMatchEnum,
    ModifyOrderRequest$1 as ModifyOrderRequest,
    ModifyOrderResponse$1 as ModifyOrderResponse,
    ModifyOrderSideEnum$1 as ModifyOrderSideEnum,
    NewOrderNewOrderRespTypeEnum$1 as NewOrderNewOrderRespTypeEnum,
    NewOrderPositionSideEnum$1 as NewOrderPositionSideEnum,
    NewOrderPriceMatchEnum$1 as NewOrderPriceMatchEnum,
    NewOrderRequest$1 as NewOrderRequest,
    NewOrderResponse$1 as NewOrderResponse,
    NewOrderSelfTradePreventionModeEnum$1 as NewOrderSelfTradePreventionModeEnum,
    NewOrderSideEnum$1 as NewOrderSideEnum,
    NewOrderTimeInForceEnum$1 as NewOrderTimeInForceEnum,
    NewOrderTypeEnum$1 as NewOrderTypeEnum,
    NewOrderWorkingTypeEnum$1 as NewOrderWorkingTypeEnum,
    index$2_NotionalBracketForPairRequest as NotionalBracketForPairRequest,
    index$2_NotionalBracketForPairResponse as NotionalBracketForPairResponse,
    index$2_NotionalBracketForPairResponseInner as NotionalBracketForPairResponseInner,
    index$2_NotionalBracketForPairResponseInnerBracketsInner as NotionalBracketForPairResponseInnerBracketsInner,
    index$2_NotionalBracketForSymbolRequest as NotionalBracketForSymbolRequest,
    index$2_NotionalBracketForSymbolResponse as NotionalBracketForSymbolResponse,
    index$2_NotionalBracketForSymbolResponseInner as NotionalBracketForSymbolResponseInner,
    index$2_OldTradesLookupRequest as OldTradesLookupRequest,
    index$2_OldTradesLookupResponse as OldTradesLookupResponse,
    index$2_OldTradesLookupResponseInner as OldTradesLookupResponseInner,
    index$2_OpenInterestRequest as OpenInterestRequest,
    index$2_OpenInterestResponse as OpenInterestResponse,
    index$2_OpenInterestStatisticsContractTypeEnum as OpenInterestStatisticsContractTypeEnum,
    index$2_OpenInterestStatisticsPeriodEnum as OpenInterestStatisticsPeriodEnum,
    index$2_OpenInterestStatisticsRequest as OpenInterestStatisticsRequest,
    index$2_OpenInterestStatisticsResponse as OpenInterestStatisticsResponse,
    index$2_OpenInterestStatisticsResponseInner as OpenInterestStatisticsResponseInner,
    index$2_OrderBookRequest as OrderBookRequest,
    index$2_OrderBookResponse as OrderBookResponse,
    index$2_OrderBookResponseAsksItem as OrderBookResponseAsksItem,
    index$2_OrderBookResponseBidsItem as OrderBookResponseBidsItem,
    index$2_PortfolioMarginEndpointsApi as PortfolioMarginEndpointsApi,
    index$2_PortfolioMarginEndpointsApiInterface as PortfolioMarginEndpointsApiInterface,
    index$2_PositionAdlQuantileEstimationRequest as PositionAdlQuantileEstimationRequest,
    index$2_PositionAdlQuantileEstimationResponse as PositionAdlQuantileEstimationResponse,
    index$2_PositionAdlQuantileEstimationResponseInner as PositionAdlQuantileEstimationResponseInner,
    index$2_PositionAdlQuantileEstimationResponseInnerAdlQuantile as PositionAdlQuantileEstimationResponseInnerAdlQuantile,
    PositionInformationRequest$1 as PositionInformationRequest,
    PositionInformationResponse$1 as PositionInformationResponse,
    index$2_PositionInformationResponseInner as PositionInformationResponseInner,
    index$2_PremiumIndexKlineDataIntervalEnum as PremiumIndexKlineDataIntervalEnum,
    index$2_PremiumIndexKlineDataRequest as PremiumIndexKlineDataRequest,
    index$2_PremiumIndexKlineDataResponse as PremiumIndexKlineDataResponse,
    index$2_PremiumIndexKlineDataResponseItem as PremiumIndexKlineDataResponseItem,
    index$2_PremiumIndexKlineDataResponseItemInner as PremiumIndexKlineDataResponseItemInner,
    index$2_QueryCurrentOpenOrderRequest as QueryCurrentOpenOrderRequest,
    index$2_QueryCurrentOpenOrderResponse as QueryCurrentOpenOrderResponse,
    index$2_QueryIndexPriceConstituentsRequest as QueryIndexPriceConstituentsRequest,
    index$2_QueryIndexPriceConstituentsResponse as QueryIndexPriceConstituentsResponse,
    index$2_QueryIndexPriceConstituentsResponseConstituentsInner as QueryIndexPriceConstituentsResponseConstituentsInner,
    QueryOrderRequest$1 as QueryOrderRequest,
    QueryOrderResponse$1 as QueryOrderResponse,
    index$2_RecentTradesListRequest as RecentTradesListRequest,
    index$2_RecentTradesListResponse as RecentTradesListResponse,
    index$2_RecentTradesListResponseInner as RecentTradesListResponseInner,
    index$2_RestAPI as RestAPI,
    StartUserDataStreamResponse$1 as StartUserDataStreamResponse,
    index$2_SymbolOrderBookTickerRequest as SymbolOrderBookTickerRequest,
    index$2_SymbolOrderBookTickerResponse as SymbolOrderBookTickerResponse,
    index$2_SymbolOrderBookTickerResponseInner as SymbolOrderBookTickerResponseInner,
    index$2_SymbolPriceTickerRequest as SymbolPriceTickerRequest,
    index$2_SymbolPriceTickerResponse as SymbolPriceTickerResponse,
    index$2_SymbolPriceTickerResponseInner as SymbolPriceTickerResponseInner,
    index$2_TakerBuySellVolumeContractTypeEnum as TakerBuySellVolumeContractTypeEnum,
    index$2_TakerBuySellVolumePeriodEnum as TakerBuySellVolumePeriodEnum,
    index$2_TakerBuySellVolumeRequest as TakerBuySellVolumeRequest,
    index$2_TakerBuySellVolumeResponse as TakerBuySellVolumeResponse,
    index$2_TakerBuySellVolumeResponseInner as TakerBuySellVolumeResponseInner,
    index$2_Ticker24hrPriceChangeStatisticsRequest as Ticker24hrPriceChangeStatisticsRequest,
    index$2_Ticker24hrPriceChangeStatisticsResponse as Ticker24hrPriceChangeStatisticsResponse,
    index$2_Ticker24hrPriceChangeStatisticsResponseInner as Ticker24hrPriceChangeStatisticsResponseInner,
    index$2_TopTraderLongShortRatioAccountsPeriodEnum as TopTraderLongShortRatioAccountsPeriodEnum,
    index$2_TopTraderLongShortRatioAccountsRequest as TopTraderLongShortRatioAccountsRequest,
    index$2_TopTraderLongShortRatioAccountsResponse as TopTraderLongShortRatioAccountsResponse,
    index$2_TopTraderLongShortRatioAccountsResponseInner as TopTraderLongShortRatioAccountsResponseInner,
    index$2_TopTraderLongShortRatioPositionsPeriodEnum as TopTraderLongShortRatioPositionsPeriodEnum,
    index$2_TopTraderLongShortRatioPositionsRequest as TopTraderLongShortRatioPositionsRequest,
    index$2_TopTraderLongShortRatioPositionsResponse as TopTraderLongShortRatioPositionsResponse,
    index$2_TopTraderLongShortRatioPositionsResponseInner as TopTraderLongShortRatioPositionsResponseInner,
    TradeApi$1 as TradeApi,
    TradeApiInterface$1 as TradeApiInterface,
    index$2_UserCommissionRateRequest as UserCommissionRateRequest,
    index$2_UserCommissionRateResponse as UserCommissionRateResponse,
    UserDataStreamsApi$1 as UserDataStreamsApi,
    UserDataStreamsApiInterface$1 as UserDataStreamsApiInterface,
    index$2_UsersForceOrdersAutoCloseTypeEnum as UsersForceOrdersAutoCloseTypeEnum,
    index$2_UsersForceOrdersRequest as UsersForceOrdersRequest,
    index$2_UsersForceOrdersResponse as UsersForceOrdersResponse,
    index$2_UsersForceOrdersResponseInner as UsersForceOrdersResponseInner,
  };
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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 AccountInformationResponseRateLimitsInner
 */
interface AccountInformationResponseRateLimitsInner {
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseRateLimitsInner
     */
    rateLimitType?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseRateLimitsInner
     */
    interval?: string;
    /**
     *
     * @type {number}
     * @memberof AccountInformationResponseRateLimitsInner
     */
    intervalNum?: number;
    /**
     *
     * @type {number}
     * @memberof AccountInformationResponseRateLimitsInner
     */
    limit?: number;
    /**
     *
     * @type {number}
     * @memberof AccountInformationResponseRateLimitsInner
     */
    count?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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 AccountInformationResponseResultAssetsInner
 */
interface AccountInformationResponseResultAssetsInner {
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultAssetsInner
     */
    asset?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultAssetsInner
     */
    walletBalance?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultAssetsInner
     */
    unrealizedProfit?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultAssetsInner
     */
    marginBalance?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultAssetsInner
     */
    maintMargin?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultAssetsInner
     */
    initialMargin?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultAssetsInner
     */
    positionInitialMargin?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultAssetsInner
     */
    openOrderInitialMargin?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultAssetsInner
     */
    maxWithdrawAmount?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultAssetsInner
     */
    crossWalletBalance?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultAssetsInner
     */
    crossUnPnl?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultAssetsInner
     */
    availableBalance?: string;
    /**
     *
     * @type {number}
     * @memberof AccountInformationResponseResultAssetsInner
     */
    updateTime?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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 AccountInformationResponseResultPositionsInner
 */
interface AccountInformationResponseResultPositionsInner {
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultPositionsInner
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultPositionsInner
     */
    initialMargin?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultPositionsInner
     */
    maintMargin?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultPositionsInner
     */
    unrealizedProfit?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultPositionsInner
     */
    positionInitialMargin?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultPositionsInner
     */
    openOrderInitialMargin?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultPositionsInner
     */
    leverage?: string;
    /**
     *
     * @type {boolean}
     * @memberof AccountInformationResponseResultPositionsInner
     */
    isolated?: boolean;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultPositionsInner
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultPositionsInner
     */
    entryPrice?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultPositionsInner
     */
    maxQty?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultPositionsInner
     */
    notionalValue?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultPositionsInner
     */
    isolatedWallet?: string;
    /**
     *
     * @type {number}
     * @memberof AccountInformationResponseResultPositionsInner
     */
    updateTime?: number;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultPositionsInner
     */
    positionAmt?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponseResultPositionsInner
     */
    breakEvenPrice?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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 AccountInformationResponseResult
 */
interface AccountInformationResponseResult {
    /**
     *
     * @type {number}
     * @memberof AccountInformationResponseResult
     */
    feeTier?: number;
    /**
     *
     * @type {boolean}
     * @memberof AccountInformationResponseResult
     */
    canTrade?: boolean;
    /**
     *
     * @type {boolean}
     * @memberof AccountInformationResponseResult
     */
    canDeposit?: boolean;
    /**
     *
     * @type {boolean}
     * @memberof AccountInformationResponseResult
     */
    canWithdraw?: boolean;
    /**
     *
     * @type {number}
     * @memberof AccountInformationResponseResult
     */
    updateTime?: number;
    /**
     *
     * @type {Array<AccountInformationResponseResultAssetsInner>}
     * @memberof AccountInformationResponseResult
     */
    assets?: Array<AccountInformationResponseResultAssetsInner>;
    /**
     *
     * @type {Array<AccountInformationResponseResultPositionsInner>}
     * @memberof AccountInformationResponseResult
     */
    positions?: Array<AccountInformationResponseResultPositionsInner>;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface AccountInformationResponse
 */
interface AccountInformationResponse {
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponse
     */
    id?: string;
    /**
     *
     * @type {number}
     * @memberof AccountInformationResponse
     */
    status?: number;
    /**
     *
     * @type {AccountInformationResponseResult}
     * @memberof AccountInformationResponse
     */
    result?: AccountInformationResponseResult;
    /**
     *
     * @type {Array<AccountInformationResponseRateLimitsInner>}
     * @memberof AccountInformationResponse
     */
    rateLimits?: Array<AccountInformationResponseRateLimitsInner>;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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 CancelOrderResponseRateLimitsInner
 */
interface CancelOrderResponseRateLimitsInner {
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponseRateLimitsInner
     */
    rateLimitType?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponseRateLimitsInner
     */
    interval?: string;
    /**
     *
     * @type {number}
     * @memberof CancelOrderResponseRateLimitsInner
     */
    intervalNum?: number;
    /**
     *
     * @type {number}
     * @memberof CancelOrderResponseRateLimitsInner
     */
    limit?: number;
    /**
     *
     * @type {number}
     * @memberof CancelOrderResponseRateLimitsInner
     */
    count?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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 CancelOrderResponseResult
 */
interface CancelOrderResponseResult {
    /**
     *
     * @type {number}
     * @memberof CancelOrderResponseResult
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponseResult
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponseResult
     */
    pair?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponseResult
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponseResult
     */
    clientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponseResult
     */
    price?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponseResult
     */
    avgPrice?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponseResult
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponseResult
     */
    executedQty?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponseResult
     */
    cumQty?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponseResult
     */
    cumBase?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponseResult
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponseResult
     */
    type?: string;
    /**
     *
     * @type {boolean}
     * @memberof CancelOrderResponseResult
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {boolean}
     * @memberof CancelOrderResponseResult
     */
    closePosition?: boolean;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponseResult
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponseResult
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponseResult
     */
    stopPrice?: string;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponseResult
     */
    workingType?: string;
    /**
     *
     * @type {boolean}
     * @memberof CancelOrderResponseResult
     */
    priceProtect?: boolean;
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponseResult
     */
    origType?: string;
    /**
     *
     * @type {number}
     * @memberof CancelOrderResponseResult
     */
    updateTime?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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 {
    /**
     *
     * @type {string}
     * @memberof CancelOrderResponse
     */
    id?: string;
    /**
     *
     * @type {number}
     * @memberof CancelOrderResponse
     */
    status?: number;
    /**
     *
     * @type {CancelOrderResponseResult}
     * @memberof CancelOrderResponse
     */
    result?: CancelOrderResponseResult;
    /**
     *
     * @type {Array<CancelOrderResponseRateLimitsInner>}
     * @memberof CancelOrderResponse
     */
    rateLimits?: Array<CancelOrderResponseRateLimitsInner>;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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 CloseUserDataStreamResponseRateLimitsInner
 */
interface CloseUserDataStreamResponseRateLimitsInner {
    /**
     *
     * @type {string}
     * @memberof CloseUserDataStreamResponseRateLimitsInner
     */
    rateLimitType?: string;
    /**
     *
     * @type {string}
     * @memberof CloseUserDataStreamResponseRateLimitsInner
     */
    interval?: string;
    /**
     *
     * @type {number}
     * @memberof CloseUserDataStreamResponseRateLimitsInner
     */
    intervalNum?: number;
    /**
     *
     * @type {number}
     * @memberof CloseUserDataStreamResponseRateLimitsInner
     */
    limit?: number;
    /**
     *
     * @type {number}
     * @memberof CloseUserDataStreamResponseRateLimitsInner
     */
    count?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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 CloseUserDataStreamResponse
 */
interface CloseUserDataStreamResponse {
    /**
     *
     * @type {string}
     * @memberof CloseUserDataStreamResponse
     */
    id?: string;
    /**
     *
     * @type {number}
     * @memberof CloseUserDataStreamResponse
     */
    status?: number;
    /**
     *
     * @type {object}
     * @memberof CloseUserDataStreamResponse
     */
    result?: object;
    /**
     *
     * @type {Array<CloseUserDataStreamResponseRateLimitsInner>}
     * @memberof CloseUserDataStreamResponse
     */
    rateLimits?: Array<CloseUserDataStreamResponseRateLimitsInner>;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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 FuturesAccountBalanceResponseResultInner
 */
interface FuturesAccountBalanceResponseResultInner {
    /**
     *
     * @type {string}
     * @memberof FuturesAccountBalanceResponseResultInner
     */
    accountAlias?: string;
    /**
     *
     * @type {string}
     * @memberof FuturesAccountBalanceResponseResultInner
     */
    asset?: string;
    /**
     *
     * @type {string}
     * @memberof FuturesAccountBalanceResponseResultInner
     */
    balance?: string;
    /**
     *
     * @type {string}
     * @memberof FuturesAccountBalanceResponseResultInner
     */
    withdrawAvailable?: string;
    /**
     *
     * @type {string}
     * @memberof FuturesAccountBalanceResponseResultInner
     */
    crossWalletBalance?: string;
    /**
     *
     * @type {string}
     * @memberof FuturesAccountBalanceResponseResultInner
     */
    crossUnPnl?: string;
    /**
     *
     * @type {string}
     * @memberof FuturesAccountBalanceResponseResultInner
     */
    availableBalance?: string;
    /**
     *
     * @type {number}
     * @memberof FuturesAccountBalanceResponseResultInner
     */
    updateTime?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 * @interface FuturesAccountBalanceResponse
 */
interface FuturesAccountBalanceResponse {
    /**
     *
     * @type {string}
     * @memberof FuturesAccountBalanceResponse
     */
    id?: string;
    /**
     *
     * @type {number}
     * @memberof FuturesAccountBalanceResponse
     */
    status?: number;
    /**
     *
     * @type {Array<FuturesAccountBalanceResponseResultInner>}
     * @memberof FuturesAccountBalanceResponse
     */
    result?: Array<FuturesAccountBalanceResponseResultInner>;
    /**
     *
     * @type {Array<AccountInformationResponseRateLimitsInner>}
     * @memberof FuturesAccountBalanceResponse
     */
    rateLimits?: Array<AccountInformationResponseRateLimitsInner>;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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 KeepaliveUserDataStreamResponseResult
 */
interface KeepaliveUserDataStreamResponseResult {
    /**
     *
     * @type {string}
     * @memberof KeepaliveUserDataStreamResponseResult
     */
    listenKey?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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 KeepaliveUserDataStreamResponse
 */
interface KeepaliveUserDataStreamResponse {
    /**
     *
     * @type {string}
     * @memberof KeepaliveUserDataStreamResponse
     */
    id?: string;
    /**
     *
     * @type {number}
     * @memberof KeepaliveUserDataStreamResponse
     */
    status?: number;
    /**
     *
     * @type {KeepaliveUserDataStreamResponseResult}
     * @memberof KeepaliveUserDataStreamResponse
     */
    result?: KeepaliveUserDataStreamResponseResult;
    /**
     *
     * @type {Array<CloseUserDataStreamResponseRateLimitsInner>}
     * @memberof KeepaliveUserDataStreamResponse
     */
    rateLimits?: Array<CloseUserDataStreamResponseRateLimitsInner>;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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 ModifyOrderResponseResult
 */
interface ModifyOrderResponseResult {
    /**
     *
     * @type {number}
     * @memberof ModifyOrderResponseResult
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponseResult
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponseResult
     */
    pair?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponseResult
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponseResult
     */
    clientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponseResult
     */
    price?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponseResult
     */
    avgPrice?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponseResult
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponseResult
     */
    executedQty?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponseResult
     */
    cumQty?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponseResult
     */
    cumBase?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponseResult
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponseResult
     */
    type?: string;
    /**
     *
     * @type {boolean}
     * @memberof ModifyOrderResponseResult
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {boolean}
     * @memberof ModifyOrderResponseResult
     */
    closePosition?: boolean;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponseResult
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponseResult
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponseResult
     */
    stopPrice?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponseResult
     */
    workingType?: string;
    /**
     *
     * @type {boolean}
     * @memberof ModifyOrderResponseResult
     */
    priceProtect?: boolean;
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponseResult
     */
    origType?: string;
    /**
     *
     * @type {number}
     * @memberof ModifyOrderResponseResult
     */
    updateTime?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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 ModifyOrderResponse
 */
interface ModifyOrderResponse {
    /**
     *
     * @type {string}
     * @memberof ModifyOrderResponse
     */
    id?: string;
    /**
     *
     * @type {number}
     * @memberof ModifyOrderResponse
     */
    status?: number;
    /**
     *
     * @type {ModifyOrderResponseResult}
     * @memberof ModifyOrderResponse
     */
    result?: ModifyOrderResponseResult;
    /**
     *
     * @type {Array<CancelOrderResponseRateLimitsInner>}
     * @memberof ModifyOrderResponse
     */
    rateLimits?: Array<CancelOrderResponseRateLimitsInner>;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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 NewOrderResponseResult
 */
interface NewOrderResponseResult {
    /**
     *
     * @type {number}
     * @memberof NewOrderResponseResult
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponseResult
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponseResult
     */
    pair?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponseResult
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponseResult
     */
    clientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponseResult
     */
    price?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponseResult
     */
    avgPrice?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponseResult
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponseResult
     */
    executedQty?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponseResult
     */
    cumQty?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponseResult
     */
    cumBase?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponseResult
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponseResult
     */
    type?: string;
    /**
     *
     * @type {boolean}
     * @memberof NewOrderResponseResult
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {boolean}
     * @memberof NewOrderResponseResult
     */
    closePosition?: boolean;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponseResult
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponseResult
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponseResult
     */
    stopPrice?: string;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponseResult
     */
    workingType?: string;
    /**
     *
     * @type {boolean}
     * @memberof NewOrderResponseResult
     */
    priceProtect?: boolean;
    /**
     *
     * @type {string}
     * @memberof NewOrderResponseResult
     */
    origType?: string;
    /**
     *
     * @type {number}
     * @memberof NewOrderResponseResult
     */
    updateTime?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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 {string}
     * @memberof NewOrderResponse
     */
    id?: string;
    /**
     *
     * @type {number}
     * @memberof NewOrderResponse
     */
    status?: number;
    /**
     *
     * @type {NewOrderResponseResult}
     * @memberof NewOrderResponse
     */
    result?: NewOrderResponseResult;
    /**
     *
     * @type {Array<CancelOrderResponseRateLimitsInner>}
     * @memberof NewOrderResponse
     */
    rateLimits?: Array<CancelOrderResponseRateLimitsInner>;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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 PositionInformationResponseResultInner
 */
interface PositionInformationResponseResultInner {
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseResultInner
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseResultInner
     */
    positionAmt?: string;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseResultInner
     */
    entryPrice?: string;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseResultInner
     */
    markPrice?: string;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseResultInner
     */
    unRealizedProfit?: string;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseResultInner
     */
    liquidationPrice?: string;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseResultInner
     */
    leverage?: string;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseResultInner
     */
    maxQty?: string;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseResultInner
     */
    marginType?: string;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseResultInner
     */
    isolatedMargin?: string;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseResultInner
     */
    isAutoAddMargin?: string;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseResultInner
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseResultInner
     */
    notionalValue?: string;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseResultInner
     */
    isolatedWallet?: string;
    /**
     *
     * @type {number}
     * @memberof PositionInformationResponseResultInner
     */
    updateTime?: number;
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponseResultInner
     */
    breakEvenPrice?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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 PositionInformationResponse
 */
interface PositionInformationResponse {
    /**
     *
     * @type {string}
     * @memberof PositionInformationResponse
     */
    id?: string;
    /**
     *
     * @type {number}
     * @memberof PositionInformationResponse
     */
    status?: number;
    /**
     *
     * @type {Array<PositionInformationResponseResultInner>}
     * @memberof PositionInformationResponse
     */
    result?: Array<PositionInformationResponseResultInner>;
    /**
     *
     * @type {Array<AccountInformationResponseRateLimitsInner>}
     * @memberof PositionInformationResponse
     */
    rateLimits?: Array<AccountInformationResponseRateLimitsInner>;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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 QueryOrderResponseResult
 */
interface QueryOrderResponseResult {
    /**
     *
     * @type {number}
     * @memberof QueryOrderResponseResult
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponseResult
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponseResult
     */
    pair?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponseResult
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponseResult
     */
    clientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponseResult
     */
    price?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponseResult
     */
    avgPrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponseResult
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponseResult
     */
    executedQty?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponseResult
     */
    cumBase?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponseResult
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponseResult
     */
    type?: string;
    /**
     *
     * @type {boolean}
     * @memberof QueryOrderResponseResult
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {boolean}
     * @memberof QueryOrderResponseResult
     */
    closePosition?: boolean;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponseResult
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponseResult
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponseResult
     */
    stopPrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponseResult
     */
    workingType?: string;
    /**
     *
     * @type {boolean}
     * @memberof QueryOrderResponseResult
     */
    priceProtect?: boolean;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponseResult
     */
    origType?: string;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponseResult
     */
    selfTradePreventionMode?: string;
    /**
     *
     * @type {number}
     * @memberof QueryOrderResponseResult
     */
    time?: number;
    /**
     *
     * @type {number}
     * @memberof QueryOrderResponseResult
     */
    updateTime?: number;
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponseResult
     */
    priceMatch?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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 QueryOrderResponse
 */
interface QueryOrderResponse {
    /**
     *
     * @type {string}
     * @memberof QueryOrderResponse
     */
    id?: string;
    /**
     *
     * @type {number}
     * @memberof QueryOrderResponse
     */
    status?: number;
    /**
     *
     * @type {QueryOrderResponseResult}
     * @memberof QueryOrderResponse
     */
    result?: QueryOrderResponseResult;
    /**
     *
     * @type {Array<CancelOrderResponseRateLimitsInner>}
     * @memberof QueryOrderResponse
     */
    rateLimits?: Array<CancelOrderResponseRateLimitsInner>;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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 StartUserDataStreamResponseRateLimitsInner
 */
interface StartUserDataStreamResponseRateLimitsInner {
    /**
     *
     * @type {string}
     * @memberof StartUserDataStreamResponseRateLimitsInner
     */
    rateLimitType?: string;
    /**
     *
     * @type {string}
     * @memberof StartUserDataStreamResponseRateLimitsInner
     */
    interval?: string;
    /**
     *
     * @type {number}
     * @memberof StartUserDataStreamResponseRateLimitsInner
     */
    intervalNum?: number;
    /**
     *
     * @type {number}
     * @memberof StartUserDataStreamResponseRateLimitsInner
     */
    limit?: number;
    /**
     *
     * @type {number}
     * @memberof StartUserDataStreamResponseRateLimitsInner
     */
    count?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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 StartUserDataStreamResponseResult
 */
interface StartUserDataStreamResponseResult {
    /**
     *
     * @type {string}
     * @memberof StartUserDataStreamResponseResult
     */
    listenKey?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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 StartUserDataStreamResponse
 */
interface StartUserDataStreamResponse {
    /**
     *
     * @type {string}
     * @memberof StartUserDataStreamResponse
     */
    id?: string;
    /**
     *
     * @type {number}
     * @memberof StartUserDataStreamResponse
     */
    status?: number;
    /**
     *
     * @type {StartUserDataStreamResponseResult}
     * @memberof StartUserDataStreamResponse
     */
    result?: StartUserDataStreamResponseResult;
    /**
     *
     * @type {Array<StartUserDataStreamResponseRateLimitsInner>}
     * @memberof StartUserDataStreamResponse
     */
    rateLimits?: Array<StartUserDataStreamResponseRateLimitsInner>;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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.
 */

/**
 * AccountApi - interface
 *
 * @interface AccountApi
 */
interface AccountApiInterface {
    /**
     * Get current account information. User in single-asset/ multi-assets mode will see different value, see comments in response section for detail.
     *
     * Weight: 5
     *
     * @summary Account Information(USER_DATA)
     * @param {AccountInformationRequest} requestParameters Request parameters.
     *
     * @returns {Promise<AccountInformationResponse>}
     * @memberof AccountApiInterface
     */
    accountInformation(requestParameters?: AccountInformationRequest): Promise<WebsocketApiResponse<AccountInformationResponse>>;
    /**
     * Query account balance info
     *
     * Weight: 5
     *
     * @summary Futures Account Balance(USER_DATA)
     * @param {FuturesAccountBalanceRequest} requestParameters Request parameters.
     *
     * @returns {Promise<FuturesAccountBalanceResponse>}
     * @memberof AccountApiInterface
     */
    futuresAccountBalance(requestParameters?: FuturesAccountBalanceRequest): Promise<WebsocketApiResponse<FuturesAccountBalanceResponse>>;
}
/**
 * Request parameters for accountInformation operation in AccountApi.
 * @interface AccountInformationRequest
 */
interface AccountInformationRequest {
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof AccountApiAccountInformation
     */
    readonly id?: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiAccountInformation
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for futuresAccountBalance operation in AccountApi.
 * @interface FuturesAccountBalanceRequest
 */
interface FuturesAccountBalanceRequest {
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof AccountApiFuturesAccountBalance
     */
    readonly id?: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiFuturesAccountBalance
     */
    readonly recvWindow?: number;
}
/**
 * AccountApi - object-oriented interface
 * @class AccountApi
 * @extends {WebsocketAPIBase}
 */
declare class AccountApi implements AccountApiInterface {
    private readonly websocketBase;
    constructor(websocketBase: WebsocketAPIBase);
    /**
     * Get current account information. User in single-asset/ multi-assets mode will see different value, see comments in response section for detail.
     *
     * Weight: 5
     *
     * @summary Account Information(USER_DATA)
     * @param {AccountInformationRequest} requestParameters Request parameters.
     * @returns {Promise<AccountInformationResponse>}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/websocket-api/Account-Information Binance API Documentation}
     */
    accountInformation(requestParameters?: AccountInformationRequest): Promise<WebsocketApiResponse<AccountInformationResponse>>;
    /**
     * Query account balance info
     *
     * Weight: 5
     *
     * @summary Futures Account Balance(USER_DATA)
     * @param {FuturesAccountBalanceRequest} requestParameters Request parameters.
     * @returns {Promise<FuturesAccountBalanceResponse>}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/websocket-api/Futures-Account-Balance Binance API Documentation}
     */
    futuresAccountBalance(requestParameters?: FuturesAccountBalanceRequest): Promise<WebsocketApiResponse<FuturesAccountBalanceResponse>>;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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.
 */

/**
 * TradeApi - interface
 *
 * @interface TradeApi
 */
interface TradeApiInterface {
    /**
     * Cancel an active order.
     *
     * Either `orderId` or `origClientOrderId` must be sent.
     *
     * Weight: 1
     *
     * @summary Cancel Order (TRADE)
     * @param {CancelOrderRequest} requestParameters Request parameters.
     *
     * @returns {Promise<CancelOrderResponse>}
     * @memberof TradeApiInterface
     */
    cancelOrder(requestParameters: CancelOrderRequest): Promise<WebsocketApiResponse<CancelOrderResponse>>;
    /**
     * Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue
     *
     * Either `orderId` or `origClientOrderId` must be sent, and the `orderId` will prevail if both are sent.
     * Both `quantity` and `price` must be sent, which is different from dapi modify order endpoint.
     * When the new `quantity` or `price` doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.
     * However the order will be cancelled by the amendment in the following situations:
     * when the order is in partially filled status and the new `quantity` <= `executedQty`
     * When the order is `GTX` and the new price will cause it to be executed immediately
     * One order can only be modfied for less than 10000 times
     *
     * Weight: 1 on 10s order rate limit(X-MBX-ORDER-COUNT-10S);
     * 1 on 1min order rate limit(X-MBX-ORDER-COUNT-1M);
     * 1 on IP rate limit(x-mbx-used-weight-1m)
     *
     * @summary Modify Order (TRADE)
     * @param {ModifyOrderRequest} requestParameters Request parameters.
     *
     * @returns {Promise<ModifyOrderResponse>}
     * @memberof TradeApiInterface
     */
    modifyOrder(requestParameters: ModifyOrderRequest): Promise<WebsocketApiResponse<ModifyOrderResponse>>;
    /**
     * Send in a new order.
     *
     * Order with type `STOP`, parameter `timeInForce` can be sent ( default `GTC`).
     * Order with type `TAKE_PROFIT`, parameter `timeInForce` can be sent ( default `GTC`).
     * Condition orders will be triggered when:
     * If parameter `priceProtect` is sent as true:
     * when price reaches the `stopPrice`，the difference rate between "MARK_PRICE" and "CONTRACT_PRICE" cannot be larger than the "triggerProtect" of the symbol
     * "triggerProtect" of a symbol can be got from `GET /dapi/v1/exchangeInfo`
     * `STOP`, `STOP_MARKET`:
     * BUY: latest price ("MARK_PRICE" or "CONTRACT_PRICE") >= `stopPrice`
     * SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") <= `stopPrice`
     * `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`:
     * BUY: latest price ("MARK_PRICE" or "CONTRACT_PRICE") <= `stopPrice`
     * SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") >= `stopPrice`
     * `TRAILING_STOP_MARKET`:
     * BUY: the lowest price after order placed <= `activationPrice`, and the latest price >= the lowest price * (1 + `callbackRate`)
     * SELL: the highest price after order placed >= `activationPrice`, and the latest price <= the highest price * (1 - `callbackRate`)
     * For `TRAILING_STOP_MARKET`, if you got such error code.
     * BUY: `activationPrice` should be smaller than latest price.
     * SELL: `activationPrice` should be larger than latest price.
     * If `newOrderRespType` is sent as `RESULT`:
     * `MARKET` order: the final FILLED result of the order will be return directly.
     * `LIMIT` order with special `timeInForce`: the final status result of the order(FILLED or EXPIRED) will be returned directly.
     * `STOP_MARKET`, `TAKE_PROFIT_MARKET` with `closePosition=true`:
     * Follow the same rules for condition orders.
     * If triggered，**close all** current long position(if `SELL`) or current short position(if `BUY`).
     * Cannot be used with `quantity` parameter
     * Cannot be used with `reduceOnly` parameter
     * In Hedge Mode, cannot be used with `BUY` orders in `LONG` position side. and cannot be used with `SELL` orders in `SHORT` position side
     *
     * Weight: 0
     *
     * @summary New Order(TRADE)
     * @param {NewOrderRequest} requestParameters Request parameters.
     *
     * @returns {Promise<NewOrderResponse>}
     * @memberof TradeApiInterface
     */
    newOrder(requestParameters: NewOrderRequest): Promise<WebsocketApiResponse<NewOrderResponse>>;
    /**
     * Get current position information.
     *
     * Please use with user data stream `ACCOUNT_UPDATE` to meet your timeliness and accuracy needs.
     *
     * Weight: 5
     *
     * @summary Position Information(USER_DATA)
     * @param {PositionInformationRequest} requestParameters Request parameters.
     *
     * @returns {Promise<PositionInformationResponse>}
     * @memberof TradeApiInterface
     */
    positionInformation(requestParameters?: PositionInformationRequest): Promise<WebsocketApiResponse<PositionInformationResponse>>;
    /**
     * Check an order's status.
     *
     * These orders will not be found:
     * order status is `CANCELED` or `EXPIRED` **AND** order has NO filled trade **AND** created time + 3 days < current time
     * order create time + 90 days < current time
     *
     * Either `orderId` or `origClientOrderId` must be sent.
     * `orderId` is self-increment for each specific `symbol`
     *
     * Weight: 1
     *
     * @summary Query Order (USER_DATA)
     * @param {QueryOrderRequest} requestParameters Request parameters.
     *
     * @returns {Promise<QueryOrderResponse>}
     * @memberof TradeApiInterface
     */
    queryOrder(requestParameters: QueryOrderRequest): Promise<WebsocketApiResponse<QueryOrderResponse>>;
}
/**
 * Request parameters for cancelOrder operation in TradeApi.
 * @interface CancelOrderRequest
 */
interface CancelOrderRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiCancelOrder
     */
    readonly symbol: string;
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof TradeApiCancelOrder
     */
    readonly id?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiCancelOrder
     */
    readonly orderId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiCancelOrder
     */
    readonly origClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiCancelOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for modifyOrder operation in TradeApi.
 * @interface ModifyOrderRequest
 */
interface ModifyOrderRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiModifyOrder
     */
    readonly symbol: string;
    /**
     * `SELL`, `BUY`
     * @type {'BUY' | 'SELL'}
     * @memberof TradeApiModifyOrder
     */
    readonly side: ModifyOrderSideEnum;
    /**
     * Order quantity, cannot be sent with `closePosition=true`
     * @type {number}
     * @memberof TradeApiModifyOrder
     */
    readonly quantity: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiModifyOrder
     */
    readonly price: number;
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof TradeApiModifyOrder
     */
    readonly id?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiModifyOrder
     */
    readonly orderId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiModifyOrder
     */
    readonly origClientOrderId?: string;
    /**
     * only available for `LIMIT`/`STOP`/`TAKE_PROFIT` order; can be set to `OPPONENT`/ `OPPONENT_5`/ `OPPONENT_10`/ `OPPONENT_20`: /`QUEUE`/ `QUEUE_5`/ `QUEUE_10`/ `QUEUE_20`; Can't be passed together with `price`
     * @type {'NONE' | 'OPPONENT' | 'OPPONENT_5' | 'OPPONENT_10' | 'OPPONENT_20' | 'QUEUE' | 'QUEUE_5' | 'QUEUE_10' | 'QUEUE_20'}
     * @memberof TradeApiModifyOrder
     */
    readonly priceMatch?: ModifyOrderPriceMatchEnum;
    /**
     *
     * @type {number}
     * @memberof TradeApiModifyOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for newOrder operation in TradeApi.
 * @interface NewOrderRequest
 */
interface NewOrderRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiNewOrder
     */
    readonly symbol: string;
    /**
     * `SELL`, `BUY`
     * @type {'BUY' | 'SELL'}
     * @memberof TradeApiNewOrder
     */
    readonly side: NewOrderSideEnum;
    /**
     * `LIMIT`, `MARKET`, `STOP`, `STOP_MARKET`, `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`, `TRAILING_STOP_MARKET`
     * @type {'LIMIT' | 'MARKET' | 'STOP' | 'STOP_MARKET' | 'TAKE_PROFIT' | 'TAKE_PROFIT_MARKET' | 'TRAILING_STOP_MARKET'}
     * @memberof TradeApiNewOrder
     */
    readonly type: NewOrderTypeEnum;
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof TradeApiNewOrder
     */
    readonly id?: string;
    /**
     * Default `BOTH` for One-way Mode; `LONG` or `SHORT` for Hedge Mode.  It must be sent in Hedge Mode.
     * @type {'BOTH' | 'LONG' | 'SHORT'}
     * @memberof TradeApiNewOrder
     */
    readonly positionSide?: NewOrderPositionSideEnum;
    /**
     *
     * @type {'GTC' | 'IOC' | 'FOK' | 'GTX'}
     * @memberof TradeApiNewOrder
     */
    readonly timeInForce?: NewOrderTimeInForceEnum;
    /**
     * Quantity measured by contract number, Cannot be sent with `closePosition`=`true`
     * @type {number}
     * @memberof TradeApiNewOrder
     */
    readonly quantity?: number;
    /**
     * `true` or `false`. default `false`. Cannot be sent in Hedge Mode; cannot be sent with `closePosition`=`true` (Close-All)
     * @type {string}
     * @memberof TradeApiNewOrder
     */
    readonly reduceOnly?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiNewOrder
     */
    readonly price?: number;
    /**
     * A unique id among open orders. Automatically generated if not sent. Can only be string following the rule: `^[\.A-Z\:/a-z0-9_-]{1,36}$`
     * @type {string}
     * @memberof TradeApiNewOrder
     */
    readonly newClientOrderId?: string;
    /**
     * Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders.
     * @type {number}
     * @memberof TradeApiNewOrder
     */
    readonly stopPrice?: number;
    /**
     * `true`, `false`；Close-All，used with `STOP_MARKET` or `TAKE_PROFIT_MARKET`.
     * @type {string}
     * @memberof TradeApiNewOrder
     */
    readonly closePosition?: string;
    /**
     * Used with `TRAILING_STOP_MARKET` orders, default as the latest price(supporting different workingType)
     * @type {number}
     * @memberof TradeApiNewOrder
     */
    readonly activationPrice?: number;
    /**
     * Used with `TRAILING_STOP_MARKET` orders, min 0.1, max 5 where 1 for 1%
     * @type {number}
     * @memberof TradeApiNewOrder
     */
    readonly callbackRate?: number;
    /**
     * stopPrice triggered by: "MARK_PRICE", "CONTRACT_PRICE". Default "CONTRACT_PRICE"
     * @type {'MARK_PRICE' | 'CONTRACT_PRICE'}
     * @memberof TradeApiNewOrder
     */
    readonly workingType?: NewOrderWorkingTypeEnum;
    /**
     * "TRUE" or "FALSE", default "FALSE". Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders.
     * @type {string}
     * @memberof TradeApiNewOrder
     */
    readonly priceProtect?: string;
    /**
     * `ACK`,`RESULT`, default `ACK`
     * @type {'ACK' | 'RESULT'}
     * @memberof TradeApiNewOrder
     */
    readonly newOrderRespType?: NewOrderNewOrderRespTypeEnum;
    /**
     * only available for `LIMIT`/`STOP`/`TAKE_PROFIT` order; can be set to `OPPONENT`/ `OPPONENT_5`/ `OPPONENT_10`/ `OPPONENT_20`: /`QUEUE`/ `QUEUE_5`/ `QUEUE_10`/ `QUEUE_20`; Can't be passed together with `price`
     * @type {'NONE' | 'OPPONENT' | 'OPPONENT_5' | 'OPPONENT_10' | 'OPPONENT_20' | 'QUEUE' | 'QUEUE_5' | 'QUEUE_10' | 'QUEUE_20'}
     * @memberof TradeApiNewOrder
     */
    readonly priceMatch?: NewOrderPriceMatchEnum;
    /**
     * `NONE`: No STP / `EXPIRE_TAKER`:expire taker order when STP triggers/ `EXPIRE_MAKER`:expire taker order when STP triggers/ `EXPIRE_BOTH`:expire both orders when STP triggers; default `NONE`
     * @type {'NONE' | 'EXPIRE_TAKER' | 'EXPIRE_BOTH' | 'EXPIRE_MAKER'}
     * @memberof TradeApiNewOrder
     */
    readonly selfTradePreventionMode?: NewOrderSelfTradePreventionModeEnum;
    /**
     *
     * @type {number}
     * @memberof TradeApiNewOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for positionInformation operation in TradeApi.
 * @interface PositionInformationRequest
 */
interface PositionInformationRequest {
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof TradeApiPositionInformation
     */
    readonly id?: string;
    /**
     *
     * @type {string}
     * @memberof TradeApiPositionInformation
     */
    readonly marginAsset?: string;
    /**
     *
     * @type {string}
     * @memberof TradeApiPositionInformation
     */
    readonly pair?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiPositionInformation
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryOrder operation in TradeApi.
 * @interface QueryOrderRequest
 */
interface QueryOrderRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryOrder
     */
    readonly symbol: string;
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof TradeApiQueryOrder
     */
    readonly id?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryOrder
     */
    readonly orderId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryOrder
     */
    readonly origClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryOrder
     */
    readonly recvWindow?: number;
}
/**
 * TradeApi - object-oriented interface
 * @class TradeApi
 * @extends {WebsocketAPIBase}
 */
declare class TradeApi implements TradeApiInterface {
    private readonly websocketBase;
    constructor(websocketBase: WebsocketAPIBase);
    /**
     * Cancel an active order.
     *
     * Either `orderId` or `origClientOrderId` must be sent.
     *
     * Weight: 1
     *
     * @summary Cancel Order (TRADE)
     * @param {CancelOrderRequest} requestParameters Request parameters.
     * @returns {Promise<CancelOrderResponse>}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/websocket-api/Cancel-Order Binance API Documentation}
     */
    cancelOrder(requestParameters: CancelOrderRequest): Promise<WebsocketApiResponse<CancelOrderResponse>>;
    /**
     * Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue
     *
     * Either `orderId` or `origClientOrderId` must be sent, and the `orderId` will prevail if both are sent.
     * Both `quantity` and `price` must be sent, which is different from dapi modify order endpoint.
     * When the new `quantity` or `price` doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.
     * However the order will be cancelled by the amendment in the following situations:
     * when the order is in partially filled status and the new `quantity` <= `executedQty`
     * When the order is `GTX` and the new price will cause it to be executed immediately
     * One order can only be modfied for less than 10000 times
     *
     * Weight: 1 on 10s order rate limit(X-MBX-ORDER-COUNT-10S);
     * 1 on 1min order rate limit(X-MBX-ORDER-COUNT-1M);
     * 1 on IP rate limit(x-mbx-used-weight-1m)
     *
     * @summary Modify Order (TRADE)
     * @param {ModifyOrderRequest} requestParameters Request parameters.
     * @returns {Promise<ModifyOrderResponse>}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/websocket-api/Modify-Order Binance API Documentation}
     */
    modifyOrder(requestParameters: ModifyOrderRequest): Promise<WebsocketApiResponse<ModifyOrderResponse>>;
    /**
     * Send in a new order.
     *
     * Order with type `STOP`, parameter `timeInForce` can be sent ( default `GTC`).
     * Order with type `TAKE_PROFIT`, parameter `timeInForce` can be sent ( default `GTC`).
     * Condition orders will be triggered when:
     * If parameter `priceProtect` is sent as true:
     * when price reaches the `stopPrice`，the difference rate between "MARK_PRICE" and "CONTRACT_PRICE" cannot be larger than the "triggerProtect" of the symbol
     * "triggerProtect" of a symbol can be got from `GET /dapi/v1/exchangeInfo`
     * `STOP`, `STOP_MARKET`:
     * BUY: latest price ("MARK_PRICE" or "CONTRACT_PRICE") >= `stopPrice`
     * SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") <= `stopPrice`
     * `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`:
     * BUY: latest price ("MARK_PRICE" or "CONTRACT_PRICE") <= `stopPrice`
     * SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") >= `stopPrice`
     * `TRAILING_STOP_MARKET`:
     * BUY: the lowest price after order placed <= `activationPrice`, and the latest price >= the lowest price * (1 + `callbackRate`)
     * SELL: the highest price after order placed >= `activationPrice`, and the latest price <= the highest price * (1 - `callbackRate`)
     * For `TRAILING_STOP_MARKET`, if you got such error code.
     * BUY: `activationPrice` should be smaller than latest price.
     * SELL: `activationPrice` should be larger than latest price.
     * If `newOrderRespType` is sent as `RESULT`:
     * `MARKET` order: the final FILLED result of the order will be return directly.
     * `LIMIT` order with special `timeInForce`: the final status result of the order(FILLED or EXPIRED) will be returned directly.
     * `STOP_MARKET`, `TAKE_PROFIT_MARKET` with `closePosition=true`:
     * Follow the same rules for condition orders.
     * If triggered，**close all** current long position(if `SELL`) or current short position(if `BUY`).
     * Cannot be used with `quantity` parameter
     * Cannot be used with `reduceOnly` parameter
     * In Hedge Mode, cannot be used with `BUY` orders in `LONG` position side. and cannot be used with `SELL` orders in `SHORT` position side
     *
     * Weight: 0
     *
     * @summary New Order(TRADE)
     * @param {NewOrderRequest} requestParameters Request parameters.
     * @returns {Promise<NewOrderResponse>}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/websocket-api/New-Order Binance API Documentation}
     */
    newOrder(requestParameters: NewOrderRequest): Promise<WebsocketApiResponse<NewOrderResponse>>;
    /**
     * Get current position information.
     *
     * Please use with user data stream `ACCOUNT_UPDATE` to meet your timeliness and accuracy needs.
     *
     * Weight: 5
     *
     * @summary Position Information(USER_DATA)
     * @param {PositionInformationRequest} requestParameters Request parameters.
     * @returns {Promise<PositionInformationResponse>}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/websocket-api/Position-Information Binance API Documentation}
     */
    positionInformation(requestParameters?: PositionInformationRequest): Promise<WebsocketApiResponse<PositionInformationResponse>>;
    /**
     * Check an order's status.
     *
     * These orders will not be found:
     * order status is `CANCELED` or `EXPIRED` **AND** order has NO filled trade **AND** created time + 3 days < current time
     * order create time + 90 days < current time
     *
     * Either `orderId` or `origClientOrderId` must be sent.
     * `orderId` is self-increment for each specific `symbol`
     *
     * Weight: 1
     *
     * @summary Query Order (USER_DATA)
     * @param {QueryOrderRequest} requestParameters Request parameters.
     * @returns {Promise<QueryOrderResponse>}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/websocket-api/Query-Order Binance API Documentation}
     */
    queryOrder(requestParameters: QueryOrderRequest): Promise<WebsocketApiResponse<QueryOrderResponse>>;
}
/**
 * @enum {string}
 */
declare const ModifyOrderSideEnum: {
    readonly BUY: "BUY";
    readonly SELL: "SELL";
};
type ModifyOrderSideEnum = (typeof ModifyOrderSideEnum)[keyof typeof ModifyOrderSideEnum];
/**
 * @enum {string}
 */
declare const ModifyOrderPriceMatchEnum: {
    readonly NONE: "NONE";
    readonly OPPONENT: "OPPONENT";
    readonly OPPONENT_5: "OPPONENT_5";
    readonly OPPONENT_10: "OPPONENT_10";
    readonly OPPONENT_20: "OPPONENT_20";
    readonly QUEUE: "QUEUE";
    readonly QUEUE_5: "QUEUE_5";
    readonly QUEUE_10: "QUEUE_10";
    readonly QUEUE_20: "QUEUE_20";
};
type ModifyOrderPriceMatchEnum = (typeof ModifyOrderPriceMatchEnum)[keyof typeof ModifyOrderPriceMatchEnum];
/**
 * @enum {string}
 */
declare const NewOrderSideEnum: {
    readonly BUY: "BUY";
    readonly SELL: "SELL";
};
type NewOrderSideEnum = (typeof NewOrderSideEnum)[keyof typeof NewOrderSideEnum];
/**
 * @enum {string}
 */
declare const NewOrderTypeEnum: {
    readonly LIMIT: "LIMIT";
    readonly MARKET: "MARKET";
    readonly STOP: "STOP";
    readonly STOP_MARKET: "STOP_MARKET";
    readonly TAKE_PROFIT: "TAKE_PROFIT";
    readonly TAKE_PROFIT_MARKET: "TAKE_PROFIT_MARKET";
    readonly TRAILING_STOP_MARKET: "TRAILING_STOP_MARKET";
};
type NewOrderTypeEnum = (typeof NewOrderTypeEnum)[keyof typeof NewOrderTypeEnum];
/**
 * @enum {string}
 */
declare const NewOrderPositionSideEnum: {
    readonly BOTH: "BOTH";
    readonly LONG: "LONG";
    readonly SHORT: "SHORT";
};
type NewOrderPositionSideEnum = (typeof NewOrderPositionSideEnum)[keyof typeof NewOrderPositionSideEnum];
/**
 * @enum {string}
 */
declare const NewOrderTimeInForceEnum: {
    readonly GTC: "GTC";
    readonly IOC: "IOC";
    readonly FOK: "FOK";
    readonly GTX: "GTX";
};
type NewOrderTimeInForceEnum = (typeof NewOrderTimeInForceEnum)[keyof typeof NewOrderTimeInForceEnum];
/**
 * @enum {string}
 */
declare const NewOrderWorkingTypeEnum: {
    readonly MARK_PRICE: "MARK_PRICE";
    readonly CONTRACT_PRICE: "CONTRACT_PRICE";
};
type NewOrderWorkingTypeEnum = (typeof NewOrderWorkingTypeEnum)[keyof typeof NewOrderWorkingTypeEnum];
/**
 * @enum {string}
 */
declare const NewOrderNewOrderRespTypeEnum: {
    readonly ACK: "ACK";
    readonly RESULT: "RESULT";
};
type NewOrderNewOrderRespTypeEnum = (typeof NewOrderNewOrderRespTypeEnum)[keyof typeof NewOrderNewOrderRespTypeEnum];
/**
 * @enum {string}
 */
declare const NewOrderPriceMatchEnum: {
    readonly NONE: "NONE";
    readonly OPPONENT: "OPPONENT";
    readonly OPPONENT_5: "OPPONENT_5";
    readonly OPPONENT_10: "OPPONENT_10";
    readonly OPPONENT_20: "OPPONENT_20";
    readonly QUEUE: "QUEUE";
    readonly QUEUE_5: "QUEUE_5";
    readonly QUEUE_10: "QUEUE_10";
    readonly QUEUE_20: "QUEUE_20";
};
type NewOrderPriceMatchEnum = (typeof NewOrderPriceMatchEnum)[keyof typeof NewOrderPriceMatchEnum];
/**
 * @enum {string}
 */
declare const NewOrderSelfTradePreventionModeEnum: {
    readonly NONE: "NONE";
    readonly EXPIRE_TAKER: "EXPIRE_TAKER";
    readonly EXPIRE_BOTH: "EXPIRE_BOTH";
    readonly EXPIRE_MAKER: "EXPIRE_MAKER";
};
type NewOrderSelfTradePreventionModeEnum = (typeof NewOrderSelfTradePreventionModeEnum)[keyof typeof NewOrderSelfTradePreventionModeEnum];

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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.
 */

/**
 * UserDataStreamsApi - interface
 *
 * @interface UserDataStreamsApi
 */
interface UserDataStreamsApiInterface {
    /**
     * Close out a user data stream.
     *
     * Weight: 1
     *
     * @summary Close User Data Stream (USER_STREAM)
     * @param {CloseUserDataStreamRequest} requestParameters Request parameters.
     *
     * @returns {Promise<CloseUserDataStreamResponse>}
     * @memberof UserDataStreamsApiInterface
     */
    closeUserDataStream(requestParameters?: CloseUserDataStreamRequest): Promise<WebsocketApiResponse<CloseUserDataStreamResponse>>;
    /**
     * Keepalive a user data stream to prevent a time out. User data streams will close after 60 minutes. It's recommended to send a ping about every 60 minutes.
     *
     * Weight: 1
     *
     * @summary Keepalive User Data Stream (USER_STREAM)
     * @param {KeepaliveUserDataStreamRequest} requestParameters Request parameters.
     *
     * @returns {Promise<KeepaliveUserDataStreamResponse>}
     * @memberof UserDataStreamsApiInterface
     */
    keepaliveUserDataStream(requestParameters?: KeepaliveUserDataStreamRequest): Promise<WebsocketApiResponse<KeepaliveUserDataStreamResponse>>;
    /**
     * Start a new user data stream. The stream will close after 60 minutes unless a keepalive is sent. If the account has an active `listenKey`, that `listenKey` will be returned and its validity will be extended for 60 minutes.
     *
     * Weight: 1
     *
     * @summary Start User Data Stream (USER_STREAM)
     * @param {StartUserDataStreamRequest} requestParameters Request parameters.
     *
     * @returns {Promise<StartUserDataStreamResponse>}
     * @memberof UserDataStreamsApiInterface
     */
    startUserDataStream(requestParameters?: StartUserDataStreamRequest): Promise<WebsocketApiResponse<StartUserDataStreamResponse>>;
}
/**
 * Request parameters for closeUserDataStream operation in UserDataStreamsApi.
 * @interface CloseUserDataStreamRequest
 */
interface CloseUserDataStreamRequest {
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof UserDataStreamsApiCloseUserDataStream
     */
    readonly id?: string;
}
/**
 * Request parameters for keepaliveUserDataStream operation in UserDataStreamsApi.
 * @interface KeepaliveUserDataStreamRequest
 */
interface KeepaliveUserDataStreamRequest {
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof UserDataStreamsApiKeepaliveUserDataStream
     */
    readonly id?: string;
}
/**
 * Request parameters for startUserDataStream operation in UserDataStreamsApi.
 * @interface StartUserDataStreamRequest
 */
interface StartUserDataStreamRequest {
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof UserDataStreamsApiStartUserDataStream
     */
    readonly id?: string;
}
/**
 * UserDataStreamsApi - object-oriented interface
 * @class UserDataStreamsApi
 * @extends {WebsocketAPIBase}
 */
declare class UserDataStreamsApi implements UserDataStreamsApiInterface {
    private readonly websocketBase;
    constructor(websocketBase: WebsocketAPIBase);
    /**
     * Close out a user data stream.
     *
     * Weight: 1
     *
     * @summary Close User Data Stream (USER_STREAM)
     * @param {CloseUserDataStreamRequest} requestParameters Request parameters.
     * @returns {Promise<CloseUserDataStreamResponse>}
     * @memberof UserDataStreamsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/user-data-streams/Close-User-Data-Stream-Wsp Binance API Documentation}
     */
    closeUserDataStream(requestParameters?: CloseUserDataStreamRequest): Promise<WebsocketApiResponse<CloseUserDataStreamResponse>>;
    /**
     * Keepalive a user data stream to prevent a time out. User data streams will close after 60 minutes. It's recommended to send a ping about every 60 minutes.
     *
     * Weight: 1
     *
     * @summary Keepalive User Data Stream (USER_STREAM)
     * @param {KeepaliveUserDataStreamRequest} requestParameters Request parameters.
     * @returns {Promise<KeepaliveUserDataStreamResponse>}
     * @memberof UserDataStreamsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/user-data-streams/Keepalive-User-Data-Stream-Wsp Binance API Documentation}
     */
    keepaliveUserDataStream(requestParameters?: KeepaliveUserDataStreamRequest): Promise<WebsocketApiResponse<KeepaliveUserDataStreamResponse>>;
    /**
     * Start a new user data stream. The stream will close after 60 minutes unless a keepalive is sent. If the account has an active `listenKey`, that `listenKey` will be returned and its validity will be extended for 60 minutes.
     *
     * Weight: 1
     *
     * @summary Start User Data Stream (USER_STREAM)
     * @param {StartUserDataStreamRequest} requestParameters Request parameters.
     * @returns {Promise<StartUserDataStreamResponse>}
     * @memberof UserDataStreamsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/user-data-streams/Start-User-Data-Stream-Wsp Binance API Documentation}
     */
    startUserDataStream(requestParameters?: StartUserDataStreamRequest): Promise<WebsocketApiResponse<StartUserDataStreamResponse>>;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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.
 */

declare class WebsocketAPIConnection {
    private websocketBase;
    private accountApi;
    private tradeApi;
    private userDataStreamsApi;
    constructor(websocketBase: WebsocketAPIBase);
    on(event: 'open' | 'message' | 'error' | 'close' | 'ping' | 'pong', listener: (...args: any[]) => void): void;
    off(event: 'open' | 'message' | 'error' | 'close' | 'ping' | 'pong', listener: (...args: any[]) => void): void;
    /**
     * Disconnects from the WebSocket server.
     * If there is no active connection, a warning is logged.
     * Otherwise, all connections in the connection pool are closed gracefully,
     * and a message is logged indicating that the connection has been disconnected.
     * @returns A Promise that resolves when all connections have been closed.
     * @throws Error if the WebSocket client is not set.
     */
    disconnect(): Promise<void>;
    /**
     * Checks if the WebSocket connection is currently open.
     * @returns `true` if the connection is open, `false` otherwise.
     */
    isConnected(): boolean;
    /**
     * Sends a ping message to all connected Websocket servers in the pool.
     * If no connections are ready, a warning is logged.
     * For each active connection, the ping message is sent, and debug logs provide details.
     * @throws Error if a Websocket client is not set for a connection.
     */
    pingServer(): void;
    /**
     * Sends an unsigned message to the WebSocket server
     * @param method The API method to call
     * @param payload Message parameters and options
     * @returns Promise that resolves with the server response
     * @throws Error if not connected
     */
    sendMessage(method: string, payload?: WebsocketSendMsgOptions): Promise<WebsocketApiResponse<unknown>>;
    /**
     * Sends a signed message to the WebSocket server with authentication
     * @param method The API method to call
     * @param payload Message parameters and options
     * @returns Promise that resolves with the server response
     * @throws Error if not connected
     */
    sendSignedMessage(method: string, payload?: WebsocketSendMsgOptions): Promise<WebsocketApiResponse<unknown>>;
    /**
     * Get current account information. User in single-asset/ multi-assets mode will see different value, see comments in response section for detail.
     *
     * Weight: 5
     *
     * @summary Account Information(USER_DATA)
     * @param {AccountInformationRequest} requestParameters Request parameters.
     * @returns {Promise<AccountInformationResponse>}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/websocket-api/Account-Information Binance API Documentation}
     */
    accountInformation(requestParameters?: AccountInformationRequest): Promise<WebsocketApiResponse<AccountInformationResponse>>;
    /**
     * Query account balance info
     *
     * Weight: 5
     *
     * @summary Futures Account Balance(USER_DATA)
     * @param {FuturesAccountBalanceRequest} requestParameters Request parameters.
     * @returns {Promise<FuturesAccountBalanceResponse>}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/account/websocket-api/Futures-Account-Balance Binance API Documentation}
     */
    futuresAccountBalance(requestParameters?: FuturesAccountBalanceRequest): Promise<WebsocketApiResponse<FuturesAccountBalanceResponse>>;
    /**
     * Cancel an active order.
     *
     * Either `orderId` or `origClientOrderId` must be sent.
     *
     * Weight: 1
     *
     * @summary Cancel Order (TRADE)
     * @param {CancelOrderRequest} requestParameters Request parameters.
     * @returns {Promise<CancelOrderResponse>}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/websocket-api/Cancel-Order Binance API Documentation}
     */
    cancelOrder(requestParameters: CancelOrderRequest): Promise<WebsocketApiResponse<CancelOrderResponse>>;
    /**
     * Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue
     *
     * Either `orderId` or `origClientOrderId` must be sent, and the `orderId` will prevail if both are sent.
     * Both `quantity` and `price` must be sent, which is different from dapi modify order endpoint.
     * When the new `quantity` or `price` doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.
     * However the order will be cancelled by the amendment in the following situations:
     * when the order is in partially filled status and the new `quantity` <= `executedQty`
     * When the order is `GTX` and the new price will cause it to be executed immediately
     * One order can only be modfied for less than 10000 times
     *
     * Weight: 1 on 10s order rate limit(X-MBX-ORDER-COUNT-10S);
     * 1 on 1min order rate limit(X-MBX-ORDER-COUNT-1M);
     * 1 on IP rate limit(x-mbx-used-weight-1m)
     *
     * @summary Modify Order (TRADE)
     * @param {ModifyOrderRequest} requestParameters Request parameters.
     * @returns {Promise<ModifyOrderResponse>}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/websocket-api/Modify-Order Binance API Documentation}
     */
    modifyOrder(requestParameters: ModifyOrderRequest): Promise<WebsocketApiResponse<ModifyOrderResponse>>;
    /**
     * Send in a new order.
     *
     * Order with type `STOP`, parameter `timeInForce` can be sent ( default `GTC`).
     * Order with type `TAKE_PROFIT`, parameter `timeInForce` can be sent ( default `GTC`).
     * Condition orders will be triggered when:
     * If parameter `priceProtect` is sent as true:
     * when price reaches the `stopPrice`，the difference rate between "MARK_PRICE" and "CONTRACT_PRICE" cannot be larger than the "triggerProtect" of the symbol
     * "triggerProtect" of a symbol can be got from `GET /dapi/v1/exchangeInfo`
     * `STOP`, `STOP_MARKET`:
     * BUY: latest price ("MARK_PRICE" or "CONTRACT_PRICE") >= `stopPrice`
     * SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") <= `stopPrice`
     * `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`:
     * BUY: latest price ("MARK_PRICE" or "CONTRACT_PRICE") <= `stopPrice`
     * SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") >= `stopPrice`
     * `TRAILING_STOP_MARKET`:
     * BUY: the lowest price after order placed <= `activationPrice`, and the latest price >= the lowest price * (1 + `callbackRate`)
     * SELL: the highest price after order placed >= `activationPrice`, and the latest price <= the highest price * (1 - `callbackRate`)
     * For `TRAILING_STOP_MARKET`, if you got such error code.
     * BUY: `activationPrice` should be smaller than latest price.
     * SELL: `activationPrice` should be larger than latest price.
     * If `newOrderRespType` is sent as `RESULT`:
     * `MARKET` order: the final FILLED result of the order will be return directly.
     * `LIMIT` order with special `timeInForce`: the final status result of the order(FILLED or EXPIRED) will be returned directly.
     * `STOP_MARKET`, `TAKE_PROFIT_MARKET` with `closePosition=true`:
     * Follow the same rules for condition orders.
     * If triggered，**close all** current long position(if `SELL`) or current short position(if `BUY`).
     * Cannot be used with `quantity` parameter
     * Cannot be used with `reduceOnly` parameter
     * In Hedge Mode, cannot be used with `BUY` orders in `LONG` position side. and cannot be used with `SELL` orders in `SHORT` position side
     *
     * Weight: 0
     *
     * @summary New Order(TRADE)
     * @param {NewOrderRequest} requestParameters Request parameters.
     * @returns {Promise<NewOrderResponse>}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/websocket-api/New-Order Binance API Documentation}
     */
    newOrder(requestParameters: NewOrderRequest): Promise<WebsocketApiResponse<NewOrderResponse>>;
    /**
     * Get current position information.
     *
     * Please use with user data stream `ACCOUNT_UPDATE` to meet your timeliness and accuracy needs.
     *
     * Weight: 5
     *
     * @summary Position Information(USER_DATA)
     * @param {PositionInformationRequest} requestParameters Request parameters.
     * @returns {Promise<PositionInformationResponse>}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/websocket-api/Position-Information Binance API Documentation}
     */
    positionInformation(requestParameters?: PositionInformationRequest): Promise<WebsocketApiResponse<PositionInformationResponse>>;
    /**
     * Check an order's status.
     *
     * These orders will not be found:
     * order status is `CANCELED` or `EXPIRED` **AND** order has NO filled trade **AND** created time + 3 days < current time
     * order create time + 90 days < current time
     *
     * Either `orderId` or `origClientOrderId` must be sent.
     * `orderId` is self-increment for each specific `symbol`
     *
     * Weight: 1
     *
     * @summary Query Order (USER_DATA)
     * @param {QueryOrderRequest} requestParameters Request parameters.
     * @returns {Promise<QueryOrderResponse>}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/websocket-api/Query-Order Binance API Documentation}
     */
    queryOrder(requestParameters: QueryOrderRequest): Promise<WebsocketApiResponse<QueryOrderResponse>>;
    /**
     * Close out a user data stream.
     *
     * Weight: 1
     *
     * @summary Close User Data Stream (USER_STREAM)
     * @param {CloseUserDataStreamRequest} requestParameters Request parameters.
     * @returns {Promise<CloseUserDataStreamResponse>}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/user-data-streams/Close-User-Data-Stream-Wsp Binance API Documentation}
     */
    closeUserDataStream(requestParameters?: CloseUserDataStreamRequest): Promise<WebsocketApiResponse<CloseUserDataStreamResponse>>;
    /**
     * Keepalive a user data stream to prevent a time out. User data streams will close after 60 minutes. It's recommended to send a ping about every 60 minutes.
     *
     * Weight: 1
     *
     * @summary Keepalive User Data Stream (USER_STREAM)
     * @param {KeepaliveUserDataStreamRequest} requestParameters Request parameters.
     * @returns {Promise<KeepaliveUserDataStreamResponse>}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/user-data-streams/Keepalive-User-Data-Stream-Wsp Binance API Documentation}
     */
    keepaliveUserDataStream(requestParameters?: KeepaliveUserDataStreamRequest): Promise<WebsocketApiResponse<KeepaliveUserDataStreamResponse>>;
    /**
     * Start a new user data stream. The stream will close after 60 minutes unless a keepalive is sent. If the account has an active `listenKey`, that `listenKey` will be returned and its validity will be extended for 60 minutes.
     *
     * Weight: 1
     *
     * @summary Start User Data Stream (USER_STREAM)
     * @param {StartUserDataStreamRequest} requestParameters Request parameters.
     * @returns {Promise<StartUserDataStreamResponse>}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/user-data-streams/Start-User-Data-Stream-Wsp Binance API Documentation}
     */
    startUserDataStream(requestParameters?: StartUserDataStreamRequest): Promise<WebsocketApiResponse<StartUserDataStreamResponse>>;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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.
 */

declare class WebsocketAPI {
    private configuration;
    constructor(configuration: ConfigurationWebsocketAPI);
    /**
     * Connects to the Binance WebSocket API and returns a `WebsocketAPIConnection` instance.
     *
     * @param {object} [options] - Optional connection options.
     * @param {string} [options.mode='single'] - The connection mode, either 'single' or 'pool'. Overrides the `mode` property in the configuration.
     * @param {number} [options.poolSize=1] - The number of connections to use in pool mode. Overrides the `poolSize` property in the configuration.
     * @returns {Promise<WebsocketAPIConnection>} - A promise that resolves to a `WebsocketAPIConnection` instance.
     */
    connect({ mode, poolSize, }?: {
        mode?: 'single' | 'pool';
        poolSize?: number;
    }): Promise<WebsocketAPIConnection>;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket API
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket 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 index$1_AccountApi = AccountApi;
declare const index$1_AccountApi: typeof AccountApi;
type index$1_AccountApiInterface = AccountApiInterface;
type index$1_AccountInformationRequest = AccountInformationRequest;
type index$1_AccountInformationResponse = AccountInformationResponse;
type index$1_AccountInformationResponseRateLimitsInner = AccountInformationResponseRateLimitsInner;
type index$1_AccountInformationResponseResult = AccountInformationResponseResult;
type index$1_AccountInformationResponseResultAssetsInner = AccountInformationResponseResultAssetsInner;
type index$1_AccountInformationResponseResultPositionsInner = AccountInformationResponseResultPositionsInner;
type index$1_CancelOrderRequest = CancelOrderRequest;
type index$1_CancelOrderResponse = CancelOrderResponse;
type index$1_CancelOrderResponseRateLimitsInner = CancelOrderResponseRateLimitsInner;
type index$1_CancelOrderResponseResult = CancelOrderResponseResult;
type index$1_CloseUserDataStreamRequest = CloseUserDataStreamRequest;
type index$1_CloseUserDataStreamResponse = CloseUserDataStreamResponse;
type index$1_CloseUserDataStreamResponseRateLimitsInner = CloseUserDataStreamResponseRateLimitsInner;
type index$1_FuturesAccountBalanceRequest = FuturesAccountBalanceRequest;
type index$1_FuturesAccountBalanceResponse = FuturesAccountBalanceResponse;
type index$1_FuturesAccountBalanceResponseResultInner = FuturesAccountBalanceResponseResultInner;
type index$1_KeepaliveUserDataStreamRequest = KeepaliveUserDataStreamRequest;
type index$1_KeepaliveUserDataStreamResponse = KeepaliveUserDataStreamResponse;
type index$1_KeepaliveUserDataStreamResponseResult = KeepaliveUserDataStreamResponseResult;
type index$1_ModifyOrderPriceMatchEnum = ModifyOrderPriceMatchEnum;
type index$1_ModifyOrderRequest = ModifyOrderRequest;
type index$1_ModifyOrderResponse = ModifyOrderResponse;
type index$1_ModifyOrderResponseResult = ModifyOrderResponseResult;
type index$1_ModifyOrderSideEnum = ModifyOrderSideEnum;
type index$1_NewOrderNewOrderRespTypeEnum = NewOrderNewOrderRespTypeEnum;
type index$1_NewOrderPositionSideEnum = NewOrderPositionSideEnum;
type index$1_NewOrderPriceMatchEnum = NewOrderPriceMatchEnum;
type index$1_NewOrderRequest = NewOrderRequest;
type index$1_NewOrderResponse = NewOrderResponse;
type index$1_NewOrderResponseResult = NewOrderResponseResult;
type index$1_NewOrderSelfTradePreventionModeEnum = NewOrderSelfTradePreventionModeEnum;
type index$1_NewOrderSideEnum = NewOrderSideEnum;
type index$1_NewOrderTimeInForceEnum = NewOrderTimeInForceEnum;
type index$1_NewOrderTypeEnum = NewOrderTypeEnum;
type index$1_NewOrderWorkingTypeEnum = NewOrderWorkingTypeEnum;
type index$1_PositionInformationRequest = PositionInformationRequest;
type index$1_PositionInformationResponse = PositionInformationResponse;
type index$1_PositionInformationResponseResultInner = PositionInformationResponseResultInner;
type index$1_QueryOrderRequest = QueryOrderRequest;
type index$1_QueryOrderResponse = QueryOrderResponse;
type index$1_QueryOrderResponseResult = QueryOrderResponseResult;
type index$1_StartUserDataStreamRequest = StartUserDataStreamRequest;
type index$1_StartUserDataStreamResponse = StartUserDataStreamResponse;
type index$1_StartUserDataStreamResponseRateLimitsInner = StartUserDataStreamResponseRateLimitsInner;
type index$1_StartUserDataStreamResponseResult = StartUserDataStreamResponseResult;
type index$1_TradeApi = TradeApi;
declare const index$1_TradeApi: typeof TradeApi;
type index$1_TradeApiInterface = TradeApiInterface;
type index$1_UserDataStreamsApi = UserDataStreamsApi;
declare const index$1_UserDataStreamsApi: typeof UserDataStreamsApi;
type index$1_UserDataStreamsApiInterface = UserDataStreamsApiInterface;
type index$1_WebsocketAPI = WebsocketAPI;
declare const index$1_WebsocketAPI: typeof WebsocketAPI;
type index$1_WebsocketAPIConnection = WebsocketAPIConnection;
declare const index$1_WebsocketAPIConnection: typeof WebsocketAPIConnection;
declare namespace index$1 {
  export {
    index$1_AccountApi as AccountApi,
    index$1_AccountApiInterface as AccountApiInterface,
    index$1_AccountInformationRequest as AccountInformationRequest,
    index$1_AccountInformationResponse as AccountInformationResponse,
    index$1_AccountInformationResponseRateLimitsInner as AccountInformationResponseRateLimitsInner,
    index$1_AccountInformationResponseResult as AccountInformationResponseResult,
    index$1_AccountInformationResponseResultAssetsInner as AccountInformationResponseResultAssetsInner,
    index$1_AccountInformationResponseResultPositionsInner as AccountInformationResponseResultPositionsInner,
    index$1_CancelOrderRequest as CancelOrderRequest,
    index$1_CancelOrderResponse as CancelOrderResponse,
    index$1_CancelOrderResponseRateLimitsInner as CancelOrderResponseRateLimitsInner,
    index$1_CancelOrderResponseResult as CancelOrderResponseResult,
    index$1_CloseUserDataStreamRequest as CloseUserDataStreamRequest,
    index$1_CloseUserDataStreamResponse as CloseUserDataStreamResponse,
    index$1_CloseUserDataStreamResponseRateLimitsInner as CloseUserDataStreamResponseRateLimitsInner,
    index$1_FuturesAccountBalanceRequest as FuturesAccountBalanceRequest,
    index$1_FuturesAccountBalanceResponse as FuturesAccountBalanceResponse,
    index$1_FuturesAccountBalanceResponseResultInner as FuturesAccountBalanceResponseResultInner,
    index$1_KeepaliveUserDataStreamRequest as KeepaliveUserDataStreamRequest,
    index$1_KeepaliveUserDataStreamResponse as KeepaliveUserDataStreamResponse,
    index$1_KeepaliveUserDataStreamResponseResult as KeepaliveUserDataStreamResponseResult,
    index$1_ModifyOrderPriceMatchEnum as ModifyOrderPriceMatchEnum,
    index$1_ModifyOrderRequest as ModifyOrderRequest,
    index$1_ModifyOrderResponse as ModifyOrderResponse,
    index$1_ModifyOrderResponseResult as ModifyOrderResponseResult,
    index$1_ModifyOrderSideEnum as ModifyOrderSideEnum,
    index$1_NewOrderNewOrderRespTypeEnum as NewOrderNewOrderRespTypeEnum,
    index$1_NewOrderPositionSideEnum as NewOrderPositionSideEnum,
    index$1_NewOrderPriceMatchEnum as NewOrderPriceMatchEnum,
    index$1_NewOrderRequest as NewOrderRequest,
    index$1_NewOrderResponse as NewOrderResponse,
    index$1_NewOrderResponseResult as NewOrderResponseResult,
    index$1_NewOrderSelfTradePreventionModeEnum as NewOrderSelfTradePreventionModeEnum,
    index$1_NewOrderSideEnum as NewOrderSideEnum,
    index$1_NewOrderTimeInForceEnum as NewOrderTimeInForceEnum,
    index$1_NewOrderTypeEnum as NewOrderTypeEnum,
    index$1_NewOrderWorkingTypeEnum as NewOrderWorkingTypeEnum,
    index$1_PositionInformationRequest as PositionInformationRequest,
    index$1_PositionInformationResponse as PositionInformationResponse,
    index$1_PositionInformationResponseResultInner as PositionInformationResponseResultInner,
    index$1_QueryOrderRequest as QueryOrderRequest,
    index$1_QueryOrderResponse as QueryOrderResponse,
    index$1_QueryOrderResponseResult as QueryOrderResponseResult,
    index$1_StartUserDataStreamRequest as StartUserDataStreamRequest,
    index$1_StartUserDataStreamResponse as StartUserDataStreamResponse,
    index$1_StartUserDataStreamResponseRateLimitsInner as StartUserDataStreamResponseRateLimitsInner,
    index$1_StartUserDataStreamResponseResult as StartUserDataStreamResponseResult,
    index$1_TradeApi as TradeApi,
    index$1_TradeApiInterface as TradeApiInterface,
    index$1_UserDataStreamsApi as UserDataStreamsApi,
    index$1_UserDataStreamsApiInterface as UserDataStreamsApiInterface,
    index$1_WebsocketAPI as WebsocketAPI,
    index$1_WebsocketAPIConnection as WebsocketAPIConnection,
  };
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 AggregateTradeStreamsResponse
 */
interface AggregateTradeStreamsResponse {
    /**
     *
     * @type {string}
     * @memberof AggregateTradeStreamsResponse
     */
    e?: string;
    /**
     *
     * @type {number}
     * @memberof AggregateTradeStreamsResponse
     */
    E?: number;
    /**
     *
     * @type {number}
     * @memberof AggregateTradeStreamsResponse
     */
    a?: number;
    /**
     *
     * @type {string}
     * @memberof AggregateTradeStreamsResponse
     */
    s?: string;
    /**
     *
     * @type {string}
     * @memberof AggregateTradeStreamsResponse
     */
    p?: string;
    /**
     *
     * @type {string}
     * @memberof AggregateTradeStreamsResponse
     */
    q?: string;
    /**
     *
     * @type {number}
     * @memberof AggregateTradeStreamsResponse
     */
    f?: number;
    /**
     *
     * @type {number}
     * @memberof AggregateTradeStreamsResponse
     */
    l?: number;
    /**
     *
     * @type {number}
     * @memberof AggregateTradeStreamsResponse
     */
    T?: number;
    /**
     *
     * @type {boolean}
     * @memberof AggregateTradeStreamsResponse
     */
    m?: boolean;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 AllBookTickersStreamResponse
 */
interface AllBookTickersStreamResponse {
    /**
     *
     * @type {string}
     * @memberof AllBookTickersStreamResponse
     */
    e?: string;
    /**
     *
     * @type {number}
     * @memberof AllBookTickersStreamResponse
     */
    u?: number;
    /**
     *
     * @type {string}
     * @memberof AllBookTickersStreamResponse
     */
    s?: string;
    /**
     *
     * @type {string}
     * @memberof AllBookTickersStreamResponse
     */
    ps?: string;
    /**
     *
     * @type {string}
     * @memberof AllBookTickersStreamResponse
     */
    b?: string;
    /**
     *
     * @type {string}
     * @memberof AllBookTickersStreamResponse
     */
    B?: string;
    /**
     *
     * @type {string}
     * @memberof AllBookTickersStreamResponse
     */
    a?: string;
    /**
     *
     * @type {string}
     * @memberof AllBookTickersStreamResponse
     */
    A?: string;
    /**
     *
     * @type {number}
     * @memberof AllBookTickersStreamResponse
     */
    T?: number;
    /**
     *
     * @type {number}
     * @memberof AllBookTickersStreamResponse
     */
    E?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 AllMarketLiquidationOrderStreamsResponseO
 */
interface AllMarketLiquidationOrderStreamsResponseO {
    /**
     *
     * @type {string}
     * @memberof AllMarketLiquidationOrderStreamsResponseO
     */
    s?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketLiquidationOrderStreamsResponseO
     */
    ps?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketLiquidationOrderStreamsResponseO
     */
    S?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketLiquidationOrderStreamsResponseO
     */
    o?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketLiquidationOrderStreamsResponseO
     */
    f?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketLiquidationOrderStreamsResponseO
     */
    q?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketLiquidationOrderStreamsResponseO
     */
    p?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketLiquidationOrderStreamsResponseO
     */
    ap?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketLiquidationOrderStreamsResponseO
     */
    X?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketLiquidationOrderStreamsResponseO
     */
    l?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketLiquidationOrderStreamsResponseO
     */
    z?: string;
    /**
     *
     * @type {number}
     * @memberof AllMarketLiquidationOrderStreamsResponseO
     */
    T?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 AllMarketLiquidationOrderStreamsResponse
 */
interface AllMarketLiquidationOrderStreamsResponse {
    /**
     *
     * @type {string}
     * @memberof AllMarketLiquidationOrderStreamsResponse
     */
    e?: string;
    /**
     *
     * @type {number}
     * @memberof AllMarketLiquidationOrderStreamsResponse
     */
    E?: number;
    /**
     *
     * @type {AllMarketLiquidationOrderStreamsResponseO}
     * @memberof AllMarketLiquidationOrderStreamsResponse
     */
    o?: AllMarketLiquidationOrderStreamsResponseO;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 AllMarketMiniTickersStreamResponseInner
 */
interface AllMarketMiniTickersStreamResponseInner {
    /**
     *
     * @type {string}
     * @memberof AllMarketMiniTickersStreamResponseInner
     */
    e?: string;
    /**
     *
     * @type {number}
     * @memberof AllMarketMiniTickersStreamResponseInner
     */
    E?: number;
    /**
     *
     * @type {string}
     * @memberof AllMarketMiniTickersStreamResponseInner
     */
    s?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketMiniTickersStreamResponseInner
     */
    ps?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketMiniTickersStreamResponseInner
     */
    c?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketMiniTickersStreamResponseInner
     */
    o?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketMiniTickersStreamResponseInner
     */
    h?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketMiniTickersStreamResponseInner
     */
    l?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketMiniTickersStreamResponseInner
     */
    v?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketMiniTickersStreamResponseInner
     */
    q?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 AllMarketMiniTickersStreamResponse
 */
interface AllMarketMiniTickersStreamResponse extends Array<AllMarketMiniTickersStreamResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 AllMarketTickersStreamsResponseInner
 */
interface AllMarketTickersStreamsResponseInner {
    /**
     *
     * @type {string}
     * @memberof AllMarketTickersStreamsResponseInner
     */
    e?: string;
    /**
     *
     * @type {number}
     * @memberof AllMarketTickersStreamsResponseInner
     */
    E?: number;
    /**
     *
     * @type {string}
     * @memberof AllMarketTickersStreamsResponseInner
     */
    s?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketTickersStreamsResponseInner
     */
    ps?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketTickersStreamsResponseInner
     */
    p?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketTickersStreamsResponseInner
     */
    P?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketTickersStreamsResponseInner
     */
    w?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketTickersStreamsResponseInner
     */
    c?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketTickersStreamsResponseInner
     */
    Q?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketTickersStreamsResponseInner
     */
    o?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketTickersStreamsResponseInner
     */
    h?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketTickersStreamsResponseInner
     */
    l?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketTickersStreamsResponseInner
     */
    v?: string;
    /**
     *
     * @type {string}
     * @memberof AllMarketTickersStreamsResponseInner
     */
    q?: string;
    /**
     *
     * @type {number}
     * @memberof AllMarketTickersStreamsResponseInner
     */
    O?: number;
    /**
     *
     * @type {number}
     * @memberof AllMarketTickersStreamsResponseInner
     */
    C?: number;
    /**
     *
     * @type {number}
     * @memberof AllMarketTickersStreamsResponseInner
     */
    F?: number;
    /**
     *
     * @type {number}
     * @memberof AllMarketTickersStreamsResponseInner
     */
    L?: number;
    /**
     *
     * @type {number}
     * @memberof AllMarketTickersStreamsResponseInner
     */
    n?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 AllMarketTickersStreamsResponse
 */
interface AllMarketTickersStreamsResponse extends Array<AllMarketTickersStreamsResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 ContinuousContractKlineCandlestickStreamsResponseK
 */
interface ContinuousContractKlineCandlestickStreamsResponseK {
    /**
     *
     * @type {number}
     * @memberof ContinuousContractKlineCandlestickStreamsResponseK
     */
    t?: number;
    /**
     *
     * @type {number}
     * @memberof ContinuousContractKlineCandlestickStreamsResponseK
     */
    T?: number;
    /**
     *
     * @type {string}
     * @memberof ContinuousContractKlineCandlestickStreamsResponseK
     */
    i?: string;
    /**
     *
     * @type {number}
     * @memberof ContinuousContractKlineCandlestickStreamsResponseK
     */
    f?: number;
    /**
     *
     * @type {number}
     * @memberof ContinuousContractKlineCandlestickStreamsResponseK
     */
    L?: number;
    /**
     *
     * @type {string}
     * @memberof ContinuousContractKlineCandlestickStreamsResponseK
     */
    o?: string;
    /**
     *
     * @type {string}
     * @memberof ContinuousContractKlineCandlestickStreamsResponseK
     */
    c?: string;
    /**
     *
     * @type {string}
     * @memberof ContinuousContractKlineCandlestickStreamsResponseK
     */
    h?: string;
    /**
     *
     * @type {string}
     * @memberof ContinuousContractKlineCandlestickStreamsResponseK
     */
    l?: string;
    /**
     *
     * @type {string}
     * @memberof ContinuousContractKlineCandlestickStreamsResponseK
     */
    v?: string;
    /**
     *
     * @type {number}
     * @memberof ContinuousContractKlineCandlestickStreamsResponseK
     */
    n?: number;
    /**
     *
     * @type {boolean}
     * @memberof ContinuousContractKlineCandlestickStreamsResponseK
     */
    x?: boolean;
    /**
     *
     * @type {string}
     * @memberof ContinuousContractKlineCandlestickStreamsResponseK
     */
    q?: string;
    /**
     *
     * @type {string}
     * @memberof ContinuousContractKlineCandlestickStreamsResponseK
     */
    V?: string;
    /**
     *
     * @type {string}
     * @memberof ContinuousContractKlineCandlestickStreamsResponseK
     */
    Q?: string;
    /**
     *
     * @type {string}
     * @memberof ContinuousContractKlineCandlestickStreamsResponseK
     */
    B?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 ContinuousContractKlineCandlestickStreamsResponse
 */
interface ContinuousContractKlineCandlestickStreamsResponse {
    /**
     *
     * @type {string}
     * @memberof ContinuousContractKlineCandlestickStreamsResponse
     */
    e?: string;
    /**
     *
     * @type {number}
     * @memberof ContinuousContractKlineCandlestickStreamsResponse
     */
    E?: number;
    /**
     *
     * @type {string}
     * @memberof ContinuousContractKlineCandlestickStreamsResponse
     */
    ps?: string;
    /**
     *
     * @type {string}
     * @memberof ContinuousContractKlineCandlestickStreamsResponse
     */
    ct?: string;
    /**
     *
     * @type {ContinuousContractKlineCandlestickStreamsResponseK}
     * @memberof ContinuousContractKlineCandlestickStreamsResponse
     */
    k?: ContinuousContractKlineCandlestickStreamsResponseK;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 ContractInfoStreamResponseBksInner
 */
interface ContractInfoStreamResponseBksInner {
    /**
     *
     * @type {number}
     * @memberof ContractInfoStreamResponseBksInner
     */
    bs?: number;
    /**
     *
     * @type {number}
     * @memberof ContractInfoStreamResponseBksInner
     */
    bnf?: number;
    /**
     *
     * @type {number}
     * @memberof ContractInfoStreamResponseBksInner
     */
    bnc?: number;
    /**
     *
     * @type {number}
     * @memberof ContractInfoStreamResponseBksInner
     */
    mmr?: number;
    /**
     *
     * @type {number}
     * @memberof ContractInfoStreamResponseBksInner
     */
    cf?: number;
    /**
     *
     * @type {number}
     * @memberof ContractInfoStreamResponseBksInner
     */
    mi?: number;
    /**
     *
     * @type {number}
     * @memberof ContractInfoStreamResponseBksInner
     */
    ma?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 ContractInfoStreamResponse
 */
interface ContractInfoStreamResponse {
    /**
     *
     * @type {string}
     * @memberof ContractInfoStreamResponse
     */
    e?: string;
    /**
     *
     * @type {number}
     * @memberof ContractInfoStreamResponse
     */
    E?: number;
    /**
     *
     * @type {string}
     * @memberof ContractInfoStreamResponse
     */
    s?: string;
    /**
     *
     * @type {string}
     * @memberof ContractInfoStreamResponse
     */
    ps?: string;
    /**
     *
     * @type {string}
     * @memberof ContractInfoStreamResponse
     */
    ct?: string;
    /**
     *
     * @type {number}
     * @memberof ContractInfoStreamResponse
     */
    dt?: number;
    /**
     *
     * @type {number}
     * @memberof ContractInfoStreamResponse
     */
    ot?: number;
    /**
     *
     * @type {string}
     * @memberof ContractInfoStreamResponse
     */
    cs?: string;
    /**
     *
     * @type {Array<ContractInfoStreamResponseBksInner>}
     * @memberof ContractInfoStreamResponse
     */
    bks?: Array<ContractInfoStreamResponseBksInner>;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 DiffBookDepthStreamsResponseAItem
 */
interface DiffBookDepthStreamsResponseAItem extends Array<string> {
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 DiffBookDepthStreamsResponseBItem
 */
interface DiffBookDepthStreamsResponseBItem extends Array<string> {
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 DiffBookDepthStreamsResponse
 */
interface DiffBookDepthStreamsResponse {
    /**
     *
     * @type {string}
     * @memberof DiffBookDepthStreamsResponse
     */
    e?: string;
    /**
     *
     * @type {number}
     * @memberof DiffBookDepthStreamsResponse
     */
    E?: number;
    /**
     *
     * @type {number}
     * @memberof DiffBookDepthStreamsResponse
     */
    T?: number;
    /**
     *
     * @type {string}
     * @memberof DiffBookDepthStreamsResponse
     */
    s?: string;
    /**
     *
     * @type {string}
     * @memberof DiffBookDepthStreamsResponse
     */
    ps?: string;
    /**
     *
     * @type {number}
     * @memberof DiffBookDepthStreamsResponse
     */
    U?: number;
    /**
     *
     * @type {number}
     * @memberof DiffBookDepthStreamsResponse
     */
    u?: number;
    /**
     *
     * @type {number}
     * @memberof DiffBookDepthStreamsResponse
     */
    pu?: number;
    /**
     *
     * @type {Array<DiffBookDepthStreamsResponseBItem>}
     * @memberof DiffBookDepthStreamsResponse
     */
    b?: Array<DiffBookDepthStreamsResponseBItem>;
    /**
     *
     * @type {Array<DiffBookDepthStreamsResponseAItem>}
     * @memberof DiffBookDepthStreamsResponse
     */
    a?: Array<DiffBookDepthStreamsResponseAItem>;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 IndexKlineCandlestickStreamsResponseK
 */
interface IndexKlineCandlestickStreamsResponseK {
    /**
     *
     * @type {number}
     * @memberof IndexKlineCandlestickStreamsResponseK
     */
    t?: number;
    /**
     *
     * @type {number}
     * @memberof IndexKlineCandlestickStreamsResponseK
     */
    T?: number;
    /**
     *
     * @type {string}
     * @memberof IndexKlineCandlestickStreamsResponseK
     */
    s?: string;
    /**
     *
     * @type {string}
     * @memberof IndexKlineCandlestickStreamsResponseK
     */
    i?: string;
    /**
     *
     * @type {number}
     * @memberof IndexKlineCandlestickStreamsResponseK
     */
    f?: number;
    /**
     *
     * @type {number}
     * @memberof IndexKlineCandlestickStreamsResponseK
     */
    L?: number;
    /**
     *
     * @type {string}
     * @memberof IndexKlineCandlestickStreamsResponseK
     */
    o?: string;
    /**
     *
     * @type {string}
     * @memberof IndexKlineCandlestickStreamsResponseK
     */
    c?: string;
    /**
     *
     * @type {string}
     * @memberof IndexKlineCandlestickStreamsResponseK
     */
    h?: string;
    /**
     *
     * @type {string}
     * @memberof IndexKlineCandlestickStreamsResponseK
     */
    l?: string;
    /**
     *
     * @type {string}
     * @memberof IndexKlineCandlestickStreamsResponseK
     */
    v?: string;
    /**
     *
     * @type {number}
     * @memberof IndexKlineCandlestickStreamsResponseK
     */
    n?: number;
    /**
     *
     * @type {boolean}
     * @memberof IndexKlineCandlestickStreamsResponseK
     */
    x?: boolean;
    /**
     *
     * @type {string}
     * @memberof IndexKlineCandlestickStreamsResponseK
     */
    q?: string;
    /**
     *
     * @type {string}
     * @memberof IndexKlineCandlestickStreamsResponseK
     */
    V?: string;
    /**
     *
     * @type {string}
     * @memberof IndexKlineCandlestickStreamsResponseK
     */
    Q?: string;
    /**
     *
     * @type {string}
     * @memberof IndexKlineCandlestickStreamsResponseK
     */
    B?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 IndexKlineCandlestickStreamsResponse
 */
interface IndexKlineCandlestickStreamsResponse {
    /**
     *
     * @type {string}
     * @memberof IndexKlineCandlestickStreamsResponse
     */
    e?: string;
    /**
     *
     * @type {number}
     * @memberof IndexKlineCandlestickStreamsResponse
     */
    E?: number;
    /**
     *
     * @type {string}
     * @memberof IndexKlineCandlestickStreamsResponse
     */
    ps?: string;
    /**
     *
     * @type {IndexKlineCandlestickStreamsResponseK}
     * @memberof IndexKlineCandlestickStreamsResponse
     */
    k?: IndexKlineCandlestickStreamsResponseK;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 IndexPriceStreamResponse
 */
interface IndexPriceStreamResponse {
    /**
     *
     * @type {string}
     * @memberof IndexPriceStreamResponse
     */
    e?: string;
    /**
     *
     * @type {number}
     * @memberof IndexPriceStreamResponse
     */
    E?: number;
    /**
     *
     * @type {string}
     * @memberof IndexPriceStreamResponse
     */
    i?: string;
    /**
     *
     * @type {string}
     * @memberof IndexPriceStreamResponse
     */
    p?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 IndividualSymbolBookTickerStreamsResponse
 */
interface IndividualSymbolBookTickerStreamsResponse {
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolBookTickerStreamsResponse
     */
    e?: string;
    /**
     *
     * @type {number}
     * @memberof IndividualSymbolBookTickerStreamsResponse
     */
    u?: number;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolBookTickerStreamsResponse
     */
    s?: string;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolBookTickerStreamsResponse
     */
    ps?: string;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolBookTickerStreamsResponse
     */
    b?: string;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolBookTickerStreamsResponse
     */
    B?: string;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolBookTickerStreamsResponse
     */
    a?: string;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolBookTickerStreamsResponse
     */
    A?: string;
    /**
     *
     * @type {number}
     * @memberof IndividualSymbolBookTickerStreamsResponse
     */
    T?: number;
    /**
     *
     * @type {number}
     * @memberof IndividualSymbolBookTickerStreamsResponse
     */
    E?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 IndividualSymbolMiniTickerStreamResponse
 */
interface IndividualSymbolMiniTickerStreamResponse {
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolMiniTickerStreamResponse
     */
    e?: string;
    /**
     *
     * @type {number}
     * @memberof IndividualSymbolMiniTickerStreamResponse
     */
    E?: number;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolMiniTickerStreamResponse
     */
    s?: string;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolMiniTickerStreamResponse
     */
    ps?: string;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolMiniTickerStreamResponse
     */
    c?: string;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolMiniTickerStreamResponse
     */
    o?: string;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolMiniTickerStreamResponse
     */
    h?: string;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolMiniTickerStreamResponse
     */
    l?: string;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolMiniTickerStreamResponse
     */
    v?: string;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolMiniTickerStreamResponse
     */
    q?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 IndividualSymbolTickerStreamsResponse
 */
interface IndividualSymbolTickerStreamsResponse {
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolTickerStreamsResponse
     */
    e?: string;
    /**
     *
     * @type {number}
     * @memberof IndividualSymbolTickerStreamsResponse
     */
    E?: number;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolTickerStreamsResponse
     */
    s?: string;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolTickerStreamsResponse
     */
    ps?: string;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolTickerStreamsResponse
     */
    p?: string;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolTickerStreamsResponse
     */
    P?: string;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolTickerStreamsResponse
     */
    w?: string;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolTickerStreamsResponse
     */
    c?: string;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolTickerStreamsResponse
     */
    Q?: string;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolTickerStreamsResponse
     */
    o?: string;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolTickerStreamsResponse
     */
    h?: string;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolTickerStreamsResponse
     */
    l?: string;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolTickerStreamsResponse
     */
    v?: string;
    /**
     *
     * @type {string}
     * @memberof IndividualSymbolTickerStreamsResponse
     */
    q?: string;
    /**
     *
     * @type {number}
     * @memberof IndividualSymbolTickerStreamsResponse
     */
    O?: number;
    /**
     *
     * @type {number}
     * @memberof IndividualSymbolTickerStreamsResponse
     */
    C?: number;
    /**
     *
     * @type {number}
     * @memberof IndividualSymbolTickerStreamsResponse
     */
    F?: number;
    /**
     *
     * @type {number}
     * @memberof IndividualSymbolTickerStreamsResponse
     */
    L?: number;
    /**
     *
     * @type {number}
     * @memberof IndividualSymbolTickerStreamsResponse
     */
    n?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 KlineCandlestickStreamsResponseK
 */
interface KlineCandlestickStreamsResponseK {
    /**
     *
     * @type {number}
     * @memberof KlineCandlestickStreamsResponseK
     */
    t?: number;
    /**
     *
     * @type {number}
     * @memberof KlineCandlestickStreamsResponseK
     */
    T?: number;
    /**
     *
     * @type {string}
     * @memberof KlineCandlestickStreamsResponseK
     */
    s?: string;
    /**
     *
     * @type {string}
     * @memberof KlineCandlestickStreamsResponseK
     */
    i?: string;
    /**
     *
     * @type {number}
     * @memberof KlineCandlestickStreamsResponseK
     */
    f?: number;
    /**
     *
     * @type {number}
     * @memberof KlineCandlestickStreamsResponseK
     */
    L?: number;
    /**
     *
     * @type {string}
     * @memberof KlineCandlestickStreamsResponseK
     */
    o?: string;
    /**
     *
     * @type {string}
     * @memberof KlineCandlestickStreamsResponseK
     */
    c?: string;
    /**
     *
     * @type {string}
     * @memberof KlineCandlestickStreamsResponseK
     */
    h?: string;
    /**
     *
     * @type {string}
     * @memberof KlineCandlestickStreamsResponseK
     */
    l?: string;
    /**
     *
     * @type {string}
     * @memberof KlineCandlestickStreamsResponseK
     */
    v?: string;
    /**
     *
     * @type {number}
     * @memberof KlineCandlestickStreamsResponseK
     */
    n?: number;
    /**
     *
     * @type {boolean}
     * @memberof KlineCandlestickStreamsResponseK
     */
    x?: boolean;
    /**
     *
     * @type {string}
     * @memberof KlineCandlestickStreamsResponseK
     */
    q?: string;
    /**
     *
     * @type {string}
     * @memberof KlineCandlestickStreamsResponseK
     */
    V?: string;
    /**
     *
     * @type {string}
     * @memberof KlineCandlestickStreamsResponseK
     */
    Q?: string;
    /**
     *
     * @type {string}
     * @memberof KlineCandlestickStreamsResponseK
     */
    B?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 KlineCandlestickStreamsResponse
 */
interface KlineCandlestickStreamsResponse {
    /**
     *
     * @type {string}
     * @memberof KlineCandlestickStreamsResponse
     */
    e?: string;
    /**
     *
     * @type {number}
     * @memberof KlineCandlestickStreamsResponse
     */
    E?: number;
    /**
     *
     * @type {string}
     * @memberof KlineCandlestickStreamsResponse
     */
    s?: string;
    /**
     *
     * @type {KlineCandlestickStreamsResponseK}
     * @memberof KlineCandlestickStreamsResponse
     */
    k?: KlineCandlestickStreamsResponseK;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 LiquidationOrderStreamsResponse
 */
interface LiquidationOrderStreamsResponse {
    /**
     *
     * @type {string}
     * @memberof LiquidationOrderStreamsResponse
     */
    e?: string;
    /**
     *
     * @type {number}
     * @memberof LiquidationOrderStreamsResponse
     */
    E?: number;
    /**
     *
     * @type {AllMarketLiquidationOrderStreamsResponseO}
     * @memberof LiquidationOrderStreamsResponse
     */
    o?: AllMarketLiquidationOrderStreamsResponseO;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 MarkPriceKlineCandlestickStreamsResponseK
 */
interface MarkPriceKlineCandlestickStreamsResponseK {
    /**
     *
     * @type {number}
     * @memberof MarkPriceKlineCandlestickStreamsResponseK
     */
    t?: number;
    /**
     *
     * @type {number}
     * @memberof MarkPriceKlineCandlestickStreamsResponseK
     */
    T?: number;
    /**
     *
     * @type {string}
     * @memberof MarkPriceKlineCandlestickStreamsResponseK
     */
    s?: string;
    /**
     *
     * @type {string}
     * @memberof MarkPriceKlineCandlestickStreamsResponseK
     */
    i?: string;
    /**
     *
     * @type {number}
     * @memberof MarkPriceKlineCandlestickStreamsResponseK
     */
    f?: number;
    /**
     *
     * @type {number}
     * @memberof MarkPriceKlineCandlestickStreamsResponseK
     */
    L?: number;
    /**
     *
     * @type {string}
     * @memberof MarkPriceKlineCandlestickStreamsResponseK
     */
    o?: string;
    /**
     *
     * @type {string}
     * @memberof MarkPriceKlineCandlestickStreamsResponseK
     */
    c?: string;
    /**
     *
     * @type {string}
     * @memberof MarkPriceKlineCandlestickStreamsResponseK
     */
    h?: string;
    /**
     *
     * @type {string}
     * @memberof MarkPriceKlineCandlestickStreamsResponseK
     */
    l?: string;
    /**
     *
     * @type {string}
     * @memberof MarkPriceKlineCandlestickStreamsResponseK
     */
    v?: string;
    /**
     *
     * @type {number}
     * @memberof MarkPriceKlineCandlestickStreamsResponseK
     */
    n?: number;
    /**
     *
     * @type {boolean}
     * @memberof MarkPriceKlineCandlestickStreamsResponseK
     */
    x?: boolean;
    /**
     *
     * @type {string}
     * @memberof MarkPriceKlineCandlestickStreamsResponseK
     */
    q?: string;
    /**
     *
     * @type {string}
     * @memberof MarkPriceKlineCandlestickStreamsResponseK
     */
    V?: string;
    /**
     *
     * @type {string}
     * @memberof MarkPriceKlineCandlestickStreamsResponseK
     */
    Q?: string;
    /**
     *
     * @type {string}
     * @memberof MarkPriceKlineCandlestickStreamsResponseK
     */
    B?: string;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 MarkPriceKlineCandlestickStreamsResponse
 */
interface MarkPriceKlineCandlestickStreamsResponse {
    /**
     *
     * @type {string}
     * @memberof MarkPriceKlineCandlestickStreamsResponse
     */
    e?: string;
    /**
     *
     * @type {number}
     * @memberof MarkPriceKlineCandlestickStreamsResponse
     */
    E?: number;
    /**
     *
     * @type {string}
     * @memberof MarkPriceKlineCandlestickStreamsResponse
     */
    ps?: string;
    /**
     *
     * @type {MarkPriceKlineCandlestickStreamsResponseK}
     * @memberof MarkPriceKlineCandlestickStreamsResponse
     */
    k?: MarkPriceKlineCandlestickStreamsResponseK;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 MarkPriceOfAllSymbolsOfAPairResponseInner
 */
interface MarkPriceOfAllSymbolsOfAPairResponseInner {
    /**
     *
     * @type {string}
     * @memberof MarkPriceOfAllSymbolsOfAPairResponseInner
     */
    e?: string;
    /**
     *
     * @type {number}
     * @memberof MarkPriceOfAllSymbolsOfAPairResponseInner
     */
    E?: number;
    /**
     *
     * @type {string}
     * @memberof MarkPriceOfAllSymbolsOfAPairResponseInner
     */
    s?: string;
    /**
     *
     * @type {string}
     * @memberof MarkPriceOfAllSymbolsOfAPairResponseInner
     */
    p?: string;
    /**
     *
     * @type {string}
     * @memberof MarkPriceOfAllSymbolsOfAPairResponseInner
     */
    P?: string;
    /**
     *
     * @type {string}
     * @memberof MarkPriceOfAllSymbolsOfAPairResponseInner
     */
    i?: string;
    /**
     *
     * @type {string}
     * @memberof MarkPriceOfAllSymbolsOfAPairResponseInner
     */
    r?: string;
    /**
     *
     * @type {number}
     * @memberof MarkPriceOfAllSymbolsOfAPairResponseInner
     */
    T?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 MarkPriceOfAllSymbolsOfAPairResponse
 */
interface MarkPriceOfAllSymbolsOfAPairResponse extends Array<MarkPriceOfAllSymbolsOfAPairResponseInner> {
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 MarkPriceStreamResponse
 */
interface MarkPriceStreamResponse {
    /**
     *
     * @type {string}
     * @memberof MarkPriceStreamResponse
     */
    e?: string;
    /**
     *
     * @type {number}
     * @memberof MarkPriceStreamResponse
     */
    E?: number;
    /**
     *
     * @type {string}
     * @memberof MarkPriceStreamResponse
     */
    s?: string;
    /**
     *
     * @type {string}
     * @memberof MarkPriceStreamResponse
     */
    p?: string;
    /**
     *
     * @type {string}
     * @memberof MarkPriceStreamResponse
     */
    P?: string;
    /**
     *
     * @type {string}
     * @memberof MarkPriceStreamResponse
     */
    i?: string;
    /**
     *
     * @type {string}
     * @memberof MarkPriceStreamResponse
     */
    r?: string;
    /**
     *
     * @type {number}
     * @memberof MarkPriceStreamResponse
     */
    T?: number;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 PartialBookDepthStreamsResponseAItem
 */
interface PartialBookDepthStreamsResponseAItem extends Array<string> {
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 PartialBookDepthStreamsResponseBItem
 */
interface PartialBookDepthStreamsResponseBItem extends Array<string> {
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 PartialBookDepthStreamsResponse
 */
interface PartialBookDepthStreamsResponse {
    /**
     *
     * @type {string}
     * @memberof PartialBookDepthStreamsResponse
     */
    e?: string;
    /**
     *
     * @type {number}
     * @memberof PartialBookDepthStreamsResponse
     */
    E?: number;
    /**
     *
     * @type {number}
     * @memberof PartialBookDepthStreamsResponse
     */
    T?: number;
    /**
     *
     * @type {string}
     * @memberof PartialBookDepthStreamsResponse
     */
    s?: string;
    /**
     *
     * @type {string}
     * @memberof PartialBookDepthStreamsResponse
     */
    ps?: string;
    /**
     *
     * @type {number}
     * @memberof PartialBookDepthStreamsResponse
     */
    U?: number;
    /**
     *
     * @type {number}
     * @memberof PartialBookDepthStreamsResponse
     */
    u?: number;
    /**
     *
     * @type {number}
     * @memberof PartialBookDepthStreamsResponse
     */
    pu?: number;
    /**
     *
     * @type {Array<PartialBookDepthStreamsResponseBItem>}
     * @memberof PartialBookDepthStreamsResponse
     */
    b?: Array<PartialBookDepthStreamsResponseBItem>;
    /**
     *
     * @type {Array<PartialBookDepthStreamsResponseAItem>}
     * @memberof PartialBookDepthStreamsResponse
     */
    a?: Array<PartialBookDepthStreamsResponseAItem>;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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.
 */

/**
 * WebsocketMarketStreamsApi - interface
 * @interface WebsocketMarketStreamsApi
 */
interface WebsocketMarketStreamsApiInterface {
    /**
     * The Aggregate Trade Streams push market trade information that is aggregated for fills with same price and taking side every 100 milliseconds.
     *
     * Update Speed: 100ms
     *
     * @summary Aggregate Trade Streams
     * @param {AggregateTradeStreamsRequest} requestParameters Request parameters.
     *
     * @returns {WebsocketStream<AggregateTradeStreamsResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApiInterface
     */
    aggregateTradeStreams(requestParameters: AggregateTradeStreamsRequest): WebsocketStream<AggregateTradeStreamsResponse>;
    /**
     * Pushes any update to the best bid or ask's price or quantity in real-time for all symbols.
     *
     * Update Speed: Real-time
     *
     * @summary All Book Tickers Stream
     * @param {AllBookTickersStreamRequest} requestParameters Request parameters.
     *
     * @returns {WebsocketStream<AllBookTickersStreamResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApiInterface
     */
    allBookTickersStream(requestParameters?: AllBookTickersStreamRequest): WebsocketStream<AllBookTickersStreamResponse>;
    /**
     * The All Liquidation Order Snapshot Streams push force liquidation order information for all symbols in the market.
     * For each symbol，only the latest one liquidation order within 1000ms will be pushed as the snapshot. If no liquidation happens in the interval of 1000ms, no stream will be pushed.
     *
     * Update Speed: 1000ms
     *
     * @summary All Market Liquidation Order Streams
     * @param {AllMarketLiquidationOrderStreamsRequest} requestParameters Request parameters.
     *
     * @returns {WebsocketStream<AllMarketLiquidationOrderStreamsResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApiInterface
     */
    allMarketLiquidationOrderStreams(requestParameters?: AllMarketLiquidationOrderStreamsRequest): WebsocketStream<AllMarketLiquidationOrderStreamsResponse>;
    /**
     * 24hr rolling window mini-ticker statistics for all symbols. These are NOT the statistics of the UTC day, but a 24hr rolling window from requestTime to 24hrs before. Note that only tickers that have changed will be present in the array.
     *
     * Update Speed: 1000ms
     *
     * @summary All Market Mini Tickers Stream
     * @param {AllMarketMiniTickersStreamRequest} requestParameters Request parameters.
     *
     * @returns {WebsocketStream<AllMarketMiniTickersStreamResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApiInterface
     */
    allMarketMiniTickersStream(requestParameters?: AllMarketMiniTickersStreamRequest): WebsocketStream<AllMarketMiniTickersStreamResponse>;
    /**
     * 24hr rolling window ticker statistics for all symbols. These are NOT the statistics of the UTC day, but a 24hr rolling window from requestTime to 24hrs before. Note that only tickers that have changed will be present in the array.
     *
     * Update Speed: 1000ms
     *
     * @summary All Market Tickers Streams
     * @param {AllMarketTickersStreamsRequest} requestParameters Request parameters.
     *
     * @returns {WebsocketStream<AllMarketTickersStreamsResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApiInterface
     */
    allMarketTickersStreams(requestParameters?: AllMarketTickersStreamsRequest): WebsocketStream<AllMarketTickersStreamsResponse>;
    /**
     * Kline update every second
     *
     * Update Speed: 250ms
     *
     * @summary Continuous Contract Kline/Candlestick Streams
     * @param {ContinuousContractKlineCandlestickStreamsRequest} requestParameters Request parameters.
     *
     * @returns {WebsocketStream<ContinuousContractKlineCandlestickStreamsResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApiInterface
     */
    continuousContractKlineCandlestickStreams(requestParameters: ContinuousContractKlineCandlestickStreamsRequest): WebsocketStream<ContinuousContractKlineCandlestickStreamsResponse>;
    /**
     * ContractInfo stream pushes when contract info updates(listing/settlement/contract bracket update). `bks` field only shows up when bracket gets updated.
     *
     * Update Speed: Real-time
     *
     * @summary Contract Info Stream
     * @param {ContractInfoStreamRequest} requestParameters Request parameters.
     *
     * @returns {WebsocketStream<ContractInfoStreamResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApiInterface
     */
    contractInfoStream(requestParameters?: ContractInfoStreamRequest): WebsocketStream<ContractInfoStreamResponse>;
    /**
     * Bids and asks, pushed every 250 milliseconds, 500 milliseconds, or 100 milliseconds
     *
     * Update Speed: 250ms or 500ms or 100ms
     *
     * @summary Diff. Book Depth Streams
     * @param {DiffBookDepthStreamsRequest} requestParameters Request parameters.
     *
     * @returns {WebsocketStream<DiffBookDepthStreamsResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApiInterface
     */
    diffBookDepthStreams(requestParameters: DiffBookDepthStreamsRequest): WebsocketStream<DiffBookDepthStreamsResponse>;
    /**
     * Index Kline/Candlestick Streams
     *
     * Update Speed: 250ms
     *
     * @summary Index Kline/Candlestick Streams
     * @param {IndexKlineCandlestickStreamsRequest} requestParameters Request parameters.
     *
     * @returns {WebsocketStream<IndexKlineCandlestickStreamsResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApiInterface
     */
    indexKlineCandlestickStreams(requestParameters: IndexKlineCandlestickStreamsRequest): WebsocketStream<IndexKlineCandlestickStreamsResponse>;
    /**
     * Index Price Stream
     *
     * Update Speed: 3000ms OR 1000ms
     *
     * @summary Index Price Stream
     * @param {IndexPriceStreamRequest} requestParameters Request parameters.
     *
     * @returns {WebsocketStream<IndexPriceStreamResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApiInterface
     */
    indexPriceStream(requestParameters: IndexPriceStreamRequest): WebsocketStream<IndexPriceStreamResponse>;
    /**
     * Pushes any update to the best bid or ask's price or quantity in real-time for a specified symbol.
     *
     * Update Speed: Real-time
     *
     * @summary Individual Symbol Book Ticker Streams
     * @param {IndividualSymbolBookTickerStreamsRequest} requestParameters Request parameters.
     *
     * @returns {WebsocketStream<IndividualSymbolBookTickerStreamsResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApiInterface
     */
    individualSymbolBookTickerStreams(requestParameters: IndividualSymbolBookTickerStreamsRequest): WebsocketStream<IndividualSymbolBookTickerStreamsResponse>;
    /**
     * 24hr rolling window mini-ticker statistics for a single symbol. These are NOT the statistics of the UTC day, but a 24hr rolling window from requestTime to 24hrs before.
     *
     * Update Speed: 500ms
     *
     * @summary Individual Symbol Mini Ticker Stream
     * @param {IndividualSymbolMiniTickerStreamRequest} requestParameters Request parameters.
     *
     * @returns {WebsocketStream<IndividualSymbolMiniTickerStreamResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApiInterface
     */
    individualSymbolMiniTickerStream(requestParameters: IndividualSymbolMiniTickerStreamRequest): WebsocketStream<IndividualSymbolMiniTickerStreamResponse>;
    /**
     * 24hr rolling window ticker statistics for a single symbol. These are NOT the statistics of the UTC day, but a 24hr rolling window from requestTime to 24hrs before.
     *
     * Update Speed: 500ms
     *
     * @summary Individual Symbol Ticker Streams
     * @param {IndividualSymbolTickerStreamsRequest} requestParameters Request parameters.
     *
     * @returns {WebsocketStream<IndividualSymbolTickerStreamsResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApiInterface
     */
    individualSymbolTickerStreams(requestParameters: IndividualSymbolTickerStreamsRequest): WebsocketStream<IndividualSymbolTickerStreamsResponse>;
    /**
     * The Kline/Candlestick Stream push updates to the current klines/candlestick every 250 milliseconds (if existing).
     *
     * Update Speed: 250ms
     *
     * @summary Kline/Candlestick Streams
     * @param {KlineCandlestickStreamsRequest} requestParameters Request parameters.
     *
     * @returns {WebsocketStream<KlineCandlestickStreamsResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApiInterface
     */
    klineCandlestickStreams(requestParameters: KlineCandlestickStreamsRequest): WebsocketStream<KlineCandlestickStreamsResponse>;
    /**
     * The Liquidation Order Snapshot Streams push force liquidation order information for specific symbol.
     *
     * For each symbol，only the latest one liquidation order within 1000ms will be pushed as the snapshot. If no liquidation happens in the interval of 1000ms, no stream will be pushed.
     *
     * Update Speed: 1000ms
     *
     * @summary Liquidation Order Streams
     * @param {LiquidationOrderStreamsRequest} requestParameters Request parameters.
     *
     * @returns {WebsocketStream<LiquidationOrderStreamsResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApiInterface
     */
    liquidationOrderStreams(requestParameters: LiquidationOrderStreamsRequest): WebsocketStream<LiquidationOrderStreamsResponse>;
    /**
     * Mark Price Kline/Candlestick Streams
     *
     * Update Speed: 250ms
     *
     * @summary Mark Price Kline/Candlestick Streams
     * @param {MarkPriceKlineCandlestickStreamsRequest} requestParameters Request parameters.
     *
     * @returns {WebsocketStream<MarkPriceKlineCandlestickStreamsResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApiInterface
     */
    markPriceKlineCandlestickStreams(requestParameters: MarkPriceKlineCandlestickStreamsRequest): WebsocketStream<MarkPriceKlineCandlestickStreamsResponse>;
    /**
     * Mark Price of All Symbols of a Pair
     *
     * Update Speed: 3000ms OR 1000ms
     *
     * @summary Mark Price of All Symbols of a Pair
     * @param {MarkPriceOfAllSymbolsOfAPairRequest} requestParameters Request parameters.
     *
     * @returns {WebsocketStream<MarkPriceOfAllSymbolsOfAPairResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApiInterface
     */
    markPriceOfAllSymbolsOfAPair(requestParameters: MarkPriceOfAllSymbolsOfAPairRequest): WebsocketStream<MarkPriceOfAllSymbolsOfAPairResponse>;
    /**
     * Mark price update stream
     *
     * Update Speed: 3000ms OR 1000ms
     *
     * @summary Mark Price Stream
     * @param {MarkPriceStreamRequest} requestParameters Request parameters.
     *
     * @returns {WebsocketStream<MarkPriceStreamResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApiInterface
     */
    markPriceStream(requestParameters: MarkPriceStreamRequest): WebsocketStream<MarkPriceStreamResponse>;
    /**
     * Top **<levels\>** bids and asks, Valid **<levels\>** are 5, 10, or 20.
     *
     * Update Speed: 250ms, 500ms or 100ms
     *
     * @summary Partial Book Depth Streams
     * @param {PartialBookDepthStreamsRequest} requestParameters Request parameters.
     *
     * @returns {WebsocketStream<PartialBookDepthStreamsResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApiInterface
     */
    partialBookDepthStreams(requestParameters: PartialBookDepthStreamsRequest): WebsocketStream<PartialBookDepthStreamsResponse>;
}
/**
 * Request parameters for aggregateTradeStreams operation in WebsocketMarketStreamsApi.
 * @interface AggregateTradeStreamsRequest
 */
interface AggregateTradeStreamsRequest {
    /**
     * The symbol parameter
     * @type {string}
     * @memberof WebsocketMarketStreamsApiAggregateTradeStreams
     */
    readonly symbol: string;
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof WebsocketMarketStreamsApiAggregateTradeStreams
     */
    readonly id?: string;
}
/**
 * Request parameters for allBookTickersStream operation in WebsocketMarketStreamsApi.
 * @interface AllBookTickersStreamRequest
 */
interface AllBookTickersStreamRequest {
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof WebsocketMarketStreamsApiAllBookTickersStream
     */
    readonly id?: string;
}
/**
 * Request parameters for allMarketLiquidationOrderStreams operation in WebsocketMarketStreamsApi.
 * @interface AllMarketLiquidationOrderStreamsRequest
 */
interface AllMarketLiquidationOrderStreamsRequest {
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof WebsocketMarketStreamsApiAllMarketLiquidationOrderStreams
     */
    readonly id?: string;
}
/**
 * Request parameters for allMarketMiniTickersStream operation in WebsocketMarketStreamsApi.
 * @interface AllMarketMiniTickersStreamRequest
 */
interface AllMarketMiniTickersStreamRequest {
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof WebsocketMarketStreamsApiAllMarketMiniTickersStream
     */
    readonly id?: string;
}
/**
 * Request parameters for allMarketTickersStreams operation in WebsocketMarketStreamsApi.
 * @interface AllMarketTickersStreamsRequest
 */
interface AllMarketTickersStreamsRequest {
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof WebsocketMarketStreamsApiAllMarketTickersStreams
     */
    readonly id?: string;
}
/**
 * Request parameters for continuousContractKlineCandlestickStreams operation in WebsocketMarketStreamsApi.
 * @interface ContinuousContractKlineCandlestickStreamsRequest
 */
interface ContinuousContractKlineCandlestickStreamsRequest {
    /**
     * The pair parameter
     * @type {string}
     * @memberof WebsocketMarketStreamsApiContinuousContractKlineCandlestickStreams
     */
    readonly pair: string;
    /**
     * The contractType parameter
     * @type {string}
     * @memberof WebsocketMarketStreamsApiContinuousContractKlineCandlestickStreams
     */
    readonly contractType: string;
    /**
     * The interval parameter
     * @type {string}
     * @memberof WebsocketMarketStreamsApiContinuousContractKlineCandlestickStreams
     */
    readonly interval: string;
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof WebsocketMarketStreamsApiContinuousContractKlineCandlestickStreams
     */
    readonly id?: string;
}
/**
 * Request parameters for contractInfoStream operation in WebsocketMarketStreamsApi.
 * @interface ContractInfoStreamRequest
 */
interface ContractInfoStreamRequest {
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof WebsocketMarketStreamsApiContractInfoStream
     */
    readonly id?: string;
}
/**
 * Request parameters for diffBookDepthStreams operation in WebsocketMarketStreamsApi.
 * @interface DiffBookDepthStreamsRequest
 */
interface DiffBookDepthStreamsRequest {
    /**
     * The symbol parameter
     * @type {string}
     * @memberof WebsocketMarketStreamsApiDiffBookDepthStreams
     */
    readonly symbol: string;
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof WebsocketMarketStreamsApiDiffBookDepthStreams
     */
    readonly id?: string;
    /**
     * WebSocket stream update speed
     * @type {string}
     * @memberof WebsocketMarketStreamsApiDiffBookDepthStreams
     */
    readonly updateSpeed?: string;
}
/**
 * Request parameters for indexKlineCandlestickStreams operation in WebsocketMarketStreamsApi.
 * @interface IndexKlineCandlestickStreamsRequest
 */
interface IndexKlineCandlestickStreamsRequest {
    /**
     * The pair parameter
     * @type {string}
     * @memberof WebsocketMarketStreamsApiIndexKlineCandlestickStreams
     */
    readonly pair: string;
    /**
     * The interval parameter
     * @type {string}
     * @memberof WebsocketMarketStreamsApiIndexKlineCandlestickStreams
     */
    readonly interval: string;
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof WebsocketMarketStreamsApiIndexKlineCandlestickStreams
     */
    readonly id?: string;
}
/**
 * Request parameters for indexPriceStream operation in WebsocketMarketStreamsApi.
 * @interface IndexPriceStreamRequest
 */
interface IndexPriceStreamRequest {
    /**
     * The pair parameter
     * @type {string}
     * @memberof WebsocketMarketStreamsApiIndexPriceStream
     */
    readonly pair: string;
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof WebsocketMarketStreamsApiIndexPriceStream
     */
    readonly id?: string;
    /**
     * WebSocket stream update speed
     * @type {string}
     * @memberof WebsocketMarketStreamsApiIndexPriceStream
     */
    readonly updateSpeed?: string;
}
/**
 * Request parameters for individualSymbolBookTickerStreams operation in WebsocketMarketStreamsApi.
 * @interface IndividualSymbolBookTickerStreamsRequest
 */
interface IndividualSymbolBookTickerStreamsRequest {
    /**
     * The symbol parameter
     * @type {string}
     * @memberof WebsocketMarketStreamsApiIndividualSymbolBookTickerStreams
     */
    readonly symbol: string;
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof WebsocketMarketStreamsApiIndividualSymbolBookTickerStreams
     */
    readonly id?: string;
}
/**
 * Request parameters for individualSymbolMiniTickerStream operation in WebsocketMarketStreamsApi.
 * @interface IndividualSymbolMiniTickerStreamRequest
 */
interface IndividualSymbolMiniTickerStreamRequest {
    /**
     * The symbol parameter
     * @type {string}
     * @memberof WebsocketMarketStreamsApiIndividualSymbolMiniTickerStream
     */
    readonly symbol: string;
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof WebsocketMarketStreamsApiIndividualSymbolMiniTickerStream
     */
    readonly id?: string;
}
/**
 * Request parameters for individualSymbolTickerStreams operation in WebsocketMarketStreamsApi.
 * @interface IndividualSymbolTickerStreamsRequest
 */
interface IndividualSymbolTickerStreamsRequest {
    /**
     * The symbol parameter
     * @type {string}
     * @memberof WebsocketMarketStreamsApiIndividualSymbolTickerStreams
     */
    readonly symbol: string;
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof WebsocketMarketStreamsApiIndividualSymbolTickerStreams
     */
    readonly id?: string;
}
/**
 * Request parameters for klineCandlestickStreams operation in WebsocketMarketStreamsApi.
 * @interface KlineCandlestickStreamsRequest
 */
interface KlineCandlestickStreamsRequest {
    /**
     * The symbol parameter
     * @type {string}
     * @memberof WebsocketMarketStreamsApiKlineCandlestickStreams
     */
    readonly symbol: string;
    /**
     * The interval parameter
     * @type {string}
     * @memberof WebsocketMarketStreamsApiKlineCandlestickStreams
     */
    readonly interval: string;
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof WebsocketMarketStreamsApiKlineCandlestickStreams
     */
    readonly id?: string;
}
/**
 * Request parameters for liquidationOrderStreams operation in WebsocketMarketStreamsApi.
 * @interface LiquidationOrderStreamsRequest
 */
interface LiquidationOrderStreamsRequest {
    /**
     * The symbol parameter
     * @type {string}
     * @memberof WebsocketMarketStreamsApiLiquidationOrderStreams
     */
    readonly symbol: string;
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof WebsocketMarketStreamsApiLiquidationOrderStreams
     */
    readonly id?: string;
}
/**
 * Request parameters for markPriceKlineCandlestickStreams operation in WebsocketMarketStreamsApi.
 * @interface MarkPriceKlineCandlestickStreamsRequest
 */
interface MarkPriceKlineCandlestickStreamsRequest {
    /**
     * The symbol parameter
     * @type {string}
     * @memberof WebsocketMarketStreamsApiMarkPriceKlineCandlestickStreams
     */
    readonly symbol: string;
    /**
     * The interval parameter
     * @type {string}
     * @memberof WebsocketMarketStreamsApiMarkPriceKlineCandlestickStreams
     */
    readonly interval: string;
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof WebsocketMarketStreamsApiMarkPriceKlineCandlestickStreams
     */
    readonly id?: string;
}
/**
 * Request parameters for markPriceOfAllSymbolsOfAPair operation in WebsocketMarketStreamsApi.
 * @interface MarkPriceOfAllSymbolsOfAPairRequest
 */
interface MarkPriceOfAllSymbolsOfAPairRequest {
    /**
     * The pair parameter
     * @type {string}
     * @memberof WebsocketMarketStreamsApiMarkPriceOfAllSymbolsOfAPair
     */
    readonly pair: string;
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof WebsocketMarketStreamsApiMarkPriceOfAllSymbolsOfAPair
     */
    readonly id?: string;
    /**
     * WebSocket stream update speed
     * @type {string}
     * @memberof WebsocketMarketStreamsApiMarkPriceOfAllSymbolsOfAPair
     */
    readonly updateSpeed?: string;
}
/**
 * Request parameters for markPriceStream operation in WebsocketMarketStreamsApi.
 * @interface MarkPriceStreamRequest
 */
interface MarkPriceStreamRequest {
    /**
     * The symbol parameter
     * @type {string}
     * @memberof WebsocketMarketStreamsApiMarkPriceStream
     */
    readonly symbol: string;
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof WebsocketMarketStreamsApiMarkPriceStream
     */
    readonly id?: string;
    /**
     * WebSocket stream update speed
     * @type {string}
     * @memberof WebsocketMarketStreamsApiMarkPriceStream
     */
    readonly updateSpeed?: string;
}
/**
 * Request parameters for partialBookDepthStreams operation in WebsocketMarketStreamsApi.
 * @interface PartialBookDepthStreamsRequest
 */
interface PartialBookDepthStreamsRequest {
    /**
     * The symbol parameter
     * @type {string}
     * @memberof WebsocketMarketStreamsApiPartialBookDepthStreams
     */
    readonly symbol: string;
    /**
     * The levels parameter
     * @type {number}
     * @memberof WebsocketMarketStreamsApiPartialBookDepthStreams
     */
    readonly levels: number;
    /**
     * Unique WebSocket request ID.
     * @type {string}
     * @memberof WebsocketMarketStreamsApiPartialBookDepthStreams
     */
    readonly id?: string;
    /**
     * WebSocket stream update speed
     * @type {string}
     * @memberof WebsocketMarketStreamsApiPartialBookDepthStreams
     */
    readonly updateSpeed?: string;
}
/**
 * WebsocketMarketStreamsApi - interface
 * @class WebsocketMarketStreamsApi
 * @extends {WebsocketStreamsBase}
 */
declare class WebsocketMarketStreamsApi implements WebsocketMarketStreamsApiInterface {
    private readonly websocketBase;
    private localVarParamCreator;
    constructor(websocketBase: WebsocketStreamsBase);
    /**
     * The Aggregate Trade Streams push market trade information that is aggregated for fills with same price and taking side every 100 milliseconds.
     *
     * Update Speed: 100ms
     *
     * @summary Aggregate Trade Streams
     * @param {AggregateTradeStreamsRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<AggregateTradeStreamsResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Aggregate-Trade-Streams Binance API Documentation}
     */
    aggregateTradeStreams(requestParameters: AggregateTradeStreamsRequest): WebsocketStream<AggregateTradeStreamsResponse>;
    /**
     * Pushes any update to the best bid or ask's price or quantity in real-time for all symbols.
     *
     * Update Speed: Real-time
     *
     * @summary All Book Tickers Stream
     * @param {AllBookTickersStreamRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<AllBookTickersStreamResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/All-Book-Tickers-Stream Binance API Documentation}
     */
    allBookTickersStream(requestParameters?: AllBookTickersStreamRequest): WebsocketStream<AllBookTickersStreamResponse>;
    /**
     * The All Liquidation Order Snapshot Streams push force liquidation order information for all symbols in the market.
     * For each symbol，only the latest one liquidation order within 1000ms will be pushed as the snapshot. If no liquidation happens in the interval of 1000ms, no stream will be pushed.
     *
     * Update Speed: 1000ms
     *
     * @summary All Market Liquidation Order Streams
     * @param {AllMarketLiquidationOrderStreamsRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<AllMarketLiquidationOrderStreamsResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/All-Market-Liquidation-Order-Streams Binance API Documentation}
     */
    allMarketLiquidationOrderStreams(requestParameters?: AllMarketLiquidationOrderStreamsRequest): WebsocketStream<AllMarketLiquidationOrderStreamsResponse>;
    /**
     * 24hr rolling window mini-ticker statistics for all symbols. These are NOT the statistics of the UTC day, but a 24hr rolling window from requestTime to 24hrs before. Note that only tickers that have changed will be present in the array.
     *
     * Update Speed: 1000ms
     *
     * @summary All Market Mini Tickers Stream
     * @param {AllMarketMiniTickersStreamRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<AllMarketMiniTickersStreamResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/All-Market-Mini-Tickers-Stream Binance API Documentation}
     */
    allMarketMiniTickersStream(requestParameters?: AllMarketMiniTickersStreamRequest): WebsocketStream<AllMarketMiniTickersStreamResponse>;
    /**
     * 24hr rolling window ticker statistics for all symbols. These are NOT the statistics of the UTC day, but a 24hr rolling window from requestTime to 24hrs before. Note that only tickers that have changed will be present in the array.
     *
     * Update Speed: 1000ms
     *
     * @summary All Market Tickers Streams
     * @param {AllMarketTickersStreamsRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<AllMarketTickersStreamsResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/All-Market-Tickers-Streams Binance API Documentation}
     */
    allMarketTickersStreams(requestParameters?: AllMarketTickersStreamsRequest): WebsocketStream<AllMarketTickersStreamsResponse>;
    /**
     * Kline update every second
     *
     * Update Speed: 250ms
     *
     * @summary Continuous Contract Kline/Candlestick Streams
     * @param {ContinuousContractKlineCandlestickStreamsRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<ContinuousContractKlineCandlestickStreamsResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Continuous-Contract-Kline-Candlestick-Streams Binance API Documentation}
     */
    continuousContractKlineCandlestickStreams(requestParameters: ContinuousContractKlineCandlestickStreamsRequest): WebsocketStream<ContinuousContractKlineCandlestickStreamsResponse>;
    /**
     * ContractInfo stream pushes when contract info updates(listing/settlement/contract bracket update). `bks` field only shows up when bracket gets updated.
     *
     * Update Speed: Real-time
     *
     * @summary Contract Info Stream
     * @param {ContractInfoStreamRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<ContractInfoStreamResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Contract-Info-Stream Binance API Documentation}
     */
    contractInfoStream(requestParameters?: ContractInfoStreamRequest): WebsocketStream<ContractInfoStreamResponse>;
    /**
     * Bids and asks, pushed every 250 milliseconds, 500 milliseconds, or 100 milliseconds
     *
     * Update Speed: 250ms or 500ms or 100ms
     *
     * @summary Diff. Book Depth Streams
     * @param {DiffBookDepthStreamsRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<DiffBookDepthStreamsResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Diff-Book-Depth-Streams Binance API Documentation}
     */
    diffBookDepthStreams(requestParameters: DiffBookDepthStreamsRequest): WebsocketStream<DiffBookDepthStreamsResponse>;
    /**
     * Index Kline/Candlestick Streams
     *
     * Update Speed: 250ms
     *
     * @summary Index Kline/Candlestick Streams
     * @param {IndexKlineCandlestickStreamsRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<IndexKlineCandlestickStreamsResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Index-Kline-Candlestick-Streams Binance API Documentation}
     */
    indexKlineCandlestickStreams(requestParameters: IndexKlineCandlestickStreamsRequest): WebsocketStream<IndexKlineCandlestickStreamsResponse>;
    /**
     * Index Price Stream
     *
     * Update Speed: 3000ms OR 1000ms
     *
     * @summary Index Price Stream
     * @param {IndexPriceStreamRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<IndexPriceStreamResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Index-Price-Stream Binance API Documentation}
     */
    indexPriceStream(requestParameters: IndexPriceStreamRequest): WebsocketStream<IndexPriceStreamResponse>;
    /**
     * Pushes any update to the best bid or ask's price or quantity in real-time for a specified symbol.
     *
     * Update Speed: Real-time
     *
     * @summary Individual Symbol Book Ticker Streams
     * @param {IndividualSymbolBookTickerStreamsRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<IndividualSymbolBookTickerStreamsResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Individual-Symbol-Book-Ticker-Streams Binance API Documentation}
     */
    individualSymbolBookTickerStreams(requestParameters: IndividualSymbolBookTickerStreamsRequest): WebsocketStream<IndividualSymbolBookTickerStreamsResponse>;
    /**
     * 24hr rolling window mini-ticker statistics for a single symbol. These are NOT the statistics of the UTC day, but a 24hr rolling window from requestTime to 24hrs before.
     *
     * Update Speed: 500ms
     *
     * @summary Individual Symbol Mini Ticker Stream
     * @param {IndividualSymbolMiniTickerStreamRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<IndividualSymbolMiniTickerStreamResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Individual-Symbol-Mini-Ticker-Stream Binance API Documentation}
     */
    individualSymbolMiniTickerStream(requestParameters: IndividualSymbolMiniTickerStreamRequest): WebsocketStream<IndividualSymbolMiniTickerStreamResponse>;
    /**
     * 24hr rolling window ticker statistics for a single symbol. These are NOT the statistics of the UTC day, but a 24hr rolling window from requestTime to 24hrs before.
     *
     * Update Speed: 500ms
     *
     * @summary Individual Symbol Ticker Streams
     * @param {IndividualSymbolTickerStreamsRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<IndividualSymbolTickerStreamsResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Individual-Symbol-Ticker-Streams Binance API Documentation}
     */
    individualSymbolTickerStreams(requestParameters: IndividualSymbolTickerStreamsRequest): WebsocketStream<IndividualSymbolTickerStreamsResponse>;
    /**
     * The Kline/Candlestick Stream push updates to the current klines/candlestick every 250 milliseconds (if existing).
     *
     * Update Speed: 250ms
     *
     * @summary Kline/Candlestick Streams
     * @param {KlineCandlestickStreamsRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<KlineCandlestickStreamsResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Kline-Candlestick-Streams Binance API Documentation}
     */
    klineCandlestickStreams(requestParameters: KlineCandlestickStreamsRequest): WebsocketStream<KlineCandlestickStreamsResponse>;
    /**
     * The Liquidation Order Snapshot Streams push force liquidation order information for specific symbol.
     *
     * For each symbol，only the latest one liquidation order within 1000ms will be pushed as the snapshot. If no liquidation happens in the interval of 1000ms, no stream will be pushed.
     *
     * Update Speed: 1000ms
     *
     * @summary Liquidation Order Streams
     * @param {LiquidationOrderStreamsRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<LiquidationOrderStreamsResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Liquidation-Order-Streams Binance API Documentation}
     */
    liquidationOrderStreams(requestParameters: LiquidationOrderStreamsRequest): WebsocketStream<LiquidationOrderStreamsResponse>;
    /**
     * Mark Price Kline/Candlestick Streams
     *
     * Update Speed: 250ms
     *
     * @summary Mark Price Kline/Candlestick Streams
     * @param {MarkPriceKlineCandlestickStreamsRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<MarkPriceKlineCandlestickStreamsResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Mark-Price-Kline-Candlestick-Streams Binance API Documentation}
     */
    markPriceKlineCandlestickStreams(requestParameters: MarkPriceKlineCandlestickStreamsRequest): WebsocketStream<MarkPriceKlineCandlestickStreamsResponse>;
    /**
     * Mark Price of All Symbols of a Pair
     *
     * Update Speed: 3000ms OR 1000ms
     *
     * @summary Mark Price of All Symbols of a Pair
     * @param {MarkPriceOfAllSymbolsOfAPairRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<MarkPriceOfAllSymbolsOfAPairResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Mark-Price-of-All-Symbols-of-a-Pair Binance API Documentation}
     */
    markPriceOfAllSymbolsOfAPair(requestParameters: MarkPriceOfAllSymbolsOfAPairRequest): WebsocketStream<MarkPriceOfAllSymbolsOfAPairResponse>;
    /**
     * Mark price update stream
     *
     * Update Speed: 3000ms OR 1000ms
     *
     * @summary Mark Price Stream
     * @param {MarkPriceStreamRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<MarkPriceStreamResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Mark-Price-Stream Binance API Documentation}
     */
    markPriceStream(requestParameters: MarkPriceStreamRequest): WebsocketStream<MarkPriceStreamResponse>;
    /**
     * Top **<levels\>** bids and asks, Valid **<levels\>** are 5, 10, or 20.
     *
     * Update Speed: 250ms, 500ms or 100ms
     *
     * @summary Partial Book Depth Streams
     * @param {PartialBookDepthStreamsRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<PartialBookDepthStreamsResponse>}
     * @throws {RequiredError}
     * @memberof WebsocketMarketStreamsApi
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Partial-Book-Depth-Streams Binance API Documentation}
     */
    partialBookDepthStreams(requestParameters: PartialBookDepthStreamsRequest): WebsocketStream<PartialBookDepthStreamsResponse>;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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.
 */

declare class WebsocketStreamsConnection {
    private websocketBase;
    private websocketMarketStreamsApi;
    constructor(websocketBase: WebsocketStreamsBase);
    /**
     * Adds an event listener for the specified WebSocket event.
     * @param event - The WebSocket event to listen for, such as 'open', 'message', 'error', 'close', 'ping', or 'pong'.
     * @param listener - The callback function to be executed when the event is triggered. The function can accept any number of arguments.
     */
    on(event: 'open' | 'message' | 'error' | 'close' | 'ping' | 'pong', listener: (...args: any[]) => void): void;
    /**
     * Removes an event listener for the specified WebSocket event.
     * @param event - The WebSocket event to stop listening for, such as 'open', 'message', 'error', 'close', 'ping', or 'pong'.
     * @param listener - The callback function that was previously added as the event listener.
     */
    off(event: 'open' | 'message' | 'error' | 'close' | 'ping' | 'pong', listener: (...args: any[]) => void): void;
    /**
     * Disconnects from the WebSocket server.
     * If there is no active connection, a warning is logged.
     * Otherwise, all connections in the connection pool are closed gracefully,
     * and a message is logged indicating that the connection has been disconnected.
     * @returns A Promise that resolves when all connections have been closed.
     * @throws Error if the WebSocket client is not set.
     */
    disconnect(): Promise<void>;
    /**
     * Checks if the WebSocket connection is currently open.
     * @returns `true` if the connection is open, `false` otherwise.
     */
    isConnected(): boolean;
    /**
     * Sends a ping message to all connected Websocket servers in the pool.
     * If no connections are ready, a warning is logged.
     * For each active connection, the ping message is sent, and debug logs provide details.
     * @throws Error if a Websocket client is not set for a connection.
     */
    pingServer(): void;
    /**
     * Subscribes to one or multiple WebSocket streams
     * Handles both single and pool modes
     * @param stream Single stream name or array of stream names to subscribe to
     * @param id Optional subscription ID
     * @returns void
     */
    subscribe(stream: string | string[], id?: string): void;
    /**
     * Unsubscribes from one or multiple WebSocket streams
     * Handles both single and pool modes
     * @param stream Single stream name or array of stream names to unsubscribe from
     * @param id Optional unsubscription ID
     * @returns void
     */
    unsubscribe(stream: string | string[], id?: string): void;
    /**
     * Checks if the WebSocket connection is subscribed to the specified stream.
     * @param stream The name of the WebSocket stream to check.
     * @returns `true` if the connection is subscribed to the stream, `false` otherwise.
     */
    isSubscribed(stream: string): boolean;
    /**
     * Subscribes to the user data WebSocket stream using the provided listen key.
     * @param listenKey - The listen key for the user data WebSocket stream.
     * @param id - Optional user data stream ID
     * @returns A WebSocket stream handler for the user data stream.
     */
    userData(listenKey: string, id?: string): WebsocketStream<object>;
    /**
     * The Aggregate Trade Streams push market trade information that is aggregated for fills with same price and taking side every 100 milliseconds.
     *
     * Update Speed: 100ms
     *
     * @summary Aggregate Trade Streams
     * @param {AggregateTradeStreamsRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<AggregateTradeStreamsResponse>}
     * @throws {RequiredError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Aggregate-Trade-Streams Binance API Documentation}
     */
    aggregateTradeStreams(requestParameters: AggregateTradeStreamsRequest): WebsocketStream<AggregateTradeStreamsResponse>;
    /**
     * Pushes any update to the best bid or ask's price or quantity in real-time for all symbols.
     *
     * Update Speed: Real-time
     *
     * @summary All Book Tickers Stream
     * @param {AllBookTickersStreamRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<AllBookTickersStreamResponse>}
     * @throws {RequiredError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/All-Book-Tickers-Stream Binance API Documentation}
     */
    allBookTickersStream(requestParameters?: AllBookTickersStreamRequest): WebsocketStream<AllBookTickersStreamResponse>;
    /**
     * The All Liquidation Order Snapshot Streams push force liquidation order information for all symbols in the market.
     * For each symbol，only the latest one liquidation order within 1000ms will be pushed as the snapshot. If no liquidation happens in the interval of 1000ms, no stream will be pushed.
     *
     * Update Speed: 1000ms
     *
     * @summary All Market Liquidation Order Streams
     * @param {AllMarketLiquidationOrderStreamsRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<AllMarketLiquidationOrderStreamsResponse>}
     * @throws {RequiredError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/All-Market-Liquidation-Order-Streams Binance API Documentation}
     */
    allMarketLiquidationOrderStreams(requestParameters?: AllMarketLiquidationOrderStreamsRequest): WebsocketStream<AllMarketLiquidationOrderStreamsResponse>;
    /**
     * 24hr rolling window mini-ticker statistics for all symbols. These are NOT the statistics of the UTC day, but a 24hr rolling window from requestTime to 24hrs before. Note that only tickers that have changed will be present in the array.
     *
     * Update Speed: 1000ms
     *
     * @summary All Market Mini Tickers Stream
     * @param {AllMarketMiniTickersStreamRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<AllMarketMiniTickersStreamResponse>}
     * @throws {RequiredError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/All-Market-Mini-Tickers-Stream Binance API Documentation}
     */
    allMarketMiniTickersStream(requestParameters?: AllMarketMiniTickersStreamRequest): WebsocketStream<AllMarketMiniTickersStreamResponse>;
    /**
     * 24hr rolling window ticker statistics for all symbols. These are NOT the statistics of the UTC day, but a 24hr rolling window from requestTime to 24hrs before. Note that only tickers that have changed will be present in the array.
     *
     * Update Speed: 1000ms
     *
     * @summary All Market Tickers Streams
     * @param {AllMarketTickersStreamsRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<AllMarketTickersStreamsResponse>}
     * @throws {RequiredError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/All-Market-Tickers-Streams Binance API Documentation}
     */
    allMarketTickersStreams(requestParameters?: AllMarketTickersStreamsRequest): WebsocketStream<AllMarketTickersStreamsResponse>;
    /**
     * Kline update every second
     *
     * Update Speed: 250ms
     *
     * @summary Continuous Contract Kline/Candlestick Streams
     * @param {ContinuousContractKlineCandlestickStreamsRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<ContinuousContractKlineCandlestickStreamsResponse>}
     * @throws {RequiredError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Continuous-Contract-Kline-Candlestick-Streams Binance API Documentation}
     */
    continuousContractKlineCandlestickStreams(requestParameters: ContinuousContractKlineCandlestickStreamsRequest): WebsocketStream<ContinuousContractKlineCandlestickStreamsResponse>;
    /**
     * ContractInfo stream pushes when contract info updates(listing/settlement/contract bracket update). `bks` field only shows up when bracket gets updated.
     *
     * Update Speed: Real-time
     *
     * @summary Contract Info Stream
     * @param {ContractInfoStreamRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<ContractInfoStreamResponse>}
     * @throws {RequiredError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Contract-Info-Stream Binance API Documentation}
     */
    contractInfoStream(requestParameters?: ContractInfoStreamRequest): WebsocketStream<ContractInfoStreamResponse>;
    /**
     * Bids and asks, pushed every 250 milliseconds, 500 milliseconds, or 100 milliseconds
     *
     * Update Speed: 250ms or 500ms or 100ms
     *
     * @summary Diff. Book Depth Streams
     * @param {DiffBookDepthStreamsRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<DiffBookDepthStreamsResponse>}
     * @throws {RequiredError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Diff-Book-Depth-Streams Binance API Documentation}
     */
    diffBookDepthStreams(requestParameters: DiffBookDepthStreamsRequest): WebsocketStream<DiffBookDepthStreamsResponse>;
    /**
     * Index Kline/Candlestick Streams
     *
     * Update Speed: 250ms
     *
     * @summary Index Kline/Candlestick Streams
     * @param {IndexKlineCandlestickStreamsRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<IndexKlineCandlestickStreamsResponse>}
     * @throws {RequiredError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Index-Kline-Candlestick-Streams Binance API Documentation}
     */
    indexKlineCandlestickStreams(requestParameters: IndexKlineCandlestickStreamsRequest): WebsocketStream<IndexKlineCandlestickStreamsResponse>;
    /**
     * Index Price Stream
     *
     * Update Speed: 3000ms OR 1000ms
     *
     * @summary Index Price Stream
     * @param {IndexPriceStreamRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<IndexPriceStreamResponse>}
     * @throws {RequiredError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Index-Price-Stream Binance API Documentation}
     */
    indexPriceStream(requestParameters: IndexPriceStreamRequest): WebsocketStream<IndexPriceStreamResponse>;
    /**
     * Pushes any update to the best bid or ask's price or quantity in real-time for a specified symbol.
     *
     * Update Speed: Real-time
     *
     * @summary Individual Symbol Book Ticker Streams
     * @param {IndividualSymbolBookTickerStreamsRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<IndividualSymbolBookTickerStreamsResponse>}
     * @throws {RequiredError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Individual-Symbol-Book-Ticker-Streams Binance API Documentation}
     */
    individualSymbolBookTickerStreams(requestParameters: IndividualSymbolBookTickerStreamsRequest): WebsocketStream<IndividualSymbolBookTickerStreamsResponse>;
    /**
     * 24hr rolling window mini-ticker statistics for a single symbol. These are NOT the statistics of the UTC day, but a 24hr rolling window from requestTime to 24hrs before.
     *
     * Update Speed: 500ms
     *
     * @summary Individual Symbol Mini Ticker Stream
     * @param {IndividualSymbolMiniTickerStreamRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<IndividualSymbolMiniTickerStreamResponse>}
     * @throws {RequiredError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Individual-Symbol-Mini-Ticker-Stream Binance API Documentation}
     */
    individualSymbolMiniTickerStream(requestParameters: IndividualSymbolMiniTickerStreamRequest): WebsocketStream<IndividualSymbolMiniTickerStreamResponse>;
    /**
     * 24hr rolling window ticker statistics for a single symbol. These are NOT the statistics of the UTC day, but a 24hr rolling window from requestTime to 24hrs before.
     *
     * Update Speed: 500ms
     *
     * @summary Individual Symbol Ticker Streams
     * @param {IndividualSymbolTickerStreamsRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<IndividualSymbolTickerStreamsResponse>}
     * @throws {RequiredError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Individual-Symbol-Ticker-Streams Binance API Documentation}
     */
    individualSymbolTickerStreams(requestParameters: IndividualSymbolTickerStreamsRequest): WebsocketStream<IndividualSymbolTickerStreamsResponse>;
    /**
     * The Kline/Candlestick Stream push updates to the current klines/candlestick every 250 milliseconds (if existing).
     *
     * Update Speed: 250ms
     *
     * @summary Kline/Candlestick Streams
     * @param {KlineCandlestickStreamsRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<KlineCandlestickStreamsResponse>}
     * @throws {RequiredError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Kline-Candlestick-Streams Binance API Documentation}
     */
    klineCandlestickStreams(requestParameters: KlineCandlestickStreamsRequest): WebsocketStream<KlineCandlestickStreamsResponse>;
    /**
     * The Liquidation Order Snapshot Streams push force liquidation order information for specific symbol.
     *
     * For each symbol，only the latest one liquidation order within 1000ms will be pushed as the snapshot. If no liquidation happens in the interval of 1000ms, no stream will be pushed.
     *
     * Update Speed: 1000ms
     *
     * @summary Liquidation Order Streams
     * @param {LiquidationOrderStreamsRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<LiquidationOrderStreamsResponse>}
     * @throws {RequiredError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Liquidation-Order-Streams Binance API Documentation}
     */
    liquidationOrderStreams(requestParameters: LiquidationOrderStreamsRequest): WebsocketStream<LiquidationOrderStreamsResponse>;
    /**
     * Mark Price Kline/Candlestick Streams
     *
     * Update Speed: 250ms
     *
     * @summary Mark Price Kline/Candlestick Streams
     * @param {MarkPriceKlineCandlestickStreamsRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<MarkPriceKlineCandlestickStreamsResponse>}
     * @throws {RequiredError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Mark-Price-Kline-Candlestick-Streams Binance API Documentation}
     */
    markPriceKlineCandlestickStreams(requestParameters: MarkPriceKlineCandlestickStreamsRequest): WebsocketStream<MarkPriceKlineCandlestickStreamsResponse>;
    /**
     * Mark Price of All Symbols of a Pair
     *
     * Update Speed: 3000ms OR 1000ms
     *
     * @summary Mark Price of All Symbols of a Pair
     * @param {MarkPriceOfAllSymbolsOfAPairRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<MarkPriceOfAllSymbolsOfAPairResponse>}
     * @throws {RequiredError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Mark-Price-of-All-Symbols-of-a-Pair Binance API Documentation}
     */
    markPriceOfAllSymbolsOfAPair(requestParameters: MarkPriceOfAllSymbolsOfAPairRequest): WebsocketStream<MarkPriceOfAllSymbolsOfAPairResponse>;
    /**
     * Mark price update stream
     *
     * Update Speed: 3000ms OR 1000ms
     *
     * @summary Mark Price Stream
     * @param {MarkPriceStreamRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<MarkPriceStreamResponse>}
     * @throws {RequiredError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Mark-Price-Stream Binance API Documentation}
     */
    markPriceStream(requestParameters: MarkPriceStreamRequest): WebsocketStream<MarkPriceStreamResponse>;
    /**
     * Top **<levels\>** bids and asks, Valid **<levels\>** are 5, 10, or 20.
     *
     * Update Speed: 250ms, 500ms or 100ms
     *
     * @summary Partial Book Depth Streams
     * @param {PartialBookDepthStreamsRequest} requestParameters Request parameters.
     * @returns {WebsocketStream<PartialBookDepthStreamsResponse>}
     * @throws {RequiredError}
     * @see {@link https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Partial-Book-Depth-Streams Binance API Documentation}
     */
    partialBookDepthStreams(requestParameters: PartialBookDepthStreamsRequest): WebsocketStream<PartialBookDepthStreamsResponse>;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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.
 */

declare class WebsocketStreams {
    private configuration;
    constructor(configuration: ConfigurationWebsocketStreams);
    /**
     * Connects to the Binance WebSocket streams and returns a `WebsocketStreamsConnection` instance.
     *
     * @param {object} [options] - Optional connection options.
     * @param {string|string[]} [options.stream] - The stream(s) to connect to.
     * @param {'single'|'pool'} [options.mode] - The connection mode, either 'single' or 'pool'. Overwrite the `mode` option in the configuration.
     * @param {number} [options.poolSize] - The number of connections to use in pool mode. Overwrite the `poolSize` option in the configuration.
     * @returns {Promise<WebsocketStreamsConnection>} - A promise that resolves to a `WebsocketStreamsConnection` instance.
     */
    connect({ stream, mode, poolSize, }?: {
        stream?: string | string[];
        mode?: 'single' | 'pool';
        poolSize?: number;
    }): Promise<WebsocketStreamsConnection>;
}

/**
 * Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Public Derivatives Trading COIN Futures WebSocket Market Streams
 *
 * 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 index_AggregateTradeStreamsRequest = AggregateTradeStreamsRequest;
type index_AggregateTradeStreamsResponse = AggregateTradeStreamsResponse;
type index_AllBookTickersStreamRequest = AllBookTickersStreamRequest;
type index_AllBookTickersStreamResponse = AllBookTickersStreamResponse;
type index_AllMarketLiquidationOrderStreamsRequest = AllMarketLiquidationOrderStreamsRequest;
type index_AllMarketLiquidationOrderStreamsResponse = AllMarketLiquidationOrderStreamsResponse;
type index_AllMarketLiquidationOrderStreamsResponseO = AllMarketLiquidationOrderStreamsResponseO;
type index_AllMarketMiniTickersStreamRequest = AllMarketMiniTickersStreamRequest;
type index_AllMarketMiniTickersStreamResponse = AllMarketMiniTickersStreamResponse;
type index_AllMarketMiniTickersStreamResponseInner = AllMarketMiniTickersStreamResponseInner;
type index_AllMarketTickersStreamsRequest = AllMarketTickersStreamsRequest;
type index_AllMarketTickersStreamsResponse = AllMarketTickersStreamsResponse;
type index_AllMarketTickersStreamsResponseInner = AllMarketTickersStreamsResponseInner;
type index_ContinuousContractKlineCandlestickStreamsRequest = ContinuousContractKlineCandlestickStreamsRequest;
type index_ContinuousContractKlineCandlestickStreamsResponse = ContinuousContractKlineCandlestickStreamsResponse;
type index_ContinuousContractKlineCandlestickStreamsResponseK = ContinuousContractKlineCandlestickStreamsResponseK;
type index_ContractInfoStreamRequest = ContractInfoStreamRequest;
type index_ContractInfoStreamResponse = ContractInfoStreamResponse;
type index_ContractInfoStreamResponseBksInner = ContractInfoStreamResponseBksInner;
type index_DiffBookDepthStreamsRequest = DiffBookDepthStreamsRequest;
type index_DiffBookDepthStreamsResponse = DiffBookDepthStreamsResponse;
type index_DiffBookDepthStreamsResponseAItem = DiffBookDepthStreamsResponseAItem;
type index_DiffBookDepthStreamsResponseBItem = DiffBookDepthStreamsResponseBItem;
type index_IndexKlineCandlestickStreamsRequest = IndexKlineCandlestickStreamsRequest;
type index_IndexKlineCandlestickStreamsResponse = IndexKlineCandlestickStreamsResponse;
type index_IndexKlineCandlestickStreamsResponseK = IndexKlineCandlestickStreamsResponseK;
type index_IndexPriceStreamRequest = IndexPriceStreamRequest;
type index_IndexPriceStreamResponse = IndexPriceStreamResponse;
type index_IndividualSymbolBookTickerStreamsRequest = IndividualSymbolBookTickerStreamsRequest;
type index_IndividualSymbolBookTickerStreamsResponse = IndividualSymbolBookTickerStreamsResponse;
type index_IndividualSymbolMiniTickerStreamRequest = IndividualSymbolMiniTickerStreamRequest;
type index_IndividualSymbolMiniTickerStreamResponse = IndividualSymbolMiniTickerStreamResponse;
type index_IndividualSymbolTickerStreamsRequest = IndividualSymbolTickerStreamsRequest;
type index_IndividualSymbolTickerStreamsResponse = IndividualSymbolTickerStreamsResponse;
type index_KlineCandlestickStreamsRequest = KlineCandlestickStreamsRequest;
type index_KlineCandlestickStreamsResponse = KlineCandlestickStreamsResponse;
type index_KlineCandlestickStreamsResponseK = KlineCandlestickStreamsResponseK;
type index_LiquidationOrderStreamsRequest = LiquidationOrderStreamsRequest;
type index_LiquidationOrderStreamsResponse = LiquidationOrderStreamsResponse;
type index_MarkPriceKlineCandlestickStreamsRequest = MarkPriceKlineCandlestickStreamsRequest;
type index_MarkPriceKlineCandlestickStreamsResponse = MarkPriceKlineCandlestickStreamsResponse;
type index_MarkPriceKlineCandlestickStreamsResponseK = MarkPriceKlineCandlestickStreamsResponseK;
type index_MarkPriceOfAllSymbolsOfAPairRequest = MarkPriceOfAllSymbolsOfAPairRequest;
type index_MarkPriceOfAllSymbolsOfAPairResponse = MarkPriceOfAllSymbolsOfAPairResponse;
type index_MarkPriceOfAllSymbolsOfAPairResponseInner = MarkPriceOfAllSymbolsOfAPairResponseInner;
type index_MarkPriceStreamRequest = MarkPriceStreamRequest;
type index_MarkPriceStreamResponse = MarkPriceStreamResponse;
type index_PartialBookDepthStreamsRequest = PartialBookDepthStreamsRequest;
type index_PartialBookDepthStreamsResponse = PartialBookDepthStreamsResponse;
type index_PartialBookDepthStreamsResponseAItem = PartialBookDepthStreamsResponseAItem;
type index_PartialBookDepthStreamsResponseBItem = PartialBookDepthStreamsResponseBItem;
type index_WebsocketMarketStreamsApi = WebsocketMarketStreamsApi;
declare const index_WebsocketMarketStreamsApi: typeof WebsocketMarketStreamsApi;
type index_WebsocketMarketStreamsApiInterface = WebsocketMarketStreamsApiInterface;
type index_WebsocketStreams = WebsocketStreams;
declare const index_WebsocketStreams: typeof WebsocketStreams;
type index_WebsocketStreamsConnection = WebsocketStreamsConnection;
declare const index_WebsocketStreamsConnection: typeof WebsocketStreamsConnection;
declare namespace index {
  export {
    index_AggregateTradeStreamsRequest as AggregateTradeStreamsRequest,
    index_AggregateTradeStreamsResponse as AggregateTradeStreamsResponse,
    index_AllBookTickersStreamRequest as AllBookTickersStreamRequest,
    index_AllBookTickersStreamResponse as AllBookTickersStreamResponse,
    index_AllMarketLiquidationOrderStreamsRequest as AllMarketLiquidationOrderStreamsRequest,
    index_AllMarketLiquidationOrderStreamsResponse as AllMarketLiquidationOrderStreamsResponse,
    index_AllMarketLiquidationOrderStreamsResponseO as AllMarketLiquidationOrderStreamsResponseO,
    index_AllMarketMiniTickersStreamRequest as AllMarketMiniTickersStreamRequest,
    index_AllMarketMiniTickersStreamResponse as AllMarketMiniTickersStreamResponse,
    index_AllMarketMiniTickersStreamResponseInner as AllMarketMiniTickersStreamResponseInner,
    index_AllMarketTickersStreamsRequest as AllMarketTickersStreamsRequest,
    index_AllMarketTickersStreamsResponse as AllMarketTickersStreamsResponse,
    index_AllMarketTickersStreamsResponseInner as AllMarketTickersStreamsResponseInner,
    index_ContinuousContractKlineCandlestickStreamsRequest as ContinuousContractKlineCandlestickStreamsRequest,
    index_ContinuousContractKlineCandlestickStreamsResponse as ContinuousContractKlineCandlestickStreamsResponse,
    index_ContinuousContractKlineCandlestickStreamsResponseK as ContinuousContractKlineCandlestickStreamsResponseK,
    index_ContractInfoStreamRequest as ContractInfoStreamRequest,
    index_ContractInfoStreamResponse as ContractInfoStreamResponse,
    index_ContractInfoStreamResponseBksInner as ContractInfoStreamResponseBksInner,
    index_DiffBookDepthStreamsRequest as DiffBookDepthStreamsRequest,
    index_DiffBookDepthStreamsResponse as DiffBookDepthStreamsResponse,
    index_DiffBookDepthStreamsResponseAItem as DiffBookDepthStreamsResponseAItem,
    index_DiffBookDepthStreamsResponseBItem as DiffBookDepthStreamsResponseBItem,
    index_IndexKlineCandlestickStreamsRequest as IndexKlineCandlestickStreamsRequest,
    index_IndexKlineCandlestickStreamsResponse as IndexKlineCandlestickStreamsResponse,
    index_IndexKlineCandlestickStreamsResponseK as IndexKlineCandlestickStreamsResponseK,
    index_IndexPriceStreamRequest as IndexPriceStreamRequest,
    index_IndexPriceStreamResponse as IndexPriceStreamResponse,
    index_IndividualSymbolBookTickerStreamsRequest as IndividualSymbolBookTickerStreamsRequest,
    index_IndividualSymbolBookTickerStreamsResponse as IndividualSymbolBookTickerStreamsResponse,
    index_IndividualSymbolMiniTickerStreamRequest as IndividualSymbolMiniTickerStreamRequest,
    index_IndividualSymbolMiniTickerStreamResponse as IndividualSymbolMiniTickerStreamResponse,
    index_IndividualSymbolTickerStreamsRequest as IndividualSymbolTickerStreamsRequest,
    index_IndividualSymbolTickerStreamsResponse as IndividualSymbolTickerStreamsResponse,
    index_KlineCandlestickStreamsRequest as KlineCandlestickStreamsRequest,
    index_KlineCandlestickStreamsResponse as KlineCandlestickStreamsResponse,
    index_KlineCandlestickStreamsResponseK as KlineCandlestickStreamsResponseK,
    index_LiquidationOrderStreamsRequest as LiquidationOrderStreamsRequest,
    index_LiquidationOrderStreamsResponse as LiquidationOrderStreamsResponse,
    index_MarkPriceKlineCandlestickStreamsRequest as MarkPriceKlineCandlestickStreamsRequest,
    index_MarkPriceKlineCandlestickStreamsResponse as MarkPriceKlineCandlestickStreamsResponse,
    index_MarkPriceKlineCandlestickStreamsResponseK as MarkPriceKlineCandlestickStreamsResponseK,
    index_MarkPriceOfAllSymbolsOfAPairRequest as MarkPriceOfAllSymbolsOfAPairRequest,
    index_MarkPriceOfAllSymbolsOfAPairResponse as MarkPriceOfAllSymbolsOfAPairResponse,
    index_MarkPriceOfAllSymbolsOfAPairResponseInner as MarkPriceOfAllSymbolsOfAPairResponseInner,
    index_MarkPriceStreamRequest as MarkPriceStreamRequest,
    index_MarkPriceStreamResponse as MarkPriceStreamResponse,
    index_PartialBookDepthStreamsRequest as PartialBookDepthStreamsRequest,
    index_PartialBookDepthStreamsResponse as PartialBookDepthStreamsResponse,
    index_PartialBookDepthStreamsResponseAItem as PartialBookDepthStreamsResponseAItem,
    index_PartialBookDepthStreamsResponseBItem as PartialBookDepthStreamsResponseBItem,
    index_WebsocketMarketStreamsApi as WebsocketMarketStreamsApi,
    index_WebsocketMarketStreamsApiInterface as WebsocketMarketStreamsApiInterface,
    index_WebsocketStreams as WebsocketStreams,
    index_WebsocketStreamsConnection as WebsocketStreamsConnection,
  };
}

interface ConfigurationDerivativesTradingCoinFutures {
    configurationRestAPI?: ConfigurationRestAPI;
    configurationWebsocketAPI?: ConfigurationWebsocketAPI;
    configurationWebsocketStreams?: ConfigurationWebsocketStreams;
}
declare class DerivativesTradingCoinFutures {
    restAPI: RestAPI;
    websocketAPI: WebsocketAPI;
    websocketStreams: WebsocketStreams;
    constructor(config: ConfigurationDerivativesTradingCoinFutures);
}

export { ConfigurationDerivativesTradingCoinFutures, DerivativesTradingCoinFutures, index$2 as DerivativesTradingCoinFuturesRestAPI, index$1 as DerivativesTradingCoinFuturesWebsocketAPI, index as DerivativesTradingCoinFuturesWebsocketStreams };
