import { RestApiResponse, ConfigurationRestAPI } from '@binance/common';
export { BadRequestError, ConnectorClientError, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PROD_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_TESTNET_URL, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError } from '@binance/common';

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface AccountBalanceResponse1Inner
 */
interface AccountBalanceResponse1Inner {
    /**
     *
     * @type {string}
     * @memberof AccountBalanceResponse1Inner
     */
    asset?: string;
    /**
     *
     * @type {string}
     * @memberof AccountBalanceResponse1Inner
     */
    totalWalletBalance?: string;
    /**
     *
     * @type {string}
     * @memberof AccountBalanceResponse1Inner
     */
    crossMarginAsset?: string;
    /**
     *
     * @type {string}
     * @memberof AccountBalanceResponse1Inner
     */
    crossMarginBorrowed?: string;
    /**
     *
     * @type {string}
     * @memberof AccountBalanceResponse1Inner
     */
    crossMarginFree?: string;
    /**
     *
     * @type {string}
     * @memberof AccountBalanceResponse1Inner
     */
    crossMarginInterest?: string;
    /**
     *
     * @type {string}
     * @memberof AccountBalanceResponse1Inner
     */
    crossMarginLocked?: string;
    /**
     *
     * @type {string}
     * @memberof AccountBalanceResponse1Inner
     */
    umWalletBalance?: string;
    /**
     *
     * @type {string}
     * @memberof AccountBalanceResponse1Inner
     */
    umUnrealizedPNL?: string;
    /**
     *
     * @type {string}
     * @memberof AccountBalanceResponse1Inner
     */
    cmWalletBalance?: string;
    /**
     *
     * @type {string}
     * @memberof AccountBalanceResponse1Inner
     */
    cmUnrealizedPNL?: string;
    /**
     *
     * @type {number}
     * @memberof AccountBalanceResponse1Inner
     */
    updateTime?: number;
    /**
     *
     * @type {string}
     * @memberof AccountBalanceResponse1Inner
     */
    negativeBalance?: string;
}

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

/**
 *
 * @export
 * @interface AccountBalanceResponse1
 */
interface AccountBalanceResponse1 extends Array<AccountBalanceResponse1Inner> {
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface AccountBalanceResponse2
 */
interface AccountBalanceResponse2 {
    /**
     *
     * @type {string}
     * @memberof AccountBalanceResponse2
     */
    asset?: string;
    /**
     *
     * @type {string}
     * @memberof AccountBalanceResponse2
     */
    totalWalletBalance?: string;
    /**
     *
     * @type {string}
     * @memberof AccountBalanceResponse2
     */
    crossMarginBorrowed?: string;
    /**
     *
     * @type {string}
     * @memberof AccountBalanceResponse2
     */
    crossMarginFree?: string;
    /**
     *
     * @type {string}
     * @memberof AccountBalanceResponse2
     */
    crossMarginInterest?: string;
    /**
     *
     * @type {string}
     * @memberof AccountBalanceResponse2
     */
    crossMarginLocked?: string;
    /**
     *
     * @type {string}
     * @memberof AccountBalanceResponse2
     */
    umWalletBalance?: string;
    /**
     *
     * @type {string}
     * @memberof AccountBalanceResponse2
     */
    umUnrealizedPNL?: string;
    /**
     *
     * @type {string}
     * @memberof AccountBalanceResponse2
     */
    cmWalletBalance?: string;
    /**
     *
     * @type {string}
     * @memberof AccountBalanceResponse2
     */
    cmUnrealizedPNL?: string;
    /**
     *
     * @type {number}
     * @memberof AccountBalanceResponse2
     */
    updateTime?: number;
    /**
     *
     * @type {string}
     * @memberof AccountBalanceResponse2
     */
    negativeBalance?: string;
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.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 AccountBalanceResponse
 * @export
 */
type AccountBalanceResponse = AccountBalanceResponse1 | AccountBalanceResponse2;

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: 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
     */
    uniMMR?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponse
     */
    accountEquity?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponse
     */
    actualEquity?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponse
     */
    accountInitialMargin?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponse
     */
    accountMaintMargin?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponse
     */
    accountStatus?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponse
     */
    virtualMaxWithdrawAmount?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponse
     */
    totalAvailableBalance?: string;
    /**
     *
     * @type {string}
     * @memberof AccountInformationResponse
     */
    totalMarginOpenLoss?: string;
    /**
     *
     * @type {number}
     * @memberof AccountInformationResponse
     */
    updateTime?: number;
}

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

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

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

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

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

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface CancelCmConditionalOrderResponse
 */
interface CancelCmConditionalOrderResponse {
    /**
     *
     * @type {string}
     * @memberof CancelCmConditionalOrderResponse
     */
    newClientStrategyId?: string;
    /**
     *
     * @type {number}
     * @memberof CancelCmConditionalOrderResponse
     */
    strategyId?: number;
    /**
     *
     * @type {string}
     * @memberof CancelCmConditionalOrderResponse
     */
    strategyStatus?: string;
    /**
     *
     * @type {string}
     * @memberof CancelCmConditionalOrderResponse
     */
    strategyType?: string;
    /**
     *
     * @type {string}
     * @memberof CancelCmConditionalOrderResponse
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof CancelCmConditionalOrderResponse
     */
    price?: string;
    /**
     *
     * @type {boolean}
     * @memberof CancelCmConditionalOrderResponse
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {string}
     * @memberof CancelCmConditionalOrderResponse
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof CancelCmConditionalOrderResponse
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof CancelCmConditionalOrderResponse
     */
    stopPrice?: string;
    /**
     *
     * @type {string}
     * @memberof CancelCmConditionalOrderResponse
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof CancelCmConditionalOrderResponse
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof CancelCmConditionalOrderResponse
     */
    activatePrice?: string;
    /**
     *
     * @type {string}
     * @memberof CancelCmConditionalOrderResponse
     */
    priceRate?: string;
    /**
     *
     * @type {number}
     * @memberof CancelCmConditionalOrderResponse
     */
    bookTime?: number;
    /**
     *
     * @type {number}
     * @memberof CancelCmConditionalOrderResponse
     */
    updateTime?: number;
    /**
     *
     * @type {string}
     * @memberof CancelCmConditionalOrderResponse
     */
    workingType?: string;
    /**
     *
     * @type {boolean}
     * @memberof CancelCmConditionalOrderResponse
     */
    priceProtect?: boolean;
}

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

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner
 */
interface CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner {
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner
     */
    origClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner
     */
    orderId?: number;
    /**
     *
     * @type {number}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner
     */
    orderListId?: number;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner
     */
    clientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner
     */
    price?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner
     */
    executedQty?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner
     */
    cummulativeQuoteQty?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner
     */
    type?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner
     */
    stopPrice?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner
     */
    icebergQty?: string;
}

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

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

/**
 *
 * @export
 * @interface CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
 */
interface CancelMarginAccountAllOpenOrdersOnASymbolResponseInner {
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
     */
    origClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
     */
    orderId?: number;
    /**
     *
     * @type {number}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
     */
    orderListId?: number;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
     */
    clientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
     */
    price?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
     */
    executedQty?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
     */
    cummulativeQuoteQty?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
     */
    type?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
     */
    contingencyType?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
     */
    listStatusType?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
     */
    listOrderStatus?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
     */
    listClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
     */
    transactionTime?: number;
    /**
     *
     * @type {Array<CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrdersInner>}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
     */
    orders?: Array<CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrdersInner>;
    /**
     *
     * @type {Array<CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner>}
     * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
     */
    orderReports?: Array<CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner>;
}

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

/**
 *
 * @export
 * @interface CancelMarginAccountAllOpenOrdersOnASymbolResponse
 */
interface CancelMarginAccountAllOpenOrdersOnASymbolResponse extends Array<CancelMarginAccountAllOpenOrdersOnASymbolResponseInner> {
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface CancelMarginAccountOcoOrdersResponseOrderReportsInner
 */
interface CancelMarginAccountOcoOrdersResponseOrderReportsInner {
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOcoOrdersResponseOrderReportsInner
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOcoOrdersResponseOrderReportsInner
     */
    origClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof CancelMarginAccountOcoOrdersResponseOrderReportsInner
     */
    orderId?: number;
    /**
     *
     * @type {number}
     * @memberof CancelMarginAccountOcoOrdersResponseOrderReportsInner
     */
    orderListId?: number;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOcoOrdersResponseOrderReportsInner
     */
    clientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOcoOrdersResponseOrderReportsInner
     */
    price?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOcoOrdersResponseOrderReportsInner
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOcoOrdersResponseOrderReportsInner
     */
    executedQty?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOcoOrdersResponseOrderReportsInner
     */
    cummulativeQuoteQty?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOcoOrdersResponseOrderReportsInner
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOcoOrdersResponseOrderReportsInner
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOcoOrdersResponseOrderReportsInner
     */
    type?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOcoOrdersResponseOrderReportsInner
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOcoOrdersResponseOrderReportsInner
     */
    stopPrice?: string;
}

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

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

/**
 *
 * @export
 * @interface CancelMarginAccountOcoOrdersResponse
 */
interface CancelMarginAccountOcoOrdersResponse {
    /**
     *
     * @type {number}
     * @memberof CancelMarginAccountOcoOrdersResponse
     */
    orderListId?: number;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOcoOrdersResponse
     */
    contingencyType?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOcoOrdersResponse
     */
    listStatusType?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOcoOrdersResponse
     */
    listOrderStatus?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOcoOrdersResponse
     */
    listClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof CancelMarginAccountOcoOrdersResponse
     */
    transactionTime?: number;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOcoOrdersResponse
     */
    symbol?: string;
    /**
     *
     * @type {Array<CancelMarginAccountOcoOrdersResponseOrdersInner>}
     * @memberof CancelMarginAccountOcoOrdersResponse
     */
    orders?: Array<CancelMarginAccountOcoOrdersResponseOrdersInner>;
    /**
     *
     * @type {Array<CancelMarginAccountOcoOrdersResponseOrderReportsInner>}
     * @memberof CancelMarginAccountOcoOrdersResponse
     */
    orderReports?: Array<CancelMarginAccountOcoOrdersResponseOrderReportsInner>;
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface CancelMarginAccountOrderResponse
 */
interface CancelMarginAccountOrderResponse {
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOrderResponse
     */
    symbol?: string;
    /**
     *
     * @type {number}
     * @memberof CancelMarginAccountOrderResponse
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOrderResponse
     */
    origClientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOrderResponse
     */
    clientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOrderResponse
     */
    price?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOrderResponse
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOrderResponse
     */
    executedQty?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOrderResponse
     */
    cummulativeQuoteQty?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOrderResponse
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOrderResponse
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOrderResponse
     */
    type?: string;
    /**
     *
     * @type {string}
     * @memberof CancelMarginAccountOrderResponse
     */
    side?: string;
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface CancelUmConditionalOrderResponse
 */
interface CancelUmConditionalOrderResponse {
    /**
     *
     * @type {string}
     * @memberof CancelUmConditionalOrderResponse
     */
    newClientStrategyId?: string;
    /**
     *
     * @type {number}
     * @memberof CancelUmConditionalOrderResponse
     */
    strategyId?: number;
    /**
     *
     * @type {string}
     * @memberof CancelUmConditionalOrderResponse
     */
    strategyStatus?: string;
    /**
     *
     * @type {string}
     * @memberof CancelUmConditionalOrderResponse
     */
    strategyType?: string;
    /**
     *
     * @type {string}
     * @memberof CancelUmConditionalOrderResponse
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof CancelUmConditionalOrderResponse
     */
    price?: string;
    /**
     *
     * @type {boolean}
     * @memberof CancelUmConditionalOrderResponse
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {string}
     * @memberof CancelUmConditionalOrderResponse
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof CancelUmConditionalOrderResponse
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof CancelUmConditionalOrderResponse
     */
    stopPrice?: string;
    /**
     *
     * @type {string}
     * @memberof CancelUmConditionalOrderResponse
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof CancelUmConditionalOrderResponse
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof CancelUmConditionalOrderResponse
     */
    activatePrice?: string;
    /**
     *
     * @type {string}
     * @memberof CancelUmConditionalOrderResponse
     */
    priceRate?: string;
    /**
     *
     * @type {number}
     * @memberof CancelUmConditionalOrderResponse
     */
    bookTime?: number;
    /**
     *
     * @type {number}
     * @memberof CancelUmConditionalOrderResponse
     */
    updateTime?: number;
    /**
     *
     * @type {string}
     * @memberof CancelUmConditionalOrderResponse
     */
    workingType?: string;
    /**
     *
     * @type {boolean}
     * @memberof CancelUmConditionalOrderResponse
     */
    priceProtect?: boolean;
    /**
     *
     * @type {string}
     * @memberof CancelUmConditionalOrderResponse
     */
    selfTradePreventionMode?: string;
    /**
     *
     * @type {number}
     * @memberof CancelUmConditionalOrderResponse
     */
    goodTillDate?: number;
    /**
     *
     * @type {string}
     * @memberof CancelUmConditionalOrderResponse
     */
    priceMatch?: string;
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface CancelUmOrderResponse
 */
interface CancelUmOrderResponse {
    /**
     *
     * @type {string}
     * @memberof CancelUmOrderResponse
     */
    avgPrice?: string;
    /**
     *
     * @type {string}
     * @memberof CancelUmOrderResponse
     */
    clientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof CancelUmOrderResponse
     */
    cumQty?: string;
    /**
     *
     * @type {string}
     * @memberof CancelUmOrderResponse
     */
    cumQuote?: string;
    /**
     *
     * @type {string}
     * @memberof CancelUmOrderResponse
     */
    executedQty?: string;
    /**
     *
     * @type {number}
     * @memberof CancelUmOrderResponse
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof CancelUmOrderResponse
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof CancelUmOrderResponse
     */
    price?: string;
    /**
     *
     * @type {boolean}
     * @memberof CancelUmOrderResponse
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {string}
     * @memberof CancelUmOrderResponse
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof CancelUmOrderResponse
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof CancelUmOrderResponse
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof CancelUmOrderResponse
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof CancelUmOrderResponse
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof CancelUmOrderResponse
     */
    type?: string;
    /**
     *
     * @type {number}
     * @memberof CancelUmOrderResponse
     */
    updateTime?: number;
    /**
     *
     * @type {string}
     * @memberof CancelUmOrderResponse
     */
    selfTradePreventionMode?: string;
    /**
     *
     * @type {number}
     * @memberof CancelUmOrderResponse
     */
    goodTillDate?: number;
    /**
     *
     * @type {string}
     * @memberof CancelUmOrderResponse
     */
    priceMatch?: string;
}

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

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

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

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

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

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

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

/**
 *
 * @export
 * @interface CmAccountTradeListResponse
 */
interface CmAccountTradeListResponse extends Array<CmAccountTradeListResponseInner> {
}

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

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

/**
 *
 * @export
 * @interface CmNotionalAndLeverageBracketsResponseInner
 */
interface CmNotionalAndLeverageBracketsResponseInner {
    /**
     *
     * @type {string}
     * @memberof CmNotionalAndLeverageBracketsResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {Array<CmNotionalAndLeverageBracketsResponseInnerBracketsInner>}
     * @memberof CmNotionalAndLeverageBracketsResponseInner
     */
    brackets?: Array<CmNotionalAndLeverageBracketsResponseInnerBracketsInner>;
}

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

/**
 *
 * @export
 * @interface CmNotionalAndLeverageBracketsResponse
 */
interface CmNotionalAndLeverageBracketsResponse extends Array<CmNotionalAndLeverageBracketsResponseInner> {
}

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

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

/**
 *
 * @export
 * @interface CmPositionAdlQuantileEstimationResponseInner
 */
interface CmPositionAdlQuantileEstimationResponseInner {
    /**
     *
     * @type {string}
     * @memberof CmPositionAdlQuantileEstimationResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {CmPositionAdlQuantileEstimationResponseInnerAdlQuantile}
     * @memberof CmPositionAdlQuantileEstimationResponseInner
     */
    adlQuantile?: CmPositionAdlQuantileEstimationResponseInnerAdlQuantile;
}

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

/**
 *
 * @export
 * @interface CmPositionAdlQuantileEstimationResponse
 */
interface CmPositionAdlQuantileEstimationResponse extends Array<CmPositionAdlQuantileEstimationResponseInner> {
}

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

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

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

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

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

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

/**
 *
 * @export
 * @interface GetCmAccountDetailResponse
 */
interface GetCmAccountDetailResponse {
    /**
     *
     * @type {Array<GetCmAccountDetailResponseAssetsInner>}
     * @memberof GetCmAccountDetailResponse
     */
    assets?: Array<GetCmAccountDetailResponseAssetsInner>;
    /**
     *
     * @type {Array<GetCmAccountDetailResponsePositionsInner>}
     * @memberof GetCmAccountDetailResponse
     */
    positions?: Array<GetCmAccountDetailResponsePositionsInner>;
}

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

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

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

/**
 *
 * @export
 * @interface GetCmIncomeHistoryResponse
 */
interface GetCmIncomeHistoryResponse extends Array<GetCmIncomeHistoryResponseInner> {
}

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

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

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

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface GetMarginBorrowLoanInterestHistoryResponseRowsInner
 */
interface GetMarginBorrowLoanInterestHistoryResponseRowsInner {
    /**
     *
     * @type {number}
     * @memberof GetMarginBorrowLoanInterestHistoryResponseRowsInner
     */
    txId?: number;
    /**
     *
     * @type {number}
     * @memberof GetMarginBorrowLoanInterestHistoryResponseRowsInner
     */
    interestAccuredTime?: number;
    /**
     *
     * @type {string}
     * @memberof GetMarginBorrowLoanInterestHistoryResponseRowsInner
     */
    asset?: string;
    /**
     *
     * @type {string}
     * @memberof GetMarginBorrowLoanInterestHistoryResponseRowsInner
     */
    rawAsset?: string;
    /**
     *
     * @type {string}
     * @memberof GetMarginBorrowLoanInterestHistoryResponseRowsInner
     */
    principal?: string;
    /**
     *
     * @type {string}
     * @memberof GetMarginBorrowLoanInterestHistoryResponseRowsInner
     */
    interest?: string;
    /**
     *
     * @type {string}
     * @memberof GetMarginBorrowLoanInterestHistoryResponseRowsInner
     */
    interestRate?: string;
    /**
     *
     * @type {string}
     * @memberof GetMarginBorrowLoanInterestHistoryResponseRowsInner
     */
    type?: string;
}

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

/**
 *
 * @export
 * @interface GetMarginBorrowLoanInterestHistoryResponse
 */
interface GetMarginBorrowLoanInterestHistoryResponse {
    /**
     *
     * @type {Array<GetMarginBorrowLoanInterestHistoryResponseRowsInner>}
     * @memberof GetMarginBorrowLoanInterestHistoryResponse
     */
    rows?: Array<GetMarginBorrowLoanInterestHistoryResponseRowsInner>;
    /**
     *
     * @type {number}
     * @memberof GetMarginBorrowLoanInterestHistoryResponse
     */
    total?: number;
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface GetUmAccountDetailResponsePositionsInner
 */
interface GetUmAccountDetailResponsePositionsInner {
    /**
     *
     * @type {string}
     * @memberof GetUmAccountDetailResponsePositionsInner
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof GetUmAccountDetailResponsePositionsInner
     */
    initialMargin?: string;
    /**
     *
     * @type {string}
     * @memberof GetUmAccountDetailResponsePositionsInner
     */
    maintMargin?: string;
    /**
     *
     * @type {string}
     * @memberof GetUmAccountDetailResponsePositionsInner
     */
    unrealizedProfit?: string;
    /**
     *
     * @type {string}
     * @memberof GetUmAccountDetailResponsePositionsInner
     */
    positionInitialMargin?: string;
    /**
     *
     * @type {string}
     * @memberof GetUmAccountDetailResponsePositionsInner
     */
    openOrderInitialMargin?: string;
    /**
     *
     * @type {string}
     * @memberof GetUmAccountDetailResponsePositionsInner
     */
    leverage?: string;
    /**
     *
     * @type {string}
     * @memberof GetUmAccountDetailResponsePositionsInner
     */
    entryPrice?: string;
    /**
     *
     * @type {string}
     * @memberof GetUmAccountDetailResponsePositionsInner
     */
    maxNotional?: string;
    /**
     *
     * @type {string}
     * @memberof GetUmAccountDetailResponsePositionsInner
     */
    bidNotional?: string;
    /**
     *
     * @type {string}
     * @memberof GetUmAccountDetailResponsePositionsInner
     */
    askNotional?: string;
    /**
     *
     * @type {string}
     * @memberof GetUmAccountDetailResponsePositionsInner
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof GetUmAccountDetailResponsePositionsInner
     */
    positionAmt?: string;
    /**
     *
     * @type {number}
     * @memberof GetUmAccountDetailResponsePositionsInner
     */
    updateTime?: number;
}

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

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

/**
 *
 * @export
 * @interface GetUmAccountDetailResponse
 */
interface GetUmAccountDetailResponse {
    /**
     *
     * @type {Array<GetUmAccountDetailV2ResponseAssetsInner>}
     * @memberof GetUmAccountDetailResponse
     */
    assets?: Array<GetUmAccountDetailV2ResponseAssetsInner>;
    /**
     *
     * @type {Array<GetUmAccountDetailResponsePositionsInner>}
     * @memberof GetUmAccountDetailResponse
     */
    positions?: Array<GetUmAccountDetailResponsePositionsInner>;
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface GetUmAccountDetailV2ResponsePositionsInner
 */
interface GetUmAccountDetailV2ResponsePositionsInner {
    /**
     *
     * @type {string}
     * @memberof GetUmAccountDetailV2ResponsePositionsInner
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof GetUmAccountDetailV2ResponsePositionsInner
     */
    initialMargin?: string;
    /**
     *
     * @type {string}
     * @memberof GetUmAccountDetailV2ResponsePositionsInner
     */
    maintMargin?: string;
    /**
     *
     * @type {string}
     * @memberof GetUmAccountDetailV2ResponsePositionsInner
     */
    unrealizedProfit?: string;
    /**
     *
     * @type {string}
     * @memberof GetUmAccountDetailV2ResponsePositionsInner
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof GetUmAccountDetailV2ResponsePositionsInner
     */
    positionAmt?: string;
    /**
     *
     * @type {number}
     * @memberof GetUmAccountDetailV2ResponsePositionsInner
     */
    updateTime?: number;
    /**
     *
     * @type {string}
     * @memberof GetUmAccountDetailV2ResponsePositionsInner
     */
    notional?: string;
}

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

/**
 *
 * @export
 * @interface GetUmAccountDetailV2Response
 */
interface GetUmAccountDetailV2Response {
    /**
     *
     * @type {Array<GetUmAccountDetailV2ResponseAssetsInner>}
     * @memberof GetUmAccountDetailV2Response
     */
    assets?: Array<GetUmAccountDetailV2ResponseAssetsInner>;
    /**
     *
     * @type {Array<GetUmAccountDetailV2ResponsePositionsInner>}
     * @memberof GetUmAccountDetailV2Response
     */
    positions?: Array<GetUmAccountDetailV2ResponsePositionsInner>;
}

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

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

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

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

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

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

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

/**
 *
 * @export
 * @interface GetUmIncomeHistoryResponse
 */
interface GetUmIncomeHistoryResponse extends Array<GetUmIncomeHistoryResponseInner> {
}

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

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

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

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface MarginAccountNewOcoResponseOrderReportsInner
 */
interface MarginAccountNewOcoResponseOrderReportsInner {
    /**
     *
     * @type {string}
     * @memberof MarginAccountNewOcoResponseOrderReportsInner
     */
    symbol?: string;
    /**
     *
     * @type {number}
     * @memberof MarginAccountNewOcoResponseOrderReportsInner
     */
    orderId?: number;
    /**
     *
     * @type {number}
     * @memberof MarginAccountNewOcoResponseOrderReportsInner
     */
    orderListId?: number;
    /**
     *
     * @type {string}
     * @memberof MarginAccountNewOcoResponseOrderReportsInner
     */
    clientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof MarginAccountNewOcoResponseOrderReportsInner
     */
    transactTime?: number;
    /**
     *
     * @type {string}
     * @memberof MarginAccountNewOcoResponseOrderReportsInner
     */
    price?: string;
    /**
     *
     * @type {string}
     * @memberof MarginAccountNewOcoResponseOrderReportsInner
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof MarginAccountNewOcoResponseOrderReportsInner
     */
    executedQty?: string;
    /**
     *
     * @type {string}
     * @memberof MarginAccountNewOcoResponseOrderReportsInner
     */
    cummulativeQuoteQty?: string;
    /**
     *
     * @type {string}
     * @memberof MarginAccountNewOcoResponseOrderReportsInner
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof MarginAccountNewOcoResponseOrderReportsInner
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof MarginAccountNewOcoResponseOrderReportsInner
     */
    type?: string;
    /**
     *
     * @type {string}
     * @memberof MarginAccountNewOcoResponseOrderReportsInner
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof MarginAccountNewOcoResponseOrderReportsInner
     */
    stopPrice?: string;
}

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

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

/**
 *
 * @export
 * @interface MarginAccountNewOcoResponse
 */
interface MarginAccountNewOcoResponse {
    /**
     *
     * @type {number}
     * @memberof MarginAccountNewOcoResponse
     */
    orderListId?: number;
    /**
     *
     * @type {string}
     * @memberof MarginAccountNewOcoResponse
     */
    contingencyType?: string;
    /**
     *
     * @type {string}
     * @memberof MarginAccountNewOcoResponse
     */
    listStatusType?: string;
    /**
     *
     * @type {string}
     * @memberof MarginAccountNewOcoResponse
     */
    listOrderStatus?: string;
    /**
     *
     * @type {string}
     * @memberof MarginAccountNewOcoResponse
     */
    listClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof MarginAccountNewOcoResponse
     */
    transactionTime?: number;
    /**
     *
     * @type {string}
     * @memberof MarginAccountNewOcoResponse
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof MarginAccountNewOcoResponse
     */
    marginBuyBorrowAmount?: string;
    /**
     *
     * @type {string}
     * @memberof MarginAccountNewOcoResponse
     */
    marginBuyBorrowAsset?: string;
    /**
     *
     * @type {Array<MarginAccountNewOcoResponseOrdersInner>}
     * @memberof MarginAccountNewOcoResponse
     */
    orders?: Array<MarginAccountNewOcoResponseOrdersInner>;
    /**
     *
     * @type {Array<MarginAccountNewOcoResponseOrderReportsInner>}
     * @memberof MarginAccountNewOcoResponse
     */
    orderReports?: Array<MarginAccountNewOcoResponseOrderReportsInner>;
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface MarginAccountRepayDebtResponse
 */
interface MarginAccountRepayDebtResponse {
    /**
     *
     * @type {string}
     * @memberof MarginAccountRepayDebtResponse
     */
    amount?: string;
    /**
     *
     * @type {string}
     * @memberof MarginAccountRepayDebtResponse
     */
    asset?: string;
    /**
     *
     * @type {Array<string>}
     * @memberof MarginAccountRepayDebtResponse
     */
    specifyRepayAssets?: Array<string>;
    /**
     *
     * @type {number}
     * @memberof MarginAccountRepayDebtResponse
     */
    updateTime?: number;
    /**
     *
     * @type {boolean}
     * @memberof MarginAccountRepayDebtResponse
     */
    success?: boolean;
}

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

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface MarginAccountTradeListResponseInner
 */
interface MarginAccountTradeListResponseInner {
    /**
     *
     * @type {string}
     * @memberof MarginAccountTradeListResponseInner
     */
    commission?: string;
    /**
     *
     * @type {string}
     * @memberof MarginAccountTradeListResponseInner
     */
    commissionAsset?: string;
    /**
     *
     * @type {number}
     * @memberof MarginAccountTradeListResponseInner
     */
    id?: number;
    /**
     *
     * @type {boolean}
     * @memberof MarginAccountTradeListResponseInner
     */
    isBestMatch?: boolean;
    /**
     *
     * @type {boolean}
     * @memberof MarginAccountTradeListResponseInner
     */
    isBuyer?: boolean;
    /**
     *
     * @type {boolean}
     * @memberof MarginAccountTradeListResponseInner
     */
    isMaker?: boolean;
    /**
     *
     * @type {number}
     * @memberof MarginAccountTradeListResponseInner
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof MarginAccountTradeListResponseInner
     */
    price?: string;
    /**
     *
     * @type {string}
     * @memberof MarginAccountTradeListResponseInner
     */
    qty?: string;
    /**
     *
     * @type {string}
     * @memberof MarginAccountTradeListResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {number}
     * @memberof MarginAccountTradeListResponseInner
     */
    time?: number;
}

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

/**
 *
 * @export
 * @interface MarginAccountTradeListResponse
 */
interface MarginAccountTradeListResponse extends Array<MarginAccountTradeListResponseInner> {
}

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

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

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface ModifyUmOrderResponse
 */
interface ModifyUmOrderResponse {
    /**
     *
     * @type {number}
     * @memberof ModifyUmOrderResponse
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof ModifyUmOrderResponse
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyUmOrderResponse
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyUmOrderResponse
     */
    clientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyUmOrderResponse
     */
    price?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyUmOrderResponse
     */
    avgPrice?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyUmOrderResponse
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyUmOrderResponse
     */
    executedQty?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyUmOrderResponse
     */
    cumQty?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyUmOrderResponse
     */
    cumQuote?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyUmOrderResponse
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyUmOrderResponse
     */
    type?: string;
    /**
     *
     * @type {boolean}
     * @memberof ModifyUmOrderResponse
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {string}
     * @memberof ModifyUmOrderResponse
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyUmOrderResponse
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyUmOrderResponse
     */
    origType?: string;
    /**
     *
     * @type {string}
     * @memberof ModifyUmOrderResponse
     */
    selfTradePreventionMode?: string;
    /**
     *
     * @type {number}
     * @memberof ModifyUmOrderResponse
     */
    goodTillDate?: number;
    /**
     *
     * @type {number}
     * @memberof ModifyUmOrderResponse
     */
    updateTime?: number;
    /**
     *
     * @type {string}
     * @memberof ModifyUmOrderResponse
     */
    priceMatch?: string;
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface NewCmConditionalOrderResponse
 */
interface NewCmConditionalOrderResponse {
    /**
     *
     * @type {string}
     * @memberof NewCmConditionalOrderResponse
     */
    newClientStrategyId?: string;
    /**
     *
     * @type {number}
     * @memberof NewCmConditionalOrderResponse
     */
    strategyId?: number;
    /**
     *
     * @type {string}
     * @memberof NewCmConditionalOrderResponse
     */
    strategyStatus?: string;
    /**
     *
     * @type {string}
     * @memberof NewCmConditionalOrderResponse
     */
    strategyType?: string;
    /**
     *
     * @type {string}
     * @memberof NewCmConditionalOrderResponse
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof NewCmConditionalOrderResponse
     */
    price?: string;
    /**
     *
     * @type {boolean}
     * @memberof NewCmConditionalOrderResponse
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {string}
     * @memberof NewCmConditionalOrderResponse
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof NewCmConditionalOrderResponse
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof NewCmConditionalOrderResponse
     */
    stopPrice?: string;
    /**
     *
     * @type {string}
     * @memberof NewCmConditionalOrderResponse
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof NewCmConditionalOrderResponse
     */
    pair?: string;
    /**
     *
     * @type {string}
     * @memberof NewCmConditionalOrderResponse
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof NewCmConditionalOrderResponse
     */
    activatePrice?: string;
    /**
     *
     * @type {string}
     * @memberof NewCmConditionalOrderResponse
     */
    priceRate?: string;
    /**
     *
     * @type {number}
     * @memberof NewCmConditionalOrderResponse
     */
    bookTime?: number;
    /**
     *
     * @type {number}
     * @memberof NewCmConditionalOrderResponse
     */
    updateTime?: number;
    /**
     *
     * @type {string}
     * @memberof NewCmConditionalOrderResponse
     */
    workingType?: string;
    /**
     *
     * @type {boolean}
     * @memberof NewCmConditionalOrderResponse
     */
    priceProtect?: boolean;
}

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

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface NewMarginOrderResponseFillsInner
 */
interface NewMarginOrderResponseFillsInner {
    /**
     *
     * @type {string}
     * @memberof NewMarginOrderResponseFillsInner
     */
    price?: string;
    /**
     *
     * @type {string}
     * @memberof NewMarginOrderResponseFillsInner
     */
    qty?: string;
    /**
     *
     * @type {string}
     * @memberof NewMarginOrderResponseFillsInner
     */
    commission?: string;
    /**
     *
     * @type {string}
     * @memberof NewMarginOrderResponseFillsInner
     */
    commissionAsset?: string;
}

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

/**
 *
 * @export
 * @interface NewMarginOrderResponse
 */
interface NewMarginOrderResponse {
    /**
     *
     * @type {string}
     * @memberof NewMarginOrderResponse
     */
    symbol?: string;
    /**
     *
     * @type {number}
     * @memberof NewMarginOrderResponse
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof NewMarginOrderResponse
     */
    clientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof NewMarginOrderResponse
     */
    transactTime?: number;
    /**
     *
     * @type {string}
     * @memberof NewMarginOrderResponse
     */
    price?: string;
    /**
     *
     * @type {string}
     * @memberof NewMarginOrderResponse
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof NewMarginOrderResponse
     */
    executedQty?: string;
    /**
     *
     * @type {string}
     * @memberof NewMarginOrderResponse
     */
    cummulativeQuoteQty?: string;
    /**
     *
     * @type {string}
     * @memberof NewMarginOrderResponse
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof NewMarginOrderResponse
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof NewMarginOrderResponse
     */
    type?: string;
    /**
     *
     * @type {string}
     * @memberof NewMarginOrderResponse
     */
    side?: string;
    /**
     *
     * @type {number}
     * @memberof NewMarginOrderResponse
     */
    marginBuyBorrowAmount?: number;
    /**
     *
     * @type {string}
     * @memberof NewMarginOrderResponse
     */
    marginBuyBorrowAsset?: string;
    /**
     *
     * @type {Array<NewMarginOrderResponseFillsInner>}
     * @memberof NewMarginOrderResponse
     */
    fills?: Array<NewMarginOrderResponseFillsInner>;
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface NewUmConditionalOrderResponse
 */
interface NewUmConditionalOrderResponse {
    /**
     *
     * @type {string}
     * @memberof NewUmConditionalOrderResponse
     */
    newClientStrategyId?: string;
    /**
     *
     * @type {number}
     * @memberof NewUmConditionalOrderResponse
     */
    strategyId?: number;
    /**
     *
     * @type {string}
     * @memberof NewUmConditionalOrderResponse
     */
    strategyStatus?: string;
    /**
     *
     * @type {string}
     * @memberof NewUmConditionalOrderResponse
     */
    strategyType?: string;
    /**
     *
     * @type {string}
     * @memberof NewUmConditionalOrderResponse
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof NewUmConditionalOrderResponse
     */
    price?: string;
    /**
     *
     * @type {boolean}
     * @memberof NewUmConditionalOrderResponse
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {string}
     * @memberof NewUmConditionalOrderResponse
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof NewUmConditionalOrderResponse
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof NewUmConditionalOrderResponse
     */
    stopPrice?: string;
    /**
     *
     * @type {string}
     * @memberof NewUmConditionalOrderResponse
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof NewUmConditionalOrderResponse
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof NewUmConditionalOrderResponse
     */
    activatePrice?: string;
    /**
     *
     * @type {string}
     * @memberof NewUmConditionalOrderResponse
     */
    priceRate?: string;
    /**
     *
     * @type {number}
     * @memberof NewUmConditionalOrderResponse
     */
    bookTime?: number;
    /**
     *
     * @type {number}
     * @memberof NewUmConditionalOrderResponse
     */
    updateTime?: number;
    /**
     *
     * @type {string}
     * @memberof NewUmConditionalOrderResponse
     */
    workingType?: string;
    /**
     *
     * @type {boolean}
     * @memberof NewUmConditionalOrderResponse
     */
    priceProtect?: boolean;
    /**
     *
     * @type {string}
     * @memberof NewUmConditionalOrderResponse
     */
    selfTradePreventionMode?: string;
    /**
     *
     * @type {number}
     * @memberof NewUmConditionalOrderResponse
     */
    goodTillDate?: number;
    /**
     *
     * @type {string}
     * @memberof NewUmConditionalOrderResponse
     */
    priceMatch?: string;
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface NewUmOrderResponse
 */
interface NewUmOrderResponse {
    /**
     *
     * @type {string}
     * @memberof NewUmOrderResponse
     */
    clientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof NewUmOrderResponse
     */
    cumQty?: string;
    /**
     *
     * @type {string}
     * @memberof NewUmOrderResponse
     */
    cumQuote?: string;
    /**
     *
     * @type {string}
     * @memberof NewUmOrderResponse
     */
    executedQty?: string;
    /**
     *
     * @type {number}
     * @memberof NewUmOrderResponse
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof NewUmOrderResponse
     */
    avgPrice?: string;
    /**
     *
     * @type {string}
     * @memberof NewUmOrderResponse
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof NewUmOrderResponse
     */
    price?: string;
    /**
     *
     * @type {boolean}
     * @memberof NewUmOrderResponse
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {string}
     * @memberof NewUmOrderResponse
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof NewUmOrderResponse
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof NewUmOrderResponse
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof NewUmOrderResponse
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof NewUmOrderResponse
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof NewUmOrderResponse
     */
    type?: string;
    /**
     *
     * @type {string}
     * @memberof NewUmOrderResponse
     */
    selfTradePreventionMode?: string;
    /**
     *
     * @type {number}
     * @memberof NewUmOrderResponse
     */
    goodTillDate?: number;
    /**
     *
     * @type {number}
     * @memberof NewUmOrderResponse
     */
    updateTime?: number;
    /**
     *
     * @type {string}
     * @memberof NewUmOrderResponse
     */
    priceMatch?: string;
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsACCOUNTInner
 */
interface PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsACCOUNTInner {
    /**
     *
     * @type {string}
     * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsACCOUNTInner
     */
    indicator?: string;
    /**
     *
     * @type {number}
     * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsACCOUNTInner
     */
    value?: number;
    /**
     *
     * @type {number}
     * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsACCOUNTInner
     */
    triggerValue?: number;
    /**
     *
     * @type {number}
     * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsACCOUNTInner
     */
    plannedRecoverTime?: number;
    /**
     *
     * @type {boolean}
     * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsACCOUNTInner
     */
    isLocked?: boolean;
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsBTCUSDTInner
 */
interface PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsBTCUSDTInner {
    /**
     *
     * @type {boolean}
     * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsBTCUSDTInner
     */
    isLocked?: boolean;
    /**
     *
     * @type {number}
     * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsBTCUSDTInner
     */
    plannedRecoverTime?: number;
    /**
     *
     * @type {string}
     * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsBTCUSDTInner
     */
    indicator?: string;
    /**
     *
     * @type {number}
     * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsBTCUSDTInner
     */
    value?: number;
    /**
     *
     * @type {number}
     * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsBTCUSDTInner
     */
    triggerValue?: number;
}

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

/**
 *
 * @export
 * @interface PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicators
 */
interface PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicators {
    /**
     *
     * @type {Array<PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsBTCUSDTInner>}
     * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicators
     */
    BTCUSDT?: Array<PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsBTCUSDTInner>;
    /**
     *
     * @type {Array<PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsACCOUNTInner>}
     * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicators
     */
    ACCOUNT?: Array<PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsACCOUNTInner>;
}

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

/**
 *
 * @export
 * @interface PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponse
 */
interface PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponse {
    /**
     *
     * @type {PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicators}
     * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponse
     */
    indicators?: PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicators;
    /**
     *
     * @type {number}
     * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponse
     */
    updateTime?: number;
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface QueryAllCmConditionalOrdersResponseInner
 */
interface QueryAllCmConditionalOrdersResponseInner {
    /**
     *
     * @type {string}
     * @memberof QueryAllCmConditionalOrdersResponseInner
     */
    newClientStrategyId?: string;
    /**
     *
     * @type {number}
     * @memberof QueryAllCmConditionalOrdersResponseInner
     */
    strategyId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryAllCmConditionalOrdersResponseInner
     */
    strategyStatus?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCmConditionalOrdersResponseInner
     */
    strategyType?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCmConditionalOrdersResponseInner
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCmConditionalOrdersResponseInner
     */
    price?: string;
    /**
     *
     * @type {boolean}
     * @memberof QueryAllCmConditionalOrdersResponseInner
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {string}
     * @memberof QueryAllCmConditionalOrdersResponseInner
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCmConditionalOrdersResponseInner
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCmConditionalOrdersResponseInner
     */
    stopPrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCmConditionalOrdersResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {number}
     * @memberof QueryAllCmConditionalOrdersResponseInner
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryAllCmConditionalOrdersResponseInner
     */
    status?: string;
    /**
     *
     * @type {number}
     * @memberof QueryAllCmConditionalOrdersResponseInner
     */
    bookTime?: number;
    /**
     *
     * @type {number}
     * @memberof QueryAllCmConditionalOrdersResponseInner
     */
    updateTime?: number;
    /**
     *
     * @type {number}
     * @memberof QueryAllCmConditionalOrdersResponseInner
     */
    triggerTime?: number;
    /**
     *
     * @type {string}
     * @memberof QueryAllCmConditionalOrdersResponseInner
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCmConditionalOrdersResponseInner
     */
    type?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCmConditionalOrdersResponseInner
     */
    activatePrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCmConditionalOrdersResponseInner
     */
    priceRate?: string;
}

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

/**
 *
 * @export
 * @interface QueryAllCmConditionalOrdersResponse
 */
interface QueryAllCmConditionalOrdersResponse extends Array<QueryAllCmConditionalOrdersResponseInner> {
}

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

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

/**
 *
 * @export
 * @interface QueryAllCmOrdersResponse
 */
interface QueryAllCmOrdersResponse extends Array<QueryAllCmOrdersResponseInner> {
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface QueryAllCurrentCmOpenConditionalOrdersResponseInner
 */
interface QueryAllCurrentCmOpenConditionalOrdersResponseInner {
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentCmOpenConditionalOrdersResponseInner
     */
    newClientStrategyId?: string;
    /**
     *
     * @type {number}
     * @memberof QueryAllCurrentCmOpenConditionalOrdersResponseInner
     */
    strategyId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentCmOpenConditionalOrdersResponseInner
     */
    strategyStatus?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentCmOpenConditionalOrdersResponseInner
     */
    strategyType?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentCmOpenConditionalOrdersResponseInner
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentCmOpenConditionalOrdersResponseInner
     */
    price?: string;
    /**
     *
     * @type {boolean}
     * @memberof QueryAllCurrentCmOpenConditionalOrdersResponseInner
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentCmOpenConditionalOrdersResponseInner
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentCmOpenConditionalOrdersResponseInner
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentCmOpenConditionalOrdersResponseInner
     */
    stopPrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentCmOpenConditionalOrdersResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {number}
     * @memberof QueryAllCurrentCmOpenConditionalOrdersResponseInner
     */
    bookTime?: number;
    /**
     *
     * @type {number}
     * @memberof QueryAllCurrentCmOpenConditionalOrdersResponseInner
     */
    updateTime?: number;
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentCmOpenConditionalOrdersResponseInner
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentCmOpenConditionalOrdersResponseInner
     */
    activatePrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentCmOpenConditionalOrdersResponseInner
     */
    priceRate?: string;
}

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

/**
 *
 * @export
 * @interface QueryAllCurrentCmOpenConditionalOrdersResponse
 */
interface QueryAllCurrentCmOpenConditionalOrdersResponse extends Array<QueryAllCurrentCmOpenConditionalOrdersResponseInner> {
}

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

/**
 *
 * @export
 * @interface QueryAllCurrentCmOpenOrdersResponse
 */
interface QueryAllCurrentCmOpenOrdersResponse extends Array<QueryAllCmOrdersResponseInner> {
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface QueryAllCurrentUmOpenConditionalOrdersResponseInner
 */
interface QueryAllCurrentUmOpenConditionalOrdersResponseInner {
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentUmOpenConditionalOrdersResponseInner
     */
    newClientStrategyId?: string;
    /**
     *
     * @type {number}
     * @memberof QueryAllCurrentUmOpenConditionalOrdersResponseInner
     */
    strategyId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentUmOpenConditionalOrdersResponseInner
     */
    strategyStatus?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentUmOpenConditionalOrdersResponseInner
     */
    strategyType?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentUmOpenConditionalOrdersResponseInner
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentUmOpenConditionalOrdersResponseInner
     */
    price?: string;
    /**
     *
     * @type {boolean}
     * @memberof QueryAllCurrentUmOpenConditionalOrdersResponseInner
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentUmOpenConditionalOrdersResponseInner
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentUmOpenConditionalOrdersResponseInner
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentUmOpenConditionalOrdersResponseInner
     */
    stopPrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentUmOpenConditionalOrdersResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {number}
     * @memberof QueryAllCurrentUmOpenConditionalOrdersResponseInner
     */
    bookTime?: number;
    /**
     *
     * @type {number}
     * @memberof QueryAllCurrentUmOpenConditionalOrdersResponseInner
     */
    updateTime?: number;
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentUmOpenConditionalOrdersResponseInner
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentUmOpenConditionalOrdersResponseInner
     */
    activatePrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentUmOpenConditionalOrdersResponseInner
     */
    priceRate?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentUmOpenConditionalOrdersResponseInner
     */
    selfTradePreventionMode?: string;
    /**
     *
     * @type {number}
     * @memberof QueryAllCurrentUmOpenConditionalOrdersResponseInner
     */
    goodTillDate?: number;
    /**
     *
     * @type {string}
     * @memberof QueryAllCurrentUmOpenConditionalOrdersResponseInner
     */
    priceMatch?: string;
}

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

/**
 *
 * @export
 * @interface QueryAllCurrentUmOpenConditionalOrdersResponse
 */
interface QueryAllCurrentUmOpenConditionalOrdersResponse extends Array<QueryAllCurrentUmOpenConditionalOrdersResponseInner> {
}

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

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

/**
 *
 * @export
 * @interface QueryAllCurrentUmOpenOrdersResponse
 */
interface QueryAllCurrentUmOpenOrdersResponse extends Array<QueryAllCurrentUmOpenOrdersResponseInner> {
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface QueryAllMarginAccountOrdersResponseInner
 */
interface QueryAllMarginAccountOrdersResponseInner {
    /**
     *
     * @type {string}
     * @memberof QueryAllMarginAccountOrdersResponseInner
     */
    clientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllMarginAccountOrdersResponseInner
     */
    cummulativeQuoteQty?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllMarginAccountOrdersResponseInner
     */
    executedQty?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllMarginAccountOrdersResponseInner
     */
    icebergQty?: string;
    /**
     *
     * @type {boolean}
     * @memberof QueryAllMarginAccountOrdersResponseInner
     */
    isWorking?: boolean;
    /**
     *
     * @type {number}
     * @memberof QueryAllMarginAccountOrdersResponseInner
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryAllMarginAccountOrdersResponseInner
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllMarginAccountOrdersResponseInner
     */
    price?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllMarginAccountOrdersResponseInner
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllMarginAccountOrdersResponseInner
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllMarginAccountOrdersResponseInner
     */
    stopPrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllMarginAccountOrdersResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {number}
     * @memberof QueryAllMarginAccountOrdersResponseInner
     */
    time?: number;
    /**
     *
     * @type {string}
     * @memberof QueryAllMarginAccountOrdersResponseInner
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllMarginAccountOrdersResponseInner
     */
    type?: string;
    /**
     *
     * @type {number}
     * @memberof QueryAllMarginAccountOrdersResponseInner
     */
    updateTime?: number;
    /**
     *
     * @type {number}
     * @memberof QueryAllMarginAccountOrdersResponseInner
     */
    accountId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryAllMarginAccountOrdersResponseInner
     */
    selfTradePreventionMode?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllMarginAccountOrdersResponseInner
     */
    preventedMatchId?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllMarginAccountOrdersResponseInner
     */
    preventedQuantity?: string;
}

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

/**
 *
 * @export
 * @interface QueryAllMarginAccountOrdersResponse
 */
interface QueryAllMarginAccountOrdersResponse extends Array<QueryAllMarginAccountOrdersResponseInner> {
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface QueryAllUmConditionalOrdersResponseInner
 */
interface QueryAllUmConditionalOrdersResponseInner {
    /**
     *
     * @type {string}
     * @memberof QueryAllUmConditionalOrdersResponseInner
     */
    newClientStrategyId?: string;
    /**
     *
     * @type {number}
     * @memberof QueryAllUmConditionalOrdersResponseInner
     */
    strategyId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryAllUmConditionalOrdersResponseInner
     */
    strategyStatus?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllUmConditionalOrdersResponseInner
     */
    strategyType?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllUmConditionalOrdersResponseInner
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllUmConditionalOrdersResponseInner
     */
    price?: string;
    /**
     *
     * @type {boolean}
     * @memberof QueryAllUmConditionalOrdersResponseInner
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {string}
     * @memberof QueryAllUmConditionalOrdersResponseInner
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllUmConditionalOrdersResponseInner
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllUmConditionalOrdersResponseInner
     */
    stopPrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllUmConditionalOrdersResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {number}
     * @memberof QueryAllUmConditionalOrdersResponseInner
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryAllUmConditionalOrdersResponseInner
     */
    status?: string;
    /**
     *
     * @type {number}
     * @memberof QueryAllUmConditionalOrdersResponseInner
     */
    bookTime?: number;
    /**
     *
     * @type {number}
     * @memberof QueryAllUmConditionalOrdersResponseInner
     */
    updateTime?: number;
    /**
     *
     * @type {number}
     * @memberof QueryAllUmConditionalOrdersResponseInner
     */
    triggerTime?: number;
    /**
     *
     * @type {string}
     * @memberof QueryAllUmConditionalOrdersResponseInner
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllUmConditionalOrdersResponseInner
     */
    type?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllUmConditionalOrdersResponseInner
     */
    activatePrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllUmConditionalOrdersResponseInner
     */
    priceRate?: string;
    /**
     *
     * @type {string}
     * @memberof QueryAllUmConditionalOrdersResponseInner
     */
    selfTradePreventionMode?: string;
    /**
     *
     * @type {number}
     * @memberof QueryAllUmConditionalOrdersResponseInner
     */
    goodTillDate?: number;
    /**
     *
     * @type {string}
     * @memberof QueryAllUmConditionalOrdersResponseInner
     */
    priceMatch?: string;
}

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

/**
 *
 * @export
 * @interface QueryAllUmConditionalOrdersResponse
 */
interface QueryAllUmConditionalOrdersResponse extends Array<QueryAllUmConditionalOrdersResponseInner> {
}

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

/**
 *
 * @export
 * @interface QueryAllUmOrdersResponse
 */
interface QueryAllUmOrdersResponse extends Array<QueryAllCurrentUmOpenOrdersResponseInner> {
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface QueryCmConditionalOrderHistoryResponse
 */
interface QueryCmConditionalOrderHistoryResponse {
    /**
     *
     * @type {string}
     * @memberof QueryCmConditionalOrderHistoryResponse
     */
    newClientStrategyId?: string;
    /**
     *
     * @type {number}
     * @memberof QueryCmConditionalOrderHistoryResponse
     */
    strategyId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryCmConditionalOrderHistoryResponse
     */
    strategyStatus?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCmConditionalOrderHistoryResponse
     */
    strategyType?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCmConditionalOrderHistoryResponse
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCmConditionalOrderHistoryResponse
     */
    price?: string;
    /**
     *
     * @type {boolean}
     * @memberof QueryCmConditionalOrderHistoryResponse
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {string}
     * @memberof QueryCmConditionalOrderHistoryResponse
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCmConditionalOrderHistoryResponse
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCmConditionalOrderHistoryResponse
     */
    stopPrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCmConditionalOrderHistoryResponse
     */
    symbol?: string;
    /**
     *
     * @type {number}
     * @memberof QueryCmConditionalOrderHistoryResponse
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryCmConditionalOrderHistoryResponse
     */
    status?: string;
    /**
     *
     * @type {number}
     * @memberof QueryCmConditionalOrderHistoryResponse
     */
    bookTime?: number;
    /**
     *
     * @type {number}
     * @memberof QueryCmConditionalOrderHistoryResponse
     */
    updateTime?: number;
    /**
     *
     * @type {number}
     * @memberof QueryCmConditionalOrderHistoryResponse
     */
    triggerTime?: number;
    /**
     *
     * @type {string}
     * @memberof QueryCmConditionalOrderHistoryResponse
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCmConditionalOrderHistoryResponse
     */
    type?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCmConditionalOrderHistoryResponse
     */
    activatePrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCmConditionalOrderHistoryResponse
     */
    priceRate?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCmConditionalOrderHistoryResponse
     */
    workingType?: string;
    /**
     *
     * @type {boolean}
     * @memberof QueryCmConditionalOrderHistoryResponse
     */
    priceProtect?: boolean;
    /**
     *
     * @type {string}
     * @memberof QueryCmConditionalOrderHistoryResponse
     */
    priceMatch?: string;
}

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

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

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

/**
 *
 * @export
 * @interface QueryCmModifyOrderHistoryResponseInnerAmendment
 */
interface QueryCmModifyOrderHistoryResponseInnerAmendment {
    /**
     *
     * @type {QueryCmModifyOrderHistoryResponseInnerAmendmentPrice}
     * @memberof QueryCmModifyOrderHistoryResponseInnerAmendment
     */
    price?: QueryCmModifyOrderHistoryResponseInnerAmendmentPrice;
    /**
     *
     * @type {QueryCmModifyOrderHistoryResponseInnerAmendmentOrigQty}
     * @memberof QueryCmModifyOrderHistoryResponseInnerAmendment
     */
    origQty?: QueryCmModifyOrderHistoryResponseInnerAmendmentOrigQty;
    /**
     *
     * @type {number}
     * @memberof QueryCmModifyOrderHistoryResponseInnerAmendment
     */
    count?: number;
}

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

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

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

/**
 *
 * @export
 * @interface QueryCmModifyOrderHistoryResponse
 */
interface QueryCmModifyOrderHistoryResponse extends Array<QueryCmModifyOrderHistoryResponseInner> {
}

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

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

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

/**
 *
 * @export
 * @interface QueryCmPositionInformationResponse
 */
interface QueryCmPositionInformationResponse extends Array<QueryCmPositionInformationResponseInner> {
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface QueryCurrentCmOpenConditionalOrderResponse
 */
interface QueryCurrentCmOpenConditionalOrderResponse {
    /**
     *
     * @type {string}
     * @memberof QueryCurrentCmOpenConditionalOrderResponse
     */
    newClientStrategyId?: string;
    /**
     *
     * @type {number}
     * @memberof QueryCurrentCmOpenConditionalOrderResponse
     */
    strategyId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentCmOpenConditionalOrderResponse
     */
    strategyStatus?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentCmOpenConditionalOrderResponse
     */
    strategyType?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentCmOpenConditionalOrderResponse
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentCmOpenConditionalOrderResponse
     */
    price?: string;
    /**
     *
     * @type {boolean}
     * @memberof QueryCurrentCmOpenConditionalOrderResponse
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentCmOpenConditionalOrderResponse
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentCmOpenConditionalOrderResponse
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentCmOpenConditionalOrderResponse
     */
    stopPrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentCmOpenConditionalOrderResponse
     */
    symbol?: string;
    /**
     *
     * @type {number}
     * @memberof QueryCurrentCmOpenConditionalOrderResponse
     */
    bookTime?: number;
    /**
     *
     * @type {number}
     * @memberof QueryCurrentCmOpenConditionalOrderResponse
     */
    updateTime?: number;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentCmOpenConditionalOrderResponse
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentCmOpenConditionalOrderResponse
     */
    activatePrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentCmOpenConditionalOrderResponse
     */
    priceRate?: string;
}

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

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface QueryCurrentMarginOpenOrderResponseInner
 */
interface QueryCurrentMarginOpenOrderResponseInner {
    /**
     *
     * @type {string}
     * @memberof QueryCurrentMarginOpenOrderResponseInner
     */
    clientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentMarginOpenOrderResponseInner
     */
    cummulativeQuoteQty?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentMarginOpenOrderResponseInner
     */
    executedQty?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentMarginOpenOrderResponseInner
     */
    icebergQty?: string;
    /**
     *
     * @type {boolean}
     * @memberof QueryCurrentMarginOpenOrderResponseInner
     */
    isWorking?: boolean;
    /**
     *
     * @type {number}
     * @memberof QueryCurrentMarginOpenOrderResponseInner
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentMarginOpenOrderResponseInner
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentMarginOpenOrderResponseInner
     */
    price?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentMarginOpenOrderResponseInner
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentMarginOpenOrderResponseInner
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentMarginOpenOrderResponseInner
     */
    stopPrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentMarginOpenOrderResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {number}
     * @memberof QueryCurrentMarginOpenOrderResponseInner
     */
    time?: number;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentMarginOpenOrderResponseInner
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentMarginOpenOrderResponseInner
     */
    type?: string;
    /**
     *
     * @type {number}
     * @memberof QueryCurrentMarginOpenOrderResponseInner
     */
    updateTime?: number;
    /**
     *
     * @type {number}
     * @memberof QueryCurrentMarginOpenOrderResponseInner
     */
    accountId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentMarginOpenOrderResponseInner
     */
    selfTradePreventionMode?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentMarginOpenOrderResponseInner
     */
    preventedMatchId?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentMarginOpenOrderResponseInner
     */
    preventedQuantity?: string;
}

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

/**
 *
 * @export
 * @interface QueryCurrentMarginOpenOrderResponse
 */
interface QueryCurrentMarginOpenOrderResponse extends Array<QueryCurrentMarginOpenOrderResponseInner> {
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface QueryCurrentUmOpenConditionalOrderResponse
 */
interface QueryCurrentUmOpenConditionalOrderResponse {
    /**
     *
     * @type {string}
     * @memberof QueryCurrentUmOpenConditionalOrderResponse
     */
    newClientStrategyId?: string;
    /**
     *
     * @type {number}
     * @memberof QueryCurrentUmOpenConditionalOrderResponse
     */
    strategyId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentUmOpenConditionalOrderResponse
     */
    strategyStatus?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentUmOpenConditionalOrderResponse
     */
    strategyType?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentUmOpenConditionalOrderResponse
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentUmOpenConditionalOrderResponse
     */
    price?: string;
    /**
     *
     * @type {boolean}
     * @memberof QueryCurrentUmOpenConditionalOrderResponse
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentUmOpenConditionalOrderResponse
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentUmOpenConditionalOrderResponse
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentUmOpenConditionalOrderResponse
     */
    stopPrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentUmOpenConditionalOrderResponse
     */
    symbol?: string;
    /**
     *
     * @type {number}
     * @memberof QueryCurrentUmOpenConditionalOrderResponse
     */
    bookTime?: number;
    /**
     *
     * @type {number}
     * @memberof QueryCurrentUmOpenConditionalOrderResponse
     */
    updateTime?: number;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentUmOpenConditionalOrderResponse
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentUmOpenConditionalOrderResponse
     */
    activatePrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentUmOpenConditionalOrderResponse
     */
    priceRate?: string;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentUmOpenConditionalOrderResponse
     */
    selfTradePreventionMode?: string;
    /**
     *
     * @type {number}
     * @memberof QueryCurrentUmOpenConditionalOrderResponse
     */
    goodTillDate?: number;
    /**
     *
     * @type {string}
     * @memberof QueryCurrentUmOpenConditionalOrderResponse
     */
    priceMatch?: string;
}

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

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface QueryMarginAccountOrderResponse
 */
interface QueryMarginAccountOrderResponse {
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountOrderResponse
     */
    clientOrderId?: string;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountOrderResponse
     */
    cummulativeQuoteQty?: string;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountOrderResponse
     */
    executedQty?: string;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountOrderResponse
     */
    icebergQty?: string;
    /**
     *
     * @type {boolean}
     * @memberof QueryMarginAccountOrderResponse
     */
    isWorking?: boolean;
    /**
     *
     * @type {number}
     * @memberof QueryMarginAccountOrderResponse
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountOrderResponse
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountOrderResponse
     */
    price?: string;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountOrderResponse
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountOrderResponse
     */
    status?: string;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountOrderResponse
     */
    stopPrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountOrderResponse
     */
    symbol?: string;
    /**
     *
     * @type {number}
     * @memberof QueryMarginAccountOrderResponse
     */
    time?: number;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountOrderResponse
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountOrderResponse
     */
    type?: string;
    /**
     *
     * @type {number}
     * @memberof QueryMarginAccountOrderResponse
     */
    updateTime?: number;
    /**
     *
     * @type {number}
     * @memberof QueryMarginAccountOrderResponse
     */
    accountId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountOrderResponse
     */
    selfTradePreventionMode?: string;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountOrderResponse
     */
    preventedMatchId?: string;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountOrderResponse
     */
    preventedQuantity?: string;
}

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

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

/**
 *
 * @export
 * @interface QueryMarginAccountsAllOcoResponseInner
 */
interface QueryMarginAccountsAllOcoResponseInner {
    /**
     *
     * @type {number}
     * @memberof QueryMarginAccountsAllOcoResponseInner
     */
    orderListId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountsAllOcoResponseInner
     */
    contingencyType?: string;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountsAllOcoResponseInner
     */
    listStatusType?: string;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountsAllOcoResponseInner
     */
    listOrderStatus?: string;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountsAllOcoResponseInner
     */
    listClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof QueryMarginAccountsAllOcoResponseInner
     */
    transactionTime?: number;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountsAllOcoResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {Array<QueryMarginAccountsAllOcoResponseInnerOrdersInner>}
     * @memberof QueryMarginAccountsAllOcoResponseInner
     */
    orders?: Array<QueryMarginAccountsAllOcoResponseInnerOrdersInner>;
}

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

/**
 *
 * @export
 * @interface QueryMarginAccountsAllOcoResponse
 */
interface QueryMarginAccountsAllOcoResponse extends Array<QueryMarginAccountsAllOcoResponseInner> {
}

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

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

/**
 *
 * @export
 * @interface QueryMarginAccountsOcoResponse
 */
interface QueryMarginAccountsOcoResponse {
    /**
     *
     * @type {number}
     * @memberof QueryMarginAccountsOcoResponse
     */
    orderListId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountsOcoResponse
     */
    contingencyType?: string;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountsOcoResponse
     */
    listStatusType?: string;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountsOcoResponse
     */
    listOrderStatus?: string;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountsOcoResponse
     */
    listClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof QueryMarginAccountsOcoResponse
     */
    transactionTime?: number;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountsOcoResponse
     */
    symbol?: string;
    /**
     *
     * @type {Array<QueryMarginAccountsOcoResponseOrdersInner>}
     * @memberof QueryMarginAccountsOcoResponse
     */
    orders?: Array<QueryMarginAccountsOcoResponseOrdersInner>;
}

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

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

/**
 *
 * @export
 * @interface QueryMarginAccountsOpenOcoResponseInner
 */
interface QueryMarginAccountsOpenOcoResponseInner {
    /**
     *
     * @type {number}
     * @memberof QueryMarginAccountsOpenOcoResponseInner
     */
    orderListId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountsOpenOcoResponseInner
     */
    contingencyType?: string;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountsOpenOcoResponseInner
     */
    listStatusType?: string;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountsOpenOcoResponseInner
     */
    listOrderStatus?: string;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountsOpenOcoResponseInner
     */
    listClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof QueryMarginAccountsOpenOcoResponseInner
     */
    transactionTime?: number;
    /**
     *
     * @type {string}
     * @memberof QueryMarginAccountsOpenOcoResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {Array<QueryMarginAccountsOpenOcoResponseInnerOrdersInner>}
     * @memberof QueryMarginAccountsOpenOcoResponseInner
     */
    orders?: Array<QueryMarginAccountsOpenOcoResponseInnerOrdersInner>;
}

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

/**
 *
 * @export
 * @interface QueryMarginAccountsOpenOcoResponse
 */
interface QueryMarginAccountsOpenOcoResponse extends Array<QueryMarginAccountsOpenOcoResponseInner> {
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface QueryMarginLoanRecordResponseRowsInner
 */
interface QueryMarginLoanRecordResponseRowsInner {
    /**
     *
     * @type {number}
     * @memberof QueryMarginLoanRecordResponseRowsInner
     */
    txId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryMarginLoanRecordResponseRowsInner
     */
    asset?: string;
    /**
     *
     * @type {string}
     * @memberof QueryMarginLoanRecordResponseRowsInner
     */
    principal?: string;
    /**
     *
     * @type {number}
     * @memberof QueryMarginLoanRecordResponseRowsInner
     */
    timestamp?: number;
    /**
     *
     * @type {string}
     * @memberof QueryMarginLoanRecordResponseRowsInner
     */
    status?: string;
}

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

/**
 *
 * @export
 * @interface QueryMarginLoanRecordResponse
 */
interface QueryMarginLoanRecordResponse {
    /**
     *
     * @type {Array<QueryMarginLoanRecordResponseRowsInner>}
     * @memberof QueryMarginLoanRecordResponse
     */
    rows?: Array<QueryMarginLoanRecordResponseRowsInner>;
    /**
     *
     * @type {number}
     * @memberof QueryMarginLoanRecordResponse
     */
    total?: number;
}

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

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface QueryMarginRepayRecordResponseRowsInner
 */
interface QueryMarginRepayRecordResponseRowsInner {
    /**
     *
     * @type {string}
     * @memberof QueryMarginRepayRecordResponseRowsInner
     */
    amount?: string;
    /**
     *
     * @type {string}
     * @memberof QueryMarginRepayRecordResponseRowsInner
     */
    asset?: string;
    /**
     *
     * @type {string}
     * @memberof QueryMarginRepayRecordResponseRowsInner
     */
    interest?: string;
    /**
     *
     * @type {string}
     * @memberof QueryMarginRepayRecordResponseRowsInner
     */
    principal?: string;
    /**
     *
     * @type {string}
     * @memberof QueryMarginRepayRecordResponseRowsInner
     */
    status?: string;
    /**
     *
     * @type {number}
     * @memberof QueryMarginRepayRecordResponseRowsInner
     */
    timestamp?: number;
    /**
     *
     * @type {number}
     * @memberof QueryMarginRepayRecordResponseRowsInner
     */
    txId?: number;
}

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

/**
 *
 * @export
 * @interface QueryMarginRepayRecordResponse
 */
interface QueryMarginRepayRecordResponse {
    /**
     *
     * @type {Array<QueryMarginRepayRecordResponseRowsInner>}
     * @memberof QueryMarginRepayRecordResponse
     */
    rows?: Array<QueryMarginRepayRecordResponseRowsInner>;
    /**
     *
     * @type {number}
     * @memberof QueryMarginRepayRecordResponse
     */
    total?: number;
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface QueryPortfolioMarginNegativeBalanceInterestHistoryResponseInner
 */
interface QueryPortfolioMarginNegativeBalanceInterestHistoryResponseInner {
    /**
     *
     * @type {string}
     * @memberof QueryPortfolioMarginNegativeBalanceInterestHistoryResponseInner
     */
    asset?: string;
    /**
     *
     * @type {string}
     * @memberof QueryPortfolioMarginNegativeBalanceInterestHistoryResponseInner
     */
    interest?: string;
    /**
     *
     * @type {number}
     * @memberof QueryPortfolioMarginNegativeBalanceInterestHistoryResponseInner
     */
    interestAccuredTime?: number;
    /**
     *
     * @type {string}
     * @memberof QueryPortfolioMarginNegativeBalanceInterestHistoryResponseInner
     */
    interestRate?: string;
    /**
     *
     * @type {string}
     * @memberof QueryPortfolioMarginNegativeBalanceInterestHistoryResponseInner
     */
    principal?: string;
}

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

/**
 *
 * @export
 * @interface QueryPortfolioMarginNegativeBalanceInterestHistoryResponse
 */
interface QueryPortfolioMarginNegativeBalanceInterestHistoryResponse extends Array<QueryPortfolioMarginNegativeBalanceInterestHistoryResponseInner> {
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface QueryUmConditionalOrderHistoryResponse
 */
interface QueryUmConditionalOrderHistoryResponse {
    /**
     *
     * @type {string}
     * @memberof QueryUmConditionalOrderHistoryResponse
     */
    newClientStrategyId?: string;
    /**
     *
     * @type {number}
     * @memberof QueryUmConditionalOrderHistoryResponse
     */
    strategyId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryUmConditionalOrderHistoryResponse
     */
    strategyStatus?: string;
    /**
     *
     * @type {string}
     * @memberof QueryUmConditionalOrderHistoryResponse
     */
    strategyType?: string;
    /**
     *
     * @type {string}
     * @memberof QueryUmConditionalOrderHistoryResponse
     */
    origQty?: string;
    /**
     *
     * @type {string}
     * @memberof QueryUmConditionalOrderHistoryResponse
     */
    price?: string;
    /**
     *
     * @type {boolean}
     * @memberof QueryUmConditionalOrderHistoryResponse
     */
    reduceOnly?: boolean;
    /**
     *
     * @type {string}
     * @memberof QueryUmConditionalOrderHistoryResponse
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof QueryUmConditionalOrderHistoryResponse
     */
    positionSide?: string;
    /**
     *
     * @type {string}
     * @memberof QueryUmConditionalOrderHistoryResponse
     */
    stopPrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryUmConditionalOrderHistoryResponse
     */
    symbol?: string;
    /**
     *
     * @type {number}
     * @memberof QueryUmConditionalOrderHistoryResponse
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryUmConditionalOrderHistoryResponse
     */
    status?: string;
    /**
     *
     * @type {number}
     * @memberof QueryUmConditionalOrderHistoryResponse
     */
    bookTime?: number;
    /**
     *
     * @type {number}
     * @memberof QueryUmConditionalOrderHistoryResponse
     */
    updateTime?: number;
    /**
     *
     * @type {number}
     * @memberof QueryUmConditionalOrderHistoryResponse
     */
    triggerTime?: number;
    /**
     *
     * @type {string}
     * @memberof QueryUmConditionalOrderHistoryResponse
     */
    timeInForce?: string;
    /**
     *
     * @type {string}
     * @memberof QueryUmConditionalOrderHistoryResponse
     */
    type?: string;
    /**
     *
     * @type {string}
     * @memberof QueryUmConditionalOrderHistoryResponse
     */
    activatePrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryUmConditionalOrderHistoryResponse
     */
    priceRate?: string;
    /**
     *
     * @type {string}
     * @memberof QueryUmConditionalOrderHistoryResponse
     */
    workingType?: string;
    /**
     *
     * @type {boolean}
     * @memberof QueryUmConditionalOrderHistoryResponse
     */
    priceProtect?: boolean;
    /**
     *
     * @type {string}
     * @memberof QueryUmConditionalOrderHistoryResponse
     */
    selfTradePreventionMode?: string;
    /**
     *
     * @type {number}
     * @memberof QueryUmConditionalOrderHistoryResponse
     */
    goodTillDate?: number;
}

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

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

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

/**
 *
 * @export
 * @interface QueryUmModifyOrderHistoryResponse
 */
interface QueryUmModifyOrderHistoryResponse extends Array<QueryUmModifyOrderHistoryResponseInner> {
}

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

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

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

/**
 *
 * @export
 * @interface QueryUmPositionInformationResponse
 */
interface QueryUmPositionInformationResponse extends Array<QueryUmPositionInformationResponseInner> {
}

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

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

/**
 *
 * @export
 * @interface QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInner
 */
interface QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInner {
    /**
     *
     * @type {number}
     * @memberof QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInner
     */
    startTime?: number;
    /**
     *
     * @type {number}
     * @memberof QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInner
     */
    endTime?: number;
    /**
     *
     * @type {Array<QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInnerDetailsInner>}
     * @memberof QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInner
     */
    details?: Array<QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInnerDetailsInner>;
}

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

/**
 *
 * @export
 * @interface QueryUserNegativeBalanceAutoExchangeRecordResponse
 */
interface QueryUserNegativeBalanceAutoExchangeRecordResponse {
    /**
     *
     * @type {number}
     * @memberof QueryUserNegativeBalanceAutoExchangeRecordResponse
     */
    total?: number;
    /**
     *
     * @type {Array<QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInner>}
     * @memberof QueryUserNegativeBalanceAutoExchangeRecordResponse
     */
    rows?: Array<QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInner>;
}

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

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

/**
 *
 * @export
 * @interface QueryUserRateLimitResponse
 */
interface QueryUserRateLimitResponse extends Array<QueryUserRateLimitResponseInner> {
}

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

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

/**
 *
 * @export
 * @interface QueryUsersCmForceOrdersResponse
 */
interface QueryUsersCmForceOrdersResponse extends Array<QueryUsersCmForceOrdersResponseInner> {
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface QueryUsersMarginForceOrdersResponseRowsInner
 */
interface QueryUsersMarginForceOrdersResponseRowsInner {
    /**
     *
     * @type {string}
     * @memberof QueryUsersMarginForceOrdersResponseRowsInner
     */
    avgPrice?: string;
    /**
     *
     * @type {string}
     * @memberof QueryUsersMarginForceOrdersResponseRowsInner
     */
    executedQty?: string;
    /**
     *
     * @type {number}
     * @memberof QueryUsersMarginForceOrdersResponseRowsInner
     */
    orderId?: number;
    /**
     *
     * @type {string}
     * @memberof QueryUsersMarginForceOrdersResponseRowsInner
     */
    price?: string;
    /**
     *
     * @type {string}
     * @memberof QueryUsersMarginForceOrdersResponseRowsInner
     */
    qty?: string;
    /**
     *
     * @type {string}
     * @memberof QueryUsersMarginForceOrdersResponseRowsInner
     */
    side?: string;
    /**
     *
     * @type {string}
     * @memberof QueryUsersMarginForceOrdersResponseRowsInner
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof QueryUsersMarginForceOrdersResponseRowsInner
     */
    timeInForce?: string;
    /**
     *
     * @type {number}
     * @memberof QueryUsersMarginForceOrdersResponseRowsInner
     */
    updatedTime?: number;
}

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

/**
 *
 * @export
 * @interface QueryUsersMarginForceOrdersResponse
 */
interface QueryUsersMarginForceOrdersResponse {
    /**
     *
     * @type {Array<QueryUsersMarginForceOrdersResponseRowsInner>}
     * @memberof QueryUsersMarginForceOrdersResponse
     */
    rows?: Array<QueryUsersMarginForceOrdersResponseRowsInner>;
    /**
     *
     * @type {number}
     * @memberof QueryUsersMarginForceOrdersResponse
     */
    total?: number;
}

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

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

/**
 *
 * @export
 * @interface QueryUsersUmForceOrdersResponse
 */
interface QueryUsersUmForceOrdersResponse extends Array<QueryUsersUmForceOrdersResponseInner> {
}

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

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: 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
     */
    listenKey?: string;
}

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

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

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

/**
 *
 * @export
 * @interface UmAccountTradeListResponse
 */
interface UmAccountTradeListResponse extends Array<UmAccountTradeListResponseInner> {
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface UmFuturesAccountConfigurationResponse
 */
interface UmFuturesAccountConfigurationResponse {
    /**
     *
     * @type {number}
     * @memberof UmFuturesAccountConfigurationResponse
     */
    feeTier?: number;
    /**
     *
     * @type {boolean}
     * @memberof UmFuturesAccountConfigurationResponse
     */
    canTrade?: boolean;
    /**
     *
     * @type {boolean}
     * @memberof UmFuturesAccountConfigurationResponse
     */
    canDeposit?: boolean;
    /**
     *
     * @type {boolean}
     * @memberof UmFuturesAccountConfigurationResponse
     */
    canWithdraw?: boolean;
    /**
     *
     * @type {boolean}
     * @memberof UmFuturesAccountConfigurationResponse
     */
    dualSidePosition?: boolean;
    /**
     *
     * @type {number}
     * @memberof UmFuturesAccountConfigurationResponse
     */
    updateTime?: number;
    /**
     *
     * @type {boolean}
     * @memberof UmFuturesAccountConfigurationResponse
     */
    multiAssetsMargin?: boolean;
    /**
     *
     * @type {number}
     * @memberof UmFuturesAccountConfigurationResponse
     */
    tradeGroupId?: number;
}

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

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

/**
 *
 * @export
 * @interface UmFuturesSymbolConfigurationResponse
 */
interface UmFuturesSymbolConfigurationResponse extends Array<UmFuturesSymbolConfigurationResponseInner> {
}

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

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

/**
 *
 * @export
 * @interface UmNotionalAndLeverageBracketsResponseInner
 */
interface UmNotionalAndLeverageBracketsResponseInner {
    /**
     *
     * @type {string}
     * @memberof UmNotionalAndLeverageBracketsResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {string}
     * @memberof UmNotionalAndLeverageBracketsResponseInner
     */
    notionalCoef?: string;
    /**
     *
     * @type {Array<UmNotionalAndLeverageBracketsResponseInnerBracketsInner>}
     * @memberof UmNotionalAndLeverageBracketsResponseInner
     */
    brackets?: Array<UmNotionalAndLeverageBracketsResponseInnerBracketsInner>;
}

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

/**
 *
 * @export
 * @interface UmNotionalAndLeverageBracketsResponse
 */
interface UmNotionalAndLeverageBracketsResponse extends Array<UmNotionalAndLeverageBracketsResponseInner> {
}

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

/**
 *
 * @export
 * @interface UmPositionAdlQuantileEstimationResponseInner
 */
interface UmPositionAdlQuantileEstimationResponseInner {
    /**
     *
     * @type {string}
     * @memberof UmPositionAdlQuantileEstimationResponseInner
     */
    symbol?: string;
    /**
     *
     * @type {CmPositionAdlQuantileEstimationResponseInnerAdlQuantile}
     * @memberof UmPositionAdlQuantileEstimationResponseInner
     */
    adlQuantile?: CmPositionAdlQuantileEstimationResponseInnerAdlQuantile;
}

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

/**
 *
 * @export
 * @interface UmPositionAdlQuantileEstimationResponse
 */
interface UmPositionAdlQuantileEstimationResponse extends Array<UmPositionAdlQuantileEstimationResponseInner> {
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.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 {
    /**
     * Query account balance
     *
     * Weight: 20
     *
     * @summary Account Balance(USER_DATA)
     * @param {AccountBalanceRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    accountBalance(requestParameters?: AccountBalanceRequest): Promise<RestApiResponse<AccountBalanceResponse>>;
    /**
     * Query account information
     *
     * Weight: 20
     *
     * @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): Promise<RestApiResponse<AccountInformationResponse>>;
    /**
     * Transfer BNB in and out of UM
     *
     * The endpoint can only be called 10 times per 10 minutes in a rolling manner
     *
     * Weight: 750
     *
     * @summary BNB transfer (TRADE)
     * @param {BnbTransferRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    bnbTransfer(requestParameters: BnbTransferRequest): Promise<RestApiResponse<BnbTransferResponse>>;
    /**
     * Change Auto-repay-futures Status
     *
     * Weight: 750
     *
     * @summary Change Auto-repay-futures Status(TRADE)
     * @param {ChangeAutoRepayFuturesStatusRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    changeAutoRepayFuturesStatus(requestParameters: ChangeAutoRepayFuturesStatusRequest): Promise<RestApiResponse<ChangeAutoRepayFuturesStatusResponse>>;
    /**
     * Change user's initial leverage of specific symbol in CM.
     *
     * Weight: 1
     *
     * @summary Change CM Initial Leverage (TRADE)
     * @param {ChangeCmInitialLeverageRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    changeCmInitialLeverage(requestParameters: ChangeCmInitialLeverageRequest): Promise<RestApiResponse<ChangeCmInitialLeverageResponse>>;
    /**
     * Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in CM
     *
     * Weight: 1
     *
     * @summary Change CM Position Mode(TRADE)
     * @param {ChangeCmPositionModeRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    changeCmPositionMode(requestParameters: ChangeCmPositionModeRequest): Promise<RestApiResponse<ChangeCmPositionModeResponse>>;
    /**
     * Change user's initial leverage of specific symbol in UM.
     *
     * Weight: 1
     *
     * @summary Change UM Initial Leverage(TRADE)
     * @param {ChangeUmInitialLeverageRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    changeUmInitialLeverage(requestParameters: ChangeUmInitialLeverageRequest): Promise<RestApiResponse<ChangeUmInitialLeverageResponse>>;
    /**
     * Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in UM
     *
     * Weight: 1
     *
     * @summary Change UM Position Mode(TRADE)
     * @param {ChangeUmPositionModeRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    changeUmPositionMode(requestParameters: ChangeUmPositionModeRequest): Promise<RestApiResponse<ChangeUmPositionModeResponse>>;
    /**
     * Query CM notional and leverage brackets
     *
     * Weight: 1
     *
     * @summary CM Notional and Leverage Brackets(USER_DATA)
     * @param {CmNotionalAndLeverageBracketsRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    cmNotionalAndLeverageBrackets(requestParameters?: CmNotionalAndLeverageBracketsRequest): Promise<RestApiResponse<CmNotionalAndLeverageBracketsResponse>>;
    /**
     * Fund collection for Portfolio Margin
     *
     * The BNB would not be collected from UM-PM account to the Portfolio Margin account.
     * You can only use this function 500 times per hour in a rolling manner.
     *
     * Weight: 750
     *
     * @summary Fund Auto-collection(TRADE)
     * @param {FundAutoCollectionRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    fundAutoCollection(requestParameters?: FundAutoCollectionRequest): Promise<RestApiResponse<FundAutoCollectionResponse>>;
    /**
     * Transfers specific asset from Futures Account to Margin account
     *
     * The BNB transfer is not be supported
     *
     * Weight: 30
     *
     * @summary Fund Collection by Asset(TRADE)
     * @param {FundCollectionByAssetRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    fundCollectionByAsset(requestParameters: FundCollectionByAssetRequest): Promise<RestApiResponse<FundCollectionByAssetResponse>>;
    /**
     * Query Auto-repay-futures Status
     *
     * Weight: 30
     *
     * @summary Get Auto-repay-futures Status(USER_DATA)
     * @param {GetAutoRepayFuturesStatusRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    getAutoRepayFuturesStatus(requestParameters?: GetAutoRepayFuturesStatusRequest): Promise<RestApiResponse<GetAutoRepayFuturesStatusResponse>>;
    /**
     * Get current CM account asset and position information.
     *
     * Weight: 5
     *
     * @summary Get CM Account Detail(USER_DATA)
     * @param {GetCmAccountDetailRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    getCmAccountDetail(requestParameters?: GetCmAccountDetailRequest): Promise<RestApiResponse<GetCmAccountDetailResponse>>;
    /**
     * Get user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in CM
     *
     * Weight: 30
     *
     * @summary Get CM Current Position Mode(USER_DATA)
     * @param {GetCmCurrentPositionModeRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    getCmCurrentPositionMode(requestParameters?: GetCmCurrentPositionModeRequest): Promise<RestApiResponse<GetCmCurrentPositionModeResponse>>;
    /**
     * Get CM 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 interval between `startTime` and `endTime` can not exceed 200 days:
     * If `startTime` and `endTime` are not sent, the last 200 days will be returned
     *
     * Weight: 30
     *
     * @summary Get CM Income History(USER_DATA)
     * @param {GetCmIncomeHistoryRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    getCmIncomeHistory(requestParameters?: GetCmIncomeHistoryRequest): Promise<RestApiResponse<GetCmIncomeHistoryResponse>>;
    /**
     * Get download id for UM 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: 1500
     *
     * @summary Get Download Id For UM Futures Order History (USER_DATA)
     * @param {GetDownloadIdForUmFuturesOrderHistoryRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    getDownloadIdForUmFuturesOrderHistory(requestParameters: GetDownloadIdForUmFuturesOrderHistoryRequest): Promise<RestApiResponse<GetDownloadIdForUmFuturesOrderHistoryResponse>>;
    /**
     * Get download id for UM 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: 1500
     *
     * @summary Get Download Id For UM Futures Trade History (USER_DATA)
     * @param {GetDownloadIdForUmFuturesTradeHistoryRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    getDownloadIdForUmFuturesTradeHistory(requestParameters: GetDownloadIdForUmFuturesTradeHistoryRequest): Promise<RestApiResponse<GetDownloadIdForUmFuturesTradeHistoryResponse>>;
    /**
     * Get download id for UM 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: 1500
     *
     * @summary Get Download Id For UM Futures Transaction History (USER_DATA)
     * @param {GetDownloadIdForUmFuturesTransactionHistoryRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    getDownloadIdForUmFuturesTransactionHistory(requestParameters: GetDownloadIdForUmFuturesTransactionHistoryRequest): Promise<RestApiResponse<GetDownloadIdForUmFuturesTransactionHistoryResponse>>;
    /**
     * Get Margin Borrow/Loan Interest History
     *
     *
     * Response in descending order
     * The max interval between startTime and endTime is 30 days. It is a MUST to ensure data correctness.
     * If `startTime` and `endTime` not sent, return records of the last 7 days by default
     * If `startTime` is sent and `endTime` is not sent, the records from `startTime` to the present will be returned; if `startTime` is more than 30 days ago, the records of the past 30 days will be returned.
     * If `startTime` is not sent and `endTime` is sent, the records of the 7 days before `endTime` is returned.
     * Type in response has 5 enums:
     * `PERIODIC` interest charged per hour
     * `ON_BORROW` first interest charged on borrow
     * `PERIODIC_CONVERTED` interest charged per hour converted into BNB
     * `ON_BORROW_CONVERTED` first interest charged on borrow converted into BNB
     * `PORTFOLIO` Portfolio Margin negative balance daily interest
     *
     * Weight: 1
     *
     * @summary Get Margin Borrow/Loan Interest History(USER_DATA)
     * @param {GetMarginBorrowLoanInterestHistoryRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    getMarginBorrowLoanInterestHistory(requestParameters?: GetMarginBorrowLoanInterestHistoryRequest): Promise<RestApiResponse<GetMarginBorrowLoanInterestHistoryResponse>>;
    /**
     * Get current UM account asset and position information.
     *
     * Weight: 5
     *
     * @summary Get UM Account Detail(USER_DATA)
     * @param {GetUmAccountDetailRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    getUmAccountDetail(requestParameters?: GetUmAccountDetailRequest): Promise<RestApiResponse<GetUmAccountDetailResponse>>;
    /**
     * Get current UM account asset and position information.
     *
     * Weight: 5
     *
     * @summary Get UM Account Detail V2(USER_DATA)
     * @param {GetUmAccountDetailV2Request} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    getUmAccountDetailV2(requestParameters?: GetUmAccountDetailV2Request): Promise<RestApiResponse<GetUmAccountDetailV2Response>>;
    /**
     * Get user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in UM
     *
     * Weight: 30
     *
     * @summary Get UM Current Position Mode(USER_DATA)
     * @param {GetUmCurrentPositionModeRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    getUmCurrentPositionMode(requestParameters?: GetUmCurrentPositionModeRequest): Promise<RestApiResponse<GetUmCurrentPositionModeResponse>>;
    /**
     * Get UM futures order download link by Id
     *
     * Download link expiration: 24h
     *
     * Weight: 10
     *
     * @summary Get UM Futures Order Download Link by Id(USER_DATA)
     * @param {GetUmFuturesOrderDownloadLinkByIdRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    getUmFuturesOrderDownloadLinkById(requestParameters: GetUmFuturesOrderDownloadLinkByIdRequest): Promise<RestApiResponse<GetUmFuturesOrderDownloadLinkByIdResponse>>;
    /**
     * Get UM futures trade download link by Id
     *
     * Download link expiration: 24h
     *
     * Weight: 10
     *
     * @summary Get UM Futures Trade Download Link by Id(USER_DATA)
     * @param {GetUmFuturesTradeDownloadLinkByIdRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    getUmFuturesTradeDownloadLinkById(requestParameters: GetUmFuturesTradeDownloadLinkByIdRequest): Promise<RestApiResponse<GetUmFuturesTradeDownloadLinkByIdResponse>>;
    /**
     * Get UM futures Transaction download link by Id
     *
     * Download link expiration: 24h
     *
     * Weight: 10
     *
     * @summary Get UM Futures Transaction Download Link by Id(USER_DATA)
     * @param {GetUmFuturesTransactionDownloadLinkByIdRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    getUmFuturesTransactionDownloadLinkById(requestParameters: GetUmFuturesTransactionDownloadLinkByIdRequest): Promise<RestApiResponse<GetUmFuturesTransactionDownloadLinkByIdResponse>>;
    /**
     * Get UM Income History
     *
     * If neither `startTime` nor `endTime` is sent, the recent 7-day data will be returned.
     * If `incomeType` is not sent, all kinds of flow will be returned
     * "trandId" is unique in the same incomeType for a user
     * Income history only contains data for the last three months
     *
     * Weight: 30
     *
     * @summary Get UM Income History(USER_DATA)
     * @param {GetUmIncomeHistoryRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    getUmIncomeHistory(requestParameters?: GetUmIncomeHistoryRequest): Promise<RestApiResponse<GetUmIncomeHistoryResponse>>;
    /**
     * Get User Commission Rate for CM
     *
     * Weight: 20
     *
     * @summary Get User Commission Rate for CM(USER_DATA)
     * @param {GetUserCommissionRateForCmRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    getUserCommissionRateForCm(requestParameters: GetUserCommissionRateForCmRequest): Promise<RestApiResponse<GetUserCommissionRateForCmResponse>>;
    /**
     * Get User Commission Rate for UM
     *
     * Weight: 20
     *
     * @summary Get User Commission Rate for UM(USER_DATA)
     * @param {GetUserCommissionRateForUmRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    getUserCommissionRateForUm(requestParameters: GetUserCommissionRateForUmRequest): Promise<RestApiResponse<GetUserCommissionRateForUmResponse>>;
    /**
     * Query margin max borrow
     *
     * Weight: 5
     *
     * @summary Margin Max Borrow(USER_DATA)
     * @param {MarginMaxBorrowRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    marginMaxBorrow(requestParameters: MarginMaxBorrowRequest): Promise<RestApiResponse<MarginMaxBorrowResponse>>;
    /**
     * Portfolio Margin UM Trading Quantitative Rules Indicators
     *
     * Weight: 1 for a single symbol
     * 10 when the symbol parameter is omitted
     *
     * @summary Portfolio Margin UM Trading Quantitative Rules Indicators(USER_DATA)
     * @param {PortfolioMarginUmTradingQuantitativeRulesIndicatorsRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    portfolioMarginUmTradingQuantitativeRulesIndicators(requestParameters?: PortfolioMarginUmTradingQuantitativeRulesIndicatorsRequest): Promise<RestApiResponse<PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponse>>;
    /**
     * Get current CM position 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 "LONG", and "SHORT" positions.
     * Please use with user data stream `ACCOUNT_UPDATE` to meet your timeliness and accuracy needs.
     *
     * Weight: 1
     *
     * @summary Query CM Position Information(USER_DATA)
     * @param {QueryCmPositionInformationRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    queryCmPositionInformation(requestParameters?: QueryCmPositionInformationRequest): Promise<RestApiResponse<QueryCmPositionInformationResponse>>;
    /**
     * Query margin loan record
     *
     * txId or startTime must be sent. txId takes precedence.
     * Response in descending order
     * The max interval between `startTime` and `endTime` is 30 days.
     * If `startTime` and `endTime` not sent, return records of the last 7 days by default
     * Set `archived` to `true` to query data from 6 months ago
     *
     * Weight: 10
     *
     * @summary Query Margin Loan Record(USER_DATA)
     * @param {QueryMarginLoanRecordRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    queryMarginLoanRecord(requestParameters: QueryMarginLoanRecordRequest): Promise<RestApiResponse<QueryMarginLoanRecordResponse>>;
    /**
     * Query Margin Max Withdraw
     *
     * Weight: 5
     *
     * @summary Query Margin Max Withdraw(USER_DATA)
     * @param {QueryMarginMaxWithdrawRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    queryMarginMaxWithdraw(requestParameters: QueryMarginMaxWithdrawRequest): Promise<RestApiResponse<QueryMarginMaxWithdrawResponse>>;
    /**
     * Query margin repay record.
     *
     * txId or startTime must be sent. txId takes precedence.
     * Response in descending order
     * The max interval between `startTime` and `endTime` is 30 days.
     * If `startTime` and `endTime` not sent, return records of the last 7 days by default
     * Set `archived` to `true` to query data from 6 months ago
     *
     * Weight: 10
     *
     * @summary Query Margin repay Record(USER_DATA)
     * @param {QueryMarginRepayRecordRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    queryMarginRepayRecord(requestParameters: QueryMarginRepayRecordRequest): Promise<RestApiResponse<QueryMarginRepayRecordResponse>>;
    /**
     * Query interest history of negative balance for portfolio margin.
     *
     * Response in descending order
     * The max interval between startTime and endTime is 30 days. It is a MUST to ensure data correctness.
     * If `startTime` and `endTime` not sent, return records of the last 7 days by default
     * If `startTime` is sent and `endTime` is not sent, the records from `startTime` to the present will be returned; if `startTime` is more than 30 days ago, the records of the past 30 days will be returned.
     * If `startTime` is not sent and `endTime` is sent, the records of the 7 days before `endTime` is returned.
     *
     * Weight: 50
     *
     * @summary Query Portfolio Margin Negative Balance Interest History(USER_DATA)
     * @param {QueryPortfolioMarginNegativeBalanceInterestHistoryRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    queryPortfolioMarginNegativeBalanceInterestHistory(requestParameters?: QueryPortfolioMarginNegativeBalanceInterestHistoryRequest): Promise<RestApiResponse<QueryPortfolioMarginNegativeBalanceInterestHistoryResponse>>;
    /**
     * Get current UM position information.
     *
     * Please use with user data stream `ACCOUNT_UPDATE` to meet your timeliness and accuracy needs.
     * for One-way Mode user, the response will only show the "BOTH" positions
     * for Hedge Mode user, the response will show "LONG", and "SHORT" positions.
     *
     * Weight: 5
     *
     * @summary Query UM Position Information(USER_DATA)
     * @param {QueryUmPositionInformationRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    queryUmPositionInformation(requestParameters?: QueryUmPositionInformationRequest): Promise<RestApiResponse<QueryUmPositionInformationResponse>>;
    /**
     * Query user negative balance auto exchange record
     *
     * Response in descending order
     * The max interval between `startTime` and `endTime` is 3 months.
     *
     * Weight: 100
     *
     * @summary Query User Negative Balance Auto Exchange Record (USER_DATA)
     * @param {QueryUserNegativeBalanceAutoExchangeRecordRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    queryUserNegativeBalanceAutoExchangeRecord(requestParameters: QueryUserNegativeBalanceAutoExchangeRecordRequest): Promise<RestApiResponse<QueryUserNegativeBalanceAutoExchangeRecordResponse>>;
    /**
     * Query User Rate Limit
     *
     * Weight: 1
     *
     * @summary Query User Rate Limit (USER_DATA)
     * @param {QueryUserRateLimitRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    queryUserRateLimit(requestParameters?: QueryUserRateLimitRequest): Promise<RestApiResponse<QueryUserRateLimitResponse>>;
    /**
     * Repay futures Negative Balance
     *
     * Weight: 750
     *
     * @summary Repay futures Negative Balance(USER_DATA)
     * @param {RepayFuturesNegativeBalanceRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    repayFuturesNegativeBalance(requestParameters?: RepayFuturesNegativeBalanceRequest): Promise<RestApiResponse<RepayFuturesNegativeBalanceResponse>>;
    /**
     * Query UM Futures account configuration
     *
     * Weight: 5
     *
     * @summary UM Futures Account Configuration(USER_DATA)
     * @param {UmFuturesAccountConfigurationRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    umFuturesAccountConfiguration(requestParameters?: UmFuturesAccountConfigurationRequest): Promise<RestApiResponse<UmFuturesAccountConfigurationResponse>>;
    /**
     * Get current UM account symbol configuration.
     *
     * Weight: 5
     *
     * @summary UM Futures Symbol Configuration(USER_DATA)
     * @param {UmFuturesSymbolConfigurationRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    umFuturesSymbolConfiguration(requestParameters?: UmFuturesSymbolConfigurationRequest): Promise<RestApiResponse<UmFuturesSymbolConfigurationResponse>>;
    /**
     * Query UM notional and leverage brackets
     *
     * Weight: 1
     *
     * @summary UM Notional and Leverage Brackets (USER_DATA)
     * @param {UmNotionalAndLeverageBracketsRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApiInterface
     */
    umNotionalAndLeverageBrackets(requestParameters?: UmNotionalAndLeverageBracketsRequest): Promise<RestApiResponse<UmNotionalAndLeverageBracketsResponse>>;
}
/**
 * Request parameters for accountBalance operation in AccountApi.
 * @interface AccountBalanceRequest
 */
interface AccountBalanceRequest {
    /**
     *
     * @type {string}
     * @memberof AccountApiAccountBalance
     */
    readonly asset?: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiAccountBalance
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for accountInformation operation in AccountApi.
 * @interface AccountInformationRequest
 */
interface AccountInformationRequest {
    /**
     *
     * @type {number}
     * @memberof AccountApiAccountInformation
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for bnbTransfer operation in AccountApi.
 * @interface BnbTransferRequest
 */
interface BnbTransferRequest {
    /**
     *
     * @type {number}
     * @memberof AccountApiBnbTransfer
     */
    readonly amount: number;
    /**
     * "TO_UM","FROM_UM"
     * @type {string}
     * @memberof AccountApiBnbTransfer
     */
    readonly transferSide: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiBnbTransfer
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for changeAutoRepayFuturesStatus operation in AccountApi.
 * @interface ChangeAutoRepayFuturesStatusRequest
 */
interface ChangeAutoRepayFuturesStatusRequest {
    /**
     * Default: `true`; `false` for turn off the auto-repay futures negative balance function
     * @type {string}
     * @memberof AccountApiChangeAutoRepayFuturesStatus
     */
    readonly autoRepay: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiChangeAutoRepayFuturesStatus
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for changeCmInitialLeverage operation in AccountApi.
 * @interface ChangeCmInitialLeverageRequest
 */
interface ChangeCmInitialLeverageRequest {
    /**
     *
     * @type {string}
     * @memberof AccountApiChangeCmInitialLeverage
     */
    readonly symbol: string;
    /**
     * target initial leverage: int from 1 to 125
     * @type {number}
     * @memberof AccountApiChangeCmInitialLeverage
     */
    readonly leverage: number;
    /**
     *
     * @type {number}
     * @memberof AccountApiChangeCmInitialLeverage
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for changeCmPositionMode operation in AccountApi.
 * @interface ChangeCmPositionModeRequest
 */
interface ChangeCmPositionModeRequest {
    /**
     * "true": Hedge Mode; "false": One-way Mode
     * @type {string}
     * @memberof AccountApiChangeCmPositionMode
     */
    readonly dualSidePosition: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiChangeCmPositionMode
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for changeUmInitialLeverage operation in AccountApi.
 * @interface ChangeUmInitialLeverageRequest
 */
interface ChangeUmInitialLeverageRequest {
    /**
     *
     * @type {string}
     * @memberof AccountApiChangeUmInitialLeverage
     */
    readonly symbol: string;
    /**
     * target initial leverage: int from 1 to 125
     * @type {number}
     * @memberof AccountApiChangeUmInitialLeverage
     */
    readonly leverage: number;
    /**
     *
     * @type {number}
     * @memberof AccountApiChangeUmInitialLeverage
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for changeUmPositionMode operation in AccountApi.
 * @interface ChangeUmPositionModeRequest
 */
interface ChangeUmPositionModeRequest {
    /**
     * "true": Hedge Mode; "false": One-way Mode
     * @type {string}
     * @memberof AccountApiChangeUmPositionMode
     */
    readonly dualSidePosition: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiChangeUmPositionMode
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for cmNotionalAndLeverageBrackets operation in AccountApi.
 * @interface CmNotionalAndLeverageBracketsRequest
 */
interface CmNotionalAndLeverageBracketsRequest {
    /**
     *
     * @type {string}
     * @memberof AccountApiCmNotionalAndLeverageBrackets
     */
    readonly symbol?: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiCmNotionalAndLeverageBrackets
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for fundAutoCollection operation in AccountApi.
 * @interface FundAutoCollectionRequest
 */
interface FundAutoCollectionRequest {
    /**
     *
     * @type {number}
     * @memberof AccountApiFundAutoCollection
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for fundCollectionByAsset operation in AccountApi.
 * @interface FundCollectionByAssetRequest
 */
interface FundCollectionByAssetRequest {
    /**
     *
     * @type {string}
     * @memberof AccountApiFundCollectionByAsset
     */
    readonly asset: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiFundCollectionByAsset
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getAutoRepayFuturesStatus operation in AccountApi.
 * @interface GetAutoRepayFuturesStatusRequest
 */
interface GetAutoRepayFuturesStatusRequest {
    /**
     *
     * @type {number}
     * @memberof AccountApiGetAutoRepayFuturesStatus
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getCmAccountDetail operation in AccountApi.
 * @interface GetCmAccountDetailRequest
 */
interface GetCmAccountDetailRequest {
    /**
     *
     * @type {number}
     * @memberof AccountApiGetCmAccountDetail
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getCmCurrentPositionMode operation in AccountApi.
 * @interface GetCmCurrentPositionModeRequest
 */
interface GetCmCurrentPositionModeRequest {
    /**
     *
     * @type {number}
     * @memberof AccountApiGetCmCurrentPositionMode
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getCmIncomeHistory operation in AccountApi.
 * @interface GetCmIncomeHistoryRequest
 */
interface GetCmIncomeHistoryRequest {
    /**
     *
     * @type {string}
     * @memberof AccountApiGetCmIncomeHistory
     */
    readonly symbol?: string;
    /**
     * TRANSFER, WELCOME_BONUS, REALIZED_PNL, FUNDING_FEE, COMMISSION, INSURANCE_CLEAR, REFERRAL_KICKBACK, COMMISSION_REBATE, API_REBATE, CONTEST_REWARD, CROSS_COLLATERAL_TRANSFER, OPTIONS_PREMIUM_FEE, OPTIONS_SETTLE_PROFIT, INTERNAL_TRANSFER, AUTO_EXCHANGE, DELIVERED_SETTELMENT, COIN_SWAP_DEPOSIT, COIN_SWAP_WITHDRAW, POSITION_LIMIT_INCREASE_FEE
     * @type {string}
     * @memberof AccountApiGetCmIncomeHistory
     */
    readonly incomeType?: string;
    /**
     * Timestamp in ms to get funding from INCLUSIVE.
     * @type {number}
     * @memberof AccountApiGetCmIncomeHistory
     */
    readonly startTime?: number;
    /**
     * Timestamp in ms to get funding until INCLUSIVE.
     * @type {number}
     * @memberof AccountApiGetCmIncomeHistory
     */
    readonly endTime?: number;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetCmIncomeHistory
     */
    readonly page?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof AccountApiGetCmIncomeHistory
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetCmIncomeHistory
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getDownloadIdForUmFuturesOrderHistory operation in AccountApi.
 * @interface GetDownloadIdForUmFuturesOrderHistoryRequest
 */
interface GetDownloadIdForUmFuturesOrderHistoryRequest {
    /**
     *
     * @type {number}
     * @memberof AccountApiGetDownloadIdForUmFuturesOrderHistory
     */
    readonly startTime: number;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetDownloadIdForUmFuturesOrderHistory
     */
    readonly endTime: number;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetDownloadIdForUmFuturesOrderHistory
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getDownloadIdForUmFuturesTradeHistory operation in AccountApi.
 * @interface GetDownloadIdForUmFuturesTradeHistoryRequest
 */
interface GetDownloadIdForUmFuturesTradeHistoryRequest {
    /**
     *
     * @type {number}
     * @memberof AccountApiGetDownloadIdForUmFuturesTradeHistory
     */
    readonly startTime: number;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetDownloadIdForUmFuturesTradeHistory
     */
    readonly endTime: number;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetDownloadIdForUmFuturesTradeHistory
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getDownloadIdForUmFuturesTransactionHistory operation in AccountApi.
 * @interface GetDownloadIdForUmFuturesTransactionHistoryRequest
 */
interface GetDownloadIdForUmFuturesTransactionHistoryRequest {
    /**
     *
     * @type {number}
     * @memberof AccountApiGetDownloadIdForUmFuturesTransactionHistory
     */
    readonly startTime: number;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetDownloadIdForUmFuturesTransactionHistory
     */
    readonly endTime: number;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetDownloadIdForUmFuturesTransactionHistory
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getMarginBorrowLoanInterestHistory operation in AccountApi.
 * @interface GetMarginBorrowLoanInterestHistoryRequest
 */
interface GetMarginBorrowLoanInterestHistoryRequest {
    /**
     *
     * @type {string}
     * @memberof AccountApiGetMarginBorrowLoanInterestHistory
     */
    readonly asset?: string;
    /**
     * Timestamp in ms to get funding from INCLUSIVE.
     * @type {number}
     * @memberof AccountApiGetMarginBorrowLoanInterestHistory
     */
    readonly startTime?: number;
    /**
     * Timestamp in ms to get funding until INCLUSIVE.
     * @type {number}
     * @memberof AccountApiGetMarginBorrowLoanInterestHistory
     */
    readonly endTime?: number;
    /**
     * Currently querying page. Start from 1. Default:1
     * @type {number}
     * @memberof AccountApiGetMarginBorrowLoanInterestHistory
     */
    readonly current?: number;
    /**
     * Default:10 Max:100
     * @type {number}
     * @memberof AccountApiGetMarginBorrowLoanInterestHistory
     */
    readonly size?: number;
    /**
     * Default: `false`. Set to `true` for archived data from 6 months ago
     * @type {string}
     * @memberof AccountApiGetMarginBorrowLoanInterestHistory
     */
    readonly archived?: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetMarginBorrowLoanInterestHistory
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getUmAccountDetail operation in AccountApi.
 * @interface GetUmAccountDetailRequest
 */
interface GetUmAccountDetailRequest {
    /**
     *
     * @type {number}
     * @memberof AccountApiGetUmAccountDetail
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getUmAccountDetailV2 operation in AccountApi.
 * @interface GetUmAccountDetailV2Request
 */
interface GetUmAccountDetailV2Request {
    /**
     *
     * @type {number}
     * @memberof AccountApiGetUmAccountDetailV2
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getUmCurrentPositionMode operation in AccountApi.
 * @interface GetUmCurrentPositionModeRequest
 */
interface GetUmCurrentPositionModeRequest {
    /**
     *
     * @type {number}
     * @memberof AccountApiGetUmCurrentPositionMode
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getUmFuturesOrderDownloadLinkById operation in AccountApi.
 * @interface GetUmFuturesOrderDownloadLinkByIdRequest
 */
interface GetUmFuturesOrderDownloadLinkByIdRequest {
    /**
     * get by download id api
     * @type {string}
     * @memberof AccountApiGetUmFuturesOrderDownloadLinkById
     */
    readonly downloadId: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetUmFuturesOrderDownloadLinkById
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getUmFuturesTradeDownloadLinkById operation in AccountApi.
 * @interface GetUmFuturesTradeDownloadLinkByIdRequest
 */
interface GetUmFuturesTradeDownloadLinkByIdRequest {
    /**
     * get by download id api
     * @type {string}
     * @memberof AccountApiGetUmFuturesTradeDownloadLinkById
     */
    readonly downloadId: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetUmFuturesTradeDownloadLinkById
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getUmFuturesTransactionDownloadLinkById operation in AccountApi.
 * @interface GetUmFuturesTransactionDownloadLinkByIdRequest
 */
interface GetUmFuturesTransactionDownloadLinkByIdRequest {
    /**
     * get by download id api
     * @type {string}
     * @memberof AccountApiGetUmFuturesTransactionDownloadLinkById
     */
    readonly downloadId: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetUmFuturesTransactionDownloadLinkById
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getUmIncomeHistory operation in AccountApi.
 * @interface GetUmIncomeHistoryRequest
 */
interface GetUmIncomeHistoryRequest {
    /**
     *
     * @type {string}
     * @memberof AccountApiGetUmIncomeHistory
     */
    readonly symbol?: string;
    /**
     * TRANSFER, WELCOME_BONUS, REALIZED_PNL, FUNDING_FEE, COMMISSION, INSURANCE_CLEAR, REFERRAL_KICKBACK, COMMISSION_REBATE, API_REBATE, CONTEST_REWARD, CROSS_COLLATERAL_TRANSFER, OPTIONS_PREMIUM_FEE, OPTIONS_SETTLE_PROFIT, INTERNAL_TRANSFER, AUTO_EXCHANGE, DELIVERED_SETTELMENT, COIN_SWAP_DEPOSIT, COIN_SWAP_WITHDRAW, POSITION_LIMIT_INCREASE_FEE
     * @type {string}
     * @memberof AccountApiGetUmIncomeHistory
     */
    readonly incomeType?: string;
    /**
     * Timestamp in ms to get funding from INCLUSIVE.
     * @type {number}
     * @memberof AccountApiGetUmIncomeHistory
     */
    readonly startTime?: number;
    /**
     * Timestamp in ms to get funding until INCLUSIVE.
     * @type {number}
     * @memberof AccountApiGetUmIncomeHistory
     */
    readonly endTime?: number;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetUmIncomeHistory
     */
    readonly page?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof AccountApiGetUmIncomeHistory
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetUmIncomeHistory
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getUserCommissionRateForCm operation in AccountApi.
 * @interface GetUserCommissionRateForCmRequest
 */
interface GetUserCommissionRateForCmRequest {
    /**
     *
     * @type {string}
     * @memberof AccountApiGetUserCommissionRateForCm
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetUserCommissionRateForCm
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getUserCommissionRateForUm operation in AccountApi.
 * @interface GetUserCommissionRateForUmRequest
 */
interface GetUserCommissionRateForUmRequest {
    /**
     *
     * @type {string}
     * @memberof AccountApiGetUserCommissionRateForUm
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiGetUserCommissionRateForUm
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for marginMaxBorrow operation in AccountApi.
 * @interface MarginMaxBorrowRequest
 */
interface MarginMaxBorrowRequest {
    /**
     *
     * @type {string}
     * @memberof AccountApiMarginMaxBorrow
     */
    readonly asset: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiMarginMaxBorrow
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for portfolioMarginUmTradingQuantitativeRulesIndicators operation in AccountApi.
 * @interface PortfolioMarginUmTradingQuantitativeRulesIndicatorsRequest
 */
interface PortfolioMarginUmTradingQuantitativeRulesIndicatorsRequest {
    /**
     *
     * @type {string}
     * @memberof AccountApiPortfolioMarginUmTradingQuantitativeRulesIndicators
     */
    readonly symbol?: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiPortfolioMarginUmTradingQuantitativeRulesIndicators
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryCmPositionInformation operation in AccountApi.
 * @interface QueryCmPositionInformationRequest
 */
interface QueryCmPositionInformationRequest {
    /**
     *
     * @type {string}
     * @memberof AccountApiQueryCmPositionInformation
     */
    readonly marginAsset?: string;
    /**
     *
     * @type {string}
     * @memberof AccountApiQueryCmPositionInformation
     */
    readonly pair?: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiQueryCmPositionInformation
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryMarginLoanRecord operation in AccountApi.
 * @interface QueryMarginLoanRecordRequest
 */
interface QueryMarginLoanRecordRequest {
    /**
     *
     * @type {string}
     * @memberof AccountApiQueryMarginLoanRecord
     */
    readonly asset: string;
    /**
     * the `tranId` in `POST/papi/v1/marginLoan`
     * @type {number}
     * @memberof AccountApiQueryMarginLoanRecord
     */
    readonly txId?: number;
    /**
     * Timestamp in ms to get funding from INCLUSIVE.
     * @type {number}
     * @memberof AccountApiQueryMarginLoanRecord
     */
    readonly startTime?: number;
    /**
     * Timestamp in ms to get funding until INCLUSIVE.
     * @type {number}
     * @memberof AccountApiQueryMarginLoanRecord
     */
    readonly endTime?: number;
    /**
     * Currently querying page. Start from 1. Default:1
     * @type {number}
     * @memberof AccountApiQueryMarginLoanRecord
     */
    readonly current?: number;
    /**
     * Default:10 Max:100
     * @type {number}
     * @memberof AccountApiQueryMarginLoanRecord
     */
    readonly size?: number;
    /**
     * Default: `false`. Set to `true` for archived data from 6 months ago
     * @type {string}
     * @memberof AccountApiQueryMarginLoanRecord
     */
    readonly archived?: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiQueryMarginLoanRecord
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryMarginMaxWithdraw operation in AccountApi.
 * @interface QueryMarginMaxWithdrawRequest
 */
interface QueryMarginMaxWithdrawRequest {
    /**
     *
     * @type {string}
     * @memberof AccountApiQueryMarginMaxWithdraw
     */
    readonly asset: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiQueryMarginMaxWithdraw
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryMarginRepayRecord operation in AccountApi.
 * @interface QueryMarginRepayRecordRequest
 */
interface QueryMarginRepayRecordRequest {
    /**
     *
     * @type {string}
     * @memberof AccountApiQueryMarginRepayRecord
     */
    readonly asset: string;
    /**
     * the `tranId` in `POST/papi/v1/marginLoan`
     * @type {number}
     * @memberof AccountApiQueryMarginRepayRecord
     */
    readonly txId?: number;
    /**
     * Timestamp in ms to get funding from INCLUSIVE.
     * @type {number}
     * @memberof AccountApiQueryMarginRepayRecord
     */
    readonly startTime?: number;
    /**
     * Timestamp in ms to get funding until INCLUSIVE.
     * @type {number}
     * @memberof AccountApiQueryMarginRepayRecord
     */
    readonly endTime?: number;
    /**
     * Currently querying page. Start from 1. Default:1
     * @type {number}
     * @memberof AccountApiQueryMarginRepayRecord
     */
    readonly current?: number;
    /**
     * Default:10 Max:100
     * @type {number}
     * @memberof AccountApiQueryMarginRepayRecord
     */
    readonly size?: number;
    /**
     * Default: `false`. Set to `true` for archived data from 6 months ago
     * @type {string}
     * @memberof AccountApiQueryMarginRepayRecord
     */
    readonly archived?: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiQueryMarginRepayRecord
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryPortfolioMarginNegativeBalanceInterestHistory operation in AccountApi.
 * @interface QueryPortfolioMarginNegativeBalanceInterestHistoryRequest
 */
interface QueryPortfolioMarginNegativeBalanceInterestHistoryRequest {
    /**
     *
     * @type {string}
     * @memberof AccountApiQueryPortfolioMarginNegativeBalanceInterestHistory
     */
    readonly asset?: string;
    /**
     * Timestamp in ms to get funding from INCLUSIVE.
     * @type {number}
     * @memberof AccountApiQueryPortfolioMarginNegativeBalanceInterestHistory
     */
    readonly startTime?: number;
    /**
     * Timestamp in ms to get funding until INCLUSIVE.
     * @type {number}
     * @memberof AccountApiQueryPortfolioMarginNegativeBalanceInterestHistory
     */
    readonly endTime?: number;
    /**
     * Default:10 Max:100
     * @type {number}
     * @memberof AccountApiQueryPortfolioMarginNegativeBalanceInterestHistory
     */
    readonly size?: number;
    /**
     *
     * @type {number}
     * @memberof AccountApiQueryPortfolioMarginNegativeBalanceInterestHistory
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryUmPositionInformation operation in AccountApi.
 * @interface QueryUmPositionInformationRequest
 */
interface QueryUmPositionInformationRequest {
    /**
     *
     * @type {string}
     * @memberof AccountApiQueryUmPositionInformation
     */
    readonly symbol?: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiQueryUmPositionInformation
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryUserNegativeBalanceAutoExchangeRecord operation in AccountApi.
 * @interface QueryUserNegativeBalanceAutoExchangeRecordRequest
 */
interface QueryUserNegativeBalanceAutoExchangeRecordRequest {
    /**
     *
     * @type {number}
     * @memberof AccountApiQueryUserNegativeBalanceAutoExchangeRecord
     */
    readonly startTime: number;
    /**
     *
     * @type {number}
     * @memberof AccountApiQueryUserNegativeBalanceAutoExchangeRecord
     */
    readonly endTime: number;
    /**
     *
     * @type {number}
     * @memberof AccountApiQueryUserNegativeBalanceAutoExchangeRecord
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryUserRateLimit operation in AccountApi.
 * @interface QueryUserRateLimitRequest
 */
interface QueryUserRateLimitRequest {
    /**
     *
     * @type {number}
     * @memberof AccountApiQueryUserRateLimit
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for repayFuturesNegativeBalance operation in AccountApi.
 * @interface RepayFuturesNegativeBalanceRequest
 */
interface RepayFuturesNegativeBalanceRequest {
    /**
     *
     * @type {number}
     * @memberof AccountApiRepayFuturesNegativeBalance
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for umFuturesAccountConfiguration operation in AccountApi.
 * @interface UmFuturesAccountConfigurationRequest
 */
interface UmFuturesAccountConfigurationRequest {
    /**
     *
     * @type {number}
     * @memberof AccountApiUmFuturesAccountConfiguration
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for umFuturesSymbolConfiguration operation in AccountApi.
 * @interface UmFuturesSymbolConfigurationRequest
 */
interface UmFuturesSymbolConfigurationRequest {
    /**
     *
     * @type {string}
     * @memberof AccountApiUmFuturesSymbolConfiguration
     */
    readonly symbol?: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiUmFuturesSymbolConfiguration
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for umNotionalAndLeverageBrackets operation in AccountApi.
 * @interface UmNotionalAndLeverageBracketsRequest
 */
interface UmNotionalAndLeverageBracketsRequest {
    /**
     *
     * @type {string}
     * @memberof AccountApiUmNotionalAndLeverageBrackets
     */
    readonly symbol?: string;
    /**
     *
     * @type {number}
     * @memberof AccountApiUmNotionalAndLeverageBrackets
     */
    readonly recvWindow?: number;
}
/**
 * AccountApi - object-oriented interface
 * @class AccountApi
 */
declare class AccountApi implements AccountApiInterface {
    private readonly configuration;
    private localVarAxiosParamCreator;
    constructor(configuration: ConfigurationRestAPI);
    /**
     * Query account balance
     *
     * Weight: 20
     *
     * @summary Account Balance(USER_DATA)
     * @param {AccountBalanceRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<AccountBalanceResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Account-Balance Binance API Documentation}
     */
    accountBalance(requestParameters?: AccountBalanceRequest): Promise<RestApiResponse<AccountBalanceResponse>>;
    /**
     * Query account information
     *
     * Weight: 20
     *
     * @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/portfolio-margin/account/Account-Information Binance API Documentation}
     */
    accountInformation(requestParameters?: AccountInformationRequest): Promise<RestApiResponse<AccountInformationResponse>>;
    /**
     * Transfer BNB in and out of UM
     *
     * The endpoint can only be called 10 times per 10 minutes in a rolling manner
     *
     * Weight: 750
     *
     * @summary BNB transfer (TRADE)
     * @param {BnbTransferRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<BnbTransferResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/BNB-transfer Binance API Documentation}
     */
    bnbTransfer(requestParameters: BnbTransferRequest): Promise<RestApiResponse<BnbTransferResponse>>;
    /**
     * Change Auto-repay-futures Status
     *
     * Weight: 750
     *
     * @summary Change Auto-repay-futures Status(TRADE)
     * @param {ChangeAutoRepayFuturesStatusRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ChangeAutoRepayFuturesStatusResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-Auto-repay-futures-Status Binance API Documentation}
     */
    changeAutoRepayFuturesStatus(requestParameters: ChangeAutoRepayFuturesStatusRequest): Promise<RestApiResponse<ChangeAutoRepayFuturesStatusResponse>>;
    /**
     * Change user's initial leverage of specific symbol in CM.
     *
     * Weight: 1
     *
     * @summary Change CM Initial Leverage (TRADE)
     * @param {ChangeCmInitialLeverageRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ChangeCmInitialLeverageResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-CM-Initial-Leverage Binance API Documentation}
     */
    changeCmInitialLeverage(requestParameters: ChangeCmInitialLeverageRequest): Promise<RestApiResponse<ChangeCmInitialLeverageResponse>>;
    /**
     * Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in CM
     *
     * Weight: 1
     *
     * @summary Change CM Position Mode(TRADE)
     * @param {ChangeCmPositionModeRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ChangeCmPositionModeResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-CM-Position-Mode Binance API Documentation}
     */
    changeCmPositionMode(requestParameters: ChangeCmPositionModeRequest): Promise<RestApiResponse<ChangeCmPositionModeResponse>>;
    /**
     * Change user's initial leverage of specific symbol in UM.
     *
     * Weight: 1
     *
     * @summary Change UM Initial Leverage(TRADE)
     * @param {ChangeUmInitialLeverageRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ChangeUmInitialLeverageResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-UM-Initial-Leverage Binance API Documentation}
     */
    changeUmInitialLeverage(requestParameters: ChangeUmInitialLeverageRequest): Promise<RestApiResponse<ChangeUmInitialLeverageResponse>>;
    /**
     * Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in UM
     *
     * Weight: 1
     *
     * @summary Change UM Position Mode(TRADE)
     * @param {ChangeUmPositionModeRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ChangeUmPositionModeResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-UM-Position-Mode Binance API Documentation}
     */
    changeUmPositionMode(requestParameters: ChangeUmPositionModeRequest): Promise<RestApiResponse<ChangeUmPositionModeResponse>>;
    /**
     * Query CM notional and leverage brackets
     *
     * Weight: 1
     *
     * @summary CM Notional and Leverage Brackets(USER_DATA)
     * @param {CmNotionalAndLeverageBracketsRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CmNotionalAndLeverageBracketsResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/CM-Notional-and-Leverage-Brackets Binance API Documentation}
     */
    cmNotionalAndLeverageBrackets(requestParameters?: CmNotionalAndLeverageBracketsRequest): Promise<RestApiResponse<CmNotionalAndLeverageBracketsResponse>>;
    /**
     * Fund collection for Portfolio Margin
     *
     * The BNB would not be collected from UM-PM account to the Portfolio Margin account.
     * You can only use this function 500 times per hour in a rolling manner.
     *
     * Weight: 750
     *
     * @summary Fund Auto-collection(TRADE)
     * @param {FundAutoCollectionRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<FundAutoCollectionResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Fund-Auto-collection Binance API Documentation}
     */
    fundAutoCollection(requestParameters?: FundAutoCollectionRequest): Promise<RestApiResponse<FundAutoCollectionResponse>>;
    /**
     * Transfers specific asset from Futures Account to Margin account
     *
     * The BNB transfer is not be supported
     *
     * Weight: 30
     *
     * @summary Fund Collection by Asset(TRADE)
     * @param {FundCollectionByAssetRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<FundCollectionByAssetResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Fund-Collection-by-Asset Binance API Documentation}
     */
    fundCollectionByAsset(requestParameters: FundCollectionByAssetRequest): Promise<RestApiResponse<FundCollectionByAssetResponse>>;
    /**
     * Query Auto-repay-futures Status
     *
     * Weight: 30
     *
     * @summary Get Auto-repay-futures Status(USER_DATA)
     * @param {GetAutoRepayFuturesStatusRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetAutoRepayFuturesStatusResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-Auto-repay-futures-Status Binance API Documentation}
     */
    getAutoRepayFuturesStatus(requestParameters?: GetAutoRepayFuturesStatusRequest): Promise<RestApiResponse<GetAutoRepayFuturesStatusResponse>>;
    /**
     * Get current CM account asset and position information.
     *
     * Weight: 5
     *
     * @summary Get CM Account Detail(USER_DATA)
     * @param {GetCmAccountDetailRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetCmAccountDetailResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Account-Detail Binance API Documentation}
     */
    getCmAccountDetail(requestParameters?: GetCmAccountDetailRequest): Promise<RestApiResponse<GetCmAccountDetailResponse>>;
    /**
     * Get user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in CM
     *
     * Weight: 30
     *
     * @summary Get CM Current Position Mode(USER_DATA)
     * @param {GetCmCurrentPositionModeRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetCmCurrentPositionModeResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Current-Position-Mode Binance API Documentation}
     */
    getCmCurrentPositionMode(requestParameters?: GetCmCurrentPositionModeRequest): Promise<RestApiResponse<GetCmCurrentPositionModeResponse>>;
    /**
     * Get CM 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 interval between `startTime` and `endTime` can not exceed 200 days:
     * If `startTime` and `endTime` are not sent, the last 200 days will be returned
     *
     * Weight: 30
     *
     * @summary Get CM Income History(USER_DATA)
     * @param {GetCmIncomeHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetCmIncomeHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Income-History Binance API Documentation}
     */
    getCmIncomeHistory(requestParameters?: GetCmIncomeHistoryRequest): Promise<RestApiResponse<GetCmIncomeHistoryResponse>>;
    /**
     * Get download id for UM 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: 1500
     *
     * @summary Get Download Id For UM Futures Order History (USER_DATA)
     * @param {GetDownloadIdForUmFuturesOrderHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetDownloadIdForUmFuturesOrderHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-Download-Id-For-UM-Futures-Order-History Binance API Documentation}
     */
    getDownloadIdForUmFuturesOrderHistory(requestParameters: GetDownloadIdForUmFuturesOrderHistoryRequest): Promise<RestApiResponse<GetDownloadIdForUmFuturesOrderHistoryResponse>>;
    /**
     * Get download id for UM 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: 1500
     *
     * @summary Get Download Id For UM Futures Trade History (USER_DATA)
     * @param {GetDownloadIdForUmFuturesTradeHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetDownloadIdForUmFuturesTradeHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-Download-Id-For-UM-Futures-Trade-History Binance API Documentation}
     */
    getDownloadIdForUmFuturesTradeHistory(requestParameters: GetDownloadIdForUmFuturesTradeHistoryRequest): Promise<RestApiResponse<GetDownloadIdForUmFuturesTradeHistoryResponse>>;
    /**
     * Get download id for UM 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: 1500
     *
     * @summary Get Download Id For UM Futures Transaction History (USER_DATA)
     * @param {GetDownloadIdForUmFuturesTransactionHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetDownloadIdForUmFuturesTransactionHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-Download-Id-For-UM-Futures-Transaction-History Binance API Documentation}
     */
    getDownloadIdForUmFuturesTransactionHistory(requestParameters: GetDownloadIdForUmFuturesTransactionHistoryRequest): Promise<RestApiResponse<GetDownloadIdForUmFuturesTransactionHistoryResponse>>;
    /**
     * Get Margin Borrow/Loan Interest History
     *
     *
     * Response in descending order
     * The max interval between startTime and endTime is 30 days. It is a MUST to ensure data correctness.
     * If `startTime` and `endTime` not sent, return records of the last 7 days by default
     * If `startTime` is sent and `endTime` is not sent, the records from `startTime` to the present will be returned; if `startTime` is more than 30 days ago, the records of the past 30 days will be returned.
     * If `startTime` is not sent and `endTime` is sent, the records of the 7 days before `endTime` is returned.
     * Type in response has 5 enums:
     * `PERIODIC` interest charged per hour
     * `ON_BORROW` first interest charged on borrow
     * `PERIODIC_CONVERTED` interest charged per hour converted into BNB
     * `ON_BORROW_CONVERTED` first interest charged on borrow converted into BNB
     * `PORTFOLIO` Portfolio Margin negative balance daily interest
     *
     * Weight: 1
     *
     * @summary Get Margin Borrow/Loan Interest History(USER_DATA)
     * @param {GetMarginBorrowLoanInterestHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetMarginBorrowLoanInterestHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-Margin-BorrowLoan-Interest-History Binance API Documentation}
     */
    getMarginBorrowLoanInterestHistory(requestParameters?: GetMarginBorrowLoanInterestHistoryRequest): Promise<RestApiResponse<GetMarginBorrowLoanInterestHistoryResponse>>;
    /**
     * Get current UM account asset and position information.
     *
     * Weight: 5
     *
     * @summary Get UM Account Detail(USER_DATA)
     * @param {GetUmAccountDetailRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetUmAccountDetailResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Account-Detail Binance API Documentation}
     */
    getUmAccountDetail(requestParameters?: GetUmAccountDetailRequest): Promise<RestApiResponse<GetUmAccountDetailResponse>>;
    /**
     * Get current UM account asset and position information.
     *
     * Weight: 5
     *
     * @summary Get UM Account Detail V2(USER_DATA)
     * @param {GetUmAccountDetailV2Request} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetUmAccountDetailV2Response>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Account-Detail-V2 Binance API Documentation}
     */
    getUmAccountDetailV2(requestParameters?: GetUmAccountDetailV2Request): Promise<RestApiResponse<GetUmAccountDetailV2Response>>;
    /**
     * Get user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in UM
     *
     * Weight: 30
     *
     * @summary Get UM Current Position Mode(USER_DATA)
     * @param {GetUmCurrentPositionModeRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetUmCurrentPositionModeResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Current-Position-Mode Binance API Documentation}
     */
    getUmCurrentPositionMode(requestParameters?: GetUmCurrentPositionModeRequest): Promise<RestApiResponse<GetUmCurrentPositionModeResponse>>;
    /**
     * Get UM futures order download link by Id
     *
     * Download link expiration: 24h
     *
     * Weight: 10
     *
     * @summary Get UM Futures Order Download Link by Id(USER_DATA)
     * @param {GetUmFuturesOrderDownloadLinkByIdRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetUmFuturesOrderDownloadLinkByIdResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Futures-Order-Download-Link-by-Id Binance API Documentation}
     */
    getUmFuturesOrderDownloadLinkById(requestParameters: GetUmFuturesOrderDownloadLinkByIdRequest): Promise<RestApiResponse<GetUmFuturesOrderDownloadLinkByIdResponse>>;
    /**
     * Get UM futures trade download link by Id
     *
     * Download link expiration: 24h
     *
     * Weight: 10
     *
     * @summary Get UM Futures Trade Download Link by Id(USER_DATA)
     * @param {GetUmFuturesTradeDownloadLinkByIdRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetUmFuturesTradeDownloadLinkByIdResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Futures-Trade-Download-Link-by-Id Binance API Documentation}
     */
    getUmFuturesTradeDownloadLinkById(requestParameters: GetUmFuturesTradeDownloadLinkByIdRequest): Promise<RestApiResponse<GetUmFuturesTradeDownloadLinkByIdResponse>>;
    /**
     * Get UM futures Transaction download link by Id
     *
     * Download link expiration: 24h
     *
     * Weight: 10
     *
     * @summary Get UM Futures Transaction Download Link by Id(USER_DATA)
     * @param {GetUmFuturesTransactionDownloadLinkByIdRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetUmFuturesTransactionDownloadLinkByIdResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Futures-Transaction-Download-Link-by-Id Binance API Documentation}
     */
    getUmFuturesTransactionDownloadLinkById(requestParameters: GetUmFuturesTransactionDownloadLinkByIdRequest): Promise<RestApiResponse<GetUmFuturesTransactionDownloadLinkByIdResponse>>;
    /**
     * Get UM Income History
     *
     * If neither `startTime` nor `endTime` is sent, the recent 7-day data will be returned.
     * If `incomeType` is not sent, all kinds of flow will be returned
     * "trandId" is unique in the same incomeType for a user
     * Income history only contains data for the last three months
     *
     * Weight: 30
     *
     * @summary Get UM Income History(USER_DATA)
     * @param {GetUmIncomeHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetUmIncomeHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Income-History Binance API Documentation}
     */
    getUmIncomeHistory(requestParameters?: GetUmIncomeHistoryRequest): Promise<RestApiResponse<GetUmIncomeHistoryResponse>>;
    /**
     * Get User Commission Rate for CM
     *
     * Weight: 20
     *
     * @summary Get User Commission Rate for CM(USER_DATA)
     * @param {GetUserCommissionRateForCmRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetUserCommissionRateForCmResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-User-Commission-Rate-for-CM Binance API Documentation}
     */
    getUserCommissionRateForCm(requestParameters: GetUserCommissionRateForCmRequest): Promise<RestApiResponse<GetUserCommissionRateForCmResponse>>;
    /**
     * Get User Commission Rate for UM
     *
     * Weight: 20
     *
     * @summary Get User Commission Rate for UM(USER_DATA)
     * @param {GetUserCommissionRateForUmRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetUserCommissionRateForUmResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-User-Commission-Rate-for-UM Binance API Documentation}
     */
    getUserCommissionRateForUm(requestParameters: GetUserCommissionRateForUmRequest): Promise<RestApiResponse<GetUserCommissionRateForUmResponse>>;
    /**
     * Query margin max borrow
     *
     * Weight: 5
     *
     * @summary Margin Max Borrow(USER_DATA)
     * @param {MarginMaxBorrowRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<MarginMaxBorrowResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Margin-Max-Borrow Binance API Documentation}
     */
    marginMaxBorrow(requestParameters: MarginMaxBorrowRequest): Promise<RestApiResponse<MarginMaxBorrowResponse>>;
    /**
     * Portfolio Margin UM Trading Quantitative Rules Indicators
     *
     * Weight: 1 for a single symbol
     * 10 when the symbol parameter is omitted
     *
     * @summary Portfolio Margin UM Trading Quantitative Rules Indicators(USER_DATA)
     * @param {PortfolioMarginUmTradingQuantitativeRulesIndicatorsRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Portfolio-Margin-UM-Trading-Quantitative-Rules-Indicators Binance API Documentation}
     */
    portfolioMarginUmTradingQuantitativeRulesIndicators(requestParameters?: PortfolioMarginUmTradingQuantitativeRulesIndicatorsRequest): Promise<RestApiResponse<PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponse>>;
    /**
     * Get current CM position 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 "LONG", and "SHORT" positions.
     * Please use with user data stream `ACCOUNT_UPDATE` to meet your timeliness and accuracy needs.
     *
     * Weight: 1
     *
     * @summary Query CM Position Information(USER_DATA)
     * @param {QueryCmPositionInformationRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryCmPositionInformationResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-CM-Position-Information Binance API Documentation}
     */
    queryCmPositionInformation(requestParameters?: QueryCmPositionInformationRequest): Promise<RestApiResponse<QueryCmPositionInformationResponse>>;
    /**
     * Query margin loan record
     *
     * txId or startTime must be sent. txId takes precedence.
     * Response in descending order
     * The max interval between `startTime` and `endTime` is 30 days.
     * If `startTime` and `endTime` not sent, return records of the last 7 days by default
     * Set `archived` to `true` to query data from 6 months ago
     *
     * Weight: 10
     *
     * @summary Query Margin Loan Record(USER_DATA)
     * @param {QueryMarginLoanRecordRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryMarginLoanRecordResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-Margin-Loan-Record Binance API Documentation}
     */
    queryMarginLoanRecord(requestParameters: QueryMarginLoanRecordRequest): Promise<RestApiResponse<QueryMarginLoanRecordResponse>>;
    /**
     * Query Margin Max Withdraw
     *
     * Weight: 5
     *
     * @summary Query Margin Max Withdraw(USER_DATA)
     * @param {QueryMarginMaxWithdrawRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryMarginMaxWithdrawResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-Margin-Max-Withdraw Binance API Documentation}
     */
    queryMarginMaxWithdraw(requestParameters: QueryMarginMaxWithdrawRequest): Promise<RestApiResponse<QueryMarginMaxWithdrawResponse>>;
    /**
     * Query margin repay record.
     *
     * txId or startTime must be sent. txId takes precedence.
     * Response in descending order
     * The max interval between `startTime` and `endTime` is 30 days.
     * If `startTime` and `endTime` not sent, return records of the last 7 days by default
     * Set `archived` to `true` to query data from 6 months ago
     *
     * Weight: 10
     *
     * @summary Query Margin repay Record(USER_DATA)
     * @param {QueryMarginRepayRecordRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryMarginRepayRecordResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-Margin-repay-Record Binance API Documentation}
     */
    queryMarginRepayRecord(requestParameters: QueryMarginRepayRecordRequest): Promise<RestApiResponse<QueryMarginRepayRecordResponse>>;
    /**
     * Query interest history of negative balance for portfolio margin.
     *
     * Response in descending order
     * The max interval between startTime and endTime is 30 days. It is a MUST to ensure data correctness.
     * If `startTime` and `endTime` not sent, return records of the last 7 days by default
     * If `startTime` is sent and `endTime` is not sent, the records from `startTime` to the present will be returned; if `startTime` is more than 30 days ago, the records of the past 30 days will be returned.
     * If `startTime` is not sent and `endTime` is sent, the records of the 7 days before `endTime` is returned.
     *
     * Weight: 50
     *
     * @summary Query Portfolio Margin Negative Balance Interest History(USER_DATA)
     * @param {QueryPortfolioMarginNegativeBalanceInterestHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryPortfolioMarginNegativeBalanceInterestHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-Portfolio-Margin-Negative-Balance-Interest-History Binance API Documentation}
     */
    queryPortfolioMarginNegativeBalanceInterestHistory(requestParameters?: QueryPortfolioMarginNegativeBalanceInterestHistoryRequest): Promise<RestApiResponse<QueryPortfolioMarginNegativeBalanceInterestHistoryResponse>>;
    /**
     * Get current UM position information.
     *
     * Please use with user data stream `ACCOUNT_UPDATE` to meet your timeliness and accuracy needs.
     * for One-way Mode user, the response will only show the "BOTH" positions
     * for Hedge Mode user, the response will show "LONG", and "SHORT" positions.
     *
     * Weight: 5
     *
     * @summary Query UM Position Information(USER_DATA)
     * @param {QueryUmPositionInformationRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryUmPositionInformationResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-UM-Position-Information Binance API Documentation}
     */
    queryUmPositionInformation(requestParameters?: QueryUmPositionInformationRequest): Promise<RestApiResponse<QueryUmPositionInformationResponse>>;
    /**
     * Query user negative balance auto exchange record
     *
     * Response in descending order
     * The max interval between `startTime` and `endTime` is 3 months.
     *
     * Weight: 100
     *
     * @summary Query User Negative Balance Auto Exchange Record (USER_DATA)
     * @param {QueryUserNegativeBalanceAutoExchangeRecordRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryUserNegativeBalanceAutoExchangeRecordResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-User-Negative-Balance-Auto-Exchange-Record Binance API Documentation}
     */
    queryUserNegativeBalanceAutoExchangeRecord(requestParameters: QueryUserNegativeBalanceAutoExchangeRecordRequest): Promise<RestApiResponse<QueryUserNegativeBalanceAutoExchangeRecordResponse>>;
    /**
     * Query User Rate Limit
     *
     * Weight: 1
     *
     * @summary Query User Rate Limit (USER_DATA)
     * @param {QueryUserRateLimitRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryUserRateLimitResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-User-Rate-Limit Binance API Documentation}
     */
    queryUserRateLimit(requestParameters?: QueryUserRateLimitRequest): Promise<RestApiResponse<QueryUserRateLimitResponse>>;
    /**
     * Repay futures Negative Balance
     *
     * Weight: 750
     *
     * @summary Repay futures Negative Balance(USER_DATA)
     * @param {RepayFuturesNegativeBalanceRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<RepayFuturesNegativeBalanceResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Repay-futures-Negative-Balance Binance API Documentation}
     */
    repayFuturesNegativeBalance(requestParameters?: RepayFuturesNegativeBalanceRequest): Promise<RestApiResponse<RepayFuturesNegativeBalanceResponse>>;
    /**
     * Query UM Futures account configuration
     *
     * Weight: 5
     *
     * @summary UM Futures Account Configuration(USER_DATA)
     * @param {UmFuturesAccountConfigurationRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<UmFuturesAccountConfigurationResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Futures-Account-Config Binance API Documentation}
     */
    umFuturesAccountConfiguration(requestParameters?: UmFuturesAccountConfigurationRequest): Promise<RestApiResponse<UmFuturesAccountConfigurationResponse>>;
    /**
     * Get current UM account symbol configuration.
     *
     * Weight: 5
     *
     * @summary UM Futures Symbol Configuration(USER_DATA)
     * @param {UmFuturesSymbolConfigurationRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<UmFuturesSymbolConfigurationResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Futures-Symbol-Config Binance API Documentation}
     */
    umFuturesSymbolConfiguration(requestParameters?: UmFuturesSymbolConfigurationRequest): Promise<RestApiResponse<UmFuturesSymbolConfigurationResponse>>;
    /**
     * Query UM notional and leverage brackets
     *
     * Weight: 1
     *
     * @summary UM Notional and Leverage Brackets (USER_DATA)
     * @param {UmNotionalAndLeverageBracketsRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<UmNotionalAndLeverageBracketsResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof AccountApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/UM-Notional-and-Leverage-Brackets Binance API Documentation}
     */
    umNotionalAndLeverageBrackets(requestParameters?: UmNotionalAndLeverageBracketsRequest): Promise<RestApiResponse<UmNotionalAndLeverageBracketsResponse>>;
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.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 {
    /**
     * 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>>;
}
/**
 * MarketDataApi - object-oriented interface
 * @class MarketDataApi
 */
declare class MarketDataApi implements MarketDataApiInterface {
    private readonly configuration;
    private localVarAxiosParamCreator;
    constructor(configuration: ConfigurationRestAPI);
    /**
     * 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/portfolio-margin/market-data/Test-Connectivity Binance API Documentation}
     */
    testConnectivity(): Promise<RestApiResponse<void>>;
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.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 All CM Open Conditional Orders
     *
     * Weight: 1
     *
     * @summary Cancel All CM Open Conditional Orders(TRADE)
     * @param {CancelAllCmOpenConditionalOrdersRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    cancelAllCmOpenConditionalOrders(requestParameters: CancelAllCmOpenConditionalOrdersRequest): Promise<RestApiResponse<CancelAllCmOpenConditionalOrdersResponse>>;
    /**
     * Cancel all active LIMIT orders on specific symbol
     *
     * Weight: 1
     *
     * @summary Cancel All CM Open Orders(TRADE)
     * @param {CancelAllCmOpenOrdersRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    cancelAllCmOpenOrders(requestParameters: CancelAllCmOpenOrdersRequest): Promise<RestApiResponse<CancelAllCmOpenOrdersResponse>>;
    /**
     * Cancel All UM Open Conditional Orders
     *
     * Weight: 1
     *
     * @summary Cancel All UM Open Conditional Orders (TRADE)
     * @param {CancelAllUmOpenConditionalOrdersRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    cancelAllUmOpenConditionalOrders(requestParameters: CancelAllUmOpenConditionalOrdersRequest): Promise<RestApiResponse<CancelAllUmOpenConditionalOrdersResponse>>;
    /**
     * Cancel all active LIMIT orders on specific symbol
     *
     * Weight: 1
     *
     * @summary Cancel All UM Open Orders(TRADE)
     * @param {CancelAllUmOpenOrdersRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    cancelAllUmOpenOrders(requestParameters: CancelAllUmOpenOrdersRequest): Promise<RestApiResponse<CancelAllUmOpenOrdersResponse>>;
    /**
     * Cancel CM Conditional Order
     *
     * Either `strategyId` or `newClientStrategyId` must be sent.
     *
     * Weight: 1
     *
     * @summary Cancel CM Conditional Order(TRADE)
     * @param {CancelCmConditionalOrderRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    cancelCmConditionalOrder(requestParameters: CancelCmConditionalOrderRequest): Promise<RestApiResponse<CancelCmConditionalOrderResponse>>;
    /**
     * Cancel an active LIMIT order
     *
     * Either `orderId` or `origClientOrderId` must be sent.
     *
     * Weight: 1
     *
     * @summary Cancel CM Order(TRADE)
     * @param {CancelCmOrderRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    cancelCmOrder(requestParameters: CancelCmOrderRequest): Promise<RestApiResponse<CancelCmOrderResponse>>;
    /**
     * Cancel Margin Account All Open Orders on a Symbol
     *
     * Weight: 5
     *
     * @summary Cancel Margin Account All Open Orders on a Symbol(TRADE)
     * @param {CancelMarginAccountAllOpenOrdersOnASymbolRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    cancelMarginAccountAllOpenOrdersOnASymbol(requestParameters: CancelMarginAccountAllOpenOrdersOnASymbolRequest): Promise<RestApiResponse<CancelMarginAccountAllOpenOrdersOnASymbolResponse>>;
    /**
     * Cancel Margin Account OCO Orders
     *
     * Additional notes: Canceling an individual leg will cancel the entire OCO
     *
     * Weight: 2
     *
     * @summary Cancel Margin Account OCO Orders(TRADE)
     * @param {CancelMarginAccountOcoOrdersRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    cancelMarginAccountOcoOrders(requestParameters: CancelMarginAccountOcoOrdersRequest): Promise<RestApiResponse<CancelMarginAccountOcoOrdersResponse>>;
    /**
     * Cancel Margin Account Order
     *
     * Either `orderId` or `origClientOrderId` must be sent.
     *
     * Weight: 2
     *
     * @summary Cancel Margin Account Order(TRADE)
     * @param {CancelMarginAccountOrderRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    cancelMarginAccountOrder(requestParameters: CancelMarginAccountOrderRequest): Promise<RestApiResponse<CancelMarginAccountOrderResponse>>;
    /**
     * Cancel UM Conditional Order
     *
     * Either `strategyId` or `newClientStrategyId` must be sent.
     *
     * Weight: 1
     *
     * @summary Cancel UM Conditional Order(TRADE)
     * @param {CancelUmConditionalOrderRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    cancelUmConditionalOrder(requestParameters: CancelUmConditionalOrderRequest): Promise<RestApiResponse<CancelUmConditionalOrderResponse>>;
    /**
     * Cancel an active UM LIMIT order
     *
     * Either `orderId` or `origClientOrderId` must be sent.
     *
     * Weight: 1
     *
     * @summary Cancel UM Order(TRADE)
     * @param {CancelUmOrderRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    cancelUmOrder(requestParameters: CancelUmOrderRequest): Promise<RestApiResponse<CancelUmOrderResponse>>;
    /**
     * Get trades for a specific account and CM 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`
     *
     * Weight: 20 with symbol, 40 with pair
     *
     * @summary CM Account Trade List(USER_DATA)
     * @param {CmAccountTradeListRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    cmAccountTradeList(requestParameters?: CmAccountTradeListRequest): Promise<RestApiResponse<CmAccountTradeListResponse>>;
    /**
     * Query CM 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 CM Position ADL Quantile Estimation(USER_DATA)
     * @param {CmPositionAdlQuantileEstimationRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    cmPositionAdlQuantileEstimation(requestParameters?: CmPositionAdlQuantileEstimationRequest): Promise<RestApiResponse<CmPositionAdlQuantileEstimationResponse>>;
    /**
     * Get user's BNB Fee Discount for UM Futures (Fee Discount On or Fee Discount Off )
     *
     * Weight: 30
     *
     * @summary Get UM Futures BNB Burn Status (USER_DATA)
     * @param {GetUmFuturesBnbBurnStatusRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    getUmFuturesBnbBurnStatus(requestParameters?: GetUmFuturesBnbBurnStatusRequest): Promise<RestApiResponse<GetUmFuturesBnbBurnStatusResponse>>;
    /**
     * Apply for a margin loan.
     *
     * Weight: 100
     *
     * @summary Margin Account Borrow(MARGIN)
     * @param {MarginAccountBorrowRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    marginAccountBorrow(requestParameters: MarginAccountBorrowRequest): Promise<RestApiResponse<MarginAccountBorrowResponse>>;
    /**
     * Send in a new OCO for a margin account
     *
     * Price Restrictions:
     * `SELL`: Limit Price > Last Price > Stop Price
     * `BUY`: Limit Price < Last Price < Stop Price
     * Quantity Restrictions:
     * Both legs must have the same quantity
     * `ICEBERG` quantities however do not have to be the same.
     * Order Rate Limit
     * `OCO` counts as 2 orders against the order rate limit.
     *
     * Weight: 1
     *
     * @summary Margin Account New OCO(TRADE)
     * @param {MarginAccountNewOcoRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    marginAccountNewOco(requestParameters: MarginAccountNewOcoRequest): Promise<RestApiResponse<MarginAccountNewOcoResponse>>;
    /**
     * Repay for a margin loan.
     *
     * Weight: 100
     *
     * @summary Margin Account Repay(MARGIN)
     * @param {MarginAccountRepayRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    marginAccountRepay(requestParameters: MarginAccountRepayRequest): Promise<RestApiResponse<MarginAccountRepayResponse>>;
    /**
     * Repay debt for a margin loan.
     *
     * The repay asset amount cannot exceed 50000 USD equivalent value for a single request.
     * If `amount` is not sent, all the asset loan will be repaid if having enough specific repay assets.
     * If `amount` is sent, only the certain amount of the asset loan will be repaid if having enough specific repay assets.
     * The system will use the same asset to repay the loan first (if have) no matter whether put the asset in `specifyRepayAssets`
     *
     * Weight: 3000
     *
     * @summary Margin Account Repay Debt(TRADE)
     * @param {MarginAccountRepayDebtRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    marginAccountRepayDebt(requestParameters: MarginAccountRepayDebtRequest): Promise<RestApiResponse<MarginAccountRepayDebtResponse>>;
    /**
     * Margin Account Trade List
     *
     * Weight: 5
     *
     * @summary Margin Account Trade List (USER_DATA)
     * @param {MarginAccountTradeListRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    marginAccountTradeList(requestParameters: MarginAccountTradeListRequest): Promise<RestApiResponse<MarginAccountTradeListResponse>>;
    /**
     * 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
     * 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
     *
     * Weight: 1
     *
     * @summary Modify CM Order(TRADE)
     * @param {ModifyCmOrderRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    modifyCmOrder(requestParameters: ModifyCmOrderRequest): Promise<RestApiResponse<ModifyCmOrderResponse>>;
    /**
     * 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
     * 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
     *
     * Weight: 1
     *
     * @summary Modify UM Order(TRADE)
     * @param {ModifyUmOrderRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    modifyUmOrder(requestParameters: ModifyUmOrderRequest): Promise<RestApiResponse<ModifyUmOrderResponse>>;
    /**
     * New CM Conditional Order
     *
     * Order with type `STOP/TAKE_PROFIT`, parameter `timeInForce` can be sent ( default `GTC`).
     * Condition orders will be triggered when:
     * `STOP`, `STOP_MARKET`:
     * BUY: "MARK_PRICE"  >= `stopPrice`
     * SELL: "MARK_PRICE" <= `stopPrice`
     * `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`:
     * BUY: "MARK_PRICE" <= `stopPrice`
     * SELL: "MARK_PRICE" >= `stopPrice`
     * `TRAILING_STOP_MARKET`:
     * BUY: the lowest mark price after order placed `<= `activationPrice`, and the latest mark price >`= the lowest mark price * (1 + `callbackRate`)
     * SELL: the highest mark price after order placed >= `activationPrice`, and the latest mark price <= the highest mark 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 mark price.
     * SELL: `activationPrice` should be larger than latest mark price.
     * 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 /fapi/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`
     *
     * Weight: 1
     *
     * @summary New CM Conditional Order(TRADE)
     * @param {NewCmConditionalOrderRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    newCmConditionalOrder(requestParameters: NewCmConditionalOrderRequest): Promise<RestApiResponse<NewCmConditionalOrderResponse>>;
    /**
     * Place new CM order
     *
     * 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.
     *
     * Weight: 1
     *
     * @summary New CM Order(TRADE)
     * @param {NewCmOrderRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    newCmOrder(requestParameters: NewCmOrderRequest): Promise<RestApiResponse<NewCmOrderResponse>>;
    /**
     * New Margin Order
     *
     * Weight: 1
     *
     * @summary New Margin Order(TRADE)
     * @param {NewMarginOrderRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    newMarginOrder(requestParameters: NewMarginOrderRequest): Promise<RestApiResponse<NewMarginOrderResponse>>;
    /**
     * Place new UM conditional order
     *
     * Order with type `STOP/TAKE_PROFIT`, parameter `timeInForce` can be sent ( default `GTC`).
     * Condition orders will be triggered when:
     * `STOP`, `STOP_MARKET`:
     * BUY: "MARK_PRICE"  >= `stopPrice`
     * SELL: "MARK_PRICE" <= `stopPrice`
     * `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`:
     * BUY: "MARK_PRICE" <= `stopPrice`
     * SELL: "MARK_PRICE" >= `stopPrice`
     * `TRAILING_STOP_MARKET`:
     * BUY: the lowest mark price after order placed `<= `activationPrice`, and the latest mark price >`= the lowest mark price * (1 + `callbackRate`)
     * SELL: the highest mark price after order placed >= `activationPrice`, and the latest mark price <= the highest mark 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 mark price.
     * SELL: `activationPrice` should be larger than latest mark price.
     * 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 /fapi/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`
     * `selfTradePreventionMode` is only effective when `timeInForce` set to `IOC` or `GTC` or `GTD`.
     * In extreme market conditions, timeInForce `GTD` order auto cancel time might be delayed comparing to `goodTillDate`
     *
     * Weight: 1
     *
     * @summary New UM Conditional Order (TRADE)
     * @param {NewUmConditionalOrderRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    newUmConditionalOrder(requestParameters: NewUmConditionalOrderRequest): Promise<RestApiResponse<NewUmConditionalOrderResponse>>;
    /**
     * Place new UM order
     *
     * 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.
     * `selfTradePreventionMode` is only effective when `timeInForce` set to `IOC` or `GTC` or `GTD`.
     * In extreme market conditions, timeInForce `GTD` order auto cancel time might be delayed comparing to `goodTillDate`
     *
     * Weight: 1
     *
     * @summary New UM Order (TRADE)
     * @param {NewUmOrderRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    newUmOrder(requestParameters: NewUmOrderRequest): Promise<RestApiResponse<NewUmOrderResponse>>;
    /**
     * Query All CM Conditional Orders
     *
     * These orders will not be found:
     * order strategyStatus is `CANCELED` or `EXPIRED`, **AND**
     * order has NO filled trade, **AND**
     * created time + 7 days < current time
     * The query time period must be less than 7 days( default as the recent 7 days).
     *
     * Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
     *
     * @summary Query All CM Conditional Orders(USER_DATA)
     * @param {QueryAllCmConditionalOrdersRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryAllCmConditionalOrders(requestParameters?: QueryAllCmConditionalOrdersRequest): Promise<RestApiResponse<QueryAllCmConditionalOrdersResponse>>;
    /**
     * Get all account CM orders; active, canceled, or filled.
     *
     * Either `symbol` or `pair` must be sent.
     * If `orderId` is set, it will get orders >= that orderId. Otherwise most recent orders are returned.
     * 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
     *
     * Weight: 20 with symbol, 40 with pair
     *
     * @summary Query All CM Orders (USER_DATA)
     * @param {QueryAllCmOrdersRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryAllCmOrders(requestParameters: QueryAllCmOrdersRequest): Promise<RestApiResponse<QueryAllCmOrdersResponse>>;
    /**
     * Get all open conditional orders on a symbol. **Careful** when accessing this with no symbol.
     *
     * If the symbol is not sent, orders for all symbols will be returned in an array.
     *
     * Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
     *
     * @summary Query All Current CM Open Conditional Orders (USER_DATA)
     * @param {QueryAllCurrentCmOpenConditionalOrdersRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryAllCurrentCmOpenConditionalOrders(requestParameters?: QueryAllCurrentCmOpenConditionalOrdersRequest): Promise<RestApiResponse<QueryAllCurrentCmOpenConditionalOrdersResponse>>;
    /**
     * Get all open orders on a symbol.
     *
     * If the symbol is not sent, orders for all symbols will be returned in an array.
     *
     * Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
     * Careful when accessing this with no symbol.
     *
     * @summary Query All Current CM Open Orders(USER_DATA)
     * @param {QueryAllCurrentCmOpenOrdersRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryAllCurrentCmOpenOrders(requestParameters?: QueryAllCurrentCmOpenOrdersRequest): Promise<RestApiResponse<QueryAllCurrentCmOpenOrdersResponse>>;
    /**
     * Get all open conditional orders on a symbol.
     *
     * If the symbol is not sent, orders for all symbols will be returned in an array.
     *
     * Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
     * Careful when accessing this with no symbol.
     *
     * @summary Query All Current UM Open Conditional Orders(USER_DATA)
     * @param {QueryAllCurrentUmOpenConditionalOrdersRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryAllCurrentUmOpenConditionalOrders(requestParameters?: QueryAllCurrentUmOpenConditionalOrdersRequest): Promise<RestApiResponse<QueryAllCurrentUmOpenConditionalOrdersResponse>>;
    /**
     * Get all open orders on a symbol.
     *
     *
     * If the symbol is not sent, orders for all symbols will be returned in an array.
     *
     * Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
     *
     * @summary Query All Current UM Open Orders(USER_DATA)
     * @param {QueryAllCurrentUmOpenOrdersRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryAllCurrentUmOpenOrders(requestParameters?: QueryAllCurrentUmOpenOrdersRequest): Promise<RestApiResponse<QueryAllCurrentUmOpenOrdersResponse>>;
    /**
     * Query All Margin Account Orders
     *
     * Weight: 100
     *
     * @summary Query All Margin Account Orders (USER_DATA)
     * @param {QueryAllMarginAccountOrdersRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryAllMarginAccountOrders(requestParameters: QueryAllMarginAccountOrdersRequest): Promise<RestApiResponse<QueryAllMarginAccountOrdersResponse>>;
    /**
     * Query All UM Conditional Orders
     *
     * These orders will not be found:
     * order strategyStatus is `CANCELED` or `EXPIRED`, **AND**
     * order has NO filled trade, **AND**
     * created time + 7 days < current time
     * The query time period must be less than 7 days( default as the recent 7 days).
     *
     * Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
     *
     * @summary Query All UM Conditional Orders(USER_DATA)
     * @param {QueryAllUmConditionalOrdersRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryAllUmConditionalOrders(requestParameters?: QueryAllUmConditionalOrdersRequest): Promise<RestApiResponse<QueryAllUmConditionalOrdersResponse>>;
    /**
     * Get all account UM 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
     *
     * 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: 5
     *
     * @summary Query All UM Orders(USER_DATA)
     * @param {QueryAllUmOrdersRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryAllUmOrders(requestParameters: QueryAllUmOrdersRequest): Promise<RestApiResponse<QueryAllUmOrdersResponse>>;
    /**
     * Query CM Conditional Order History
     *
     *
     * Either `strategyId` or `newClientStrategyId` must be sent.
     * `NEW` orders will not be found.
     * These orders will not be found:
     * order status is `CANCELED` or `EXPIRED`, **AND**
     * order has NO filled trade, **AND**
     * created time + 7 days < current time
     *
     * Weight: 1
     *
     * @summary Query CM Conditional Order History(USER_DATA)
     * @param {QueryCmConditionalOrderHistoryRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryCmConditionalOrderHistory(requestParameters: QueryCmConditionalOrderHistoryRequest): Promise<RestApiResponse<QueryCmConditionalOrderHistoryResponse>>;
    /**
     * Get order modification history
     *
     * Either `orderId` or `origClientOrderId` must be sent, and the `orderId` will prevail if both are sent.
     *
     * Weight: 1
     *
     * @summary Query CM Modify Order History(TRADE)
     * @param {QueryCmModifyOrderHistoryRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryCmModifyOrderHistory(requestParameters: QueryCmModifyOrderHistoryRequest): Promise<RestApiResponse<QueryCmModifyOrderHistoryResponse>>;
    /**
     * Check an CM order's status.
     *
     * Either `orderId` or `origClientOrderId` must be sent.
     * 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
     *
     * Weight: 1
     *
     * @summary Query CM Order(USER_DATA)
     * @param {QueryCmOrderRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryCmOrder(requestParameters: QueryCmOrderRequest): Promise<RestApiResponse<QueryCmOrderResponse>>;
    /**
     * Query Current CM Open Conditional Order
     *
     * Either `strategyId` or `newClientStrategyId` must be sent.
     * If the queried order has been triggered, cancelled or expired, the error message "Order does not exist" will be returned.
     *
     * Weight: 1
     *
     * @summary Query Current CM Open Conditional Order(USER_DATA)
     * @param {QueryCurrentCmOpenConditionalOrderRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryCurrentCmOpenConditionalOrder(requestParameters: QueryCurrentCmOpenConditionalOrderRequest): Promise<RestApiResponse<QueryCurrentCmOpenConditionalOrderResponse>>;
    /**
     * Query current CM 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 CM Open Order (USER_DATA)
     * @param {QueryCurrentCmOpenOrderRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryCurrentCmOpenOrder(requestParameters: QueryCurrentCmOpenOrderRequest): Promise<RestApiResponse<QueryCurrentCmOpenOrderResponse>>;
    /**
     * Query Current Margin Open Order
     *
     * Weight: 5
     *
     * @summary Query Current Margin Open Order (USER_DATA)
     * @param {QueryCurrentMarginOpenOrderRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryCurrentMarginOpenOrder(requestParameters: QueryCurrentMarginOpenOrderRequest): Promise<RestApiResponse<QueryCurrentMarginOpenOrderResponse>>;
    /**
     * Query Current UM Open Conditional Order
     *
     * Either `strategyId` or `newClientStrategyId` must be sent.
     * If the queried order has been `CANCELED`, `TRIGGERED`或`EXPIRED`, the error message "Order does not exist" will be returned.
     *
     * Weight: 1
     *
     * @summary Query Current UM Open Conditional Order(USER_DATA)
     * @param {QueryCurrentUmOpenConditionalOrderRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryCurrentUmOpenConditionalOrder(requestParameters: QueryCurrentUmOpenConditionalOrderRequest): Promise<RestApiResponse<QueryCurrentUmOpenConditionalOrderResponse>>;
    /**
     * Query current UM 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 UM Open Order(USER_DATA)
     * @param {QueryCurrentUmOpenOrderRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryCurrentUmOpenOrder(requestParameters: QueryCurrentUmOpenOrderRequest): Promise<RestApiResponse<QueryCurrentUmOpenOrderResponse>>;
    /**
     * Query Margin Account Order
     *
     * Weight: 10
     *
     * @summary Query Margin Account Order (USER_DATA)
     * @param {QueryMarginAccountOrderRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryMarginAccountOrder(requestParameters: QueryMarginAccountOrderRequest): Promise<RestApiResponse<QueryMarginAccountOrderResponse>>;
    /**
     * Query all OCO for a specific margin account based on provided optional parameters
     *
     * Weight: 100
     *
     * @summary Query Margin Account\'s all OCO (USER_DATA)
     * @param {QueryMarginAccountsAllOcoRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryMarginAccountsAllOco(requestParameters?: QueryMarginAccountsAllOcoRequest): Promise<RestApiResponse<QueryMarginAccountsAllOcoResponse>>;
    /**
     * Retrieves a specific OCO based on provided optional parameters
     *
     * Weight: 5
     *
     * @summary Query Margin Account\'s OCO (USER_DATA)
     * @param {QueryMarginAccountsOcoRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryMarginAccountsOco(requestParameters?: QueryMarginAccountsOcoRequest): Promise<RestApiResponse<QueryMarginAccountsOcoResponse>>;
    /**
     * Query Margin Account's Open OCO
     *
     * Weight: 5
     *
     * @summary Query Margin Account\'s Open OCO (USER_DATA)
     * @param {QueryMarginAccountsOpenOcoRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryMarginAccountsOpenOco(requestParameters?: QueryMarginAccountsOpenOcoRequest): Promise<RestApiResponse<QueryMarginAccountsOpenOcoResponse>>;
    /**
     * Query UM Conditional Order History
     *
     * Either `strategyId` or `newClientStrategyId` must be sent.
     * `NEW` orders will not be found.
     * These orders will not be found:
     * order status is `CANCELED` or `EXPIRED`, **AND**
     * order has NO filled trade, **AND**
     * created time + 7 days < current time
     *
     * Weight: 1
     *
     * @summary Query UM Conditional Order History(USER_DATA)
     * @param {QueryUmConditionalOrderHistoryRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryUmConditionalOrderHistory(requestParameters: QueryUmConditionalOrderHistoryRequest): Promise<RestApiResponse<QueryUmConditionalOrderHistoryResponse>>;
    /**
     * Get order modification history
     *
     * Either `orderId` or `origClientOrderId` must be sent, and the `orderId` will prevail if both are sent.
     *
     * Weight: 1
     *
     * @summary Query UM Modify Order History(TRADE)
     * @param {QueryUmModifyOrderHistoryRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryUmModifyOrderHistory(requestParameters: QueryUmModifyOrderHistoryRequest): Promise<RestApiResponse<QueryUmModifyOrderHistoryResponse>>;
    /**
     * Check an UM order's status.
     *
     * These orders will not be found:
     * Either `orderId` or `origClientOrderId` must be sent.
     * order status is `CANCELED` or `EXPIRED`, **AND**
     * order has NO filled trade, **AND**
     * created time + 3 days < current time
     *
     * Weight: 1
     *
     * @summary Query UM Order (USER_DATA)
     * @param {QueryUmOrderRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryUmOrder(requestParameters: QueryUmOrderRequest): Promise<RestApiResponse<QueryUmOrderResponse>>;
    /**
     * Query User's CM Force Orders
     *
     * If "autoCloseType" is not sent, orders with both of the types will be returned
     * If "startTime" is not sent, data within 7 days before "endTime" can be queried
     *
     * Weight: 20 with symbol, 50 without symbol
     *
     * @summary Query User\'s CM Force Orders(USER_DATA)
     * @param {QueryUsersCmForceOrdersRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryUsersCmForceOrders(requestParameters?: QueryUsersCmForceOrdersRequest): Promise<RestApiResponse<QueryUsersCmForceOrdersResponse>>;
    /**
     * Query user's margin force orders
     *
     * Weight: 1
     *
     * @summary Query User\'s Margin Force Orders(USER_DATA)
     * @param {QueryUsersMarginForceOrdersRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryUsersMarginForceOrders(requestParameters?: QueryUsersMarginForceOrdersRequest): Promise<RestApiResponse<QueryUsersMarginForceOrdersResponse>>;
    /**
     * Query User's UM Force Orders
     *
     * If `autoCloseType` is not sent, orders with both of the types will be returned
     * If `startTime` is not sent, data within 7 days before `endTime` can be queried
     *
     * Weight: 20 with symbol, 50 without symbol
     *
     * @summary Query User\'s UM Force Orders (USER_DATA)
     * @param {QueryUsersUmForceOrdersRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    queryUsersUmForceOrders(requestParameters?: QueryUsersUmForceOrdersRequest): Promise<RestApiResponse<QueryUsersUmForceOrdersResponse>>;
    /**
     * Change user's BNB Fee Discount for UM Futures (Fee Discount On or Fee Discount Off ) on ***EVERY symbol***
     *
     *
     * The BNB would not be collected from UM-PM account to the Portfolio Margin account.
     *
     * Weight: 1
     *
     * @summary Toggle BNB Burn On UM Futures Trade (TRADE)
     * @param {ToggleBnbBurnOnUmFuturesTradeRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    toggleBnbBurnOnUmFuturesTrade(requestParameters: ToggleBnbBurnOnUmFuturesTradeRequest): Promise<RestApiResponse<ToggleBnbBurnOnUmFuturesTradeResponse>>;
    /**
     * Get trades for a specific account and UM symbol.
     *
     *
     * If `startTime` and `endTime` are both not sent, then the last '24 hours' data will be returned.
     * The time between `startTime` and `endTime` cannot be longer than 24 hours.
     * The parameter `fromId` cannot be sent with `startTime` or `endTime`.
     *
     * Weight: 5
     *
     * @summary UM Account Trade List(USER_DATA)
     * @param {UmAccountTradeListRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    umAccountTradeList(requestParameters: UmAccountTradeListRequest): Promise<RestApiResponse<UmAccountTradeListResponse>>;
    /**
     * Query UM 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 UM Position ADL Quantile Estimation(USER_DATA)
     * @param {UmPositionAdlQuantileEstimationRequest} requestParameters Request parameters.
     *
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApiInterface
     */
    umPositionAdlQuantileEstimation(requestParameters?: UmPositionAdlQuantileEstimationRequest): Promise<RestApiResponse<UmPositionAdlQuantileEstimationResponse>>;
}
/**
 * Request parameters for cancelAllCmOpenConditionalOrders operation in TradeApi.
 * @interface CancelAllCmOpenConditionalOrdersRequest
 */
interface CancelAllCmOpenConditionalOrdersRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiCancelAllCmOpenConditionalOrders
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiCancelAllCmOpenConditionalOrders
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for cancelAllCmOpenOrders operation in TradeApi.
 * @interface CancelAllCmOpenOrdersRequest
 */
interface CancelAllCmOpenOrdersRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiCancelAllCmOpenOrders
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiCancelAllCmOpenOrders
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for cancelAllUmOpenConditionalOrders operation in TradeApi.
 * @interface CancelAllUmOpenConditionalOrdersRequest
 */
interface CancelAllUmOpenConditionalOrdersRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiCancelAllUmOpenConditionalOrders
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiCancelAllUmOpenConditionalOrders
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for cancelAllUmOpenOrders operation in TradeApi.
 * @interface CancelAllUmOpenOrdersRequest
 */
interface CancelAllUmOpenOrdersRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiCancelAllUmOpenOrders
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiCancelAllUmOpenOrders
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for cancelCmConditionalOrder operation in TradeApi.
 * @interface CancelCmConditionalOrderRequest
 */
interface CancelCmConditionalOrderRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiCancelCmConditionalOrder
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiCancelCmConditionalOrder
     */
    readonly strategyId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiCancelCmConditionalOrder
     */
    readonly newClientStrategyId?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiCancelCmConditionalOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for cancelCmOrder operation in TradeApi.
 * @interface CancelCmOrderRequest
 */
interface CancelCmOrderRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiCancelCmOrder
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiCancelCmOrder
     */
    readonly orderId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiCancelCmOrder
     */
    readonly origClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiCancelCmOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for cancelMarginAccountAllOpenOrdersOnASymbol operation in TradeApi.
 * @interface CancelMarginAccountAllOpenOrdersOnASymbolRequest
 */
interface CancelMarginAccountAllOpenOrdersOnASymbolRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiCancelMarginAccountAllOpenOrdersOnASymbol
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiCancelMarginAccountAllOpenOrdersOnASymbol
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for cancelMarginAccountOcoOrders operation in TradeApi.
 * @interface CancelMarginAccountOcoOrdersRequest
 */
interface CancelMarginAccountOcoOrdersRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiCancelMarginAccountOcoOrders
     */
    readonly symbol: string;
    /**
     * Either `orderListId` or `listClientOrderId` must be provided
     * @type {number}
     * @memberof TradeApiCancelMarginAccountOcoOrders
     */
    readonly orderListId?: number;
    /**
     * Either `orderListId` or `listClientOrderId` must be provided
     * @type {string}
     * @memberof TradeApiCancelMarginAccountOcoOrders
     */
    readonly listClientOrderId?: string;
    /**
     * Used to uniquely identify this cancel. Automatically generated by default
     * @type {string}
     * @memberof TradeApiCancelMarginAccountOcoOrders
     */
    readonly newClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiCancelMarginAccountOcoOrders
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for cancelMarginAccountOrder operation in TradeApi.
 * @interface CancelMarginAccountOrderRequest
 */
interface CancelMarginAccountOrderRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiCancelMarginAccountOrder
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiCancelMarginAccountOrder
     */
    readonly orderId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiCancelMarginAccountOrder
     */
    readonly origClientOrderId?: string;
    /**
     * Used to uniquely identify this cancel. Automatically generated by default
     * @type {string}
     * @memberof TradeApiCancelMarginAccountOrder
     */
    readonly newClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiCancelMarginAccountOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for cancelUmConditionalOrder operation in TradeApi.
 * @interface CancelUmConditionalOrderRequest
 */
interface CancelUmConditionalOrderRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiCancelUmConditionalOrder
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiCancelUmConditionalOrder
     */
    readonly strategyId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiCancelUmConditionalOrder
     */
    readonly newClientStrategyId?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiCancelUmConditionalOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for cancelUmOrder operation in TradeApi.
 * @interface CancelUmOrderRequest
 */
interface CancelUmOrderRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiCancelUmOrder
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiCancelUmOrder
     */
    readonly orderId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiCancelUmOrder
     */
    readonly origClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiCancelUmOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for cmAccountTradeList operation in TradeApi.
 * @interface CmAccountTradeListRequest
 */
interface CmAccountTradeListRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiCmAccountTradeList
     */
    readonly symbol?: string;
    /**
     *
     * @type {string}
     * @memberof TradeApiCmAccountTradeList
     */
    readonly pair?: string;
    /**
     * Timestamp in ms to get funding from INCLUSIVE.
     * @type {number}
     * @memberof TradeApiCmAccountTradeList
     */
    readonly startTime?: number;
    /**
     * Timestamp in ms to get funding until INCLUSIVE.
     * @type {number}
     * @memberof TradeApiCmAccountTradeList
     */
    readonly endTime?: number;
    /**
     * Trade id to fetch from. Default gets most recent trades.
     * @type {number}
     * @memberof TradeApiCmAccountTradeList
     */
    readonly fromId?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof TradeApiCmAccountTradeList
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiCmAccountTradeList
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for cmPositionAdlQuantileEstimation operation in TradeApi.
 * @interface CmPositionAdlQuantileEstimationRequest
 */
interface CmPositionAdlQuantileEstimationRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiCmPositionAdlQuantileEstimation
     */
    readonly symbol?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiCmPositionAdlQuantileEstimation
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for getUmFuturesBnbBurnStatus operation in TradeApi.
 * @interface GetUmFuturesBnbBurnStatusRequest
 */
interface GetUmFuturesBnbBurnStatusRequest {
    /**
     *
     * @type {number}
     * @memberof TradeApiGetUmFuturesBnbBurnStatus
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for marginAccountBorrow operation in TradeApi.
 * @interface MarginAccountBorrowRequest
 */
interface MarginAccountBorrowRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiMarginAccountBorrow
     */
    readonly asset: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiMarginAccountBorrow
     */
    readonly amount: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiMarginAccountBorrow
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for marginAccountNewOco operation in TradeApi.
 * @interface MarginAccountNewOcoRequest
 */
interface MarginAccountNewOcoRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiMarginAccountNewOco
     */
    readonly symbol: string;
    /**
     *
     * @type {'BUY' | 'SELL'}
     * @memberof TradeApiMarginAccountNewOco
     */
    readonly side: MarginAccountNewOcoSideEnum;
    /**
     * Order quantity
     * @type {number}
     * @memberof TradeApiMarginAccountNewOco
     */
    readonly quantity: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiMarginAccountNewOco
     */
    readonly price: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiMarginAccountNewOco
     */
    readonly stopPrice: number;
    /**
     * Either `orderListId` or `listClientOrderId` must be provided
     * @type {string}
     * @memberof TradeApiMarginAccountNewOco
     */
    readonly listClientOrderId?: string;
    /**
     * A unique Id for the limit order
     * @type {string}
     * @memberof TradeApiMarginAccountNewOco
     */
    readonly limitClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiMarginAccountNewOco
     */
    readonly limitIcebergQty?: number;
    /**
     * A unique Id for the stop loss/stop loss limit leg
     * @type {string}
     * @memberof TradeApiMarginAccountNewOco
     */
    readonly stopClientOrderId?: string;
    /**
     * If provided, stopLimitTimeInForce is required.
     * @type {number}
     * @memberof TradeApiMarginAccountNewOco
     */
    readonly stopLimitPrice?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiMarginAccountNewOco
     */
    readonly stopIcebergQty?: number;
    /**
     * Valid values are `GTC/FOK/IOC`
     * @type {'GTC' | 'IOC' | 'FOK'}
     * @memberof TradeApiMarginAccountNewOco
     */
    readonly stopLimitTimeInForce?: MarginAccountNewOcoStopLimitTimeInForceEnum;
    /**
     * "ACK", "RESULT", default "ACK"
     * @type {'ACK' | 'RESULT'}
     * @memberof TradeApiMarginAccountNewOco
     */
    readonly newOrderRespType?: MarginAccountNewOcoNewOrderRespTypeEnum;
    /**
     * NO_SIDE_EFFECT, MARGIN_BUY, AUTO_REPAY; default NO_SIDE_EFFECT.
     * @type {'NO_SIDE_EFFECT' | 'MARGIN_BUY' | 'AUTO_REPAY'}
     * @memberof TradeApiMarginAccountNewOco
     */
    readonly sideEffectType?: MarginAccountNewOcoSideEffectTypeEnum;
    /**
     *
     * @type {number}
     * @memberof TradeApiMarginAccountNewOco
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for marginAccountRepay operation in TradeApi.
 * @interface MarginAccountRepayRequest
 */
interface MarginAccountRepayRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiMarginAccountRepay
     */
    readonly asset: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiMarginAccountRepay
     */
    readonly amount: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiMarginAccountRepay
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for marginAccountRepayDebt operation in TradeApi.
 * @interface MarginAccountRepayDebtRequest
 */
interface MarginAccountRepayDebtRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiMarginAccountRepayDebt
     */
    readonly asset: string;
    /**
     *
     * @type {string}
     * @memberof TradeApiMarginAccountRepayDebt
     */
    readonly amount?: string;
    /**
     * Specific asset list to repay debt; Can be added in batch, separated by commas
     * @type {string}
     * @memberof TradeApiMarginAccountRepayDebt
     */
    readonly specifyRepayAssets?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiMarginAccountRepayDebt
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for marginAccountTradeList operation in TradeApi.
 * @interface MarginAccountTradeListRequest
 */
interface MarginAccountTradeListRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiMarginAccountTradeList
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiMarginAccountTradeList
     */
    readonly orderId?: number;
    /**
     * Timestamp in ms to get funding from INCLUSIVE.
     * @type {number}
     * @memberof TradeApiMarginAccountTradeList
     */
    readonly startTime?: number;
    /**
     * Timestamp in ms to get funding until INCLUSIVE.
     * @type {number}
     * @memberof TradeApiMarginAccountTradeList
     */
    readonly endTime?: number;
    /**
     * Trade id to fetch from. Default gets most recent trades.
     * @type {number}
     * @memberof TradeApiMarginAccountTradeList
     */
    readonly fromId?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof TradeApiMarginAccountTradeList
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiMarginAccountTradeList
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for modifyCmOrder operation in TradeApi.
 * @interface ModifyCmOrderRequest
 */
interface ModifyCmOrderRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiModifyCmOrder
     */
    readonly symbol: string;
    /**
     *
     * @type {'BUY' | 'SELL'}
     * @memberof TradeApiModifyCmOrder
     */
    readonly side: ModifyCmOrderSideEnum;
    /**
     * Order quantity
     * @type {number}
     * @memberof TradeApiModifyCmOrder
     */
    readonly quantity: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiModifyCmOrder
     */
    readonly price: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiModifyCmOrder
     */
    readonly orderId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiModifyCmOrder
     */
    readonly origClientOrderId?: string;
    /**
     * 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 TradeApiModifyCmOrder
     */
    readonly priceMatch?: ModifyCmOrderPriceMatchEnum;
    /**
     *
     * @type {number}
     * @memberof TradeApiModifyCmOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for modifyUmOrder operation in TradeApi.
 * @interface ModifyUmOrderRequest
 */
interface ModifyUmOrderRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiModifyUmOrder
     */
    readonly symbol: string;
    /**
     *
     * @type {'BUY' | 'SELL'}
     * @memberof TradeApiModifyUmOrder
     */
    readonly side: ModifyUmOrderSideEnum;
    /**
     * Order quantity
     * @type {number}
     * @memberof TradeApiModifyUmOrder
     */
    readonly quantity: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiModifyUmOrder
     */
    readonly price: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiModifyUmOrder
     */
    readonly orderId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiModifyUmOrder
     */
    readonly origClientOrderId?: string;
    /**
     * 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 TradeApiModifyUmOrder
     */
    readonly priceMatch?: ModifyUmOrderPriceMatchEnum;
    /**
     *
     * @type {number}
     * @memberof TradeApiModifyUmOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for newCmConditionalOrder operation in TradeApi.
 * @interface NewCmConditionalOrderRequest
 */
interface NewCmConditionalOrderRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiNewCmConditionalOrder
     */
    readonly symbol: string;
    /**
     *
     * @type {'BUY' | 'SELL'}
     * @memberof TradeApiNewCmConditionalOrder
     */
    readonly side: NewCmConditionalOrderSideEnum;
    /**
     * "STOP", "STOP_MARKET", "TAKE_PROFIT", "TAKE_PROFIT_MARKET", and "TRAILING_STOP_MARKET"
     * @type {'STOP' | 'STOP_MARKET' | 'TAKE_PROFIT' | 'TAKE_PROFIT_MARKET' | 'TRAILING_STOP_MARKET'}
     * @memberof TradeApiNewCmConditionalOrder
     */
    readonly strategyType: NewCmConditionalOrderStrategyTypeEnum;
    /**
     * Default `BOTH` for One-way Mode ; `LONG` or `SHORT` for Hedge Mode. It must be sent in Hedge Mode.
     * @type {'BOTH' | 'LONG' | 'SHORT'}
     * @memberof TradeApiNewCmConditionalOrder
     */
    readonly positionSide?: NewCmConditionalOrderPositionSideEnum;
    /**
     *
     * @type {'GTC' | 'IOC' | 'FOK' | 'GTX'}
     * @memberof TradeApiNewCmConditionalOrder
     */
    readonly timeInForce?: NewCmConditionalOrderTimeInForceEnum;
    /**
     *
     * @type {number}
     * @memberof TradeApiNewCmConditionalOrder
     */
    readonly quantity?: number;
    /**
     * "true" or "false". default "false". Cannot be sent in Hedge Mode .
     * @type {string}
     * @memberof TradeApiNewCmConditionalOrder
     */
    readonly reduceOnly?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiNewCmConditionalOrder
     */
    readonly price?: number;
    /**
     * stopPrice triggered by: "MARK_PRICE", "CONTRACT_PRICE". Default "CONTRACT_PRICE"
     * @type {'MARK_PRICE'}
     * @memberof TradeApiNewCmConditionalOrder
     */
    readonly workingType?: NewCmConditionalOrderWorkingTypeEnum;
    /**
     * "TRUE" or "FALSE", default "FALSE". Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders
     * @type {string}
     * @memberof TradeApiNewCmConditionalOrder
     */
    readonly priceProtect?: string;
    /**
     *
     * @type {string}
     * @memberof TradeApiNewCmConditionalOrder
     */
    readonly newClientStrategyId?: string;
    /**
     * Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders.
     * @type {number}
     * @memberof TradeApiNewCmConditionalOrder
     */
    readonly stopPrice?: number;
    /**
     * Used with `TRAILING_STOP_MARKET` orders, default as the mark price
     * @type {number}
     * @memberof TradeApiNewCmConditionalOrder
     */
    readonly activationPrice?: number;
    /**
     * Used with `TRAILING_STOP_MARKET` orders, min 0.1, max 5 where 1 for 1%
     * @type {number}
     * @memberof TradeApiNewCmConditionalOrder
     */
    readonly callbackRate?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiNewCmConditionalOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for newCmOrder operation in TradeApi.
 * @interface NewCmOrderRequest
 */
interface NewCmOrderRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiNewCmOrder
     */
    readonly symbol: string;
    /**
     *
     * @type {'BUY' | 'SELL'}
     * @memberof TradeApiNewCmOrder
     */
    readonly side: NewCmOrderSideEnum;
    /**
     * `LIMIT`, `MARKET`
     * @type {'LIMIT' | 'MARKET'}
     * @memberof TradeApiNewCmOrder
     */
    readonly type: NewCmOrderTypeEnum;
    /**
     * Default `BOTH` for One-way Mode ; `LONG` or `SHORT` for Hedge Mode. It must be sent in Hedge Mode.
     * @type {'BOTH' | 'LONG' | 'SHORT'}
     * @memberof TradeApiNewCmOrder
     */
    readonly positionSide?: NewCmOrderPositionSideEnum;
    /**
     *
     * @type {'GTC' | 'IOC' | 'FOK' | 'GTX'}
     * @memberof TradeApiNewCmOrder
     */
    readonly timeInForce?: NewCmOrderTimeInForceEnum;
    /**
     *
     * @type {number}
     * @memberof TradeApiNewCmOrder
     */
    readonly quantity?: number;
    /**
     * "true" or "false". default "false". Cannot be sent in Hedge Mode .
     * @type {string}
     * @memberof TradeApiNewCmOrder
     */
    readonly reduceOnly?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiNewCmOrder
     */
    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 TradeApiNewCmOrder
     */
    readonly priceMatch?: NewCmOrderPriceMatchEnum;
    /**
     * Used to uniquely identify this cancel. Automatically generated by default
     * @type {string}
     * @memberof TradeApiNewCmOrder
     */
    readonly newClientOrderId?: string;
    /**
     * "ACK", "RESULT", default "ACK"
     * @type {'ACK' | 'RESULT'}
     * @memberof TradeApiNewCmOrder
     */
    readonly newOrderRespType?: NewCmOrderNewOrderRespTypeEnum;
    /**
     *
     * @type {number}
     * @memberof TradeApiNewCmOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for newMarginOrder operation in TradeApi.
 * @interface NewMarginOrderRequest
 */
interface NewMarginOrderRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiNewMarginOrder
     */
    readonly symbol: string;
    /**
     *
     * @type {'BUY' | 'SELL'}
     * @memberof TradeApiNewMarginOrder
     */
    readonly side: NewMarginOrderSideEnum;
    /**
     * `LIMIT`, `MARKET`
     * @type {'LIMIT' | 'MARKET'}
     * @memberof TradeApiNewMarginOrder
     */
    readonly type: NewMarginOrderTypeEnum;
    /**
     *
     * @type {number}
     * @memberof TradeApiNewMarginOrder
     */
    readonly quantity?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiNewMarginOrder
     */
    readonly quoteOrderQty?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiNewMarginOrder
     */
    readonly price?: number;
    /**
     * Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders.
     * @type {number}
     * @memberof TradeApiNewMarginOrder
     */
    readonly stopPrice?: number;
    /**
     * Used to uniquely identify this cancel. Automatically generated by default
     * @type {string}
     * @memberof TradeApiNewMarginOrder
     */
    readonly newClientOrderId?: string;
    /**
     * "ACK", "RESULT", default "ACK"
     * @type {'ACK' | 'RESULT'}
     * @memberof TradeApiNewMarginOrder
     */
    readonly newOrderRespType?: NewMarginOrderNewOrderRespTypeEnum;
    /**
     * Used with `LIMIT`, `STOP_LOSS_LIMIT`, and `TAKE_PROFIT_LIMIT` to create an iceberg order
     * @type {number}
     * @memberof TradeApiNewMarginOrder
     */
    readonly icebergQty?: number;
    /**
     * NO_SIDE_EFFECT, MARGIN_BUY, AUTO_REPAY; default NO_SIDE_EFFECT.
     * @type {'NO_SIDE_EFFECT' | 'MARGIN_BUY' | 'AUTO_REPAY'}
     * @memberof TradeApiNewMarginOrder
     */
    readonly sideEffectType?: NewMarginOrderSideEffectTypeEnum;
    /**
     *
     * @type {'GTC' | 'IOC' | 'FOK' | 'GTX'}
     * @memberof TradeApiNewMarginOrder
     */
    readonly timeInForce?: NewMarginOrderTimeInForceEnum;
    /**
     * `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
     * @type {'NONE' | 'EXPIRE_TAKER' | 'EXPIRE_BOTH' | 'EXPIRE_MAKER'}
     * @memberof TradeApiNewMarginOrder
     */
    readonly selfTradePreventionMode?: NewMarginOrderSelfTradePreventionModeEnum;
    /**
     * 只有在自动借款单或者自动借还单生效，true表示的是撤单后需要把订单产生的借款归还，默认为true
     * @type {boolean}
     * @memberof TradeApiNewMarginOrder
     */
    readonly autoRepayAtCancel?: boolean;
    /**
     *
     * @type {number}
     * @memberof TradeApiNewMarginOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for newUmConditionalOrder operation in TradeApi.
 * @interface NewUmConditionalOrderRequest
 */
interface NewUmConditionalOrderRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiNewUmConditionalOrder
     */
    readonly symbol: string;
    /**
     *
     * @type {'BUY' | 'SELL'}
     * @memberof TradeApiNewUmConditionalOrder
     */
    readonly side: NewUmConditionalOrderSideEnum;
    /**
     * "STOP", "STOP_MARKET", "TAKE_PROFIT", "TAKE_PROFIT_MARKET", and "TRAILING_STOP_MARKET"
     * @type {'STOP' | 'STOP_MARKET' | 'TAKE_PROFIT' | 'TAKE_PROFIT_MARKET' | 'TRAILING_STOP_MARKET'}
     * @memberof TradeApiNewUmConditionalOrder
     */
    readonly strategyType: NewUmConditionalOrderStrategyTypeEnum;
    /**
     * Default `BOTH` for One-way Mode ; `LONG` or `SHORT` for Hedge Mode. It must be sent in Hedge Mode.
     * @type {'BOTH' | 'LONG' | 'SHORT'}
     * @memberof TradeApiNewUmConditionalOrder
     */
    readonly positionSide?: NewUmConditionalOrderPositionSideEnum;
    /**
     *
     * @type {'GTC' | 'IOC' | 'FOK' | 'GTX'}
     * @memberof TradeApiNewUmConditionalOrder
     */
    readonly timeInForce?: NewUmConditionalOrderTimeInForceEnum;
    /**
     *
     * @type {number}
     * @memberof TradeApiNewUmConditionalOrder
     */
    readonly quantity?: number;
    /**
     * "true" or "false". default "false". Cannot be sent in Hedge Mode .
     * @type {string}
     * @memberof TradeApiNewUmConditionalOrder
     */
    readonly reduceOnly?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiNewUmConditionalOrder
     */
    readonly price?: number;
    /**
     * stopPrice triggered by: "MARK_PRICE", "CONTRACT_PRICE". Default "CONTRACT_PRICE"
     * @type {'MARK_PRICE'}
     * @memberof TradeApiNewUmConditionalOrder
     */
    readonly workingType?: NewUmConditionalOrderWorkingTypeEnum;
    /**
     * "TRUE" or "FALSE", default "FALSE". Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders
     * @type {string}
     * @memberof TradeApiNewUmConditionalOrder
     */
    readonly priceProtect?: string;
    /**
     *
     * @type {string}
     * @memberof TradeApiNewUmConditionalOrder
     */
    readonly newClientStrategyId?: string;
    /**
     * Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders.
     * @type {number}
     * @memberof TradeApiNewUmConditionalOrder
     */
    readonly stopPrice?: number;
    /**
     * Used with `TRAILING_STOP_MARKET` orders, default as the mark price
     * @type {number}
     * @memberof TradeApiNewUmConditionalOrder
     */
    readonly activationPrice?: number;
    /**
     * Used with `TRAILING_STOP_MARKET` orders, min 0.1, max 5 where 1 for 1%
     * @type {number}
     * @memberof TradeApiNewUmConditionalOrder
     */
    readonly callbackRate?: 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 TradeApiNewUmConditionalOrder
     */
    readonly priceMatch?: NewUmConditionalOrderPriceMatchEnum;
    /**
     * `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
     * @type {'NONE' | 'EXPIRE_TAKER' | 'EXPIRE_BOTH' | 'EXPIRE_MAKER'}
     * @memberof TradeApiNewUmConditionalOrder
     */
    readonly selfTradePreventionMode?: NewUmConditionalOrderSelfTradePreventionModeEnum;
    /**
     * order cancel time for timeInForce `GTD`, mandatory when `timeInforce` set to `GTD`; order the timestamp only retains second-level precision, ms part will be ignored; The goodTillDate timestamp must be greater than the current time plus 600 seconds and smaller than 253402300799000Mode. It must be sent in Hedge Mode.
     * @type {number}
     * @memberof TradeApiNewUmConditionalOrder
     */
    readonly goodTillDate?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiNewUmConditionalOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for newUmOrder operation in TradeApi.
 * @interface NewUmOrderRequest
 */
interface NewUmOrderRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiNewUmOrder
     */
    readonly symbol: string;
    /**
     *
     * @type {'BUY' | 'SELL'}
     * @memberof TradeApiNewUmOrder
     */
    readonly side: NewUmOrderSideEnum;
    /**
     * `LIMIT`, `MARKET`
     * @type {'LIMIT' | 'MARKET'}
     * @memberof TradeApiNewUmOrder
     */
    readonly type: NewUmOrderTypeEnum;
    /**
     * Default `BOTH` for One-way Mode ; `LONG` or `SHORT` for Hedge Mode. It must be sent in Hedge Mode.
     * @type {'BOTH' | 'LONG' | 'SHORT'}
     * @memberof TradeApiNewUmOrder
     */
    readonly positionSide?: NewUmOrderPositionSideEnum;
    /**
     *
     * @type {'GTC' | 'IOC' | 'FOK' | 'GTX'}
     * @memberof TradeApiNewUmOrder
     */
    readonly timeInForce?: NewUmOrderTimeInForceEnum;
    /**
     *
     * @type {number}
     * @memberof TradeApiNewUmOrder
     */
    readonly quantity?: number;
    /**
     * "true" or "false". default "false". Cannot be sent in Hedge Mode .
     * @type {string}
     * @memberof TradeApiNewUmOrder
     */
    readonly reduceOnly?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiNewUmOrder
     */
    readonly price?: number;
    /**
     * Used to uniquely identify this cancel. Automatically generated by default
     * @type {string}
     * @memberof TradeApiNewUmOrder
     */
    readonly newClientOrderId?: string;
    /**
     * "ACK", "RESULT", default "ACK"
     * @type {'ACK' | 'RESULT'}
     * @memberof TradeApiNewUmOrder
     */
    readonly newOrderRespType?: NewUmOrderNewOrderRespTypeEnum;
    /**
     * 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 TradeApiNewUmOrder
     */
    readonly priceMatch?: NewUmOrderPriceMatchEnum;
    /**
     * `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
     * @type {'NONE' | 'EXPIRE_TAKER' | 'EXPIRE_BOTH' | 'EXPIRE_MAKER'}
     * @memberof TradeApiNewUmOrder
     */
    readonly selfTradePreventionMode?: NewUmOrderSelfTradePreventionModeEnum;
    /**
     * order cancel time for timeInForce `GTD`, mandatory when `timeInforce` set to `GTD`; order the timestamp only retains second-level precision, ms part will be ignored; The goodTillDate timestamp must be greater than the current time plus 600 seconds and smaller than 253402300799000Mode. It must be sent in Hedge Mode.
     * @type {number}
     * @memberof TradeApiNewUmOrder
     */
    readonly goodTillDate?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiNewUmOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryAllCmConditionalOrders operation in TradeApi.
 * @interface QueryAllCmConditionalOrdersRequest
 */
interface QueryAllCmConditionalOrdersRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryAllCmConditionalOrders
     */
    readonly symbol?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryAllCmConditionalOrders
     */
    readonly strategyId?: number;
    /**
     * Timestamp in ms to get funding from INCLUSIVE.
     * @type {number}
     * @memberof TradeApiQueryAllCmConditionalOrders
     */
    readonly startTime?: number;
    /**
     * Timestamp in ms to get funding until INCLUSIVE.
     * @type {number}
     * @memberof TradeApiQueryAllCmConditionalOrders
     */
    readonly endTime?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof TradeApiQueryAllCmConditionalOrders
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryAllCmConditionalOrders
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryAllCmOrders operation in TradeApi.
 * @interface QueryAllCmOrdersRequest
 */
interface QueryAllCmOrdersRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryAllCmOrders
     */
    readonly symbol: string;
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryAllCmOrders
     */
    readonly pair?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryAllCmOrders
     */
    readonly orderId?: number;
    /**
     * Timestamp in ms to get funding from INCLUSIVE.
     * @type {number}
     * @memberof TradeApiQueryAllCmOrders
     */
    readonly startTime?: number;
    /**
     * Timestamp in ms to get funding until INCLUSIVE.
     * @type {number}
     * @memberof TradeApiQueryAllCmOrders
     */
    readonly endTime?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof TradeApiQueryAllCmOrders
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryAllCmOrders
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryAllCurrentCmOpenConditionalOrders operation in TradeApi.
 * @interface QueryAllCurrentCmOpenConditionalOrdersRequest
 */
interface QueryAllCurrentCmOpenConditionalOrdersRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryAllCurrentCmOpenConditionalOrders
     */
    readonly symbol?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryAllCurrentCmOpenConditionalOrders
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryAllCurrentCmOpenOrders operation in TradeApi.
 * @interface QueryAllCurrentCmOpenOrdersRequest
 */
interface QueryAllCurrentCmOpenOrdersRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryAllCurrentCmOpenOrders
     */
    readonly symbol?: string;
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryAllCurrentCmOpenOrders
     */
    readonly pair?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryAllCurrentCmOpenOrders
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryAllCurrentUmOpenConditionalOrders operation in TradeApi.
 * @interface QueryAllCurrentUmOpenConditionalOrdersRequest
 */
interface QueryAllCurrentUmOpenConditionalOrdersRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryAllCurrentUmOpenConditionalOrders
     */
    readonly symbol?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryAllCurrentUmOpenConditionalOrders
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryAllCurrentUmOpenOrders operation in TradeApi.
 * @interface QueryAllCurrentUmOpenOrdersRequest
 */
interface QueryAllCurrentUmOpenOrdersRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryAllCurrentUmOpenOrders
     */
    readonly symbol?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryAllCurrentUmOpenOrders
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryAllMarginAccountOrders operation in TradeApi.
 * @interface QueryAllMarginAccountOrdersRequest
 */
interface QueryAllMarginAccountOrdersRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryAllMarginAccountOrders
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryAllMarginAccountOrders
     */
    readonly orderId?: number;
    /**
     * Timestamp in ms to get funding from INCLUSIVE.
     * @type {number}
     * @memberof TradeApiQueryAllMarginAccountOrders
     */
    readonly startTime?: number;
    /**
     * Timestamp in ms to get funding until INCLUSIVE.
     * @type {number}
     * @memberof TradeApiQueryAllMarginAccountOrders
     */
    readonly endTime?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof TradeApiQueryAllMarginAccountOrders
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryAllMarginAccountOrders
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryAllUmConditionalOrders operation in TradeApi.
 * @interface QueryAllUmConditionalOrdersRequest
 */
interface QueryAllUmConditionalOrdersRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryAllUmConditionalOrders
     */
    readonly symbol?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryAllUmConditionalOrders
     */
    readonly strategyId?: number;
    /**
     * Timestamp in ms to get funding from INCLUSIVE.
     * @type {number}
     * @memberof TradeApiQueryAllUmConditionalOrders
     */
    readonly startTime?: number;
    /**
     * Timestamp in ms to get funding until INCLUSIVE.
     * @type {number}
     * @memberof TradeApiQueryAllUmConditionalOrders
     */
    readonly endTime?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof TradeApiQueryAllUmConditionalOrders
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryAllUmConditionalOrders
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryAllUmOrders operation in TradeApi.
 * @interface QueryAllUmOrdersRequest
 */
interface QueryAllUmOrdersRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryAllUmOrders
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryAllUmOrders
     */
    readonly orderId?: number;
    /**
     * Timestamp in ms to get funding from INCLUSIVE.
     * @type {number}
     * @memberof TradeApiQueryAllUmOrders
     */
    readonly startTime?: number;
    /**
     * Timestamp in ms to get funding until INCLUSIVE.
     * @type {number}
     * @memberof TradeApiQueryAllUmOrders
     */
    readonly endTime?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof TradeApiQueryAllUmOrders
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryAllUmOrders
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryCmConditionalOrderHistory operation in TradeApi.
 * @interface QueryCmConditionalOrderHistoryRequest
 */
interface QueryCmConditionalOrderHistoryRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryCmConditionalOrderHistory
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryCmConditionalOrderHistory
     */
    readonly strategyId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryCmConditionalOrderHistory
     */
    readonly newClientStrategyId?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryCmConditionalOrderHistory
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryCmModifyOrderHistory operation in TradeApi.
 * @interface QueryCmModifyOrderHistoryRequest
 */
interface QueryCmModifyOrderHistoryRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryCmModifyOrderHistory
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryCmModifyOrderHistory
     */
    readonly orderId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryCmModifyOrderHistory
     */
    readonly origClientOrderId?: string;
    /**
     * Timestamp in ms to get funding from INCLUSIVE.
     * @type {number}
     * @memberof TradeApiQueryCmModifyOrderHistory
     */
    readonly startTime?: number;
    /**
     * Timestamp in ms to get funding until INCLUSIVE.
     * @type {number}
     * @memberof TradeApiQueryCmModifyOrderHistory
     */
    readonly endTime?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof TradeApiQueryCmModifyOrderHistory
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryCmModifyOrderHistory
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryCmOrder operation in TradeApi.
 * @interface QueryCmOrderRequest
 */
interface QueryCmOrderRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryCmOrder
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryCmOrder
     */
    readonly orderId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryCmOrder
     */
    readonly origClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryCmOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryCurrentCmOpenConditionalOrder operation in TradeApi.
 * @interface QueryCurrentCmOpenConditionalOrderRequest
 */
interface QueryCurrentCmOpenConditionalOrderRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryCurrentCmOpenConditionalOrder
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryCurrentCmOpenConditionalOrder
     */
    readonly strategyId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryCurrentCmOpenConditionalOrder
     */
    readonly newClientStrategyId?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryCurrentCmOpenConditionalOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryCurrentCmOpenOrder operation in TradeApi.
 * @interface QueryCurrentCmOpenOrderRequest
 */
interface QueryCurrentCmOpenOrderRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryCurrentCmOpenOrder
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryCurrentCmOpenOrder
     */
    readonly orderId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryCurrentCmOpenOrder
     */
    readonly origClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryCurrentCmOpenOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryCurrentMarginOpenOrder operation in TradeApi.
 * @interface QueryCurrentMarginOpenOrderRequest
 */
interface QueryCurrentMarginOpenOrderRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryCurrentMarginOpenOrder
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryCurrentMarginOpenOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryCurrentUmOpenConditionalOrder operation in TradeApi.
 * @interface QueryCurrentUmOpenConditionalOrderRequest
 */
interface QueryCurrentUmOpenConditionalOrderRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryCurrentUmOpenConditionalOrder
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryCurrentUmOpenConditionalOrder
     */
    readonly strategyId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryCurrentUmOpenConditionalOrder
     */
    readonly newClientStrategyId?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryCurrentUmOpenConditionalOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryCurrentUmOpenOrder operation in TradeApi.
 * @interface QueryCurrentUmOpenOrderRequest
 */
interface QueryCurrentUmOpenOrderRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryCurrentUmOpenOrder
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryCurrentUmOpenOrder
     */
    readonly orderId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryCurrentUmOpenOrder
     */
    readonly origClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryCurrentUmOpenOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryMarginAccountOrder operation in TradeApi.
 * @interface QueryMarginAccountOrderRequest
 */
interface QueryMarginAccountOrderRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryMarginAccountOrder
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryMarginAccountOrder
     */
    readonly orderId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryMarginAccountOrder
     */
    readonly origClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryMarginAccountOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryMarginAccountsAllOco operation in TradeApi.
 * @interface QueryMarginAccountsAllOcoRequest
 */
interface QueryMarginAccountsAllOcoRequest {
    /**
     * Trade id to fetch from. Default gets most recent trades.
     * @type {number}
     * @memberof TradeApiQueryMarginAccountsAllOco
     */
    readonly fromId?: number;
    /**
     * Timestamp in ms to get funding from INCLUSIVE.
     * @type {number}
     * @memberof TradeApiQueryMarginAccountsAllOco
     */
    readonly startTime?: number;
    /**
     * Timestamp in ms to get funding until INCLUSIVE.
     * @type {number}
     * @memberof TradeApiQueryMarginAccountsAllOco
     */
    readonly endTime?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof TradeApiQueryMarginAccountsAllOco
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryMarginAccountsAllOco
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryMarginAccountsOco operation in TradeApi.
 * @interface QueryMarginAccountsOcoRequest
 */
interface QueryMarginAccountsOcoRequest {
    /**
     * Either `orderListId` or `listClientOrderId` must be provided
     * @type {number}
     * @memberof TradeApiQueryMarginAccountsOco
     */
    readonly orderListId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryMarginAccountsOco
     */
    readonly origClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryMarginAccountsOco
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryMarginAccountsOpenOco operation in TradeApi.
 * @interface QueryMarginAccountsOpenOcoRequest
 */
interface QueryMarginAccountsOpenOcoRequest {
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryMarginAccountsOpenOco
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryUmConditionalOrderHistory operation in TradeApi.
 * @interface QueryUmConditionalOrderHistoryRequest
 */
interface QueryUmConditionalOrderHistoryRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryUmConditionalOrderHistory
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryUmConditionalOrderHistory
     */
    readonly strategyId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryUmConditionalOrderHistory
     */
    readonly newClientStrategyId?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryUmConditionalOrderHistory
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryUmModifyOrderHistory operation in TradeApi.
 * @interface QueryUmModifyOrderHistoryRequest
 */
interface QueryUmModifyOrderHistoryRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryUmModifyOrderHistory
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryUmModifyOrderHistory
     */
    readonly orderId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryUmModifyOrderHistory
     */
    readonly origClientOrderId?: string;
    /**
     * Timestamp in ms to get funding from INCLUSIVE.
     * @type {number}
     * @memberof TradeApiQueryUmModifyOrderHistory
     */
    readonly startTime?: number;
    /**
     * Timestamp in ms to get funding until INCLUSIVE.
     * @type {number}
     * @memberof TradeApiQueryUmModifyOrderHistory
     */
    readonly endTime?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof TradeApiQueryUmModifyOrderHistory
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryUmModifyOrderHistory
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryUmOrder operation in TradeApi.
 * @interface QueryUmOrderRequest
 */
interface QueryUmOrderRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryUmOrder
     */
    readonly symbol: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryUmOrder
     */
    readonly orderId?: number;
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryUmOrder
     */
    readonly origClientOrderId?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryUmOrder
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryUsersCmForceOrders operation in TradeApi.
 * @interface QueryUsersCmForceOrdersRequest
 */
interface QueryUsersCmForceOrdersRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryUsersCmForceOrders
     */
    readonly symbol?: string;
    /**
     * `LIQUIDATION` for liquidation orders, `ADL` for ADL orders.
     * @type {'LIQUIDATION' | 'ADL'}
     * @memberof TradeApiQueryUsersCmForceOrders
     */
    readonly autoCloseType?: QueryUsersCmForceOrdersAutoCloseTypeEnum;
    /**
     * Timestamp in ms to get funding from INCLUSIVE.
     * @type {number}
     * @memberof TradeApiQueryUsersCmForceOrders
     */
    readonly startTime?: number;
    /**
     * Timestamp in ms to get funding until INCLUSIVE.
     * @type {number}
     * @memberof TradeApiQueryUsersCmForceOrders
     */
    readonly endTime?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof TradeApiQueryUsersCmForceOrders
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryUsersCmForceOrders
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryUsersMarginForceOrders operation in TradeApi.
 * @interface QueryUsersMarginForceOrdersRequest
 */
interface QueryUsersMarginForceOrdersRequest {
    /**
     * Timestamp in ms to get funding from INCLUSIVE.
     * @type {number}
     * @memberof TradeApiQueryUsersMarginForceOrders
     */
    readonly startTime?: number;
    /**
     * Timestamp in ms to get funding until INCLUSIVE.
     * @type {number}
     * @memberof TradeApiQueryUsersMarginForceOrders
     */
    readonly endTime?: number;
    /**
     * Currently querying page. Start from 1. Default:1
     * @type {number}
     * @memberof TradeApiQueryUsersMarginForceOrders
     */
    readonly current?: number;
    /**
     * Default:10 Max:100
     * @type {number}
     * @memberof TradeApiQueryUsersMarginForceOrders
     */
    readonly size?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryUsersMarginForceOrders
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for queryUsersUmForceOrders operation in TradeApi.
 * @interface QueryUsersUmForceOrdersRequest
 */
interface QueryUsersUmForceOrdersRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiQueryUsersUmForceOrders
     */
    readonly symbol?: string;
    /**
     * `LIQUIDATION` for liquidation orders, `ADL` for ADL orders.
     * @type {'LIQUIDATION' | 'ADL'}
     * @memberof TradeApiQueryUsersUmForceOrders
     */
    readonly autoCloseType?: QueryUsersUmForceOrdersAutoCloseTypeEnum;
    /**
     * Timestamp in ms to get funding from INCLUSIVE.
     * @type {number}
     * @memberof TradeApiQueryUsersUmForceOrders
     */
    readonly startTime?: number;
    /**
     * Timestamp in ms to get funding until INCLUSIVE.
     * @type {number}
     * @memberof TradeApiQueryUsersUmForceOrders
     */
    readonly endTime?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof TradeApiQueryUsersUmForceOrders
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiQueryUsersUmForceOrders
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for toggleBnbBurnOnUmFuturesTrade operation in TradeApi.
 * @interface ToggleBnbBurnOnUmFuturesTradeRequest
 */
interface ToggleBnbBurnOnUmFuturesTradeRequest {
    /**
     * "true": Fee Discount On; "false": Fee Discount Off
     * @type {string}
     * @memberof TradeApiToggleBnbBurnOnUmFuturesTrade
     */
    readonly feeBurn: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiToggleBnbBurnOnUmFuturesTrade
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for umAccountTradeList operation in TradeApi.
 * @interface UmAccountTradeListRequest
 */
interface UmAccountTradeListRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiUmAccountTradeList
     */
    readonly symbol: string;
    /**
     * Timestamp in ms to get funding from INCLUSIVE.
     * @type {number}
     * @memberof TradeApiUmAccountTradeList
     */
    readonly startTime?: number;
    /**
     * Timestamp in ms to get funding until INCLUSIVE.
     * @type {number}
     * @memberof TradeApiUmAccountTradeList
     */
    readonly endTime?: number;
    /**
     * Trade id to fetch from. Default gets most recent trades.
     * @type {number}
     * @memberof TradeApiUmAccountTradeList
     */
    readonly fromId?: number;
    /**
     * Default 100; max 1000
     * @type {number}
     * @memberof TradeApiUmAccountTradeList
     */
    readonly limit?: number;
    /**
     *
     * @type {number}
     * @memberof TradeApiUmAccountTradeList
     */
    readonly recvWindow?: number;
}
/**
 * Request parameters for umPositionAdlQuantileEstimation operation in TradeApi.
 * @interface UmPositionAdlQuantileEstimationRequest
 */
interface UmPositionAdlQuantileEstimationRequest {
    /**
     *
     * @type {string}
     * @memberof TradeApiUmPositionAdlQuantileEstimation
     */
    readonly symbol?: string;
    /**
     *
     * @type {number}
     * @memberof TradeApiUmPositionAdlQuantileEstimation
     */
    readonly recvWindow?: number;
}
/**
 * TradeApi - object-oriented interface
 * @class TradeApi
 */
declare class TradeApi implements TradeApiInterface {
    private readonly configuration;
    private localVarAxiosParamCreator;
    constructor(configuration: ConfigurationRestAPI);
    /**
     * Cancel All CM Open Conditional Orders
     *
     * Weight: 1
     *
     * @summary Cancel All CM Open Conditional Orders(TRADE)
     * @param {CancelAllCmOpenConditionalOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelAllCmOpenConditionalOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-CM-Open-Conditional-Orders Binance API Documentation}
     */
    cancelAllCmOpenConditionalOrders(requestParameters: CancelAllCmOpenConditionalOrdersRequest): Promise<RestApiResponse<CancelAllCmOpenConditionalOrdersResponse>>;
    /**
     * Cancel all active LIMIT orders on specific symbol
     *
     * Weight: 1
     *
     * @summary Cancel All CM Open Orders(TRADE)
     * @param {CancelAllCmOpenOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelAllCmOpenOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-CM-Open-Orders Binance API Documentation}
     */
    cancelAllCmOpenOrders(requestParameters: CancelAllCmOpenOrdersRequest): Promise<RestApiResponse<CancelAllCmOpenOrdersResponse>>;
    /**
     * Cancel All UM Open Conditional Orders
     *
     * Weight: 1
     *
     * @summary Cancel All UM Open Conditional Orders (TRADE)
     * @param {CancelAllUmOpenConditionalOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelAllUmOpenConditionalOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-UM-Open-Conditional-Orders Binance API Documentation}
     */
    cancelAllUmOpenConditionalOrders(requestParameters: CancelAllUmOpenConditionalOrdersRequest): Promise<RestApiResponse<CancelAllUmOpenConditionalOrdersResponse>>;
    /**
     * Cancel all active LIMIT orders on specific symbol
     *
     * Weight: 1
     *
     * @summary Cancel All UM Open Orders(TRADE)
     * @param {CancelAllUmOpenOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelAllUmOpenOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-UM-Open-Orders Binance API Documentation}
     */
    cancelAllUmOpenOrders(requestParameters: CancelAllUmOpenOrdersRequest): Promise<RestApiResponse<CancelAllUmOpenOrdersResponse>>;
    /**
     * Cancel CM Conditional Order
     *
     * Either `strategyId` or `newClientStrategyId` must be sent.
     *
     * Weight: 1
     *
     * @summary Cancel CM Conditional Order(TRADE)
     * @param {CancelCmConditionalOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelCmConditionalOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-CM-Conditional-Order Binance API Documentation}
     */
    cancelCmConditionalOrder(requestParameters: CancelCmConditionalOrderRequest): Promise<RestApiResponse<CancelCmConditionalOrderResponse>>;
    /**
     * Cancel an active LIMIT order
     *
     * Either `orderId` or `origClientOrderId` must be sent.
     *
     * Weight: 1
     *
     * @summary Cancel CM Order(TRADE)
     * @param {CancelCmOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelCmOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-CM-Order Binance API Documentation}
     */
    cancelCmOrder(requestParameters: CancelCmOrderRequest): Promise<RestApiResponse<CancelCmOrderResponse>>;
    /**
     * Cancel Margin Account All Open Orders on a Symbol
     *
     * Weight: 5
     *
     * @summary Cancel Margin Account All Open Orders on a Symbol(TRADE)
     * @param {CancelMarginAccountAllOpenOrdersOnASymbolRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelMarginAccountAllOpenOrdersOnASymbolResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-Margin-Account-All-Open-Orders-on-a-Symbol Binance API Documentation}
     */
    cancelMarginAccountAllOpenOrdersOnASymbol(requestParameters: CancelMarginAccountAllOpenOrdersOnASymbolRequest): Promise<RestApiResponse<CancelMarginAccountAllOpenOrdersOnASymbolResponse>>;
    /**
     * Cancel Margin Account OCO Orders
     *
     * Additional notes: Canceling an individual leg will cancel the entire OCO
     *
     * Weight: 2
     *
     * @summary Cancel Margin Account OCO Orders(TRADE)
     * @param {CancelMarginAccountOcoOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelMarginAccountOcoOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-Margin-Account-OCO-Orders Binance API Documentation}
     */
    cancelMarginAccountOcoOrders(requestParameters: CancelMarginAccountOcoOrdersRequest): Promise<RestApiResponse<CancelMarginAccountOcoOrdersResponse>>;
    /**
     * Cancel Margin Account Order
     *
     * Either `orderId` or `origClientOrderId` must be sent.
     *
     * Weight: 2
     *
     * @summary Cancel Margin Account Order(TRADE)
     * @param {CancelMarginAccountOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelMarginAccountOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-Margin-Account-Order Binance API Documentation}
     */
    cancelMarginAccountOrder(requestParameters: CancelMarginAccountOrderRequest): Promise<RestApiResponse<CancelMarginAccountOrderResponse>>;
    /**
     * Cancel UM Conditional Order
     *
     * Either `strategyId` or `newClientStrategyId` must be sent.
     *
     * Weight: 1
     *
     * @summary Cancel UM Conditional Order(TRADE)
     * @param {CancelUmConditionalOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelUmConditionalOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-UM-Conditional-Order Binance API Documentation}
     */
    cancelUmConditionalOrder(requestParameters: CancelUmConditionalOrderRequest): Promise<RestApiResponse<CancelUmConditionalOrderResponse>>;
    /**
     * Cancel an active UM LIMIT order
     *
     * Either `orderId` or `origClientOrderId` must be sent.
     *
     * Weight: 1
     *
     * @summary Cancel UM Order(TRADE)
     * @param {CancelUmOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelUmOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-UM-Order Binance API Documentation}
     */
    cancelUmOrder(requestParameters: CancelUmOrderRequest): Promise<RestApiResponse<CancelUmOrderResponse>>;
    /**
     * Get trades for a specific account and CM 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`
     *
     * Weight: 20 with symbol, 40 with pair
     *
     * @summary CM Account Trade List(USER_DATA)
     * @param {CmAccountTradeListRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CmAccountTradeListResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/CM-Account-Trade-List Binance API Documentation}
     */
    cmAccountTradeList(requestParameters?: CmAccountTradeListRequest): Promise<RestApiResponse<CmAccountTradeListResponse>>;
    /**
     * Query CM 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 CM Position ADL Quantile Estimation(USER_DATA)
     * @param {CmPositionAdlQuantileEstimationRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CmPositionAdlQuantileEstimationResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/CM-Position-ADL-Quantile-Estimation Binance API Documentation}
     */
    cmPositionAdlQuantileEstimation(requestParameters?: CmPositionAdlQuantileEstimationRequest): Promise<RestApiResponse<CmPositionAdlQuantileEstimationResponse>>;
    /**
     * Get user's BNB Fee Discount for UM Futures (Fee Discount On or Fee Discount Off )
     *
     * Weight: 30
     *
     * @summary Get UM Futures BNB Burn Status (USER_DATA)
     * @param {GetUmFuturesBnbBurnStatusRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetUmFuturesBnbBurnStatusResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Get-UM-Futures-BNB-Burn-Status Binance API Documentation}
     */
    getUmFuturesBnbBurnStatus(requestParameters?: GetUmFuturesBnbBurnStatusRequest): Promise<RestApiResponse<GetUmFuturesBnbBurnStatusResponse>>;
    /**
     * Apply for a margin loan.
     *
     * Weight: 100
     *
     * @summary Margin Account Borrow(MARGIN)
     * @param {MarginAccountBorrowRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<MarginAccountBorrowResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Borrow Binance API Documentation}
     */
    marginAccountBorrow(requestParameters: MarginAccountBorrowRequest): Promise<RestApiResponse<MarginAccountBorrowResponse>>;
    /**
     * Send in a new OCO for a margin account
     *
     * Price Restrictions:
     * `SELL`: Limit Price > Last Price > Stop Price
     * `BUY`: Limit Price < Last Price < Stop Price
     * Quantity Restrictions:
     * Both legs must have the same quantity
     * `ICEBERG` quantities however do not have to be the same.
     * Order Rate Limit
     * `OCO` counts as 2 orders against the order rate limit.
     *
     * Weight: 1
     *
     * @summary Margin Account New OCO(TRADE)
     * @param {MarginAccountNewOcoRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<MarginAccountNewOcoResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-New-OCO Binance API Documentation}
     */
    marginAccountNewOco(requestParameters: MarginAccountNewOcoRequest): Promise<RestApiResponse<MarginAccountNewOcoResponse>>;
    /**
     * Repay for a margin loan.
     *
     * Weight: 100
     *
     * @summary Margin Account Repay(MARGIN)
     * @param {MarginAccountRepayRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<MarginAccountRepayResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Repay Binance API Documentation}
     */
    marginAccountRepay(requestParameters: MarginAccountRepayRequest): Promise<RestApiResponse<MarginAccountRepayResponse>>;
    /**
     * Repay debt for a margin loan.
     *
     * The repay asset amount cannot exceed 50000 USD equivalent value for a single request.
     * If `amount` is not sent, all the asset loan will be repaid if having enough specific repay assets.
     * If `amount` is sent, only the certain amount of the asset loan will be repaid if having enough specific repay assets.
     * The system will use the same asset to repay the loan first (if have) no matter whether put the asset in `specifyRepayAssets`
     *
     * Weight: 3000
     *
     * @summary Margin Account Repay Debt(TRADE)
     * @param {MarginAccountRepayDebtRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<MarginAccountRepayDebtResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Repay-Debt Binance API Documentation}
     */
    marginAccountRepayDebt(requestParameters: MarginAccountRepayDebtRequest): Promise<RestApiResponse<MarginAccountRepayDebtResponse>>;
    /**
     * Margin Account Trade List
     *
     * Weight: 5
     *
     * @summary Margin Account Trade List (USER_DATA)
     * @param {MarginAccountTradeListRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<MarginAccountTradeListResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Trade-List Binance API Documentation}
     */
    marginAccountTradeList(requestParameters: MarginAccountTradeListRequest): Promise<RestApiResponse<MarginAccountTradeListResponse>>;
    /**
     * 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
     * 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
     *
     * Weight: 1
     *
     * @summary Modify CM Order(TRADE)
     * @param {ModifyCmOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ModifyCmOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Modify-CM-Order Binance API Documentation}
     */
    modifyCmOrder(requestParameters: ModifyCmOrderRequest): Promise<RestApiResponse<ModifyCmOrderResponse>>;
    /**
     * 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
     * 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
     *
     * Weight: 1
     *
     * @summary Modify UM Order(TRADE)
     * @param {ModifyUmOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ModifyUmOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Modify-UM-Order Binance API Documentation}
     */
    modifyUmOrder(requestParameters: ModifyUmOrderRequest): Promise<RestApiResponse<ModifyUmOrderResponse>>;
    /**
     * New CM Conditional Order
     *
     * Order with type `STOP/TAKE_PROFIT`, parameter `timeInForce` can be sent ( default `GTC`).
     * Condition orders will be triggered when:
     * `STOP`, `STOP_MARKET`:
     * BUY: "MARK_PRICE"  >= `stopPrice`
     * SELL: "MARK_PRICE" <= `stopPrice`
     * `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`:
     * BUY: "MARK_PRICE" <= `stopPrice`
     * SELL: "MARK_PRICE" >= `stopPrice`
     * `TRAILING_STOP_MARKET`:
     * BUY: the lowest mark price after order placed `<= `activationPrice`, and the latest mark price >`= the lowest mark price * (1 + `callbackRate`)
     * SELL: the highest mark price after order placed >= `activationPrice`, and the latest mark price <= the highest mark 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 mark price.
     * SELL: `activationPrice` should be larger than latest mark price.
     * 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 /fapi/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`
     *
     * Weight: 1
     *
     * @summary New CM Conditional Order(TRADE)
     * @param {NewCmConditionalOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<NewCmConditionalOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-CM-Conditional-Order Binance API Documentation}
     */
    newCmConditionalOrder(requestParameters: NewCmConditionalOrderRequest): Promise<RestApiResponse<NewCmConditionalOrderResponse>>;
    /**
     * Place new CM order
     *
     * 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.
     *
     * Weight: 1
     *
     * @summary New CM Order(TRADE)
     * @param {NewCmOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<NewCmOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-CM-Order Binance API Documentation}
     */
    newCmOrder(requestParameters: NewCmOrderRequest): Promise<RestApiResponse<NewCmOrderResponse>>;
    /**
     * New Margin Order
     *
     * Weight: 1
     *
     * @summary New Margin Order(TRADE)
     * @param {NewMarginOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<NewMarginOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-Margin-Order Binance API Documentation}
     */
    newMarginOrder(requestParameters: NewMarginOrderRequest): Promise<RestApiResponse<NewMarginOrderResponse>>;
    /**
     * Place new UM conditional order
     *
     * Order with type `STOP/TAKE_PROFIT`, parameter `timeInForce` can be sent ( default `GTC`).
     * Condition orders will be triggered when:
     * `STOP`, `STOP_MARKET`:
     * BUY: "MARK_PRICE"  >= `stopPrice`
     * SELL: "MARK_PRICE" <= `stopPrice`
     * `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`:
     * BUY: "MARK_PRICE" <= `stopPrice`
     * SELL: "MARK_PRICE" >= `stopPrice`
     * `TRAILING_STOP_MARKET`:
     * BUY: the lowest mark price after order placed `<= `activationPrice`, and the latest mark price >`= the lowest mark price * (1 + `callbackRate`)
     * SELL: the highest mark price after order placed >= `activationPrice`, and the latest mark price <= the highest mark 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 mark price.
     * SELL: `activationPrice` should be larger than latest mark price.
     * 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 /fapi/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`
     * `selfTradePreventionMode` is only effective when `timeInForce` set to `IOC` or `GTC` or `GTD`.
     * In extreme market conditions, timeInForce `GTD` order auto cancel time might be delayed comparing to `goodTillDate`
     *
     * Weight: 1
     *
     * @summary New UM Conditional Order (TRADE)
     * @param {NewUmConditionalOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<NewUmConditionalOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-UM-Conditional-Order Binance API Documentation}
     */
    newUmConditionalOrder(requestParameters: NewUmConditionalOrderRequest): Promise<RestApiResponse<NewUmConditionalOrderResponse>>;
    /**
     * Place new UM order
     *
     * 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.
     * `selfTradePreventionMode` is only effective when `timeInForce` set to `IOC` or `GTC` or `GTD`.
     * In extreme market conditions, timeInForce `GTD` order auto cancel time might be delayed comparing to `goodTillDate`
     *
     * Weight: 1
     *
     * @summary New UM Order (TRADE)
     * @param {NewUmOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<NewUmOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-UM-Order Binance API Documentation}
     */
    newUmOrder(requestParameters: NewUmOrderRequest): Promise<RestApiResponse<NewUmOrderResponse>>;
    /**
     * Query All CM Conditional Orders
     *
     * These orders will not be found:
     * order strategyStatus is `CANCELED` or `EXPIRED`, **AND**
     * order has NO filled trade, **AND**
     * created time + 7 days < current time
     * The query time period must be less than 7 days( default as the recent 7 days).
     *
     * Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
     *
     * @summary Query All CM Conditional Orders(USER_DATA)
     * @param {QueryAllCmConditionalOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryAllCmConditionalOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Conditional-Orders Binance API Documentation}
     */
    queryAllCmConditionalOrders(requestParameters?: QueryAllCmConditionalOrdersRequest): Promise<RestApiResponse<QueryAllCmConditionalOrdersResponse>>;
    /**
     * Get all account CM orders; active, canceled, or filled.
     *
     * Either `symbol` or `pair` must be sent.
     * If `orderId` is set, it will get orders >= that orderId. Otherwise most recent orders are returned.
     * 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
     *
     * Weight: 20 with symbol, 40 with pair
     *
     * @summary Query All CM Orders (USER_DATA)
     * @param {QueryAllCmOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryAllCmOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Orders Binance API Documentation}
     */
    queryAllCmOrders(requestParameters: QueryAllCmOrdersRequest): Promise<RestApiResponse<QueryAllCmOrdersResponse>>;
    /**
     * Get all open conditional orders on a symbol. **Careful** when accessing this with no symbol.
     *
     * If the symbol is not sent, orders for all symbols will be returned in an array.
     *
     * Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
     *
     * @summary Query All Current CM Open Conditional Orders (USER_DATA)
     * @param {QueryAllCurrentCmOpenConditionalOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryAllCurrentCmOpenConditionalOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-CM-Open-Conditional-Orders Binance API Documentation}
     */
    queryAllCurrentCmOpenConditionalOrders(requestParameters?: QueryAllCurrentCmOpenConditionalOrdersRequest): Promise<RestApiResponse<QueryAllCurrentCmOpenConditionalOrdersResponse>>;
    /**
     * Get all open orders on a symbol.
     *
     * If the symbol is not sent, orders for all symbols will be returned in an array.
     *
     * Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
     * Careful when accessing this with no symbol.
     *
     * @summary Query All Current CM Open Orders(USER_DATA)
     * @param {QueryAllCurrentCmOpenOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryAllCurrentCmOpenOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-CM-Open-Orders Binance API Documentation}
     */
    queryAllCurrentCmOpenOrders(requestParameters?: QueryAllCurrentCmOpenOrdersRequest): Promise<RestApiResponse<QueryAllCurrentCmOpenOrdersResponse>>;
    /**
     * Get all open conditional orders on a symbol.
     *
     * If the symbol is not sent, orders for all symbols will be returned in an array.
     *
     * Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
     * Careful when accessing this with no symbol.
     *
     * @summary Query All Current UM Open Conditional Orders(USER_DATA)
     * @param {QueryAllCurrentUmOpenConditionalOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryAllCurrentUmOpenConditionalOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-UM-Open-Conditional-Orders Binance API Documentation}
     */
    queryAllCurrentUmOpenConditionalOrders(requestParameters?: QueryAllCurrentUmOpenConditionalOrdersRequest): Promise<RestApiResponse<QueryAllCurrentUmOpenConditionalOrdersResponse>>;
    /**
     * Get all open orders on a symbol.
     *
     *
     * If the symbol is not sent, orders for all symbols will be returned in an array.
     *
     * Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
     *
     * @summary Query All Current UM Open Orders(USER_DATA)
     * @param {QueryAllCurrentUmOpenOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryAllCurrentUmOpenOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-UM-Open-Orders Binance API Documentation}
     */
    queryAllCurrentUmOpenOrders(requestParameters?: QueryAllCurrentUmOpenOrdersRequest): Promise<RestApiResponse<QueryAllCurrentUmOpenOrdersResponse>>;
    /**
     * Query All Margin Account Orders
     *
     * Weight: 100
     *
     * @summary Query All Margin Account Orders (USER_DATA)
     * @param {QueryAllMarginAccountOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryAllMarginAccountOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Margin-Account-Orders Binance API Documentation}
     */
    queryAllMarginAccountOrders(requestParameters: QueryAllMarginAccountOrdersRequest): Promise<RestApiResponse<QueryAllMarginAccountOrdersResponse>>;
    /**
     * Query All UM Conditional Orders
     *
     * These orders will not be found:
     * order strategyStatus is `CANCELED` or `EXPIRED`, **AND**
     * order has NO filled trade, **AND**
     * created time + 7 days < current time
     * The query time period must be less than 7 days( default as the recent 7 days).
     *
     * Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
     *
     * @summary Query All UM Conditional Orders(USER_DATA)
     * @param {QueryAllUmConditionalOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryAllUmConditionalOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Conditional-Orders Binance API Documentation}
     */
    queryAllUmConditionalOrders(requestParameters?: QueryAllUmConditionalOrdersRequest): Promise<RestApiResponse<QueryAllUmConditionalOrdersResponse>>;
    /**
     * Get all account UM 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
     *
     * 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: 5
     *
     * @summary Query All UM Orders(USER_DATA)
     * @param {QueryAllUmOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryAllUmOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders Binance API Documentation}
     */
    queryAllUmOrders(requestParameters: QueryAllUmOrdersRequest): Promise<RestApiResponse<QueryAllUmOrdersResponse>>;
    /**
     * Query CM Conditional Order History
     *
     *
     * Either `strategyId` or `newClientStrategyId` must be sent.
     * `NEW` orders will not be found.
     * These orders will not be found:
     * order status is `CANCELED` or `EXPIRED`, **AND**
     * order has NO filled trade, **AND**
     * created time + 7 days < current time
     *
     * Weight: 1
     *
     * @summary Query CM Conditional Order History(USER_DATA)
     * @param {QueryCmConditionalOrderHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryCmConditionalOrderHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-CM-Conditional-Order-History Binance API Documentation}
     */
    queryCmConditionalOrderHistory(requestParameters: QueryCmConditionalOrderHistoryRequest): Promise<RestApiResponse<QueryCmConditionalOrderHistoryResponse>>;
    /**
     * Get order modification history
     *
     * Either `orderId` or `origClientOrderId` must be sent, and the `orderId` will prevail if both are sent.
     *
     * Weight: 1
     *
     * @summary Query CM Modify Order History(TRADE)
     * @param {QueryCmModifyOrderHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryCmModifyOrderHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-CM-Modify-Order-History Binance API Documentation}
     */
    queryCmModifyOrderHistory(requestParameters: QueryCmModifyOrderHistoryRequest): Promise<RestApiResponse<QueryCmModifyOrderHistoryResponse>>;
    /**
     * Check an CM order's status.
     *
     * Either `orderId` or `origClientOrderId` must be sent.
     * 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
     *
     * Weight: 1
     *
     * @summary Query CM Order(USER_DATA)
     * @param {QueryCmOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryCmOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-CM-Order Binance API Documentation}
     */
    queryCmOrder(requestParameters: QueryCmOrderRequest): Promise<RestApiResponse<QueryCmOrderResponse>>;
    /**
     * Query Current CM Open Conditional Order
     *
     * Either `strategyId` or `newClientStrategyId` must be sent.
     * If the queried order has been triggered, cancelled or expired, the error message "Order does not exist" will be returned.
     *
     * Weight: 1
     *
     * @summary Query Current CM Open Conditional Order(USER_DATA)
     * @param {QueryCurrentCmOpenConditionalOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryCurrentCmOpenConditionalOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-CM-Open-Conditional-Order Binance API Documentation}
     */
    queryCurrentCmOpenConditionalOrder(requestParameters: QueryCurrentCmOpenConditionalOrderRequest): Promise<RestApiResponse<QueryCurrentCmOpenConditionalOrderResponse>>;
    /**
     * Query current CM 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 CM Open Order (USER_DATA)
     * @param {QueryCurrentCmOpenOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryCurrentCmOpenOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-CM-Open-Order Binance API Documentation}
     */
    queryCurrentCmOpenOrder(requestParameters: QueryCurrentCmOpenOrderRequest): Promise<RestApiResponse<QueryCurrentCmOpenOrderResponse>>;
    /**
     * Query Current Margin Open Order
     *
     * Weight: 5
     *
     * @summary Query Current Margin Open Order (USER_DATA)
     * @param {QueryCurrentMarginOpenOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryCurrentMarginOpenOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-Margin-Open-Order Binance API Documentation}
     */
    queryCurrentMarginOpenOrder(requestParameters: QueryCurrentMarginOpenOrderRequest): Promise<RestApiResponse<QueryCurrentMarginOpenOrderResponse>>;
    /**
     * Query Current UM Open Conditional Order
     *
     * Either `strategyId` or `newClientStrategyId` must be sent.
     * If the queried order has been `CANCELED`, `TRIGGERED`或`EXPIRED`, the error message "Order does not exist" will be returned.
     *
     * Weight: 1
     *
     * @summary Query Current UM Open Conditional Order(USER_DATA)
     * @param {QueryCurrentUmOpenConditionalOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryCurrentUmOpenConditionalOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Conditional-Order Binance API Documentation}
     */
    queryCurrentUmOpenConditionalOrder(requestParameters: QueryCurrentUmOpenConditionalOrderRequest): Promise<RestApiResponse<QueryCurrentUmOpenConditionalOrderResponse>>;
    /**
     * Query current UM 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 UM Open Order(USER_DATA)
     * @param {QueryCurrentUmOpenOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryCurrentUmOpenOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Order Binance API Documentation}
     */
    queryCurrentUmOpenOrder(requestParameters: QueryCurrentUmOpenOrderRequest): Promise<RestApiResponse<QueryCurrentUmOpenOrderResponse>>;
    /**
     * Query Margin Account Order
     *
     * Weight: 10
     *
     * @summary Query Margin Account Order (USER_DATA)
     * @param {QueryMarginAccountOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryMarginAccountOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Margin-Account-Order Binance API Documentation}
     */
    queryMarginAccountOrder(requestParameters: QueryMarginAccountOrderRequest): Promise<RestApiResponse<QueryMarginAccountOrderResponse>>;
    /**
     * Query all OCO for a specific margin account based on provided optional parameters
     *
     * Weight: 100
     *
     * @summary Query Margin Account\'s all OCO (USER_DATA)
     * @param {QueryMarginAccountsAllOcoRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryMarginAccountsAllOcoResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Margin-Account-all-OCO Binance API Documentation}
     */
    queryMarginAccountsAllOco(requestParameters?: QueryMarginAccountsAllOcoRequest): Promise<RestApiResponse<QueryMarginAccountsAllOcoResponse>>;
    /**
     * Retrieves a specific OCO based on provided optional parameters
     *
     * Weight: 5
     *
     * @summary Query Margin Account\'s OCO (USER_DATA)
     * @param {QueryMarginAccountsOcoRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryMarginAccountsOcoResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Margin-Account-OCO Binance API Documentation}
     */
    queryMarginAccountsOco(requestParameters?: QueryMarginAccountsOcoRequest): Promise<RestApiResponse<QueryMarginAccountsOcoResponse>>;
    /**
     * Query Margin Account's Open OCO
     *
     * Weight: 5
     *
     * @summary Query Margin Account\'s Open OCO (USER_DATA)
     * @param {QueryMarginAccountsOpenOcoRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryMarginAccountsOpenOcoResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Margin-Account-Open-OCO Binance API Documentation}
     */
    queryMarginAccountsOpenOco(requestParameters?: QueryMarginAccountsOpenOcoRequest): Promise<RestApiResponse<QueryMarginAccountsOpenOcoResponse>>;
    /**
     * Query UM Conditional Order History
     *
     * Either `strategyId` or `newClientStrategyId` must be sent.
     * `NEW` orders will not be found.
     * These orders will not be found:
     * order status is `CANCELED` or `EXPIRED`, **AND**
     * order has NO filled trade, **AND**
     * created time + 7 days < current time
     *
     * Weight: 1
     *
     * @summary Query UM Conditional Order History(USER_DATA)
     * @param {QueryUmConditionalOrderHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryUmConditionalOrderHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Conditional-Order-History Binance API Documentation}
     */
    queryUmConditionalOrderHistory(requestParameters: QueryUmConditionalOrderHistoryRequest): Promise<RestApiResponse<QueryUmConditionalOrderHistoryResponse>>;
    /**
     * Get order modification history
     *
     * Either `orderId` or `origClientOrderId` must be sent, and the `orderId` will prevail if both are sent.
     *
     * Weight: 1
     *
     * @summary Query UM Modify Order History(TRADE)
     * @param {QueryUmModifyOrderHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryUmModifyOrderHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Modify-Order-History Binance API Documentation}
     */
    queryUmModifyOrderHistory(requestParameters: QueryUmModifyOrderHistoryRequest): Promise<RestApiResponse<QueryUmModifyOrderHistoryResponse>>;
    /**
     * Check an UM order's status.
     *
     * These orders will not be found:
     * Either `orderId` or `origClientOrderId` must be sent.
     * order status is `CANCELED` or `EXPIRED`, **AND**
     * order has NO filled trade, **AND**
     * created time + 3 days < current time
     *
     * Weight: 1
     *
     * @summary Query UM Order (USER_DATA)
     * @param {QueryUmOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryUmOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Order Binance API Documentation}
     */
    queryUmOrder(requestParameters: QueryUmOrderRequest): Promise<RestApiResponse<QueryUmOrderResponse>>;
    /**
     * Query User's CM Force Orders
     *
     * If "autoCloseType" is not sent, orders with both of the types will be returned
     * If "startTime" is not sent, data within 7 days before "endTime" can be queried
     *
     * Weight: 20 with symbol, 50 without symbol
     *
     * @summary Query User\'s CM Force Orders(USER_DATA)
     * @param {QueryUsersCmForceOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryUsersCmForceOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-CM-Force-Orders Binance API Documentation}
     */
    queryUsersCmForceOrders(requestParameters?: QueryUsersCmForceOrdersRequest): Promise<RestApiResponse<QueryUsersCmForceOrdersResponse>>;
    /**
     * Query user's margin force orders
     *
     * Weight: 1
     *
     * @summary Query User\'s Margin Force Orders(USER_DATA)
     * @param {QueryUsersMarginForceOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryUsersMarginForceOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-Margin-Force-Orders Binance API Documentation}
     */
    queryUsersMarginForceOrders(requestParameters?: QueryUsersMarginForceOrdersRequest): Promise<RestApiResponse<QueryUsersMarginForceOrdersResponse>>;
    /**
     * Query User's UM Force Orders
     *
     * If `autoCloseType` is not sent, orders with both of the types will be returned
     * If `startTime` is not sent, data within 7 days before `endTime` can be queried
     *
     * Weight: 20 with symbol, 50 without symbol
     *
     * @summary Query User\'s UM Force Orders (USER_DATA)
     * @param {QueryUsersUmForceOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryUsersUmForceOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-UM-Force-Orders Binance API Documentation}
     */
    queryUsersUmForceOrders(requestParameters?: QueryUsersUmForceOrdersRequest): Promise<RestApiResponse<QueryUsersUmForceOrdersResponse>>;
    /**
     * Change user's BNB Fee Discount for UM Futures (Fee Discount On or Fee Discount Off ) on ***EVERY symbol***
     *
     *
     * The BNB would not be collected from UM-PM account to the Portfolio Margin account.
     *
     * Weight: 1
     *
     * @summary Toggle BNB Burn On UM Futures Trade (TRADE)
     * @param {ToggleBnbBurnOnUmFuturesTradeRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ToggleBnbBurnOnUmFuturesTradeResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Toggle-BNB-Burn-On-UM-Futures-Trade Binance API Documentation}
     */
    toggleBnbBurnOnUmFuturesTrade(requestParameters: ToggleBnbBurnOnUmFuturesTradeRequest): Promise<RestApiResponse<ToggleBnbBurnOnUmFuturesTradeResponse>>;
    /**
     * Get trades for a specific account and UM symbol.
     *
     *
     * If `startTime` and `endTime` are both not sent, then the last '24 hours' data will be returned.
     * The time between `startTime` and `endTime` cannot be longer than 24 hours.
     * The parameter `fromId` cannot be sent with `startTime` or `endTime`.
     *
     * Weight: 5
     *
     * @summary UM Account Trade List(USER_DATA)
     * @param {UmAccountTradeListRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<UmAccountTradeListResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/UM-Account-Trade-List Binance API Documentation}
     */
    umAccountTradeList(requestParameters: UmAccountTradeListRequest): Promise<RestApiResponse<UmAccountTradeListResponse>>;
    /**
     * Query UM 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 UM Position ADL Quantile Estimation(USER_DATA)
     * @param {UmPositionAdlQuantileEstimationRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<UmPositionAdlQuantileEstimationResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @memberof TradeApi
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/UM-Position-ADL-Quantile-Estimation Binance API Documentation}
     */
    umPositionAdlQuantileEstimation(requestParameters?: UmPositionAdlQuantileEstimationRequest): Promise<RestApiResponse<UmPositionAdlQuantileEstimationResponse>>;
}
declare enum MarginAccountNewOcoSideEnum {
    BUY = "BUY",
    SELL = "SELL"
}
declare enum MarginAccountNewOcoStopLimitTimeInForceEnum {
    GTC = "GTC",
    IOC = "IOC",
    FOK = "FOK"
}
declare enum MarginAccountNewOcoNewOrderRespTypeEnum {
    ACK = "ACK",
    RESULT = "RESULT"
}
declare enum MarginAccountNewOcoSideEffectTypeEnum {
    NO_SIDE_EFFECT = "NO_SIDE_EFFECT",
    MARGIN_BUY = "MARGIN_BUY",
    AUTO_REPAY = "AUTO_REPAY"
}
declare enum ModifyCmOrderSideEnum {
    BUY = "BUY",
    SELL = "SELL"
}
declare enum ModifyCmOrderPriceMatchEnum {
    NONE = "NONE",
    OPPONENT = "OPPONENT",
    OPPONENT_5 = "OPPONENT_5",
    OPPONENT_10 = "OPPONENT_10",
    OPPONENT_20 = "OPPONENT_20",
    QUEUE = "QUEUE",
    QUEUE_5 = "QUEUE_5",
    QUEUE_10 = "QUEUE_10",
    QUEUE_20 = "QUEUE_20"
}
declare enum ModifyUmOrderSideEnum {
    BUY = "BUY",
    SELL = "SELL"
}
declare enum ModifyUmOrderPriceMatchEnum {
    NONE = "NONE",
    OPPONENT = "OPPONENT",
    OPPONENT_5 = "OPPONENT_5",
    OPPONENT_10 = "OPPONENT_10",
    OPPONENT_20 = "OPPONENT_20",
    QUEUE = "QUEUE",
    QUEUE_5 = "QUEUE_5",
    QUEUE_10 = "QUEUE_10",
    QUEUE_20 = "QUEUE_20"
}
declare enum NewCmConditionalOrderSideEnum {
    BUY = "BUY",
    SELL = "SELL"
}
declare enum NewCmConditionalOrderStrategyTypeEnum {
    STOP = "STOP",
    STOP_MARKET = "STOP_MARKET",
    TAKE_PROFIT = "TAKE_PROFIT",
    TAKE_PROFIT_MARKET = "TAKE_PROFIT_MARKET",
    TRAILING_STOP_MARKET = "TRAILING_STOP_MARKET"
}
declare enum NewCmConditionalOrderPositionSideEnum {
    BOTH = "BOTH",
    LONG = "LONG",
    SHORT = "SHORT"
}
declare enum NewCmConditionalOrderTimeInForceEnum {
    GTC = "GTC",
    IOC = "IOC",
    FOK = "FOK",
    GTX = "GTX"
}
declare enum NewCmConditionalOrderWorkingTypeEnum {
    MARK_PRICE = "MARK_PRICE"
}
declare enum NewCmOrderSideEnum {
    BUY = "BUY",
    SELL = "SELL"
}
declare enum NewCmOrderTypeEnum {
    LIMIT = "LIMIT",
    MARKET = "MARKET"
}
declare enum NewCmOrderPositionSideEnum {
    BOTH = "BOTH",
    LONG = "LONG",
    SHORT = "SHORT"
}
declare enum NewCmOrderTimeInForceEnum {
    GTC = "GTC",
    IOC = "IOC",
    FOK = "FOK",
    GTX = "GTX"
}
declare enum NewCmOrderPriceMatchEnum {
    NONE = "NONE",
    OPPONENT = "OPPONENT",
    OPPONENT_5 = "OPPONENT_5",
    OPPONENT_10 = "OPPONENT_10",
    OPPONENT_20 = "OPPONENT_20",
    QUEUE = "QUEUE",
    QUEUE_5 = "QUEUE_5",
    QUEUE_10 = "QUEUE_10",
    QUEUE_20 = "QUEUE_20"
}
declare enum NewCmOrderNewOrderRespTypeEnum {
    ACK = "ACK",
    RESULT = "RESULT"
}
declare enum NewMarginOrderSideEnum {
    BUY = "BUY",
    SELL = "SELL"
}
declare enum NewMarginOrderTypeEnum {
    LIMIT = "LIMIT",
    MARKET = "MARKET"
}
declare enum NewMarginOrderNewOrderRespTypeEnum {
    ACK = "ACK",
    RESULT = "RESULT"
}
declare enum NewMarginOrderSideEffectTypeEnum {
    NO_SIDE_EFFECT = "NO_SIDE_EFFECT",
    MARGIN_BUY = "MARGIN_BUY",
    AUTO_REPAY = "AUTO_REPAY"
}
declare enum NewMarginOrderTimeInForceEnum {
    GTC = "GTC",
    IOC = "IOC",
    FOK = "FOK",
    GTX = "GTX"
}
declare enum NewMarginOrderSelfTradePreventionModeEnum {
    NONE = "NONE",
    EXPIRE_TAKER = "EXPIRE_TAKER",
    EXPIRE_BOTH = "EXPIRE_BOTH",
    EXPIRE_MAKER = "EXPIRE_MAKER"
}
declare enum NewUmConditionalOrderSideEnum {
    BUY = "BUY",
    SELL = "SELL"
}
declare enum NewUmConditionalOrderStrategyTypeEnum {
    STOP = "STOP",
    STOP_MARKET = "STOP_MARKET",
    TAKE_PROFIT = "TAKE_PROFIT",
    TAKE_PROFIT_MARKET = "TAKE_PROFIT_MARKET",
    TRAILING_STOP_MARKET = "TRAILING_STOP_MARKET"
}
declare enum NewUmConditionalOrderPositionSideEnum {
    BOTH = "BOTH",
    LONG = "LONG",
    SHORT = "SHORT"
}
declare enum NewUmConditionalOrderTimeInForceEnum {
    GTC = "GTC",
    IOC = "IOC",
    FOK = "FOK",
    GTX = "GTX"
}
declare enum NewUmConditionalOrderWorkingTypeEnum {
    MARK_PRICE = "MARK_PRICE"
}
declare enum NewUmConditionalOrderPriceMatchEnum {
    NONE = "NONE",
    OPPONENT = "OPPONENT",
    OPPONENT_5 = "OPPONENT_5",
    OPPONENT_10 = "OPPONENT_10",
    OPPONENT_20 = "OPPONENT_20",
    QUEUE = "QUEUE",
    QUEUE_5 = "QUEUE_5",
    QUEUE_10 = "QUEUE_10",
    QUEUE_20 = "QUEUE_20"
}
declare enum NewUmConditionalOrderSelfTradePreventionModeEnum {
    NONE = "NONE",
    EXPIRE_TAKER = "EXPIRE_TAKER",
    EXPIRE_BOTH = "EXPIRE_BOTH",
    EXPIRE_MAKER = "EXPIRE_MAKER"
}
declare enum NewUmOrderSideEnum {
    BUY = "BUY",
    SELL = "SELL"
}
declare enum NewUmOrderTypeEnum {
    LIMIT = "LIMIT",
    MARKET = "MARKET"
}
declare enum NewUmOrderPositionSideEnum {
    BOTH = "BOTH",
    LONG = "LONG",
    SHORT = "SHORT"
}
declare enum NewUmOrderTimeInForceEnum {
    GTC = "GTC",
    IOC = "IOC",
    FOK = "FOK",
    GTX = "GTX"
}
declare enum NewUmOrderNewOrderRespTypeEnum {
    ACK = "ACK",
    RESULT = "RESULT"
}
declare enum NewUmOrderPriceMatchEnum {
    NONE = "NONE",
    OPPONENT = "OPPONENT",
    OPPONENT_5 = "OPPONENT_5",
    OPPONENT_10 = "OPPONENT_10",
    OPPONENT_20 = "OPPONENT_20",
    QUEUE = "QUEUE",
    QUEUE_5 = "QUEUE_5",
    QUEUE_10 = "QUEUE_10",
    QUEUE_20 = "QUEUE_20"
}
declare enum NewUmOrderSelfTradePreventionModeEnum {
    NONE = "NONE",
    EXPIRE_TAKER = "EXPIRE_TAKER",
    EXPIRE_BOTH = "EXPIRE_BOTH",
    EXPIRE_MAKER = "EXPIRE_MAKER"
}
declare enum QueryUsersCmForceOrdersAutoCloseTypeEnum {
    LIQUIDATION = "LIQUIDATION",
    ADL = "ADL"
}
declare enum QueryUsersUmForceOrdersAutoCloseTypeEnum {
    LIQUIDATION = "LIQUIDATION",
    ADL = "ADL"
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.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)
     *
     * @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. It's recommended to send a ping about every 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>>;
}
/**
 * UserDataStreamsApi - object-oriented interface
 * @class UserDataStreamsApi
 */
declare class UserDataStreamsApi implements UserDataStreamsApiInterface {
    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/portfolio-margin/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. It's recommended to send a ping about every 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/portfolio-margin/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/portfolio-margin/user-data-streams/Start-User-Data-Stream Binance API Documentation}
     */
    startUserDataStream(): Promise<RestApiResponse<StartUserDataStreamResponse>>;
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.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 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>>;
    /**
     * Query account balance
     *
     * Weight: 20
     *
     * @summary Account Balance(USER_DATA)
     * @param {AccountBalanceRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<AccountBalanceResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Account-Balance Binance API Documentation}
     */
    accountBalance(requestParameters?: AccountBalanceRequest): Promise<RestApiResponse<AccountBalanceResponse>>;
    /**
     * Query account information
     *
     * Weight: 20
     *
     * @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/portfolio-margin/account/Account-Information Binance API Documentation}
     */
    accountInformation(requestParameters?: AccountInformationRequest): Promise<RestApiResponse<AccountInformationResponse>>;
    /**
     * Transfer BNB in and out of UM
     *
     * The endpoint can only be called 10 times per 10 minutes in a rolling manner
     *
     * Weight: 750
     *
     * @summary BNB transfer (TRADE)
     * @param {BnbTransferRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<BnbTransferResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/BNB-transfer Binance API Documentation}
     */
    bnbTransfer(requestParameters: BnbTransferRequest): Promise<RestApiResponse<BnbTransferResponse>>;
    /**
     * Change Auto-repay-futures Status
     *
     * Weight: 750
     *
     * @summary Change Auto-repay-futures Status(TRADE)
     * @param {ChangeAutoRepayFuturesStatusRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ChangeAutoRepayFuturesStatusResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-Auto-repay-futures-Status Binance API Documentation}
     */
    changeAutoRepayFuturesStatus(requestParameters: ChangeAutoRepayFuturesStatusRequest): Promise<RestApiResponse<ChangeAutoRepayFuturesStatusResponse>>;
    /**
     * Change user's initial leverage of specific symbol in CM.
     *
     * Weight: 1
     *
     * @summary Change CM Initial Leverage (TRADE)
     * @param {ChangeCmInitialLeverageRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ChangeCmInitialLeverageResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-CM-Initial-Leverage Binance API Documentation}
     */
    changeCmInitialLeverage(requestParameters: ChangeCmInitialLeverageRequest): Promise<RestApiResponse<ChangeCmInitialLeverageResponse>>;
    /**
     * Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in CM
     *
     * Weight: 1
     *
     * @summary Change CM Position Mode(TRADE)
     * @param {ChangeCmPositionModeRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ChangeCmPositionModeResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-CM-Position-Mode Binance API Documentation}
     */
    changeCmPositionMode(requestParameters: ChangeCmPositionModeRequest): Promise<RestApiResponse<ChangeCmPositionModeResponse>>;
    /**
     * Change user's initial leverage of specific symbol in UM.
     *
     * Weight: 1
     *
     * @summary Change UM Initial Leverage(TRADE)
     * @param {ChangeUmInitialLeverageRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ChangeUmInitialLeverageResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-UM-Initial-Leverage Binance API Documentation}
     */
    changeUmInitialLeverage(requestParameters: ChangeUmInitialLeverageRequest): Promise<RestApiResponse<ChangeUmInitialLeverageResponse>>;
    /**
     * Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in UM
     *
     * Weight: 1
     *
     * @summary Change UM Position Mode(TRADE)
     * @param {ChangeUmPositionModeRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ChangeUmPositionModeResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-UM-Position-Mode Binance API Documentation}
     */
    changeUmPositionMode(requestParameters: ChangeUmPositionModeRequest): Promise<RestApiResponse<ChangeUmPositionModeResponse>>;
    /**
     * Query CM notional and leverage brackets
     *
     * Weight: 1
     *
     * @summary CM Notional and Leverage Brackets(USER_DATA)
     * @param {CmNotionalAndLeverageBracketsRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CmNotionalAndLeverageBracketsResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/CM-Notional-and-Leverage-Brackets Binance API Documentation}
     */
    cmNotionalAndLeverageBrackets(requestParameters?: CmNotionalAndLeverageBracketsRequest): Promise<RestApiResponse<CmNotionalAndLeverageBracketsResponse>>;
    /**
     * Fund collection for Portfolio Margin
     *
     * The BNB would not be collected from UM-PM account to the Portfolio Margin account.
     * You can only use this function 500 times per hour in a rolling manner.
     *
     * Weight: 750
     *
     * @summary Fund Auto-collection(TRADE)
     * @param {FundAutoCollectionRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<FundAutoCollectionResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Fund-Auto-collection Binance API Documentation}
     */
    fundAutoCollection(requestParameters?: FundAutoCollectionRequest): Promise<RestApiResponse<FundAutoCollectionResponse>>;
    /**
     * Transfers specific asset from Futures Account to Margin account
     *
     * The BNB transfer is not be supported
     *
     * Weight: 30
     *
     * @summary Fund Collection by Asset(TRADE)
     * @param {FundCollectionByAssetRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<FundCollectionByAssetResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Fund-Collection-by-Asset Binance API Documentation}
     */
    fundCollectionByAsset(requestParameters: FundCollectionByAssetRequest): Promise<RestApiResponse<FundCollectionByAssetResponse>>;
    /**
     * Query Auto-repay-futures Status
     *
     * Weight: 30
     *
     * @summary Get Auto-repay-futures Status(USER_DATA)
     * @param {GetAutoRepayFuturesStatusRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetAutoRepayFuturesStatusResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-Auto-repay-futures-Status Binance API Documentation}
     */
    getAutoRepayFuturesStatus(requestParameters?: GetAutoRepayFuturesStatusRequest): Promise<RestApiResponse<GetAutoRepayFuturesStatusResponse>>;
    /**
     * Get current CM account asset and position information.
     *
     * Weight: 5
     *
     * @summary Get CM Account Detail(USER_DATA)
     * @param {GetCmAccountDetailRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetCmAccountDetailResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Account-Detail Binance API Documentation}
     */
    getCmAccountDetail(requestParameters?: GetCmAccountDetailRequest): Promise<RestApiResponse<GetCmAccountDetailResponse>>;
    /**
     * Get user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in CM
     *
     * Weight: 30
     *
     * @summary Get CM Current Position Mode(USER_DATA)
     * @param {GetCmCurrentPositionModeRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetCmCurrentPositionModeResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Current-Position-Mode Binance API Documentation}
     */
    getCmCurrentPositionMode(requestParameters?: GetCmCurrentPositionModeRequest): Promise<RestApiResponse<GetCmCurrentPositionModeResponse>>;
    /**
     * Get CM 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 interval between `startTime` and `endTime` can not exceed 200 days:
     * If `startTime` and `endTime` are not sent, the last 200 days will be returned
     *
     * Weight: 30
     *
     * @summary Get CM Income History(USER_DATA)
     * @param {GetCmIncomeHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetCmIncomeHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Income-History Binance API Documentation}
     */
    getCmIncomeHistory(requestParameters?: GetCmIncomeHistoryRequest): Promise<RestApiResponse<GetCmIncomeHistoryResponse>>;
    /**
     * Get download id for UM 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: 1500
     *
     * @summary Get Download Id For UM Futures Order History (USER_DATA)
     * @param {GetDownloadIdForUmFuturesOrderHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetDownloadIdForUmFuturesOrderHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-Download-Id-For-UM-Futures-Order-History Binance API Documentation}
     */
    getDownloadIdForUmFuturesOrderHistory(requestParameters: GetDownloadIdForUmFuturesOrderHistoryRequest): Promise<RestApiResponse<GetDownloadIdForUmFuturesOrderHistoryResponse>>;
    /**
     * Get download id for UM 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: 1500
     *
     * @summary Get Download Id For UM Futures Trade History (USER_DATA)
     * @param {GetDownloadIdForUmFuturesTradeHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetDownloadIdForUmFuturesTradeHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-Download-Id-For-UM-Futures-Trade-History Binance API Documentation}
     */
    getDownloadIdForUmFuturesTradeHistory(requestParameters: GetDownloadIdForUmFuturesTradeHistoryRequest): Promise<RestApiResponse<GetDownloadIdForUmFuturesTradeHistoryResponse>>;
    /**
     * Get download id for UM 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: 1500
     *
     * @summary Get Download Id For UM Futures Transaction History (USER_DATA)
     * @param {GetDownloadIdForUmFuturesTransactionHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetDownloadIdForUmFuturesTransactionHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-Download-Id-For-UM-Futures-Transaction-History Binance API Documentation}
     */
    getDownloadIdForUmFuturesTransactionHistory(requestParameters: GetDownloadIdForUmFuturesTransactionHistoryRequest): Promise<RestApiResponse<GetDownloadIdForUmFuturesTransactionHistoryResponse>>;
    /**
     * Get Margin Borrow/Loan Interest History
     *
     *
     * Response in descending order
     * The max interval between startTime and endTime is 30 days. It is a MUST to ensure data correctness.
     * If `startTime` and `endTime` not sent, return records of the last 7 days by default
     * If `startTime` is sent and `endTime` is not sent, the records from `startTime` to the present will be returned; if `startTime` is more than 30 days ago, the records of the past 30 days will be returned.
     * If `startTime` is not sent and `endTime` is sent, the records of the 7 days before `endTime` is returned.
     * Type in response has 5 enums:
     * `PERIODIC` interest charged per hour
     * `ON_BORROW` first interest charged on borrow
     * `PERIODIC_CONVERTED` interest charged per hour converted into BNB
     * `ON_BORROW_CONVERTED` first interest charged on borrow converted into BNB
     * `PORTFOLIO` Portfolio Margin negative balance daily interest
     *
     * Weight: 1
     *
     * @summary Get Margin Borrow/Loan Interest History(USER_DATA)
     * @param {GetMarginBorrowLoanInterestHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetMarginBorrowLoanInterestHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-Margin-BorrowLoan-Interest-History Binance API Documentation}
     */
    getMarginBorrowLoanInterestHistory(requestParameters?: GetMarginBorrowLoanInterestHistoryRequest): Promise<RestApiResponse<GetMarginBorrowLoanInterestHistoryResponse>>;
    /**
     * Get current UM account asset and position information.
     *
     * Weight: 5
     *
     * @summary Get UM Account Detail(USER_DATA)
     * @param {GetUmAccountDetailRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetUmAccountDetailResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Account-Detail Binance API Documentation}
     */
    getUmAccountDetail(requestParameters?: GetUmAccountDetailRequest): Promise<RestApiResponse<GetUmAccountDetailResponse>>;
    /**
     * Get current UM account asset and position information.
     *
     * Weight: 5
     *
     * @summary Get UM Account Detail V2(USER_DATA)
     * @param {GetUmAccountDetailV2Request} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetUmAccountDetailV2Response>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Account-Detail-V2 Binance API Documentation}
     */
    getUmAccountDetailV2(requestParameters?: GetUmAccountDetailV2Request): Promise<RestApiResponse<GetUmAccountDetailV2Response>>;
    /**
     * Get user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in UM
     *
     * Weight: 30
     *
     * @summary Get UM Current Position Mode(USER_DATA)
     * @param {GetUmCurrentPositionModeRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetUmCurrentPositionModeResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Current-Position-Mode Binance API Documentation}
     */
    getUmCurrentPositionMode(requestParameters?: GetUmCurrentPositionModeRequest): Promise<RestApiResponse<GetUmCurrentPositionModeResponse>>;
    /**
     * Get UM futures order download link by Id
     *
     * Download link expiration: 24h
     *
     * Weight: 10
     *
     * @summary Get UM Futures Order Download Link by Id(USER_DATA)
     * @param {GetUmFuturesOrderDownloadLinkByIdRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetUmFuturesOrderDownloadLinkByIdResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Futures-Order-Download-Link-by-Id Binance API Documentation}
     */
    getUmFuturesOrderDownloadLinkById(requestParameters: GetUmFuturesOrderDownloadLinkByIdRequest): Promise<RestApiResponse<GetUmFuturesOrderDownloadLinkByIdResponse>>;
    /**
     * Get UM futures trade download link by Id
     *
     * Download link expiration: 24h
     *
     * Weight: 10
     *
     * @summary Get UM Futures Trade Download Link by Id(USER_DATA)
     * @param {GetUmFuturesTradeDownloadLinkByIdRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetUmFuturesTradeDownloadLinkByIdResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Futures-Trade-Download-Link-by-Id Binance API Documentation}
     */
    getUmFuturesTradeDownloadLinkById(requestParameters: GetUmFuturesTradeDownloadLinkByIdRequest): Promise<RestApiResponse<GetUmFuturesTradeDownloadLinkByIdResponse>>;
    /**
     * Get UM futures Transaction download link by Id
     *
     * Download link expiration: 24h
     *
     * Weight: 10
     *
     * @summary Get UM Futures Transaction Download Link by Id(USER_DATA)
     * @param {GetUmFuturesTransactionDownloadLinkByIdRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetUmFuturesTransactionDownloadLinkByIdResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Futures-Transaction-Download-Link-by-Id Binance API Documentation}
     */
    getUmFuturesTransactionDownloadLinkById(requestParameters: GetUmFuturesTransactionDownloadLinkByIdRequest): Promise<RestApiResponse<GetUmFuturesTransactionDownloadLinkByIdResponse>>;
    /**
     * Get UM Income History
     *
     * If neither `startTime` nor `endTime` is sent, the recent 7-day data will be returned.
     * If `incomeType` is not sent, all kinds of flow will be returned
     * "trandId" is unique in the same incomeType for a user
     * Income history only contains data for the last three months
     *
     * Weight: 30
     *
     * @summary Get UM Income History(USER_DATA)
     * @param {GetUmIncomeHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetUmIncomeHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Income-History Binance API Documentation}
     */
    getUmIncomeHistory(requestParameters?: GetUmIncomeHistoryRequest): Promise<RestApiResponse<GetUmIncomeHistoryResponse>>;
    /**
     * Get User Commission Rate for CM
     *
     * Weight: 20
     *
     * @summary Get User Commission Rate for CM(USER_DATA)
     * @param {GetUserCommissionRateForCmRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetUserCommissionRateForCmResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-User-Commission-Rate-for-CM Binance API Documentation}
     */
    getUserCommissionRateForCm(requestParameters: GetUserCommissionRateForCmRequest): Promise<RestApiResponse<GetUserCommissionRateForCmResponse>>;
    /**
     * Get User Commission Rate for UM
     *
     * Weight: 20
     *
     * @summary Get User Commission Rate for UM(USER_DATA)
     * @param {GetUserCommissionRateForUmRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetUserCommissionRateForUmResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-User-Commission-Rate-for-UM Binance API Documentation}
     */
    getUserCommissionRateForUm(requestParameters: GetUserCommissionRateForUmRequest): Promise<RestApiResponse<GetUserCommissionRateForUmResponse>>;
    /**
     * Query margin max borrow
     *
     * Weight: 5
     *
     * @summary Margin Max Borrow(USER_DATA)
     * @param {MarginMaxBorrowRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<MarginMaxBorrowResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Margin-Max-Borrow Binance API Documentation}
     */
    marginMaxBorrow(requestParameters: MarginMaxBorrowRequest): Promise<RestApiResponse<MarginMaxBorrowResponse>>;
    /**
     * Portfolio Margin UM Trading Quantitative Rules Indicators
     *
     * Weight: 1 for a single symbol
     * 10 when the symbol parameter is omitted
     *
     * @summary Portfolio Margin UM Trading Quantitative Rules Indicators(USER_DATA)
     * @param {PortfolioMarginUmTradingQuantitativeRulesIndicatorsRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Portfolio-Margin-UM-Trading-Quantitative-Rules-Indicators Binance API Documentation}
     */
    portfolioMarginUmTradingQuantitativeRulesIndicators(requestParameters?: PortfolioMarginUmTradingQuantitativeRulesIndicatorsRequest): Promise<RestApiResponse<PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponse>>;
    /**
     * Get current CM position 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 "LONG", and "SHORT" positions.
     * Please use with user data stream `ACCOUNT_UPDATE` to meet your timeliness and accuracy needs.
     *
     * Weight: 1
     *
     * @summary Query CM Position Information(USER_DATA)
     * @param {QueryCmPositionInformationRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryCmPositionInformationResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-CM-Position-Information Binance API Documentation}
     */
    queryCmPositionInformation(requestParameters?: QueryCmPositionInformationRequest): Promise<RestApiResponse<QueryCmPositionInformationResponse>>;
    /**
     * Query margin loan record
     *
     * txId or startTime must be sent. txId takes precedence.
     * Response in descending order
     * The max interval between `startTime` and `endTime` is 30 days.
     * If `startTime` and `endTime` not sent, return records of the last 7 days by default
     * Set `archived` to `true` to query data from 6 months ago
     *
     * Weight: 10
     *
     * @summary Query Margin Loan Record(USER_DATA)
     * @param {QueryMarginLoanRecordRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryMarginLoanRecordResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-Margin-Loan-Record Binance API Documentation}
     */
    queryMarginLoanRecord(requestParameters: QueryMarginLoanRecordRequest): Promise<RestApiResponse<QueryMarginLoanRecordResponse>>;
    /**
     * Query Margin Max Withdraw
     *
     * Weight: 5
     *
     * @summary Query Margin Max Withdraw(USER_DATA)
     * @param {QueryMarginMaxWithdrawRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryMarginMaxWithdrawResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-Margin-Max-Withdraw Binance API Documentation}
     */
    queryMarginMaxWithdraw(requestParameters: QueryMarginMaxWithdrawRequest): Promise<RestApiResponse<QueryMarginMaxWithdrawResponse>>;
    /**
     * Query margin repay record.
     *
     * txId or startTime must be sent. txId takes precedence.
     * Response in descending order
     * The max interval between `startTime` and `endTime` is 30 days.
     * If `startTime` and `endTime` not sent, return records of the last 7 days by default
     * Set `archived` to `true` to query data from 6 months ago
     *
     * Weight: 10
     *
     * @summary Query Margin repay Record(USER_DATA)
     * @param {QueryMarginRepayRecordRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryMarginRepayRecordResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-Margin-repay-Record Binance API Documentation}
     */
    queryMarginRepayRecord(requestParameters: QueryMarginRepayRecordRequest): Promise<RestApiResponse<QueryMarginRepayRecordResponse>>;
    /**
     * Query interest history of negative balance for portfolio margin.
     *
     * Response in descending order
     * The max interval between startTime and endTime is 30 days. It is a MUST to ensure data correctness.
     * If `startTime` and `endTime` not sent, return records of the last 7 days by default
     * If `startTime` is sent and `endTime` is not sent, the records from `startTime` to the present will be returned; if `startTime` is more than 30 days ago, the records of the past 30 days will be returned.
     * If `startTime` is not sent and `endTime` is sent, the records of the 7 days before `endTime` is returned.
     *
     * Weight: 50
     *
     * @summary Query Portfolio Margin Negative Balance Interest History(USER_DATA)
     * @param {QueryPortfolioMarginNegativeBalanceInterestHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryPortfolioMarginNegativeBalanceInterestHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-Portfolio-Margin-Negative-Balance-Interest-History Binance API Documentation}
     */
    queryPortfolioMarginNegativeBalanceInterestHistory(requestParameters?: QueryPortfolioMarginNegativeBalanceInterestHistoryRequest): Promise<RestApiResponse<QueryPortfolioMarginNegativeBalanceInterestHistoryResponse>>;
    /**
     * Get current UM position information.
     *
     * Please use with user data stream `ACCOUNT_UPDATE` to meet your timeliness and accuracy needs.
     * for One-way Mode user, the response will only show the "BOTH" positions
     * for Hedge Mode user, the response will show "LONG", and "SHORT" positions.
     *
     * Weight: 5
     *
     * @summary Query UM Position Information(USER_DATA)
     * @param {QueryUmPositionInformationRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryUmPositionInformationResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-UM-Position-Information Binance API Documentation}
     */
    queryUmPositionInformation(requestParameters?: QueryUmPositionInformationRequest): Promise<RestApiResponse<QueryUmPositionInformationResponse>>;
    /**
     * Query user negative balance auto exchange record
     *
     * Response in descending order
     * The max interval between `startTime` and `endTime` is 3 months.
     *
     * Weight: 100
     *
     * @summary Query User Negative Balance Auto Exchange Record (USER_DATA)
     * @param {QueryUserNegativeBalanceAutoExchangeRecordRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryUserNegativeBalanceAutoExchangeRecordResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-User-Negative-Balance-Auto-Exchange-Record Binance API Documentation}
     */
    queryUserNegativeBalanceAutoExchangeRecord(requestParameters: QueryUserNegativeBalanceAutoExchangeRecordRequest): Promise<RestApiResponse<QueryUserNegativeBalanceAutoExchangeRecordResponse>>;
    /**
     * Query User Rate Limit
     *
     * Weight: 1
     *
     * @summary Query User Rate Limit (USER_DATA)
     * @param {QueryUserRateLimitRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryUserRateLimitResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-User-Rate-Limit Binance API Documentation}
     */
    queryUserRateLimit(requestParameters?: QueryUserRateLimitRequest): Promise<RestApiResponse<QueryUserRateLimitResponse>>;
    /**
     * Repay futures Negative Balance
     *
     * Weight: 750
     *
     * @summary Repay futures Negative Balance(USER_DATA)
     * @param {RepayFuturesNegativeBalanceRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<RepayFuturesNegativeBalanceResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Repay-futures-Negative-Balance Binance API Documentation}
     */
    repayFuturesNegativeBalance(requestParameters?: RepayFuturesNegativeBalanceRequest): Promise<RestApiResponse<RepayFuturesNegativeBalanceResponse>>;
    /**
     * Query UM Futures account configuration
     *
     * Weight: 5
     *
     * @summary UM Futures Account Configuration(USER_DATA)
     * @param {UmFuturesAccountConfigurationRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<UmFuturesAccountConfigurationResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Futures-Account-Config Binance API Documentation}
     */
    umFuturesAccountConfiguration(requestParameters?: UmFuturesAccountConfigurationRequest): Promise<RestApiResponse<UmFuturesAccountConfigurationResponse>>;
    /**
     * Get current UM account symbol configuration.
     *
     * Weight: 5
     *
     * @summary UM Futures Symbol Configuration(USER_DATA)
     * @param {UmFuturesSymbolConfigurationRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<UmFuturesSymbolConfigurationResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Futures-Symbol-Config Binance API Documentation}
     */
    umFuturesSymbolConfiguration(requestParameters?: UmFuturesSymbolConfigurationRequest): Promise<RestApiResponse<UmFuturesSymbolConfigurationResponse>>;
    /**
     * Query UM notional and leverage brackets
     *
     * Weight: 1
     *
     * @summary UM Notional and Leverage Brackets (USER_DATA)
     * @param {UmNotionalAndLeverageBracketsRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<UmNotionalAndLeverageBracketsResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/account/UM-Notional-and-Leverage-Brackets Binance API Documentation}
     */
    umNotionalAndLeverageBrackets(requestParameters?: UmNotionalAndLeverageBracketsRequest): Promise<RestApiResponse<UmNotionalAndLeverageBracketsResponse>>;
    /**
     * 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/portfolio-margin/market-data/Test-Connectivity Binance API Documentation}
     */
    testConnectivity(): Promise<RestApiResponse<void>>;
    /**
     * Cancel All CM Open Conditional Orders
     *
     * Weight: 1
     *
     * @summary Cancel All CM Open Conditional Orders(TRADE)
     * @param {CancelAllCmOpenConditionalOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelAllCmOpenConditionalOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-CM-Open-Conditional-Orders Binance API Documentation}
     */
    cancelAllCmOpenConditionalOrders(requestParameters: CancelAllCmOpenConditionalOrdersRequest): Promise<RestApiResponse<CancelAllCmOpenConditionalOrdersResponse>>;
    /**
     * Cancel all active LIMIT orders on specific symbol
     *
     * Weight: 1
     *
     * @summary Cancel All CM Open Orders(TRADE)
     * @param {CancelAllCmOpenOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelAllCmOpenOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-CM-Open-Orders Binance API Documentation}
     */
    cancelAllCmOpenOrders(requestParameters: CancelAllCmOpenOrdersRequest): Promise<RestApiResponse<CancelAllCmOpenOrdersResponse>>;
    /**
     * Cancel All UM Open Conditional Orders
     *
     * Weight: 1
     *
     * @summary Cancel All UM Open Conditional Orders (TRADE)
     * @param {CancelAllUmOpenConditionalOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelAllUmOpenConditionalOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-UM-Open-Conditional-Orders Binance API Documentation}
     */
    cancelAllUmOpenConditionalOrders(requestParameters: CancelAllUmOpenConditionalOrdersRequest): Promise<RestApiResponse<CancelAllUmOpenConditionalOrdersResponse>>;
    /**
     * Cancel all active LIMIT orders on specific symbol
     *
     * Weight: 1
     *
     * @summary Cancel All UM Open Orders(TRADE)
     * @param {CancelAllUmOpenOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelAllUmOpenOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-UM-Open-Orders Binance API Documentation}
     */
    cancelAllUmOpenOrders(requestParameters: CancelAllUmOpenOrdersRequest): Promise<RestApiResponse<CancelAllUmOpenOrdersResponse>>;
    /**
     * Cancel CM Conditional Order
     *
     * Either `strategyId` or `newClientStrategyId` must be sent.
     *
     * Weight: 1
     *
     * @summary Cancel CM Conditional Order(TRADE)
     * @param {CancelCmConditionalOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelCmConditionalOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-CM-Conditional-Order Binance API Documentation}
     */
    cancelCmConditionalOrder(requestParameters: CancelCmConditionalOrderRequest): Promise<RestApiResponse<CancelCmConditionalOrderResponse>>;
    /**
     * Cancel an active LIMIT order
     *
     * Either `orderId` or `origClientOrderId` must be sent.
     *
     * Weight: 1
     *
     * @summary Cancel CM Order(TRADE)
     * @param {CancelCmOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelCmOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-CM-Order Binance API Documentation}
     */
    cancelCmOrder(requestParameters: CancelCmOrderRequest): Promise<RestApiResponse<CancelCmOrderResponse>>;
    /**
     * Cancel Margin Account All Open Orders on a Symbol
     *
     * Weight: 5
     *
     * @summary Cancel Margin Account All Open Orders on a Symbol(TRADE)
     * @param {CancelMarginAccountAllOpenOrdersOnASymbolRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelMarginAccountAllOpenOrdersOnASymbolResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-Margin-Account-All-Open-Orders-on-a-Symbol Binance API Documentation}
     */
    cancelMarginAccountAllOpenOrdersOnASymbol(requestParameters: CancelMarginAccountAllOpenOrdersOnASymbolRequest): Promise<RestApiResponse<CancelMarginAccountAllOpenOrdersOnASymbolResponse>>;
    /**
     * Cancel Margin Account OCO Orders
     *
     * Additional notes: Canceling an individual leg will cancel the entire OCO
     *
     * Weight: 2
     *
     * @summary Cancel Margin Account OCO Orders(TRADE)
     * @param {CancelMarginAccountOcoOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelMarginAccountOcoOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-Margin-Account-OCO-Orders Binance API Documentation}
     */
    cancelMarginAccountOcoOrders(requestParameters: CancelMarginAccountOcoOrdersRequest): Promise<RestApiResponse<CancelMarginAccountOcoOrdersResponse>>;
    /**
     * Cancel Margin Account Order
     *
     * Either `orderId` or `origClientOrderId` must be sent.
     *
     * Weight: 2
     *
     * @summary Cancel Margin Account Order(TRADE)
     * @param {CancelMarginAccountOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelMarginAccountOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-Margin-Account-Order Binance API Documentation}
     */
    cancelMarginAccountOrder(requestParameters: CancelMarginAccountOrderRequest): Promise<RestApiResponse<CancelMarginAccountOrderResponse>>;
    /**
     * Cancel UM Conditional Order
     *
     * Either `strategyId` or `newClientStrategyId` must be sent.
     *
     * Weight: 1
     *
     * @summary Cancel UM Conditional Order(TRADE)
     * @param {CancelUmConditionalOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelUmConditionalOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-UM-Conditional-Order Binance API Documentation}
     */
    cancelUmConditionalOrder(requestParameters: CancelUmConditionalOrderRequest): Promise<RestApiResponse<CancelUmConditionalOrderResponse>>;
    /**
     * Cancel an active UM LIMIT order
     *
     * Either `orderId` or `origClientOrderId` must be sent.
     *
     * Weight: 1
     *
     * @summary Cancel UM Order(TRADE)
     * @param {CancelUmOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CancelUmOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-UM-Order Binance API Documentation}
     */
    cancelUmOrder(requestParameters: CancelUmOrderRequest): Promise<RestApiResponse<CancelUmOrderResponse>>;
    /**
     * Get trades for a specific account and CM 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`
     *
     * Weight: 20 with symbol, 40 with pair
     *
     * @summary CM Account Trade List(USER_DATA)
     * @param {CmAccountTradeListRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CmAccountTradeListResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/CM-Account-Trade-List Binance API Documentation}
     */
    cmAccountTradeList(requestParameters?: CmAccountTradeListRequest): Promise<RestApiResponse<CmAccountTradeListResponse>>;
    /**
     * Query CM 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 CM Position ADL Quantile Estimation(USER_DATA)
     * @param {CmPositionAdlQuantileEstimationRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<CmPositionAdlQuantileEstimationResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/CM-Position-ADL-Quantile-Estimation Binance API Documentation}
     */
    cmPositionAdlQuantileEstimation(requestParameters?: CmPositionAdlQuantileEstimationRequest): Promise<RestApiResponse<CmPositionAdlQuantileEstimationResponse>>;
    /**
     * Get user's BNB Fee Discount for UM Futures (Fee Discount On or Fee Discount Off )
     *
     * Weight: 30
     *
     * @summary Get UM Futures BNB Burn Status (USER_DATA)
     * @param {GetUmFuturesBnbBurnStatusRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<GetUmFuturesBnbBurnStatusResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Get-UM-Futures-BNB-Burn-Status Binance API Documentation}
     */
    getUmFuturesBnbBurnStatus(requestParameters?: GetUmFuturesBnbBurnStatusRequest): Promise<RestApiResponse<GetUmFuturesBnbBurnStatusResponse>>;
    /**
     * Apply for a margin loan.
     *
     * Weight: 100
     *
     * @summary Margin Account Borrow(MARGIN)
     * @param {MarginAccountBorrowRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<MarginAccountBorrowResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Borrow Binance API Documentation}
     */
    marginAccountBorrow(requestParameters: MarginAccountBorrowRequest): Promise<RestApiResponse<MarginAccountBorrowResponse>>;
    /**
     * Send in a new OCO for a margin account
     *
     * Price Restrictions:
     * `SELL`: Limit Price > Last Price > Stop Price
     * `BUY`: Limit Price < Last Price < Stop Price
     * Quantity Restrictions:
     * Both legs must have the same quantity
     * `ICEBERG` quantities however do not have to be the same.
     * Order Rate Limit
     * `OCO` counts as 2 orders against the order rate limit.
     *
     * Weight: 1
     *
     * @summary Margin Account New OCO(TRADE)
     * @param {MarginAccountNewOcoRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<MarginAccountNewOcoResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-New-OCO Binance API Documentation}
     */
    marginAccountNewOco(requestParameters: MarginAccountNewOcoRequest): Promise<RestApiResponse<MarginAccountNewOcoResponse>>;
    /**
     * Repay for a margin loan.
     *
     * Weight: 100
     *
     * @summary Margin Account Repay(MARGIN)
     * @param {MarginAccountRepayRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<MarginAccountRepayResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Repay Binance API Documentation}
     */
    marginAccountRepay(requestParameters: MarginAccountRepayRequest): Promise<RestApiResponse<MarginAccountRepayResponse>>;
    /**
     * Repay debt for a margin loan.
     *
     * The repay asset amount cannot exceed 50000 USD equivalent value for a single request.
     * If `amount` is not sent, all the asset loan will be repaid if having enough specific repay assets.
     * If `amount` is sent, only the certain amount of the asset loan will be repaid if having enough specific repay assets.
     * The system will use the same asset to repay the loan first (if have) no matter whether put the asset in `specifyRepayAssets`
     *
     * Weight: 3000
     *
     * @summary Margin Account Repay Debt(TRADE)
     * @param {MarginAccountRepayDebtRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<MarginAccountRepayDebtResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Repay-Debt Binance API Documentation}
     */
    marginAccountRepayDebt(requestParameters: MarginAccountRepayDebtRequest): Promise<RestApiResponse<MarginAccountRepayDebtResponse>>;
    /**
     * Margin Account Trade List
     *
     * Weight: 5
     *
     * @summary Margin Account Trade List (USER_DATA)
     * @param {MarginAccountTradeListRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<MarginAccountTradeListResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Trade-List Binance API Documentation}
     */
    marginAccountTradeList(requestParameters: MarginAccountTradeListRequest): Promise<RestApiResponse<MarginAccountTradeListResponse>>;
    /**
     * 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
     * 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
     *
     * Weight: 1
     *
     * @summary Modify CM Order(TRADE)
     * @param {ModifyCmOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ModifyCmOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Modify-CM-Order Binance API Documentation}
     */
    modifyCmOrder(requestParameters: ModifyCmOrderRequest): Promise<RestApiResponse<ModifyCmOrderResponse>>;
    /**
     * 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
     * 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
     *
     * Weight: 1
     *
     * @summary Modify UM Order(TRADE)
     * @param {ModifyUmOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ModifyUmOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Modify-UM-Order Binance API Documentation}
     */
    modifyUmOrder(requestParameters: ModifyUmOrderRequest): Promise<RestApiResponse<ModifyUmOrderResponse>>;
    /**
     * New CM Conditional Order
     *
     * Order with type `STOP/TAKE_PROFIT`, parameter `timeInForce` can be sent ( default `GTC`).
     * Condition orders will be triggered when:
     * `STOP`, `STOP_MARKET`:
     * BUY: "MARK_PRICE"  >= `stopPrice`
     * SELL: "MARK_PRICE" <= `stopPrice`
     * `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`:
     * BUY: "MARK_PRICE" <= `stopPrice`
     * SELL: "MARK_PRICE" >= `stopPrice`
     * `TRAILING_STOP_MARKET`:
     * BUY: the lowest mark price after order placed `<= `activationPrice`, and the latest mark price >`= the lowest mark price * (1 + `callbackRate`)
     * SELL: the highest mark price after order placed >= `activationPrice`, and the latest mark price <= the highest mark 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 mark price.
     * SELL: `activationPrice` should be larger than latest mark price.
     * 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 /fapi/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`
     *
     * Weight: 1
     *
     * @summary New CM Conditional Order(TRADE)
     * @param {NewCmConditionalOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<NewCmConditionalOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-CM-Conditional-Order Binance API Documentation}
     */
    newCmConditionalOrder(requestParameters: NewCmConditionalOrderRequest): Promise<RestApiResponse<NewCmConditionalOrderResponse>>;
    /**
     * Place new CM order
     *
     * 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.
     *
     * Weight: 1
     *
     * @summary New CM Order(TRADE)
     * @param {NewCmOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<NewCmOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-CM-Order Binance API Documentation}
     */
    newCmOrder(requestParameters: NewCmOrderRequest): Promise<RestApiResponse<NewCmOrderResponse>>;
    /**
     * New Margin Order
     *
     * Weight: 1
     *
     * @summary New Margin Order(TRADE)
     * @param {NewMarginOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<NewMarginOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-Margin-Order Binance API Documentation}
     */
    newMarginOrder(requestParameters: NewMarginOrderRequest): Promise<RestApiResponse<NewMarginOrderResponse>>;
    /**
     * Place new UM conditional order
     *
     * Order with type `STOP/TAKE_PROFIT`, parameter `timeInForce` can be sent ( default `GTC`).
     * Condition orders will be triggered when:
     * `STOP`, `STOP_MARKET`:
     * BUY: "MARK_PRICE"  >= `stopPrice`
     * SELL: "MARK_PRICE" <= `stopPrice`
     * `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`:
     * BUY: "MARK_PRICE" <= `stopPrice`
     * SELL: "MARK_PRICE" >= `stopPrice`
     * `TRAILING_STOP_MARKET`:
     * BUY: the lowest mark price after order placed `<= `activationPrice`, and the latest mark price >`= the lowest mark price * (1 + `callbackRate`)
     * SELL: the highest mark price after order placed >= `activationPrice`, and the latest mark price <= the highest mark 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 mark price.
     * SELL: `activationPrice` should be larger than latest mark price.
     * 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 /fapi/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`
     * `selfTradePreventionMode` is only effective when `timeInForce` set to `IOC` or `GTC` or `GTD`.
     * In extreme market conditions, timeInForce `GTD` order auto cancel time might be delayed comparing to `goodTillDate`
     *
     * Weight: 1
     *
     * @summary New UM Conditional Order (TRADE)
     * @param {NewUmConditionalOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<NewUmConditionalOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-UM-Conditional-Order Binance API Documentation}
     */
    newUmConditionalOrder(requestParameters: NewUmConditionalOrderRequest): Promise<RestApiResponse<NewUmConditionalOrderResponse>>;
    /**
     * Place new UM order
     *
     * 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.
     * `selfTradePreventionMode` is only effective when `timeInForce` set to `IOC` or `GTC` or `GTD`.
     * In extreme market conditions, timeInForce `GTD` order auto cancel time might be delayed comparing to `goodTillDate`
     *
     * Weight: 1
     *
     * @summary New UM Order (TRADE)
     * @param {NewUmOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<NewUmOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-UM-Order Binance API Documentation}
     */
    newUmOrder(requestParameters: NewUmOrderRequest): Promise<RestApiResponse<NewUmOrderResponse>>;
    /**
     * Query All CM Conditional Orders
     *
     * These orders will not be found:
     * order strategyStatus is `CANCELED` or `EXPIRED`, **AND**
     * order has NO filled trade, **AND**
     * created time + 7 days < current time
     * The query time period must be less than 7 days( default as the recent 7 days).
     *
     * Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
     *
     * @summary Query All CM Conditional Orders(USER_DATA)
     * @param {QueryAllCmConditionalOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryAllCmConditionalOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Conditional-Orders Binance API Documentation}
     */
    queryAllCmConditionalOrders(requestParameters?: QueryAllCmConditionalOrdersRequest): Promise<RestApiResponse<QueryAllCmConditionalOrdersResponse>>;
    /**
     * Get all account CM orders; active, canceled, or filled.
     *
     * Either `symbol` or `pair` must be sent.
     * If `orderId` is set, it will get orders >= that orderId. Otherwise most recent orders are returned.
     * 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
     *
     * Weight: 20 with symbol, 40 with pair
     *
     * @summary Query All CM Orders (USER_DATA)
     * @param {QueryAllCmOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryAllCmOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Orders Binance API Documentation}
     */
    queryAllCmOrders(requestParameters: QueryAllCmOrdersRequest): Promise<RestApiResponse<QueryAllCmOrdersResponse>>;
    /**
     * Get all open conditional orders on a symbol. **Careful** when accessing this with no symbol.
     *
     * If the symbol is not sent, orders for all symbols will be returned in an array.
     *
     * Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
     *
     * @summary Query All Current CM Open Conditional Orders (USER_DATA)
     * @param {QueryAllCurrentCmOpenConditionalOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryAllCurrentCmOpenConditionalOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-CM-Open-Conditional-Orders Binance API Documentation}
     */
    queryAllCurrentCmOpenConditionalOrders(requestParameters?: QueryAllCurrentCmOpenConditionalOrdersRequest): Promise<RestApiResponse<QueryAllCurrentCmOpenConditionalOrdersResponse>>;
    /**
     * Get all open orders on a symbol.
     *
     * If the symbol is not sent, orders for all symbols will be returned in an array.
     *
     * Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
     * Careful when accessing this with no symbol.
     *
     * @summary Query All Current CM Open Orders(USER_DATA)
     * @param {QueryAllCurrentCmOpenOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryAllCurrentCmOpenOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-CM-Open-Orders Binance API Documentation}
     */
    queryAllCurrentCmOpenOrders(requestParameters?: QueryAllCurrentCmOpenOrdersRequest): Promise<RestApiResponse<QueryAllCurrentCmOpenOrdersResponse>>;
    /**
     * Get all open conditional orders on a symbol.
     *
     * If the symbol is not sent, orders for all symbols will be returned in an array.
     *
     * Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
     * Careful when accessing this with no symbol.
     *
     * @summary Query All Current UM Open Conditional Orders(USER_DATA)
     * @param {QueryAllCurrentUmOpenConditionalOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryAllCurrentUmOpenConditionalOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-UM-Open-Conditional-Orders Binance API Documentation}
     */
    queryAllCurrentUmOpenConditionalOrders(requestParameters?: QueryAllCurrentUmOpenConditionalOrdersRequest): Promise<RestApiResponse<QueryAllCurrentUmOpenConditionalOrdersResponse>>;
    /**
     * Get all open orders on a symbol.
     *
     *
     * If the symbol is not sent, orders for all symbols will be returned in an array.
     *
     * Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
     *
     * @summary Query All Current UM Open Orders(USER_DATA)
     * @param {QueryAllCurrentUmOpenOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryAllCurrentUmOpenOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-UM-Open-Orders Binance API Documentation}
     */
    queryAllCurrentUmOpenOrders(requestParameters?: QueryAllCurrentUmOpenOrdersRequest): Promise<RestApiResponse<QueryAllCurrentUmOpenOrdersResponse>>;
    /**
     * Query All Margin Account Orders
     *
     * Weight: 100
     *
     * @summary Query All Margin Account Orders (USER_DATA)
     * @param {QueryAllMarginAccountOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryAllMarginAccountOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Margin-Account-Orders Binance API Documentation}
     */
    queryAllMarginAccountOrders(requestParameters: QueryAllMarginAccountOrdersRequest): Promise<RestApiResponse<QueryAllMarginAccountOrdersResponse>>;
    /**
     * Query All UM Conditional Orders
     *
     * These orders will not be found:
     * order strategyStatus is `CANCELED` or `EXPIRED`, **AND**
     * order has NO filled trade, **AND**
     * created time + 7 days < current time
     * The query time period must be less than 7 days( default as the recent 7 days).
     *
     * Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
     *
     * @summary Query All UM Conditional Orders(USER_DATA)
     * @param {QueryAllUmConditionalOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryAllUmConditionalOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Conditional-Orders Binance API Documentation}
     */
    queryAllUmConditionalOrders(requestParameters?: QueryAllUmConditionalOrdersRequest): Promise<RestApiResponse<QueryAllUmConditionalOrdersResponse>>;
    /**
     * Get all account UM 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
     *
     * 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: 5
     *
     * @summary Query All UM Orders(USER_DATA)
     * @param {QueryAllUmOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryAllUmOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders Binance API Documentation}
     */
    queryAllUmOrders(requestParameters: QueryAllUmOrdersRequest): Promise<RestApiResponse<QueryAllUmOrdersResponse>>;
    /**
     * Query CM Conditional Order History
     *
     *
     * Either `strategyId` or `newClientStrategyId` must be sent.
     * `NEW` orders will not be found.
     * These orders will not be found:
     * order status is `CANCELED` or `EXPIRED`, **AND**
     * order has NO filled trade, **AND**
     * created time + 7 days < current time
     *
     * Weight: 1
     *
     * @summary Query CM Conditional Order History(USER_DATA)
     * @param {QueryCmConditionalOrderHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryCmConditionalOrderHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-CM-Conditional-Order-History Binance API Documentation}
     */
    queryCmConditionalOrderHistory(requestParameters: QueryCmConditionalOrderHistoryRequest): Promise<RestApiResponse<QueryCmConditionalOrderHistoryResponse>>;
    /**
     * Get order modification history
     *
     * Either `orderId` or `origClientOrderId` must be sent, and the `orderId` will prevail if both are sent.
     *
     * Weight: 1
     *
     * @summary Query CM Modify Order History(TRADE)
     * @param {QueryCmModifyOrderHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryCmModifyOrderHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-CM-Modify-Order-History Binance API Documentation}
     */
    queryCmModifyOrderHistory(requestParameters: QueryCmModifyOrderHistoryRequest): Promise<RestApiResponse<QueryCmModifyOrderHistoryResponse>>;
    /**
     * Check an CM order's status.
     *
     * Either `orderId` or `origClientOrderId` must be sent.
     * 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
     *
     * Weight: 1
     *
     * @summary Query CM Order(USER_DATA)
     * @param {QueryCmOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryCmOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-CM-Order Binance API Documentation}
     */
    queryCmOrder(requestParameters: QueryCmOrderRequest): Promise<RestApiResponse<QueryCmOrderResponse>>;
    /**
     * Query Current CM Open Conditional Order
     *
     * Either `strategyId` or `newClientStrategyId` must be sent.
     * If the queried order has been triggered, cancelled or expired, the error message "Order does not exist" will be returned.
     *
     * Weight: 1
     *
     * @summary Query Current CM Open Conditional Order(USER_DATA)
     * @param {QueryCurrentCmOpenConditionalOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryCurrentCmOpenConditionalOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-CM-Open-Conditional-Order Binance API Documentation}
     */
    queryCurrentCmOpenConditionalOrder(requestParameters: QueryCurrentCmOpenConditionalOrderRequest): Promise<RestApiResponse<QueryCurrentCmOpenConditionalOrderResponse>>;
    /**
     * Query current CM 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 CM Open Order (USER_DATA)
     * @param {QueryCurrentCmOpenOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryCurrentCmOpenOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-CM-Open-Order Binance API Documentation}
     */
    queryCurrentCmOpenOrder(requestParameters: QueryCurrentCmOpenOrderRequest): Promise<RestApiResponse<QueryCurrentCmOpenOrderResponse>>;
    /**
     * Query Current Margin Open Order
     *
     * Weight: 5
     *
     * @summary Query Current Margin Open Order (USER_DATA)
     * @param {QueryCurrentMarginOpenOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryCurrentMarginOpenOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-Margin-Open-Order Binance API Documentation}
     */
    queryCurrentMarginOpenOrder(requestParameters: QueryCurrentMarginOpenOrderRequest): Promise<RestApiResponse<QueryCurrentMarginOpenOrderResponse>>;
    /**
     * Query Current UM Open Conditional Order
     *
     * Either `strategyId` or `newClientStrategyId` must be sent.
     * If the queried order has been `CANCELED`, `TRIGGERED`或`EXPIRED`, the error message "Order does not exist" will be returned.
     *
     * Weight: 1
     *
     * @summary Query Current UM Open Conditional Order(USER_DATA)
     * @param {QueryCurrentUmOpenConditionalOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryCurrentUmOpenConditionalOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Conditional-Order Binance API Documentation}
     */
    queryCurrentUmOpenConditionalOrder(requestParameters: QueryCurrentUmOpenConditionalOrderRequest): Promise<RestApiResponse<QueryCurrentUmOpenConditionalOrderResponse>>;
    /**
     * Query current UM 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 UM Open Order(USER_DATA)
     * @param {QueryCurrentUmOpenOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryCurrentUmOpenOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Order Binance API Documentation}
     */
    queryCurrentUmOpenOrder(requestParameters: QueryCurrentUmOpenOrderRequest): Promise<RestApiResponse<QueryCurrentUmOpenOrderResponse>>;
    /**
     * Query Margin Account Order
     *
     * Weight: 10
     *
     * @summary Query Margin Account Order (USER_DATA)
     * @param {QueryMarginAccountOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryMarginAccountOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Margin-Account-Order Binance API Documentation}
     */
    queryMarginAccountOrder(requestParameters: QueryMarginAccountOrderRequest): Promise<RestApiResponse<QueryMarginAccountOrderResponse>>;
    /**
     * Query all OCO for a specific margin account based on provided optional parameters
     *
     * Weight: 100
     *
     * @summary Query Margin Account\'s all OCO (USER_DATA)
     * @param {QueryMarginAccountsAllOcoRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryMarginAccountsAllOcoResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Margin-Account-all-OCO Binance API Documentation}
     */
    queryMarginAccountsAllOco(requestParameters?: QueryMarginAccountsAllOcoRequest): Promise<RestApiResponse<QueryMarginAccountsAllOcoResponse>>;
    /**
     * Retrieves a specific OCO based on provided optional parameters
     *
     * Weight: 5
     *
     * @summary Query Margin Account\'s OCO (USER_DATA)
     * @param {QueryMarginAccountsOcoRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryMarginAccountsOcoResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Margin-Account-OCO Binance API Documentation}
     */
    queryMarginAccountsOco(requestParameters?: QueryMarginAccountsOcoRequest): Promise<RestApiResponse<QueryMarginAccountsOcoResponse>>;
    /**
     * Query Margin Account's Open OCO
     *
     * Weight: 5
     *
     * @summary Query Margin Account\'s Open OCO (USER_DATA)
     * @param {QueryMarginAccountsOpenOcoRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryMarginAccountsOpenOcoResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Margin-Account-Open-OCO Binance API Documentation}
     */
    queryMarginAccountsOpenOco(requestParameters?: QueryMarginAccountsOpenOcoRequest): Promise<RestApiResponse<QueryMarginAccountsOpenOcoResponse>>;
    /**
     * Query UM Conditional Order History
     *
     * Either `strategyId` or `newClientStrategyId` must be sent.
     * `NEW` orders will not be found.
     * These orders will not be found:
     * order status is `CANCELED` or `EXPIRED`, **AND**
     * order has NO filled trade, **AND**
     * created time + 7 days < current time
     *
     * Weight: 1
     *
     * @summary Query UM Conditional Order History(USER_DATA)
     * @param {QueryUmConditionalOrderHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryUmConditionalOrderHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Conditional-Order-History Binance API Documentation}
     */
    queryUmConditionalOrderHistory(requestParameters: QueryUmConditionalOrderHistoryRequest): Promise<RestApiResponse<QueryUmConditionalOrderHistoryResponse>>;
    /**
     * Get order modification history
     *
     * Either `orderId` or `origClientOrderId` must be sent, and the `orderId` will prevail if both are sent.
     *
     * Weight: 1
     *
     * @summary Query UM Modify Order History(TRADE)
     * @param {QueryUmModifyOrderHistoryRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryUmModifyOrderHistoryResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Modify-Order-History Binance API Documentation}
     */
    queryUmModifyOrderHistory(requestParameters: QueryUmModifyOrderHistoryRequest): Promise<RestApiResponse<QueryUmModifyOrderHistoryResponse>>;
    /**
     * Check an UM order's status.
     *
     * These orders will not be found:
     * Either `orderId` or `origClientOrderId` must be sent.
     * order status is `CANCELED` or `EXPIRED`, **AND**
     * order has NO filled trade, **AND**
     * created time + 3 days < current time
     *
     * Weight: 1
     *
     * @summary Query UM Order (USER_DATA)
     * @param {QueryUmOrderRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryUmOrderResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Order Binance API Documentation}
     */
    queryUmOrder(requestParameters: QueryUmOrderRequest): Promise<RestApiResponse<QueryUmOrderResponse>>;
    /**
     * Query User's CM Force Orders
     *
     * If "autoCloseType" is not sent, orders with both of the types will be returned
     * If "startTime" is not sent, data within 7 days before "endTime" can be queried
     *
     * Weight: 20 with symbol, 50 without symbol
     *
     * @summary Query User\'s CM Force Orders(USER_DATA)
     * @param {QueryUsersCmForceOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryUsersCmForceOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-CM-Force-Orders Binance API Documentation}
     */
    queryUsersCmForceOrders(requestParameters?: QueryUsersCmForceOrdersRequest): Promise<RestApiResponse<QueryUsersCmForceOrdersResponse>>;
    /**
     * Query user's margin force orders
     *
     * Weight: 1
     *
     * @summary Query User\'s Margin Force Orders(USER_DATA)
     * @param {QueryUsersMarginForceOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryUsersMarginForceOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-Margin-Force-Orders Binance API Documentation}
     */
    queryUsersMarginForceOrders(requestParameters?: QueryUsersMarginForceOrdersRequest): Promise<RestApiResponse<QueryUsersMarginForceOrdersResponse>>;
    /**
     * Query User's UM Force Orders
     *
     * If `autoCloseType` is not sent, orders with both of the types will be returned
     * If `startTime` is not sent, data within 7 days before `endTime` can be queried
     *
     * Weight: 20 with symbol, 50 without symbol
     *
     * @summary Query User\'s UM Force Orders (USER_DATA)
     * @param {QueryUsersUmForceOrdersRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<QueryUsersUmForceOrdersResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-UM-Force-Orders Binance API Documentation}
     */
    queryUsersUmForceOrders(requestParameters?: QueryUsersUmForceOrdersRequest): Promise<RestApiResponse<QueryUsersUmForceOrdersResponse>>;
    /**
     * Change user's BNB Fee Discount for UM Futures (Fee Discount On or Fee Discount Off ) on ***EVERY symbol***
     *
     *
     * The BNB would not be collected from UM-PM account to the Portfolio Margin account.
     *
     * Weight: 1
     *
     * @summary Toggle BNB Burn On UM Futures Trade (TRADE)
     * @param {ToggleBnbBurnOnUmFuturesTradeRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<ToggleBnbBurnOnUmFuturesTradeResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Toggle-BNB-Burn-On-UM-Futures-Trade Binance API Documentation}
     */
    toggleBnbBurnOnUmFuturesTrade(requestParameters: ToggleBnbBurnOnUmFuturesTradeRequest): Promise<RestApiResponse<ToggleBnbBurnOnUmFuturesTradeResponse>>;
    /**
     * Get trades for a specific account and UM symbol.
     *
     *
     * If `startTime` and `endTime` are both not sent, then the last '24 hours' data will be returned.
     * The time between `startTime` and `endTime` cannot be longer than 24 hours.
     * The parameter `fromId` cannot be sent with `startTime` or `endTime`.
     *
     * Weight: 5
     *
     * @summary UM Account Trade List(USER_DATA)
     * @param {UmAccountTradeListRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<UmAccountTradeListResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/UM-Account-Trade-List Binance API Documentation}
     */
    umAccountTradeList(requestParameters: UmAccountTradeListRequest): Promise<RestApiResponse<UmAccountTradeListResponse>>;
    /**
     * Query UM 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 UM Position ADL Quantile Estimation(USER_DATA)
     * @param {UmPositionAdlQuantileEstimationRequest} requestParameters Request parameters.
     * @returns {Promise<RestApiResponse<UmPositionAdlQuantileEstimationResponse>>}
     * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
     * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/UM-Position-ADL-Quantile-Estimation Binance API Documentation}
     */
    umPositionAdlQuantileEstimation(requestParameters?: UmPositionAdlQuantileEstimationRequest): Promise<RestApiResponse<UmPositionAdlQuantileEstimationResponse>>;
    /**
     * 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/portfolio-margin/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. It's recommended to send a ping about every 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/portfolio-margin/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/portfolio-margin/user-data-streams/Start-User-Data-Stream Binance API Documentation}
     */
    startUserDataStream(): Promise<RestApiResponse<StartUserDataStreamResponse>>;
}

/**
 * Binance Derivatives Trading Portfolio Margin REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin REST API
 *
 * The version of the OpenAPI document: 1.0.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_AccountApi = AccountApi;
declare const index_AccountApi: typeof AccountApi;
type index_AccountApiInterface = AccountApiInterface;
type index_AccountBalanceRequest = AccountBalanceRequest;
type index_AccountBalanceResponse = AccountBalanceResponse;
type index_AccountBalanceResponse1 = AccountBalanceResponse1;
type index_AccountBalanceResponse1Inner = AccountBalanceResponse1Inner;
type index_AccountBalanceResponse2 = AccountBalanceResponse2;
type index_AccountInformationRequest = AccountInformationRequest;
type index_AccountInformationResponse = AccountInformationResponse;
type index_BnbTransferRequest = BnbTransferRequest;
type index_BnbTransferResponse = BnbTransferResponse;
type index_CancelAllCmOpenConditionalOrdersRequest = CancelAllCmOpenConditionalOrdersRequest;
type index_CancelAllCmOpenConditionalOrdersResponse = CancelAllCmOpenConditionalOrdersResponse;
type index_CancelAllCmOpenOrdersRequest = CancelAllCmOpenOrdersRequest;
type index_CancelAllCmOpenOrdersResponse = CancelAllCmOpenOrdersResponse;
type index_CancelAllUmOpenConditionalOrdersRequest = CancelAllUmOpenConditionalOrdersRequest;
type index_CancelAllUmOpenConditionalOrdersResponse = CancelAllUmOpenConditionalOrdersResponse;
type index_CancelAllUmOpenOrdersRequest = CancelAllUmOpenOrdersRequest;
type index_CancelAllUmOpenOrdersResponse = CancelAllUmOpenOrdersResponse;
type index_CancelCmConditionalOrderRequest = CancelCmConditionalOrderRequest;
type index_CancelCmConditionalOrderResponse = CancelCmConditionalOrderResponse;
type index_CancelCmOrderRequest = CancelCmOrderRequest;
type index_CancelCmOrderResponse = CancelCmOrderResponse;
type index_CancelMarginAccountAllOpenOrdersOnASymbolRequest = CancelMarginAccountAllOpenOrdersOnASymbolRequest;
type index_CancelMarginAccountAllOpenOrdersOnASymbolResponse = CancelMarginAccountAllOpenOrdersOnASymbolResponse;
type index_CancelMarginAccountAllOpenOrdersOnASymbolResponseInner = CancelMarginAccountAllOpenOrdersOnASymbolResponseInner;
type index_CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner = CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner;
type index_CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrdersInner = CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrdersInner;
type index_CancelMarginAccountOcoOrdersRequest = CancelMarginAccountOcoOrdersRequest;
type index_CancelMarginAccountOcoOrdersResponse = CancelMarginAccountOcoOrdersResponse;
type index_CancelMarginAccountOcoOrdersResponseOrderReportsInner = CancelMarginAccountOcoOrdersResponseOrderReportsInner;
type index_CancelMarginAccountOcoOrdersResponseOrdersInner = CancelMarginAccountOcoOrdersResponseOrdersInner;
type index_CancelMarginAccountOrderRequest = CancelMarginAccountOrderRequest;
type index_CancelMarginAccountOrderResponse = CancelMarginAccountOrderResponse;
type index_CancelUmConditionalOrderRequest = CancelUmConditionalOrderRequest;
type index_CancelUmConditionalOrderResponse = CancelUmConditionalOrderResponse;
type index_CancelUmOrderRequest = CancelUmOrderRequest;
type index_CancelUmOrderResponse = CancelUmOrderResponse;
type index_ChangeAutoRepayFuturesStatusRequest = ChangeAutoRepayFuturesStatusRequest;
type index_ChangeAutoRepayFuturesStatusResponse = ChangeAutoRepayFuturesStatusResponse;
type index_ChangeCmInitialLeverageRequest = ChangeCmInitialLeverageRequest;
type index_ChangeCmInitialLeverageResponse = ChangeCmInitialLeverageResponse;
type index_ChangeCmPositionModeRequest = ChangeCmPositionModeRequest;
type index_ChangeCmPositionModeResponse = ChangeCmPositionModeResponse;
type index_ChangeUmInitialLeverageRequest = ChangeUmInitialLeverageRequest;
type index_ChangeUmInitialLeverageResponse = ChangeUmInitialLeverageResponse;
type index_ChangeUmPositionModeRequest = ChangeUmPositionModeRequest;
type index_ChangeUmPositionModeResponse = ChangeUmPositionModeResponse;
type index_CmAccountTradeListRequest = CmAccountTradeListRequest;
type index_CmAccountTradeListResponse = CmAccountTradeListResponse;
type index_CmAccountTradeListResponseInner = CmAccountTradeListResponseInner;
type index_CmNotionalAndLeverageBracketsRequest = CmNotionalAndLeverageBracketsRequest;
type index_CmNotionalAndLeverageBracketsResponse = CmNotionalAndLeverageBracketsResponse;
type index_CmNotionalAndLeverageBracketsResponseInner = CmNotionalAndLeverageBracketsResponseInner;
type index_CmNotionalAndLeverageBracketsResponseInnerBracketsInner = CmNotionalAndLeverageBracketsResponseInnerBracketsInner;
type index_CmPositionAdlQuantileEstimationRequest = CmPositionAdlQuantileEstimationRequest;
type index_CmPositionAdlQuantileEstimationResponse = CmPositionAdlQuantileEstimationResponse;
type index_CmPositionAdlQuantileEstimationResponseInner = CmPositionAdlQuantileEstimationResponseInner;
type index_CmPositionAdlQuantileEstimationResponseInnerAdlQuantile = CmPositionAdlQuantileEstimationResponseInnerAdlQuantile;
type index_FundAutoCollectionRequest = FundAutoCollectionRequest;
type index_FundAutoCollectionResponse = FundAutoCollectionResponse;
type index_FundCollectionByAssetRequest = FundCollectionByAssetRequest;
type index_FundCollectionByAssetResponse = FundCollectionByAssetResponse;
type index_GetAutoRepayFuturesStatusRequest = GetAutoRepayFuturesStatusRequest;
type index_GetAutoRepayFuturesStatusResponse = GetAutoRepayFuturesStatusResponse;
type index_GetCmAccountDetailRequest = GetCmAccountDetailRequest;
type index_GetCmAccountDetailResponse = GetCmAccountDetailResponse;
type index_GetCmAccountDetailResponseAssetsInner = GetCmAccountDetailResponseAssetsInner;
type index_GetCmAccountDetailResponsePositionsInner = GetCmAccountDetailResponsePositionsInner;
type index_GetCmCurrentPositionModeRequest = GetCmCurrentPositionModeRequest;
type index_GetCmCurrentPositionModeResponse = GetCmCurrentPositionModeResponse;
type index_GetCmIncomeHistoryRequest = GetCmIncomeHistoryRequest;
type index_GetCmIncomeHistoryResponse = GetCmIncomeHistoryResponse;
type index_GetCmIncomeHistoryResponseInner = GetCmIncomeHistoryResponseInner;
type index_GetDownloadIdForUmFuturesOrderHistoryRequest = GetDownloadIdForUmFuturesOrderHistoryRequest;
type index_GetDownloadIdForUmFuturesOrderHistoryResponse = GetDownloadIdForUmFuturesOrderHistoryResponse;
type index_GetDownloadIdForUmFuturesTradeHistoryRequest = GetDownloadIdForUmFuturesTradeHistoryRequest;
type index_GetDownloadIdForUmFuturesTradeHistoryResponse = GetDownloadIdForUmFuturesTradeHistoryResponse;
type index_GetDownloadIdForUmFuturesTransactionHistoryRequest = GetDownloadIdForUmFuturesTransactionHistoryRequest;
type index_GetDownloadIdForUmFuturesTransactionHistoryResponse = GetDownloadIdForUmFuturesTransactionHistoryResponse;
type index_GetMarginBorrowLoanInterestHistoryRequest = GetMarginBorrowLoanInterestHistoryRequest;
type index_GetMarginBorrowLoanInterestHistoryResponse = GetMarginBorrowLoanInterestHistoryResponse;
type index_GetMarginBorrowLoanInterestHistoryResponseRowsInner = GetMarginBorrowLoanInterestHistoryResponseRowsInner;
type index_GetUmAccountDetailRequest = GetUmAccountDetailRequest;
type index_GetUmAccountDetailResponse = GetUmAccountDetailResponse;
type index_GetUmAccountDetailResponsePositionsInner = GetUmAccountDetailResponsePositionsInner;
type index_GetUmAccountDetailV2Request = GetUmAccountDetailV2Request;
type index_GetUmAccountDetailV2Response = GetUmAccountDetailV2Response;
type index_GetUmAccountDetailV2ResponseAssetsInner = GetUmAccountDetailV2ResponseAssetsInner;
type index_GetUmAccountDetailV2ResponsePositionsInner = GetUmAccountDetailV2ResponsePositionsInner;
type index_GetUmCurrentPositionModeRequest = GetUmCurrentPositionModeRequest;
type index_GetUmCurrentPositionModeResponse = GetUmCurrentPositionModeResponse;
type index_GetUmFuturesBnbBurnStatusRequest = GetUmFuturesBnbBurnStatusRequest;
type index_GetUmFuturesBnbBurnStatusResponse = GetUmFuturesBnbBurnStatusResponse;
type index_GetUmFuturesOrderDownloadLinkByIdRequest = GetUmFuturesOrderDownloadLinkByIdRequest;
type index_GetUmFuturesOrderDownloadLinkByIdResponse = GetUmFuturesOrderDownloadLinkByIdResponse;
type index_GetUmFuturesTradeDownloadLinkByIdRequest = GetUmFuturesTradeDownloadLinkByIdRequest;
type index_GetUmFuturesTradeDownloadLinkByIdResponse = GetUmFuturesTradeDownloadLinkByIdResponse;
type index_GetUmFuturesTransactionDownloadLinkByIdRequest = GetUmFuturesTransactionDownloadLinkByIdRequest;
type index_GetUmFuturesTransactionDownloadLinkByIdResponse = GetUmFuturesTransactionDownloadLinkByIdResponse;
type index_GetUmIncomeHistoryRequest = GetUmIncomeHistoryRequest;
type index_GetUmIncomeHistoryResponse = GetUmIncomeHistoryResponse;
type index_GetUmIncomeHistoryResponseInner = GetUmIncomeHistoryResponseInner;
type index_GetUserCommissionRateForCmRequest = GetUserCommissionRateForCmRequest;
type index_GetUserCommissionRateForCmResponse = GetUserCommissionRateForCmResponse;
type index_GetUserCommissionRateForUmRequest = GetUserCommissionRateForUmRequest;
type index_GetUserCommissionRateForUmResponse = GetUserCommissionRateForUmResponse;
type index_MarginAccountBorrowRequest = MarginAccountBorrowRequest;
type index_MarginAccountBorrowResponse = MarginAccountBorrowResponse;
type index_MarginAccountNewOcoNewOrderRespTypeEnum = MarginAccountNewOcoNewOrderRespTypeEnum;
declare const index_MarginAccountNewOcoNewOrderRespTypeEnum: typeof MarginAccountNewOcoNewOrderRespTypeEnum;
type index_MarginAccountNewOcoRequest = MarginAccountNewOcoRequest;
type index_MarginAccountNewOcoResponse = MarginAccountNewOcoResponse;
type index_MarginAccountNewOcoResponseOrderReportsInner = MarginAccountNewOcoResponseOrderReportsInner;
type index_MarginAccountNewOcoResponseOrdersInner = MarginAccountNewOcoResponseOrdersInner;
type index_MarginAccountNewOcoSideEffectTypeEnum = MarginAccountNewOcoSideEffectTypeEnum;
declare const index_MarginAccountNewOcoSideEffectTypeEnum: typeof MarginAccountNewOcoSideEffectTypeEnum;
type index_MarginAccountNewOcoSideEnum = MarginAccountNewOcoSideEnum;
declare const index_MarginAccountNewOcoSideEnum: typeof MarginAccountNewOcoSideEnum;
type index_MarginAccountNewOcoStopLimitTimeInForceEnum = MarginAccountNewOcoStopLimitTimeInForceEnum;
declare const index_MarginAccountNewOcoStopLimitTimeInForceEnum: typeof MarginAccountNewOcoStopLimitTimeInForceEnum;
type index_MarginAccountRepayDebtRequest = MarginAccountRepayDebtRequest;
type index_MarginAccountRepayDebtResponse = MarginAccountRepayDebtResponse;
type index_MarginAccountRepayRequest = MarginAccountRepayRequest;
type index_MarginAccountRepayResponse = MarginAccountRepayResponse;
type index_MarginAccountTradeListRequest = MarginAccountTradeListRequest;
type index_MarginAccountTradeListResponse = MarginAccountTradeListResponse;
type index_MarginAccountTradeListResponseInner = MarginAccountTradeListResponseInner;
type index_MarginMaxBorrowRequest = MarginMaxBorrowRequest;
type index_MarginMaxBorrowResponse = MarginMaxBorrowResponse;
type index_MarketDataApi = MarketDataApi;
declare const index_MarketDataApi: typeof MarketDataApi;
type index_MarketDataApiInterface = MarketDataApiInterface;
type index_ModifyCmOrderPriceMatchEnum = ModifyCmOrderPriceMatchEnum;
declare const index_ModifyCmOrderPriceMatchEnum: typeof ModifyCmOrderPriceMatchEnum;
type index_ModifyCmOrderRequest = ModifyCmOrderRequest;
type index_ModifyCmOrderResponse = ModifyCmOrderResponse;
type index_ModifyCmOrderSideEnum = ModifyCmOrderSideEnum;
declare const index_ModifyCmOrderSideEnum: typeof ModifyCmOrderSideEnum;
type index_ModifyUmOrderPriceMatchEnum = ModifyUmOrderPriceMatchEnum;
declare const index_ModifyUmOrderPriceMatchEnum: typeof ModifyUmOrderPriceMatchEnum;
type index_ModifyUmOrderRequest = ModifyUmOrderRequest;
type index_ModifyUmOrderResponse = ModifyUmOrderResponse;
type index_ModifyUmOrderSideEnum = ModifyUmOrderSideEnum;
declare const index_ModifyUmOrderSideEnum: typeof ModifyUmOrderSideEnum;
type index_NewCmConditionalOrderPositionSideEnum = NewCmConditionalOrderPositionSideEnum;
declare const index_NewCmConditionalOrderPositionSideEnum: typeof NewCmConditionalOrderPositionSideEnum;
type index_NewCmConditionalOrderRequest = NewCmConditionalOrderRequest;
type index_NewCmConditionalOrderResponse = NewCmConditionalOrderResponse;
type index_NewCmConditionalOrderSideEnum = NewCmConditionalOrderSideEnum;
declare const index_NewCmConditionalOrderSideEnum: typeof NewCmConditionalOrderSideEnum;
type index_NewCmConditionalOrderStrategyTypeEnum = NewCmConditionalOrderStrategyTypeEnum;
declare const index_NewCmConditionalOrderStrategyTypeEnum: typeof NewCmConditionalOrderStrategyTypeEnum;
type index_NewCmConditionalOrderTimeInForceEnum = NewCmConditionalOrderTimeInForceEnum;
declare const index_NewCmConditionalOrderTimeInForceEnum: typeof NewCmConditionalOrderTimeInForceEnum;
type index_NewCmConditionalOrderWorkingTypeEnum = NewCmConditionalOrderWorkingTypeEnum;
declare const index_NewCmConditionalOrderWorkingTypeEnum: typeof NewCmConditionalOrderWorkingTypeEnum;
type index_NewCmOrderNewOrderRespTypeEnum = NewCmOrderNewOrderRespTypeEnum;
declare const index_NewCmOrderNewOrderRespTypeEnum: typeof NewCmOrderNewOrderRespTypeEnum;
type index_NewCmOrderPositionSideEnum = NewCmOrderPositionSideEnum;
declare const index_NewCmOrderPositionSideEnum: typeof NewCmOrderPositionSideEnum;
type index_NewCmOrderPriceMatchEnum = NewCmOrderPriceMatchEnum;
declare const index_NewCmOrderPriceMatchEnum: typeof NewCmOrderPriceMatchEnum;
type index_NewCmOrderRequest = NewCmOrderRequest;
type index_NewCmOrderResponse = NewCmOrderResponse;
type index_NewCmOrderSideEnum = NewCmOrderSideEnum;
declare const index_NewCmOrderSideEnum: typeof NewCmOrderSideEnum;
type index_NewCmOrderTimeInForceEnum = NewCmOrderTimeInForceEnum;
declare const index_NewCmOrderTimeInForceEnum: typeof NewCmOrderTimeInForceEnum;
type index_NewCmOrderTypeEnum = NewCmOrderTypeEnum;
declare const index_NewCmOrderTypeEnum: typeof NewCmOrderTypeEnum;
type index_NewMarginOrderNewOrderRespTypeEnum = NewMarginOrderNewOrderRespTypeEnum;
declare const index_NewMarginOrderNewOrderRespTypeEnum: typeof NewMarginOrderNewOrderRespTypeEnum;
type index_NewMarginOrderRequest = NewMarginOrderRequest;
type index_NewMarginOrderResponse = NewMarginOrderResponse;
type index_NewMarginOrderResponseFillsInner = NewMarginOrderResponseFillsInner;
type index_NewMarginOrderSelfTradePreventionModeEnum = NewMarginOrderSelfTradePreventionModeEnum;
declare const index_NewMarginOrderSelfTradePreventionModeEnum: typeof NewMarginOrderSelfTradePreventionModeEnum;
type index_NewMarginOrderSideEffectTypeEnum = NewMarginOrderSideEffectTypeEnum;
declare const index_NewMarginOrderSideEffectTypeEnum: typeof NewMarginOrderSideEffectTypeEnum;
type index_NewMarginOrderSideEnum = NewMarginOrderSideEnum;
declare const index_NewMarginOrderSideEnum: typeof NewMarginOrderSideEnum;
type index_NewMarginOrderTimeInForceEnum = NewMarginOrderTimeInForceEnum;
declare const index_NewMarginOrderTimeInForceEnum: typeof NewMarginOrderTimeInForceEnum;
type index_NewMarginOrderTypeEnum = NewMarginOrderTypeEnum;
declare const index_NewMarginOrderTypeEnum: typeof NewMarginOrderTypeEnum;
type index_NewUmConditionalOrderPositionSideEnum = NewUmConditionalOrderPositionSideEnum;
declare const index_NewUmConditionalOrderPositionSideEnum: typeof NewUmConditionalOrderPositionSideEnum;
type index_NewUmConditionalOrderPriceMatchEnum = NewUmConditionalOrderPriceMatchEnum;
declare const index_NewUmConditionalOrderPriceMatchEnum: typeof NewUmConditionalOrderPriceMatchEnum;
type index_NewUmConditionalOrderRequest = NewUmConditionalOrderRequest;
type index_NewUmConditionalOrderResponse = NewUmConditionalOrderResponse;
type index_NewUmConditionalOrderSelfTradePreventionModeEnum = NewUmConditionalOrderSelfTradePreventionModeEnum;
declare const index_NewUmConditionalOrderSelfTradePreventionModeEnum: typeof NewUmConditionalOrderSelfTradePreventionModeEnum;
type index_NewUmConditionalOrderSideEnum = NewUmConditionalOrderSideEnum;
declare const index_NewUmConditionalOrderSideEnum: typeof NewUmConditionalOrderSideEnum;
type index_NewUmConditionalOrderStrategyTypeEnum = NewUmConditionalOrderStrategyTypeEnum;
declare const index_NewUmConditionalOrderStrategyTypeEnum: typeof NewUmConditionalOrderStrategyTypeEnum;
type index_NewUmConditionalOrderTimeInForceEnum = NewUmConditionalOrderTimeInForceEnum;
declare const index_NewUmConditionalOrderTimeInForceEnum: typeof NewUmConditionalOrderTimeInForceEnum;
type index_NewUmConditionalOrderWorkingTypeEnum = NewUmConditionalOrderWorkingTypeEnum;
declare const index_NewUmConditionalOrderWorkingTypeEnum: typeof NewUmConditionalOrderWorkingTypeEnum;
type index_NewUmOrderNewOrderRespTypeEnum = NewUmOrderNewOrderRespTypeEnum;
declare const index_NewUmOrderNewOrderRespTypeEnum: typeof NewUmOrderNewOrderRespTypeEnum;
type index_NewUmOrderPositionSideEnum = NewUmOrderPositionSideEnum;
declare const index_NewUmOrderPositionSideEnum: typeof NewUmOrderPositionSideEnum;
type index_NewUmOrderPriceMatchEnum = NewUmOrderPriceMatchEnum;
declare const index_NewUmOrderPriceMatchEnum: typeof NewUmOrderPriceMatchEnum;
type index_NewUmOrderRequest = NewUmOrderRequest;
type index_NewUmOrderResponse = NewUmOrderResponse;
type index_NewUmOrderSelfTradePreventionModeEnum = NewUmOrderSelfTradePreventionModeEnum;
declare const index_NewUmOrderSelfTradePreventionModeEnum: typeof NewUmOrderSelfTradePreventionModeEnum;
type index_NewUmOrderSideEnum = NewUmOrderSideEnum;
declare const index_NewUmOrderSideEnum: typeof NewUmOrderSideEnum;
type index_NewUmOrderTimeInForceEnum = NewUmOrderTimeInForceEnum;
declare const index_NewUmOrderTimeInForceEnum: typeof NewUmOrderTimeInForceEnum;
type index_NewUmOrderTypeEnum = NewUmOrderTypeEnum;
declare const index_NewUmOrderTypeEnum: typeof NewUmOrderTypeEnum;
type index_PortfolioMarginUmTradingQuantitativeRulesIndicatorsRequest = PortfolioMarginUmTradingQuantitativeRulesIndicatorsRequest;
type index_PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponse = PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponse;
type index_PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicators = PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicators;
type index_PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsACCOUNTInner = PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsACCOUNTInner;
type index_PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsBTCUSDTInner = PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsBTCUSDTInner;
type index_QueryAllCmConditionalOrdersRequest = QueryAllCmConditionalOrdersRequest;
type index_QueryAllCmConditionalOrdersResponse = QueryAllCmConditionalOrdersResponse;
type index_QueryAllCmConditionalOrdersResponseInner = QueryAllCmConditionalOrdersResponseInner;
type index_QueryAllCmOrdersRequest = QueryAllCmOrdersRequest;
type index_QueryAllCmOrdersResponse = QueryAllCmOrdersResponse;
type index_QueryAllCmOrdersResponseInner = QueryAllCmOrdersResponseInner;
type index_QueryAllCurrentCmOpenConditionalOrdersRequest = QueryAllCurrentCmOpenConditionalOrdersRequest;
type index_QueryAllCurrentCmOpenConditionalOrdersResponse = QueryAllCurrentCmOpenConditionalOrdersResponse;
type index_QueryAllCurrentCmOpenConditionalOrdersResponseInner = QueryAllCurrentCmOpenConditionalOrdersResponseInner;
type index_QueryAllCurrentCmOpenOrdersRequest = QueryAllCurrentCmOpenOrdersRequest;
type index_QueryAllCurrentCmOpenOrdersResponse = QueryAllCurrentCmOpenOrdersResponse;
type index_QueryAllCurrentUmOpenConditionalOrdersRequest = QueryAllCurrentUmOpenConditionalOrdersRequest;
type index_QueryAllCurrentUmOpenConditionalOrdersResponse = QueryAllCurrentUmOpenConditionalOrdersResponse;
type index_QueryAllCurrentUmOpenConditionalOrdersResponseInner = QueryAllCurrentUmOpenConditionalOrdersResponseInner;
type index_QueryAllCurrentUmOpenOrdersRequest = QueryAllCurrentUmOpenOrdersRequest;
type index_QueryAllCurrentUmOpenOrdersResponse = QueryAllCurrentUmOpenOrdersResponse;
type index_QueryAllCurrentUmOpenOrdersResponseInner = QueryAllCurrentUmOpenOrdersResponseInner;
type index_QueryAllMarginAccountOrdersRequest = QueryAllMarginAccountOrdersRequest;
type index_QueryAllMarginAccountOrdersResponse = QueryAllMarginAccountOrdersResponse;
type index_QueryAllMarginAccountOrdersResponseInner = QueryAllMarginAccountOrdersResponseInner;
type index_QueryAllUmConditionalOrdersRequest = QueryAllUmConditionalOrdersRequest;
type index_QueryAllUmConditionalOrdersResponse = QueryAllUmConditionalOrdersResponse;
type index_QueryAllUmConditionalOrdersResponseInner = QueryAllUmConditionalOrdersResponseInner;
type index_QueryAllUmOrdersRequest = QueryAllUmOrdersRequest;
type index_QueryAllUmOrdersResponse = QueryAllUmOrdersResponse;
type index_QueryCmConditionalOrderHistoryRequest = QueryCmConditionalOrderHistoryRequest;
type index_QueryCmConditionalOrderHistoryResponse = QueryCmConditionalOrderHistoryResponse;
type index_QueryCmModifyOrderHistoryRequest = QueryCmModifyOrderHistoryRequest;
type index_QueryCmModifyOrderHistoryResponse = QueryCmModifyOrderHistoryResponse;
type index_QueryCmModifyOrderHistoryResponseInner = QueryCmModifyOrderHistoryResponseInner;
type index_QueryCmModifyOrderHistoryResponseInnerAmendment = QueryCmModifyOrderHistoryResponseInnerAmendment;
type index_QueryCmModifyOrderHistoryResponseInnerAmendmentOrigQty = QueryCmModifyOrderHistoryResponseInnerAmendmentOrigQty;
type index_QueryCmModifyOrderHistoryResponseInnerAmendmentPrice = QueryCmModifyOrderHistoryResponseInnerAmendmentPrice;
type index_QueryCmOrderRequest = QueryCmOrderRequest;
type index_QueryCmOrderResponse = QueryCmOrderResponse;
type index_QueryCmPositionInformationRequest = QueryCmPositionInformationRequest;
type index_QueryCmPositionInformationResponse = QueryCmPositionInformationResponse;
type index_QueryCmPositionInformationResponseInner = QueryCmPositionInformationResponseInner;
type index_QueryCurrentCmOpenConditionalOrderRequest = QueryCurrentCmOpenConditionalOrderRequest;
type index_QueryCurrentCmOpenConditionalOrderResponse = QueryCurrentCmOpenConditionalOrderResponse;
type index_QueryCurrentCmOpenOrderRequest = QueryCurrentCmOpenOrderRequest;
type index_QueryCurrentCmOpenOrderResponse = QueryCurrentCmOpenOrderResponse;
type index_QueryCurrentMarginOpenOrderRequest = QueryCurrentMarginOpenOrderRequest;
type index_QueryCurrentMarginOpenOrderResponse = QueryCurrentMarginOpenOrderResponse;
type index_QueryCurrentMarginOpenOrderResponseInner = QueryCurrentMarginOpenOrderResponseInner;
type index_QueryCurrentUmOpenConditionalOrderRequest = QueryCurrentUmOpenConditionalOrderRequest;
type index_QueryCurrentUmOpenConditionalOrderResponse = QueryCurrentUmOpenConditionalOrderResponse;
type index_QueryCurrentUmOpenOrderRequest = QueryCurrentUmOpenOrderRequest;
type index_QueryCurrentUmOpenOrderResponse = QueryCurrentUmOpenOrderResponse;
type index_QueryMarginAccountOrderRequest = QueryMarginAccountOrderRequest;
type index_QueryMarginAccountOrderResponse = QueryMarginAccountOrderResponse;
type index_QueryMarginAccountsAllOcoRequest = QueryMarginAccountsAllOcoRequest;
type index_QueryMarginAccountsAllOcoResponse = QueryMarginAccountsAllOcoResponse;
type index_QueryMarginAccountsAllOcoResponseInner = QueryMarginAccountsAllOcoResponseInner;
type index_QueryMarginAccountsAllOcoResponseInnerOrdersInner = QueryMarginAccountsAllOcoResponseInnerOrdersInner;
type index_QueryMarginAccountsOcoRequest = QueryMarginAccountsOcoRequest;
type index_QueryMarginAccountsOcoResponse = QueryMarginAccountsOcoResponse;
type index_QueryMarginAccountsOcoResponseOrdersInner = QueryMarginAccountsOcoResponseOrdersInner;
type index_QueryMarginAccountsOpenOcoRequest = QueryMarginAccountsOpenOcoRequest;
type index_QueryMarginAccountsOpenOcoResponse = QueryMarginAccountsOpenOcoResponse;
type index_QueryMarginAccountsOpenOcoResponseInner = QueryMarginAccountsOpenOcoResponseInner;
type index_QueryMarginAccountsOpenOcoResponseInnerOrdersInner = QueryMarginAccountsOpenOcoResponseInnerOrdersInner;
type index_QueryMarginLoanRecordRequest = QueryMarginLoanRecordRequest;
type index_QueryMarginLoanRecordResponse = QueryMarginLoanRecordResponse;
type index_QueryMarginLoanRecordResponseRowsInner = QueryMarginLoanRecordResponseRowsInner;
type index_QueryMarginMaxWithdrawRequest = QueryMarginMaxWithdrawRequest;
type index_QueryMarginMaxWithdrawResponse = QueryMarginMaxWithdrawResponse;
type index_QueryMarginRepayRecordRequest = QueryMarginRepayRecordRequest;
type index_QueryMarginRepayRecordResponse = QueryMarginRepayRecordResponse;
type index_QueryMarginRepayRecordResponseRowsInner = QueryMarginRepayRecordResponseRowsInner;
type index_QueryPortfolioMarginNegativeBalanceInterestHistoryRequest = QueryPortfolioMarginNegativeBalanceInterestHistoryRequest;
type index_QueryPortfolioMarginNegativeBalanceInterestHistoryResponse = QueryPortfolioMarginNegativeBalanceInterestHistoryResponse;
type index_QueryPortfolioMarginNegativeBalanceInterestHistoryResponseInner = QueryPortfolioMarginNegativeBalanceInterestHistoryResponseInner;
type index_QueryUmConditionalOrderHistoryRequest = QueryUmConditionalOrderHistoryRequest;
type index_QueryUmConditionalOrderHistoryResponse = QueryUmConditionalOrderHistoryResponse;
type index_QueryUmModifyOrderHistoryRequest = QueryUmModifyOrderHistoryRequest;
type index_QueryUmModifyOrderHistoryResponse = QueryUmModifyOrderHistoryResponse;
type index_QueryUmModifyOrderHistoryResponseInner = QueryUmModifyOrderHistoryResponseInner;
type index_QueryUmOrderRequest = QueryUmOrderRequest;
type index_QueryUmOrderResponse = QueryUmOrderResponse;
type index_QueryUmPositionInformationRequest = QueryUmPositionInformationRequest;
type index_QueryUmPositionInformationResponse = QueryUmPositionInformationResponse;
type index_QueryUmPositionInformationResponseInner = QueryUmPositionInformationResponseInner;
type index_QueryUserNegativeBalanceAutoExchangeRecordRequest = QueryUserNegativeBalanceAutoExchangeRecordRequest;
type index_QueryUserNegativeBalanceAutoExchangeRecordResponse = QueryUserNegativeBalanceAutoExchangeRecordResponse;
type index_QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInner = QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInner;
type index_QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInnerDetailsInner = QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInnerDetailsInner;
type index_QueryUserRateLimitRequest = QueryUserRateLimitRequest;
type index_QueryUserRateLimitResponse = QueryUserRateLimitResponse;
type index_QueryUserRateLimitResponseInner = QueryUserRateLimitResponseInner;
type index_QueryUsersCmForceOrdersAutoCloseTypeEnum = QueryUsersCmForceOrdersAutoCloseTypeEnum;
declare const index_QueryUsersCmForceOrdersAutoCloseTypeEnum: typeof QueryUsersCmForceOrdersAutoCloseTypeEnum;
type index_QueryUsersCmForceOrdersRequest = QueryUsersCmForceOrdersRequest;
type index_QueryUsersCmForceOrdersResponse = QueryUsersCmForceOrdersResponse;
type index_QueryUsersCmForceOrdersResponseInner = QueryUsersCmForceOrdersResponseInner;
type index_QueryUsersMarginForceOrdersRequest = QueryUsersMarginForceOrdersRequest;
type index_QueryUsersMarginForceOrdersResponse = QueryUsersMarginForceOrdersResponse;
type index_QueryUsersMarginForceOrdersResponseRowsInner = QueryUsersMarginForceOrdersResponseRowsInner;
type index_QueryUsersUmForceOrdersAutoCloseTypeEnum = QueryUsersUmForceOrdersAutoCloseTypeEnum;
declare const index_QueryUsersUmForceOrdersAutoCloseTypeEnum: typeof QueryUsersUmForceOrdersAutoCloseTypeEnum;
type index_QueryUsersUmForceOrdersRequest = QueryUsersUmForceOrdersRequest;
type index_QueryUsersUmForceOrdersResponse = QueryUsersUmForceOrdersResponse;
type index_QueryUsersUmForceOrdersResponseInner = QueryUsersUmForceOrdersResponseInner;
type index_RepayFuturesNegativeBalanceRequest = RepayFuturesNegativeBalanceRequest;
type index_RepayFuturesNegativeBalanceResponse = RepayFuturesNegativeBalanceResponse;
type index_RestAPI = RestAPI;
declare const index_RestAPI: typeof RestAPI;
type index_StartUserDataStreamResponse = StartUserDataStreamResponse;
type index_ToggleBnbBurnOnUmFuturesTradeRequest = ToggleBnbBurnOnUmFuturesTradeRequest;
type index_ToggleBnbBurnOnUmFuturesTradeResponse = ToggleBnbBurnOnUmFuturesTradeResponse;
type index_TradeApi = TradeApi;
declare const index_TradeApi: typeof TradeApi;
type index_TradeApiInterface = TradeApiInterface;
type index_UmAccountTradeListRequest = UmAccountTradeListRequest;
type index_UmAccountTradeListResponse = UmAccountTradeListResponse;
type index_UmAccountTradeListResponseInner = UmAccountTradeListResponseInner;
type index_UmFuturesAccountConfigurationRequest = UmFuturesAccountConfigurationRequest;
type index_UmFuturesAccountConfigurationResponse = UmFuturesAccountConfigurationResponse;
type index_UmFuturesSymbolConfigurationRequest = UmFuturesSymbolConfigurationRequest;
type index_UmFuturesSymbolConfigurationResponse = UmFuturesSymbolConfigurationResponse;
type index_UmFuturesSymbolConfigurationResponseInner = UmFuturesSymbolConfigurationResponseInner;
type index_UmNotionalAndLeverageBracketsRequest = UmNotionalAndLeverageBracketsRequest;
type index_UmNotionalAndLeverageBracketsResponse = UmNotionalAndLeverageBracketsResponse;
type index_UmNotionalAndLeverageBracketsResponseInner = UmNotionalAndLeverageBracketsResponseInner;
type index_UmNotionalAndLeverageBracketsResponseInnerBracketsInner = UmNotionalAndLeverageBracketsResponseInnerBracketsInner;
type index_UmPositionAdlQuantileEstimationRequest = UmPositionAdlQuantileEstimationRequest;
type index_UmPositionAdlQuantileEstimationResponse = UmPositionAdlQuantileEstimationResponse;
type index_UmPositionAdlQuantileEstimationResponseInner = UmPositionAdlQuantileEstimationResponseInner;
type index_UserDataStreamsApi = UserDataStreamsApi;
declare const index_UserDataStreamsApi: typeof UserDataStreamsApi;
type index_UserDataStreamsApiInterface = UserDataStreamsApiInterface;
declare namespace index {
  export { index_AccountApi as AccountApi, type index_AccountApiInterface as AccountApiInterface, type index_AccountBalanceRequest as AccountBalanceRequest, type index_AccountBalanceResponse as AccountBalanceResponse, type index_AccountBalanceResponse1 as AccountBalanceResponse1, type index_AccountBalanceResponse1Inner as AccountBalanceResponse1Inner, type index_AccountBalanceResponse2 as AccountBalanceResponse2, type index_AccountInformationRequest as AccountInformationRequest, type index_AccountInformationResponse as AccountInformationResponse, type index_BnbTransferRequest as BnbTransferRequest, type index_BnbTransferResponse as BnbTransferResponse, type index_CancelAllCmOpenConditionalOrdersRequest as CancelAllCmOpenConditionalOrdersRequest, type index_CancelAllCmOpenConditionalOrdersResponse as CancelAllCmOpenConditionalOrdersResponse, type index_CancelAllCmOpenOrdersRequest as CancelAllCmOpenOrdersRequest, type index_CancelAllCmOpenOrdersResponse as CancelAllCmOpenOrdersResponse, type index_CancelAllUmOpenConditionalOrdersRequest as CancelAllUmOpenConditionalOrdersRequest, type index_CancelAllUmOpenConditionalOrdersResponse as CancelAllUmOpenConditionalOrdersResponse, type index_CancelAllUmOpenOrdersRequest as CancelAllUmOpenOrdersRequest, type index_CancelAllUmOpenOrdersResponse as CancelAllUmOpenOrdersResponse, type index_CancelCmConditionalOrderRequest as CancelCmConditionalOrderRequest, type index_CancelCmConditionalOrderResponse as CancelCmConditionalOrderResponse, type index_CancelCmOrderRequest as CancelCmOrderRequest, type index_CancelCmOrderResponse as CancelCmOrderResponse, type index_CancelMarginAccountAllOpenOrdersOnASymbolRequest as CancelMarginAccountAllOpenOrdersOnASymbolRequest, type index_CancelMarginAccountAllOpenOrdersOnASymbolResponse as CancelMarginAccountAllOpenOrdersOnASymbolResponse, type index_CancelMarginAccountAllOpenOrdersOnASymbolResponseInner as CancelMarginAccountAllOpenOrdersOnASymbolResponseInner, type index_CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner as CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner, type index_CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrdersInner as CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrdersInner, type index_CancelMarginAccountOcoOrdersRequest as CancelMarginAccountOcoOrdersRequest, type index_CancelMarginAccountOcoOrdersResponse as CancelMarginAccountOcoOrdersResponse, type index_CancelMarginAccountOcoOrdersResponseOrderReportsInner as CancelMarginAccountOcoOrdersResponseOrderReportsInner, type index_CancelMarginAccountOcoOrdersResponseOrdersInner as CancelMarginAccountOcoOrdersResponseOrdersInner, type index_CancelMarginAccountOrderRequest as CancelMarginAccountOrderRequest, type index_CancelMarginAccountOrderResponse as CancelMarginAccountOrderResponse, type index_CancelUmConditionalOrderRequest as CancelUmConditionalOrderRequest, type index_CancelUmConditionalOrderResponse as CancelUmConditionalOrderResponse, type index_CancelUmOrderRequest as CancelUmOrderRequest, type index_CancelUmOrderResponse as CancelUmOrderResponse, type index_ChangeAutoRepayFuturesStatusRequest as ChangeAutoRepayFuturesStatusRequest, type index_ChangeAutoRepayFuturesStatusResponse as ChangeAutoRepayFuturesStatusResponse, type index_ChangeCmInitialLeverageRequest as ChangeCmInitialLeverageRequest, type index_ChangeCmInitialLeverageResponse as ChangeCmInitialLeverageResponse, type index_ChangeCmPositionModeRequest as ChangeCmPositionModeRequest, type index_ChangeCmPositionModeResponse as ChangeCmPositionModeResponse, type index_ChangeUmInitialLeverageRequest as ChangeUmInitialLeverageRequest, type index_ChangeUmInitialLeverageResponse as ChangeUmInitialLeverageResponse, type index_ChangeUmPositionModeRequest as ChangeUmPositionModeRequest, type index_ChangeUmPositionModeResponse as ChangeUmPositionModeResponse, type index_CmAccountTradeListRequest as CmAccountTradeListRequest, type index_CmAccountTradeListResponse as CmAccountTradeListResponse, type index_CmAccountTradeListResponseInner as CmAccountTradeListResponseInner, type index_CmNotionalAndLeverageBracketsRequest as CmNotionalAndLeverageBracketsRequest, type index_CmNotionalAndLeverageBracketsResponse as CmNotionalAndLeverageBracketsResponse, type index_CmNotionalAndLeverageBracketsResponseInner as CmNotionalAndLeverageBracketsResponseInner, type index_CmNotionalAndLeverageBracketsResponseInnerBracketsInner as CmNotionalAndLeverageBracketsResponseInnerBracketsInner, type index_CmPositionAdlQuantileEstimationRequest as CmPositionAdlQuantileEstimationRequest, type index_CmPositionAdlQuantileEstimationResponse as CmPositionAdlQuantileEstimationResponse, type index_CmPositionAdlQuantileEstimationResponseInner as CmPositionAdlQuantileEstimationResponseInner, type index_CmPositionAdlQuantileEstimationResponseInnerAdlQuantile as CmPositionAdlQuantileEstimationResponseInnerAdlQuantile, type index_FundAutoCollectionRequest as FundAutoCollectionRequest, type index_FundAutoCollectionResponse as FundAutoCollectionResponse, type index_FundCollectionByAssetRequest as FundCollectionByAssetRequest, type index_FundCollectionByAssetResponse as FundCollectionByAssetResponse, type index_GetAutoRepayFuturesStatusRequest as GetAutoRepayFuturesStatusRequest, type index_GetAutoRepayFuturesStatusResponse as GetAutoRepayFuturesStatusResponse, type index_GetCmAccountDetailRequest as GetCmAccountDetailRequest, type index_GetCmAccountDetailResponse as GetCmAccountDetailResponse, type index_GetCmAccountDetailResponseAssetsInner as GetCmAccountDetailResponseAssetsInner, type index_GetCmAccountDetailResponsePositionsInner as GetCmAccountDetailResponsePositionsInner, type index_GetCmCurrentPositionModeRequest as GetCmCurrentPositionModeRequest, type index_GetCmCurrentPositionModeResponse as GetCmCurrentPositionModeResponse, type index_GetCmIncomeHistoryRequest as GetCmIncomeHistoryRequest, type index_GetCmIncomeHistoryResponse as GetCmIncomeHistoryResponse, type index_GetCmIncomeHistoryResponseInner as GetCmIncomeHistoryResponseInner, type index_GetDownloadIdForUmFuturesOrderHistoryRequest as GetDownloadIdForUmFuturesOrderHistoryRequest, type index_GetDownloadIdForUmFuturesOrderHistoryResponse as GetDownloadIdForUmFuturesOrderHistoryResponse, type index_GetDownloadIdForUmFuturesTradeHistoryRequest as GetDownloadIdForUmFuturesTradeHistoryRequest, type index_GetDownloadIdForUmFuturesTradeHistoryResponse as GetDownloadIdForUmFuturesTradeHistoryResponse, type index_GetDownloadIdForUmFuturesTransactionHistoryRequest as GetDownloadIdForUmFuturesTransactionHistoryRequest, type index_GetDownloadIdForUmFuturesTransactionHistoryResponse as GetDownloadIdForUmFuturesTransactionHistoryResponse, type index_GetMarginBorrowLoanInterestHistoryRequest as GetMarginBorrowLoanInterestHistoryRequest, type index_GetMarginBorrowLoanInterestHistoryResponse as GetMarginBorrowLoanInterestHistoryResponse, type index_GetMarginBorrowLoanInterestHistoryResponseRowsInner as GetMarginBorrowLoanInterestHistoryResponseRowsInner, type index_GetUmAccountDetailRequest as GetUmAccountDetailRequest, type index_GetUmAccountDetailResponse as GetUmAccountDetailResponse, type index_GetUmAccountDetailResponsePositionsInner as GetUmAccountDetailResponsePositionsInner, type index_GetUmAccountDetailV2Request as GetUmAccountDetailV2Request, type index_GetUmAccountDetailV2Response as GetUmAccountDetailV2Response, type index_GetUmAccountDetailV2ResponseAssetsInner as GetUmAccountDetailV2ResponseAssetsInner, type index_GetUmAccountDetailV2ResponsePositionsInner as GetUmAccountDetailV2ResponsePositionsInner, type index_GetUmCurrentPositionModeRequest as GetUmCurrentPositionModeRequest, type index_GetUmCurrentPositionModeResponse as GetUmCurrentPositionModeResponse, type index_GetUmFuturesBnbBurnStatusRequest as GetUmFuturesBnbBurnStatusRequest, type index_GetUmFuturesBnbBurnStatusResponse as GetUmFuturesBnbBurnStatusResponse, type index_GetUmFuturesOrderDownloadLinkByIdRequest as GetUmFuturesOrderDownloadLinkByIdRequest, type index_GetUmFuturesOrderDownloadLinkByIdResponse as GetUmFuturesOrderDownloadLinkByIdResponse, type index_GetUmFuturesTradeDownloadLinkByIdRequest as GetUmFuturesTradeDownloadLinkByIdRequest, type index_GetUmFuturesTradeDownloadLinkByIdResponse as GetUmFuturesTradeDownloadLinkByIdResponse, type index_GetUmFuturesTransactionDownloadLinkByIdRequest as GetUmFuturesTransactionDownloadLinkByIdRequest, type index_GetUmFuturesTransactionDownloadLinkByIdResponse as GetUmFuturesTransactionDownloadLinkByIdResponse, type index_GetUmIncomeHistoryRequest as GetUmIncomeHistoryRequest, type index_GetUmIncomeHistoryResponse as GetUmIncomeHistoryResponse, type index_GetUmIncomeHistoryResponseInner as GetUmIncomeHistoryResponseInner, type index_GetUserCommissionRateForCmRequest as GetUserCommissionRateForCmRequest, type index_GetUserCommissionRateForCmResponse as GetUserCommissionRateForCmResponse, type index_GetUserCommissionRateForUmRequest as GetUserCommissionRateForUmRequest, type index_GetUserCommissionRateForUmResponse as GetUserCommissionRateForUmResponse, type index_MarginAccountBorrowRequest as MarginAccountBorrowRequest, type index_MarginAccountBorrowResponse as MarginAccountBorrowResponse, index_MarginAccountNewOcoNewOrderRespTypeEnum as MarginAccountNewOcoNewOrderRespTypeEnum, type index_MarginAccountNewOcoRequest as MarginAccountNewOcoRequest, type index_MarginAccountNewOcoResponse as MarginAccountNewOcoResponse, type index_MarginAccountNewOcoResponseOrderReportsInner as MarginAccountNewOcoResponseOrderReportsInner, type index_MarginAccountNewOcoResponseOrdersInner as MarginAccountNewOcoResponseOrdersInner, index_MarginAccountNewOcoSideEffectTypeEnum as MarginAccountNewOcoSideEffectTypeEnum, index_MarginAccountNewOcoSideEnum as MarginAccountNewOcoSideEnum, index_MarginAccountNewOcoStopLimitTimeInForceEnum as MarginAccountNewOcoStopLimitTimeInForceEnum, type index_MarginAccountRepayDebtRequest as MarginAccountRepayDebtRequest, type index_MarginAccountRepayDebtResponse as MarginAccountRepayDebtResponse, type index_MarginAccountRepayRequest as MarginAccountRepayRequest, type index_MarginAccountRepayResponse as MarginAccountRepayResponse, type index_MarginAccountTradeListRequest as MarginAccountTradeListRequest, type index_MarginAccountTradeListResponse as MarginAccountTradeListResponse, type index_MarginAccountTradeListResponseInner as MarginAccountTradeListResponseInner, type index_MarginMaxBorrowRequest as MarginMaxBorrowRequest, type index_MarginMaxBorrowResponse as MarginMaxBorrowResponse, index_MarketDataApi as MarketDataApi, type index_MarketDataApiInterface as MarketDataApiInterface, index_ModifyCmOrderPriceMatchEnum as ModifyCmOrderPriceMatchEnum, type index_ModifyCmOrderRequest as ModifyCmOrderRequest, type index_ModifyCmOrderResponse as ModifyCmOrderResponse, index_ModifyCmOrderSideEnum as ModifyCmOrderSideEnum, index_ModifyUmOrderPriceMatchEnum as ModifyUmOrderPriceMatchEnum, type index_ModifyUmOrderRequest as ModifyUmOrderRequest, type index_ModifyUmOrderResponse as ModifyUmOrderResponse, index_ModifyUmOrderSideEnum as ModifyUmOrderSideEnum, index_NewCmConditionalOrderPositionSideEnum as NewCmConditionalOrderPositionSideEnum, type index_NewCmConditionalOrderRequest as NewCmConditionalOrderRequest, type index_NewCmConditionalOrderResponse as NewCmConditionalOrderResponse, index_NewCmConditionalOrderSideEnum as NewCmConditionalOrderSideEnum, index_NewCmConditionalOrderStrategyTypeEnum as NewCmConditionalOrderStrategyTypeEnum, index_NewCmConditionalOrderTimeInForceEnum as NewCmConditionalOrderTimeInForceEnum, index_NewCmConditionalOrderWorkingTypeEnum as NewCmConditionalOrderWorkingTypeEnum, index_NewCmOrderNewOrderRespTypeEnum as NewCmOrderNewOrderRespTypeEnum, index_NewCmOrderPositionSideEnum as NewCmOrderPositionSideEnum, index_NewCmOrderPriceMatchEnum as NewCmOrderPriceMatchEnum, type index_NewCmOrderRequest as NewCmOrderRequest, type index_NewCmOrderResponse as NewCmOrderResponse, index_NewCmOrderSideEnum as NewCmOrderSideEnum, index_NewCmOrderTimeInForceEnum as NewCmOrderTimeInForceEnum, index_NewCmOrderTypeEnum as NewCmOrderTypeEnum, index_NewMarginOrderNewOrderRespTypeEnum as NewMarginOrderNewOrderRespTypeEnum, type index_NewMarginOrderRequest as NewMarginOrderRequest, type index_NewMarginOrderResponse as NewMarginOrderResponse, type index_NewMarginOrderResponseFillsInner as NewMarginOrderResponseFillsInner, index_NewMarginOrderSelfTradePreventionModeEnum as NewMarginOrderSelfTradePreventionModeEnum, index_NewMarginOrderSideEffectTypeEnum as NewMarginOrderSideEffectTypeEnum, index_NewMarginOrderSideEnum as NewMarginOrderSideEnum, index_NewMarginOrderTimeInForceEnum as NewMarginOrderTimeInForceEnum, index_NewMarginOrderTypeEnum as NewMarginOrderTypeEnum, index_NewUmConditionalOrderPositionSideEnum as NewUmConditionalOrderPositionSideEnum, index_NewUmConditionalOrderPriceMatchEnum as NewUmConditionalOrderPriceMatchEnum, type index_NewUmConditionalOrderRequest as NewUmConditionalOrderRequest, type index_NewUmConditionalOrderResponse as NewUmConditionalOrderResponse, index_NewUmConditionalOrderSelfTradePreventionModeEnum as NewUmConditionalOrderSelfTradePreventionModeEnum, index_NewUmConditionalOrderSideEnum as NewUmConditionalOrderSideEnum, index_NewUmConditionalOrderStrategyTypeEnum as NewUmConditionalOrderStrategyTypeEnum, index_NewUmConditionalOrderTimeInForceEnum as NewUmConditionalOrderTimeInForceEnum, index_NewUmConditionalOrderWorkingTypeEnum as NewUmConditionalOrderWorkingTypeEnum, index_NewUmOrderNewOrderRespTypeEnum as NewUmOrderNewOrderRespTypeEnum, index_NewUmOrderPositionSideEnum as NewUmOrderPositionSideEnum, index_NewUmOrderPriceMatchEnum as NewUmOrderPriceMatchEnum, type index_NewUmOrderRequest as NewUmOrderRequest, type index_NewUmOrderResponse as NewUmOrderResponse, index_NewUmOrderSelfTradePreventionModeEnum as NewUmOrderSelfTradePreventionModeEnum, index_NewUmOrderSideEnum as NewUmOrderSideEnum, index_NewUmOrderTimeInForceEnum as NewUmOrderTimeInForceEnum, index_NewUmOrderTypeEnum as NewUmOrderTypeEnum, type index_PortfolioMarginUmTradingQuantitativeRulesIndicatorsRequest as PortfolioMarginUmTradingQuantitativeRulesIndicatorsRequest, type index_PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponse as PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponse, type index_PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicators as PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicators, type index_PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsACCOUNTInner as PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsACCOUNTInner, type index_PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsBTCUSDTInner as PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsBTCUSDTInner, type index_QueryAllCmConditionalOrdersRequest as QueryAllCmConditionalOrdersRequest, type index_QueryAllCmConditionalOrdersResponse as QueryAllCmConditionalOrdersResponse, type index_QueryAllCmConditionalOrdersResponseInner as QueryAllCmConditionalOrdersResponseInner, type index_QueryAllCmOrdersRequest as QueryAllCmOrdersRequest, type index_QueryAllCmOrdersResponse as QueryAllCmOrdersResponse, type index_QueryAllCmOrdersResponseInner as QueryAllCmOrdersResponseInner, type index_QueryAllCurrentCmOpenConditionalOrdersRequest as QueryAllCurrentCmOpenConditionalOrdersRequest, type index_QueryAllCurrentCmOpenConditionalOrdersResponse as QueryAllCurrentCmOpenConditionalOrdersResponse, type index_QueryAllCurrentCmOpenConditionalOrdersResponseInner as QueryAllCurrentCmOpenConditionalOrdersResponseInner, type index_QueryAllCurrentCmOpenOrdersRequest as QueryAllCurrentCmOpenOrdersRequest, type index_QueryAllCurrentCmOpenOrdersResponse as QueryAllCurrentCmOpenOrdersResponse, type index_QueryAllCurrentUmOpenConditionalOrdersRequest as QueryAllCurrentUmOpenConditionalOrdersRequest, type index_QueryAllCurrentUmOpenConditionalOrdersResponse as QueryAllCurrentUmOpenConditionalOrdersResponse, type index_QueryAllCurrentUmOpenConditionalOrdersResponseInner as QueryAllCurrentUmOpenConditionalOrdersResponseInner, type index_QueryAllCurrentUmOpenOrdersRequest as QueryAllCurrentUmOpenOrdersRequest, type index_QueryAllCurrentUmOpenOrdersResponse as QueryAllCurrentUmOpenOrdersResponse, type index_QueryAllCurrentUmOpenOrdersResponseInner as QueryAllCurrentUmOpenOrdersResponseInner, type index_QueryAllMarginAccountOrdersRequest as QueryAllMarginAccountOrdersRequest, type index_QueryAllMarginAccountOrdersResponse as QueryAllMarginAccountOrdersResponse, type index_QueryAllMarginAccountOrdersResponseInner as QueryAllMarginAccountOrdersResponseInner, type index_QueryAllUmConditionalOrdersRequest as QueryAllUmConditionalOrdersRequest, type index_QueryAllUmConditionalOrdersResponse as QueryAllUmConditionalOrdersResponse, type index_QueryAllUmConditionalOrdersResponseInner as QueryAllUmConditionalOrdersResponseInner, type index_QueryAllUmOrdersRequest as QueryAllUmOrdersRequest, type index_QueryAllUmOrdersResponse as QueryAllUmOrdersResponse, type index_QueryCmConditionalOrderHistoryRequest as QueryCmConditionalOrderHistoryRequest, type index_QueryCmConditionalOrderHistoryResponse as QueryCmConditionalOrderHistoryResponse, type index_QueryCmModifyOrderHistoryRequest as QueryCmModifyOrderHistoryRequest, type index_QueryCmModifyOrderHistoryResponse as QueryCmModifyOrderHistoryResponse, type index_QueryCmModifyOrderHistoryResponseInner as QueryCmModifyOrderHistoryResponseInner, type index_QueryCmModifyOrderHistoryResponseInnerAmendment as QueryCmModifyOrderHistoryResponseInnerAmendment, type index_QueryCmModifyOrderHistoryResponseInnerAmendmentOrigQty as QueryCmModifyOrderHistoryResponseInnerAmendmentOrigQty, type index_QueryCmModifyOrderHistoryResponseInnerAmendmentPrice as QueryCmModifyOrderHistoryResponseInnerAmendmentPrice, type index_QueryCmOrderRequest as QueryCmOrderRequest, type index_QueryCmOrderResponse as QueryCmOrderResponse, type index_QueryCmPositionInformationRequest as QueryCmPositionInformationRequest, type index_QueryCmPositionInformationResponse as QueryCmPositionInformationResponse, type index_QueryCmPositionInformationResponseInner as QueryCmPositionInformationResponseInner, type index_QueryCurrentCmOpenConditionalOrderRequest as QueryCurrentCmOpenConditionalOrderRequest, type index_QueryCurrentCmOpenConditionalOrderResponse as QueryCurrentCmOpenConditionalOrderResponse, type index_QueryCurrentCmOpenOrderRequest as QueryCurrentCmOpenOrderRequest, type index_QueryCurrentCmOpenOrderResponse as QueryCurrentCmOpenOrderResponse, type index_QueryCurrentMarginOpenOrderRequest as QueryCurrentMarginOpenOrderRequest, type index_QueryCurrentMarginOpenOrderResponse as QueryCurrentMarginOpenOrderResponse, type index_QueryCurrentMarginOpenOrderResponseInner as QueryCurrentMarginOpenOrderResponseInner, type index_QueryCurrentUmOpenConditionalOrderRequest as QueryCurrentUmOpenConditionalOrderRequest, type index_QueryCurrentUmOpenConditionalOrderResponse as QueryCurrentUmOpenConditionalOrderResponse, type index_QueryCurrentUmOpenOrderRequest as QueryCurrentUmOpenOrderRequest, type index_QueryCurrentUmOpenOrderResponse as QueryCurrentUmOpenOrderResponse, type index_QueryMarginAccountOrderRequest as QueryMarginAccountOrderRequest, type index_QueryMarginAccountOrderResponse as QueryMarginAccountOrderResponse, type index_QueryMarginAccountsAllOcoRequest as QueryMarginAccountsAllOcoRequest, type index_QueryMarginAccountsAllOcoResponse as QueryMarginAccountsAllOcoResponse, type index_QueryMarginAccountsAllOcoResponseInner as QueryMarginAccountsAllOcoResponseInner, type index_QueryMarginAccountsAllOcoResponseInnerOrdersInner as QueryMarginAccountsAllOcoResponseInnerOrdersInner, type index_QueryMarginAccountsOcoRequest as QueryMarginAccountsOcoRequest, type index_QueryMarginAccountsOcoResponse as QueryMarginAccountsOcoResponse, type index_QueryMarginAccountsOcoResponseOrdersInner as QueryMarginAccountsOcoResponseOrdersInner, type index_QueryMarginAccountsOpenOcoRequest as QueryMarginAccountsOpenOcoRequest, type index_QueryMarginAccountsOpenOcoResponse as QueryMarginAccountsOpenOcoResponse, type index_QueryMarginAccountsOpenOcoResponseInner as QueryMarginAccountsOpenOcoResponseInner, type index_QueryMarginAccountsOpenOcoResponseInnerOrdersInner as QueryMarginAccountsOpenOcoResponseInnerOrdersInner, type index_QueryMarginLoanRecordRequest as QueryMarginLoanRecordRequest, type index_QueryMarginLoanRecordResponse as QueryMarginLoanRecordResponse, type index_QueryMarginLoanRecordResponseRowsInner as QueryMarginLoanRecordResponseRowsInner, type index_QueryMarginMaxWithdrawRequest as QueryMarginMaxWithdrawRequest, type index_QueryMarginMaxWithdrawResponse as QueryMarginMaxWithdrawResponse, type index_QueryMarginRepayRecordRequest as QueryMarginRepayRecordRequest, type index_QueryMarginRepayRecordResponse as QueryMarginRepayRecordResponse, type index_QueryMarginRepayRecordResponseRowsInner as QueryMarginRepayRecordResponseRowsInner, type index_QueryPortfolioMarginNegativeBalanceInterestHistoryRequest as QueryPortfolioMarginNegativeBalanceInterestHistoryRequest, type index_QueryPortfolioMarginNegativeBalanceInterestHistoryResponse as QueryPortfolioMarginNegativeBalanceInterestHistoryResponse, type index_QueryPortfolioMarginNegativeBalanceInterestHistoryResponseInner as QueryPortfolioMarginNegativeBalanceInterestHistoryResponseInner, type index_QueryUmConditionalOrderHistoryRequest as QueryUmConditionalOrderHistoryRequest, type index_QueryUmConditionalOrderHistoryResponse as QueryUmConditionalOrderHistoryResponse, type index_QueryUmModifyOrderHistoryRequest as QueryUmModifyOrderHistoryRequest, type index_QueryUmModifyOrderHistoryResponse as QueryUmModifyOrderHistoryResponse, type index_QueryUmModifyOrderHistoryResponseInner as QueryUmModifyOrderHistoryResponseInner, type index_QueryUmOrderRequest as QueryUmOrderRequest, type index_QueryUmOrderResponse as QueryUmOrderResponse, type index_QueryUmPositionInformationRequest as QueryUmPositionInformationRequest, type index_QueryUmPositionInformationResponse as QueryUmPositionInformationResponse, type index_QueryUmPositionInformationResponseInner as QueryUmPositionInformationResponseInner, type index_QueryUserNegativeBalanceAutoExchangeRecordRequest as QueryUserNegativeBalanceAutoExchangeRecordRequest, type index_QueryUserNegativeBalanceAutoExchangeRecordResponse as QueryUserNegativeBalanceAutoExchangeRecordResponse, type index_QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInner as QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInner, type index_QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInnerDetailsInner as QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInnerDetailsInner, type index_QueryUserRateLimitRequest as QueryUserRateLimitRequest, type index_QueryUserRateLimitResponse as QueryUserRateLimitResponse, type index_QueryUserRateLimitResponseInner as QueryUserRateLimitResponseInner, index_QueryUsersCmForceOrdersAutoCloseTypeEnum as QueryUsersCmForceOrdersAutoCloseTypeEnum, type index_QueryUsersCmForceOrdersRequest as QueryUsersCmForceOrdersRequest, type index_QueryUsersCmForceOrdersResponse as QueryUsersCmForceOrdersResponse, type index_QueryUsersCmForceOrdersResponseInner as QueryUsersCmForceOrdersResponseInner, type index_QueryUsersMarginForceOrdersRequest as QueryUsersMarginForceOrdersRequest, type index_QueryUsersMarginForceOrdersResponse as QueryUsersMarginForceOrdersResponse, type index_QueryUsersMarginForceOrdersResponseRowsInner as QueryUsersMarginForceOrdersResponseRowsInner, index_QueryUsersUmForceOrdersAutoCloseTypeEnum as QueryUsersUmForceOrdersAutoCloseTypeEnum, type index_QueryUsersUmForceOrdersRequest as QueryUsersUmForceOrdersRequest, type index_QueryUsersUmForceOrdersResponse as QueryUsersUmForceOrdersResponse, type index_QueryUsersUmForceOrdersResponseInner as QueryUsersUmForceOrdersResponseInner, type index_RepayFuturesNegativeBalanceRequest as RepayFuturesNegativeBalanceRequest, type index_RepayFuturesNegativeBalanceResponse as RepayFuturesNegativeBalanceResponse, index_RestAPI as RestAPI, type index_StartUserDataStreamResponse as StartUserDataStreamResponse, type index_ToggleBnbBurnOnUmFuturesTradeRequest as ToggleBnbBurnOnUmFuturesTradeRequest, type index_ToggleBnbBurnOnUmFuturesTradeResponse as ToggleBnbBurnOnUmFuturesTradeResponse, index_TradeApi as TradeApi, type index_TradeApiInterface as TradeApiInterface, type index_UmAccountTradeListRequest as UmAccountTradeListRequest, type index_UmAccountTradeListResponse as UmAccountTradeListResponse, type index_UmAccountTradeListResponseInner as UmAccountTradeListResponseInner, type index_UmFuturesAccountConfigurationRequest as UmFuturesAccountConfigurationRequest, type index_UmFuturesAccountConfigurationResponse as UmFuturesAccountConfigurationResponse, type index_UmFuturesSymbolConfigurationRequest as UmFuturesSymbolConfigurationRequest, type index_UmFuturesSymbolConfigurationResponse as UmFuturesSymbolConfigurationResponse, type index_UmFuturesSymbolConfigurationResponseInner as UmFuturesSymbolConfigurationResponseInner, type index_UmNotionalAndLeverageBracketsRequest as UmNotionalAndLeverageBracketsRequest, type index_UmNotionalAndLeverageBracketsResponse as UmNotionalAndLeverageBracketsResponse, type index_UmNotionalAndLeverageBracketsResponseInner as UmNotionalAndLeverageBracketsResponseInner, type index_UmNotionalAndLeverageBracketsResponseInnerBracketsInner as UmNotionalAndLeverageBracketsResponseInnerBracketsInner, type index_UmPositionAdlQuantileEstimationRequest as UmPositionAdlQuantileEstimationRequest, type index_UmPositionAdlQuantileEstimationResponse as UmPositionAdlQuantileEstimationResponse, type index_UmPositionAdlQuantileEstimationResponseInner as UmPositionAdlQuantileEstimationResponseInner, index_UserDataStreamsApi as UserDataStreamsApi, type index_UserDataStreamsApiInterface as UserDataStreamsApiInterface };
}

interface ConfigurationDerivativesTradingPortfolioMargin {
    configurationRestAPI?: ConfigurationRestAPI;
}
declare class DerivativesTradingPortfolioMargin {
    restAPI: RestAPI;
    constructor(config: ConfigurationDerivativesTradingPortfolioMargin);
}

export { type ConfigurationDerivativesTradingPortfolioMargin, DerivativesTradingPortfolioMargin, index as DerivativesTradingPortfolioMarginRestAPI };
