import { BadRequestError, ConfigurationRestAPI, ConfigurationWebsocketStreams, ConnectorClientError, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PROD_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_TESTNET_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_PROD_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_TESTNET_URL, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, RestApiResponse, ServerError, TooManyRequestsError, UnauthorizedError, WebsocketStream, WebsocketStreamsBase } from "@binance/common";

//#region rolldown:runtime

//#endregion
//#region src/rest-api/types/account-balance-response1-inner.d.ts
/**
 * 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 | bigint}
   * @memberof AccountBalanceResponse1Inner
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof AccountBalanceResponse1Inner
   */
  negativeBalance?: string;
}
//#endregion
//#region src/rest-api/types/account-balance-response1.d.ts
/**
 *
 * @export
 * @interface AccountBalanceResponse1
 */
interface AccountBalanceResponse1 extends Array<AccountBalanceResponse1Inner> {}
//#endregion
//#region src/rest-api/types/account-balance-response2.d.ts
/**
 * 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 | bigint}
   * @memberof AccountBalanceResponse2
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof AccountBalanceResponse2
   */
  negativeBalance?: string;
}
//#endregion
//#region src/rest-api/types/account-balance-response.d.ts
/**
 * @type AccountBalanceResponse
 * @export
 */
type AccountBalanceResponse = AccountBalanceResponse1 | AccountBalanceResponse2;
//#endregion
//#region src/rest-api/types/account-information-response.d.ts
/**
 * 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 | bigint}
   * @memberof AccountInformationResponse
   */
  updateTime?: number | bigint;
}
//#endregion
//#region src/rest-api/types/bnb-transfer-response.d.ts
/**
 * 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 | bigint}
   * @memberof BnbTransferResponse
   */
  tranId?: number | bigint;
}
//#endregion
//#region src/rest-api/types/cancel-all-cm-open-conditional-orders-response.d.ts
/**
 * 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;
}
//#endregion
//#region src/rest-api/types/cancel-all-cm-open-orders-response.d.ts
/**
 * 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 | bigint}
   * @memberof CancelAllCmOpenOrdersResponse
   */
  code?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof CancelAllCmOpenOrdersResponse
   */
  msg?: string;
}
//#endregion
//#region src/rest-api/types/cancel-all-um-algo-open-orders-response.d.ts
/**
 * 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 CancelAllUmAlgoOpenOrdersResponse
 */
interface CancelAllUmAlgoOpenOrdersResponse {
  /**
   *
   * @type {number | bigint}
   * @memberof CancelAllUmAlgoOpenOrdersResponse
   */
  code?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof CancelAllUmAlgoOpenOrdersResponse
   */
  msg?: string;
}
//#endregion
//#region src/rest-api/types/cancel-all-um-open-conditional-orders-response.d.ts
/**
 * 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;
}
//#endregion
//#region src/rest-api/types/cancel-all-um-open-orders-response.d.ts
/**
 * 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 | bigint}
   * @memberof CancelAllUmOpenOrdersResponse
   */
  code?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof CancelAllUmOpenOrdersResponse
   */
  msg?: string;
}
//#endregion
//#region src/rest-api/types/cancel-cm-conditional-order-response.d.ts
/**
 * 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 | bigint}
   * @memberof CancelCmConditionalOrderResponse
   */
  strategyId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof CancelCmConditionalOrderResponse
   */
  bookTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof CancelCmConditionalOrderResponse
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof CancelCmConditionalOrderResponse
   */
  workingType?: string;
  /**
   *
   * @type {boolean}
   * @memberof CancelCmConditionalOrderResponse
   */
  priceProtect?: boolean;
}
//#endregion
//#region src/rest-api/types/cancel-cm-order-response.d.ts
/**
 * 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 | bigint}
   * @memberof CancelCmOrderResponse
   */
  orderId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof CancelCmOrderResponse
   */
  updateTime?: number | bigint;
}
//#endregion
//#region src/rest-api/types/cancel-margin-account-all-open-orders-on-asymbol-response-inner-order-reports-inner.d.ts
/**
 * 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 | bigint}
   * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner
   */
  orderId?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner
   */
  orderListId?: number | bigint;
  /**
   *
   * @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;
}
//#endregion
//#region src/rest-api/types/cancel-margin-account-all-open-orders-on-asymbol-response-inner-orders-inner.d.ts
/**
 * 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 | bigint}
   * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrdersInner
   */
  orderId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrdersInner
   */
  clientOrderId?: string;
}
//#endregion
//#region src/rest-api/types/cancel-margin-account-all-open-orders-on-asymbol-response-inner.d.ts
/**
 *
 * @export
 * @interface CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
 */
interface CancelMarginAccountAllOpenOrdersOnASymbolResponseInner {
  /**
   *
   * @type {string}
   * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
   */
  symbol?: string;
  /**
   *
   * @type {string}
   * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
   */
  origClientOrderId?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
   */
  orderId?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
   */
  orderListId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
   */
  transactionTime?: number | bigint;
  /**
   *
   * @type {Array<CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrdersInner>}
   * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
   */
  orders?: Array<CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrdersInner>;
  /**
   *
   * @type {Array<CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner>}
   * @memberof CancelMarginAccountAllOpenOrdersOnASymbolResponseInner
   */
  orderReports?: Array<CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner>;
}
//#endregion
//#region src/rest-api/types/cancel-margin-account-all-open-orders-on-asymbol-response.d.ts
/**
 *
 * @export
 * @interface CancelMarginAccountAllOpenOrdersOnASymbolResponse
 */
interface CancelMarginAccountAllOpenOrdersOnASymbolResponse extends Array<CancelMarginAccountAllOpenOrdersOnASymbolResponseInner> {}
//#endregion
//#region src/rest-api/types/cancel-margin-account-oco-orders-response-order-reports-inner.d.ts
/**
 * 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 | bigint}
   * @memberof CancelMarginAccountOcoOrdersResponseOrderReportsInner
   */
  orderId?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof CancelMarginAccountOcoOrdersResponseOrderReportsInner
   */
  orderListId?: number | bigint;
  /**
   *
   * @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;
}
//#endregion
//#region src/rest-api/types/cancel-margin-account-oco-orders-response-orders-inner.d.ts
/**
 * 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 | bigint}
   * @memberof CancelMarginAccountOcoOrdersResponseOrdersInner
   */
  orderId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof CancelMarginAccountOcoOrdersResponseOrdersInner
   */
  clientOrderId?: string;
}
//#endregion
//#region src/rest-api/types/cancel-margin-account-oco-orders-response.d.ts
/**
 *
 * @export
 * @interface CancelMarginAccountOcoOrdersResponse
 */
interface CancelMarginAccountOcoOrdersResponse {
  /**
   *
   * @type {number | bigint}
   * @memberof CancelMarginAccountOcoOrdersResponse
   */
  orderListId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof CancelMarginAccountOcoOrdersResponse
   */
  transactionTime?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof CancelMarginAccountOcoOrdersResponse
   */
  symbol?: string;
  /**
   *
   * @type {Array<CancelMarginAccountOcoOrdersResponseOrdersInner>}
   * @memberof CancelMarginAccountOcoOrdersResponse
   */
  orders?: Array<CancelMarginAccountOcoOrdersResponseOrdersInner>;
  /**
   *
   * @type {Array<CancelMarginAccountOcoOrdersResponseOrderReportsInner>}
   * @memberof CancelMarginAccountOcoOrdersResponse
   */
  orderReports?: Array<CancelMarginAccountOcoOrdersResponseOrderReportsInner>;
}
//#endregion
//#region src/rest-api/types/cancel-margin-account-order-response.d.ts
/**
 * 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 | bigint}
   * @memberof CancelMarginAccountOrderResponse
   */
  orderId?: number | bigint;
  /**
   *
   * @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;
}
//#endregion
//#region src/rest-api/types/cancel-um-algo-order-response.d.ts
/**
 * 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 CancelUmAlgoOrderResponse
 */
interface CancelUmAlgoOrderResponse {
  /**
   *
   * @type {boolean}
   * @memberof CancelUmAlgoOrderResponse
   */
  complete?: boolean;
}
//#endregion
//#region src/rest-api/types/cancel-um-conditional-order-response.d.ts
/**
 * 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 | bigint}
   * @memberof CancelUmConditionalOrderResponse
   */
  strategyId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof CancelUmConditionalOrderResponse
   */
  bookTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof CancelUmConditionalOrderResponse
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof CancelUmConditionalOrderResponse
   */
  workingType?: string;
  /**
   *
   * @type {boolean}
   * @memberof CancelUmConditionalOrderResponse
   */
  priceProtect?: boolean;
  /**
   *
   * @type {string}
   * @memberof CancelUmConditionalOrderResponse
   */
  selfTradePreventionMode?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof CancelUmConditionalOrderResponse
   */
  goodTillDate?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof CancelUmConditionalOrderResponse
   */
  priceMatch?: string;
}
//#endregion
//#region src/rest-api/types/cancel-um-order-response.d.ts
/**
 * 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 | bigint}
   * @memberof CancelUmOrderResponse
   */
  orderId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof CancelUmOrderResponse
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof CancelUmOrderResponse
   */
  selfTradePreventionMode?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof CancelUmOrderResponse
   */
  goodTillDate?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof CancelUmOrderResponse
   */
  priceMatch?: string;
}
//#endregion
//#region src/rest-api/types/change-auto-repay-futures-status-response.d.ts
/**
 * 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;
}
//#endregion
//#region src/rest-api/types/change-cm-initial-leverage-response.d.ts
/**
 * 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 | bigint}
   * @memberof ChangeCmInitialLeverageResponse
   */
  leverage?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof ChangeCmInitialLeverageResponse
   */
  maxQty?: string;
  /**
   *
   * @type {string}
   * @memberof ChangeCmInitialLeverageResponse
   */
  symbol?: string;
}
//#endregion
//#region src/rest-api/types/change-cm-position-mode-response.d.ts
/**
 * 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 | bigint}
   * @memberof ChangeCmPositionModeResponse
   */
  code?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof ChangeCmPositionModeResponse
   */
  msg?: string;
}
//#endregion
//#region src/rest-api/types/change-um-initial-leverage-response.d.ts
/**
 * 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 | bigint}
   * @memberof ChangeUmInitialLeverageResponse
   */
  leverage?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof ChangeUmInitialLeverageResponse
   */
  maxNotionalValue?: string;
  /**
   *
   * @type {string}
   * @memberof ChangeUmInitialLeverageResponse
   */
  symbol?: string;
}
//#endregion
//#region src/rest-api/types/change-um-position-mode-response.d.ts
/**
 * 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 | bigint}
   * @memberof ChangeUmPositionModeResponse
   */
  code?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof ChangeUmPositionModeResponse
   */
  msg?: string;
}
//#endregion
//#region src/rest-api/types/cm-account-trade-list-response-inner.d.ts
/**
 * 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 | bigint}
   * @memberof CmAccountTradeListResponseInner
   */
  id?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof CmAccountTradeListResponseInner
   */
  orderId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof CmAccountTradeListResponseInner
   */
  time?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof CmAccountTradeListResponseInner
   */
  positionSide?: string;
  /**
   *
   * @type {boolean}
   * @memberof CmAccountTradeListResponseInner
   */
  buyer?: boolean;
  /**
   *
   * @type {boolean}
   * @memberof CmAccountTradeListResponseInner
   */
  maker?: boolean;
}
//#endregion
//#region src/rest-api/types/cm-account-trade-list-response.d.ts
/**
 *
 * @export
 * @interface CmAccountTradeListResponse
 */
interface CmAccountTradeListResponse extends Array<CmAccountTradeListResponseInner> {}
//#endregion
//#region src/rest-api/types/cm-notional-and-leverage-brackets-response-inner-brackets-inner.d.ts
/**
 * 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 | bigint}
   * @memberof CmNotionalAndLeverageBracketsResponseInnerBracketsInner
   */
  bracket?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof CmNotionalAndLeverageBracketsResponseInnerBracketsInner
   */
  initialLeverage?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof CmNotionalAndLeverageBracketsResponseInnerBracketsInner
   */
  qtyCap?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof CmNotionalAndLeverageBracketsResponseInnerBracketsInner
   */
  qtyFloor?: number | bigint;
  /**
   *
   * @type {number}
   * @memberof CmNotionalAndLeverageBracketsResponseInnerBracketsInner
   */
  maintMarginRatio?: number;
  /**
   *
   * @type {number}
   * @memberof CmNotionalAndLeverageBracketsResponseInnerBracketsInner
   */
  cum?: number;
}
//#endregion
//#region src/rest-api/types/cm-notional-and-leverage-brackets-response-inner.d.ts
/**
 *
 * @export
 * @interface CmNotionalAndLeverageBracketsResponseInner
 */
interface CmNotionalAndLeverageBracketsResponseInner {
  /**
   *
   * @type {string}
   * @memberof CmNotionalAndLeverageBracketsResponseInner
   */
  symbol?: string;
  /**
   *
   * @type {Array<CmNotionalAndLeverageBracketsResponseInnerBracketsInner>}
   * @memberof CmNotionalAndLeverageBracketsResponseInner
   */
  brackets?: Array<CmNotionalAndLeverageBracketsResponseInnerBracketsInner>;
}
//#endregion
//#region src/rest-api/types/cm-notional-and-leverage-brackets-response.d.ts
/**
 *
 * @export
 * @interface CmNotionalAndLeverageBracketsResponse
 */
interface CmNotionalAndLeverageBracketsResponse extends Array<CmNotionalAndLeverageBracketsResponseInner> {}
//#endregion
//#region src/rest-api/types/cm-position-adl-quantile-estimation-response-inner-adl-quantile.d.ts
/**
 * 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 | bigint}
   * @memberof CmPositionAdlQuantileEstimationResponseInnerAdlQuantile
   */
  LONG?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof CmPositionAdlQuantileEstimationResponseInnerAdlQuantile
   */
  SHORT?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof CmPositionAdlQuantileEstimationResponseInnerAdlQuantile
   */
  HEDGE?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof CmPositionAdlQuantileEstimationResponseInnerAdlQuantile
   */
  BOTH?: number | bigint;
}
//#endregion
//#region src/rest-api/types/cm-position-adl-quantile-estimation-response-inner.d.ts
/**
 *
 * @export
 * @interface CmPositionAdlQuantileEstimationResponseInner
 */
interface CmPositionAdlQuantileEstimationResponseInner {
  /**
   *
   * @type {string}
   * @memberof CmPositionAdlQuantileEstimationResponseInner
   */
  symbol?: string;
  /**
   *
   * @type {CmPositionAdlQuantileEstimationResponseInnerAdlQuantile}
   * @memberof CmPositionAdlQuantileEstimationResponseInner
   */
  adlQuantile?: CmPositionAdlQuantileEstimationResponseInnerAdlQuantile;
}
//#endregion
//#region src/rest-api/types/cm-position-adl-quantile-estimation-response.d.ts
/**
 *
 * @export
 * @interface CmPositionAdlQuantileEstimationResponse
 */
interface CmPositionAdlQuantileEstimationResponse extends Array<CmPositionAdlQuantileEstimationResponseInner> {}
//#endregion
//#region src/rest-api/types/fund-auto-collection-response.d.ts
/**
 * 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;
}
//#endregion
//#region src/rest-api/types/fund-collection-by-asset-response.d.ts
/**
 * 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;
}
//#endregion
//#region src/rest-api/types/futures-tradfi-perps-contract-response.d.ts
/**
 * 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 FuturesTradfiPerpsContractResponse
 */
interface FuturesTradfiPerpsContractResponse {
  /**
   *
   * @type {number | bigint}
   * @memberof FuturesTradfiPerpsContractResponse
   */
  code?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof FuturesTradfiPerpsContractResponse
   */
  msg?: string;
}
//#endregion
//#region src/rest-api/types/get-auto-repay-futures-status-response.d.ts
/**
 * 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;
}
//#endregion
//#region src/rest-api/types/get-cm-account-detail-response-assets-inner.d.ts
/**
 * 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 | bigint}
   * @memberof GetCmAccountDetailResponseAssetsInner
   */
  updateTime?: number | bigint;
}
//#endregion
//#region src/rest-api/types/get-cm-account-detail-response-positions-inner.d.ts
/**
 * 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 | bigint}
   * @memberof GetCmAccountDetailResponsePositionsInner
   */
  updateTime?: number | bigint;
}
//#endregion
//#region src/rest-api/types/get-cm-account-detail-response.d.ts
/**
 *
 * @export
 * @interface GetCmAccountDetailResponse
 */
interface GetCmAccountDetailResponse {
  /**
   *
   * @type {Array<GetCmAccountDetailResponseAssetsInner>}
   * @memberof GetCmAccountDetailResponse
   */
  assets?: Array<GetCmAccountDetailResponseAssetsInner>;
  /**
   *
   * @type {Array<GetCmAccountDetailResponsePositionsInner>}
   * @memberof GetCmAccountDetailResponse
   */
  positions?: Array<GetCmAccountDetailResponsePositionsInner>;
}
//#endregion
//#region src/rest-api/types/get-cm-current-position-mode-response.d.ts
/**
 * 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;
}
//#endregion
//#region src/rest-api/types/get-cm-income-history-response-inner.d.ts
/**
 * 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 | bigint}
   * @memberof GetCmIncomeHistoryResponseInner
   */
  time?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof GetCmIncomeHistoryResponseInner
   */
  tranId?: string;
  /**
   *
   * @type {string}
   * @memberof GetCmIncomeHistoryResponseInner
   */
  tradeId?: string;
}
//#endregion
//#region src/rest-api/types/get-cm-income-history-response.d.ts
/**
 *
 * @export
 * @interface GetCmIncomeHistoryResponse
 */
interface GetCmIncomeHistoryResponse extends Array<GetCmIncomeHistoryResponseInner> {}
//#endregion
//#region src/rest-api/types/get-download-id-for-um-futures-order-history-response.d.ts
/**
 * 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 | bigint}
   * @memberof GetDownloadIdForUmFuturesOrderHistoryResponse
   */
  avgCostTimestampOfLast30d?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof GetDownloadIdForUmFuturesOrderHistoryResponse
   */
  downloadId?: string;
}
//#endregion
//#region src/rest-api/types/get-download-id-for-um-futures-trade-history-response.d.ts
/**
 * 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 | bigint}
   * @memberof GetDownloadIdForUmFuturesTradeHistoryResponse
   */
  avgCostTimestampOfLast30d?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof GetDownloadIdForUmFuturesTradeHistoryResponse
   */
  downloadId?: string;
}
//#endregion
//#region src/rest-api/types/get-download-id-for-um-futures-transaction-history-response.d.ts
/**
 * 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 | bigint}
   * @memberof GetDownloadIdForUmFuturesTransactionHistoryResponse
   */
  avgCostTimestampOfLast30d?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof GetDownloadIdForUmFuturesTransactionHistoryResponse
   */
  downloadId?: string;
}
//#endregion
//#region src/rest-api/types/get-margin-borrow-loan-interest-history-response-rows-inner.d.ts
/**
 * 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 | bigint}
   * @memberof GetMarginBorrowLoanInterestHistoryResponseRowsInner
   */
  txId?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof GetMarginBorrowLoanInterestHistoryResponseRowsInner
   */
  interestAccuredTime?: number | bigint;
  /**
   *
   * @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;
}
//#endregion
//#region src/rest-api/types/get-margin-borrow-loan-interest-history-response.d.ts
/**
 *
 * @export
 * @interface GetMarginBorrowLoanInterestHistoryResponse
 */
interface GetMarginBorrowLoanInterestHistoryResponse {
  /**
   *
   * @type {Array<GetMarginBorrowLoanInterestHistoryResponseRowsInner>}
   * @memberof GetMarginBorrowLoanInterestHistoryResponse
   */
  rows?: Array<GetMarginBorrowLoanInterestHistoryResponseRowsInner>;
  /**
   *
   * @type {number | bigint}
   * @memberof GetMarginBorrowLoanInterestHistoryResponse
   */
  total?: number | bigint;
}
//#endregion
//#region src/rest-api/types/get-um-account-detail-response-positions-inner.d.ts
/**
 * 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 | bigint}
   * @memberof GetUmAccountDetailResponsePositionsInner
   */
  updateTime?: number | bigint;
}
//#endregion
//#region src/rest-api/types/get-um-account-detail-v2-response-assets-inner.d.ts
/**
 * 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 | bigint}
   * @memberof GetUmAccountDetailV2ResponseAssetsInner
   */
  updateTime?: number | bigint;
}
//#endregion
//#region src/rest-api/types/get-um-account-detail-response.d.ts
/**
 *
 * @export
 * @interface GetUmAccountDetailResponse
 */
interface GetUmAccountDetailResponse {
  /**
   *
   * @type {Array<GetUmAccountDetailV2ResponseAssetsInner>}
   * @memberof GetUmAccountDetailResponse
   */
  assets?: Array<GetUmAccountDetailV2ResponseAssetsInner>;
  /**
   *
   * @type {Array<GetUmAccountDetailResponsePositionsInner>}
   * @memberof GetUmAccountDetailResponse
   */
  positions?: Array<GetUmAccountDetailResponsePositionsInner>;
}
//#endregion
//#region src/rest-api/types/get-um-account-detail-v2-response-positions-inner.d.ts
/**
 * 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 | bigint}
   * @memberof GetUmAccountDetailV2ResponsePositionsInner
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof GetUmAccountDetailV2ResponsePositionsInner
   */
  notional?: string;
}
//#endregion
//#region src/rest-api/types/get-um-account-detail-v2-response.d.ts
/**
 *
 * @export
 * @interface GetUmAccountDetailV2Response
 */
interface GetUmAccountDetailV2Response {
  /**
   *
   * @type {Array<GetUmAccountDetailV2ResponseAssetsInner>}
   * @memberof GetUmAccountDetailV2Response
   */
  assets?: Array<GetUmAccountDetailV2ResponseAssetsInner>;
  /**
   *
   * @type {Array<GetUmAccountDetailV2ResponsePositionsInner>}
   * @memberof GetUmAccountDetailV2Response
   */
  positions?: Array<GetUmAccountDetailV2ResponsePositionsInner>;
}
//#endregion
//#region src/rest-api/types/get-um-current-position-mode-response.d.ts
/**
 * 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;
}
//#endregion
//#region src/rest-api/types/get-um-futures-bnb-burn-status-response.d.ts
/**
 * 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;
}
//#endregion
//#region src/rest-api/types/get-um-futures-order-download-link-by-id-response.d.ts
/**
 * 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 | bigint}
   * @memberof GetUmFuturesOrderDownloadLinkByIdResponse
   */
  expirationTimestamp?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof GetUmFuturesOrderDownloadLinkByIdResponse
   */
  isExpired?: string;
}
//#endregion
//#region src/rest-api/types/get-um-futures-trade-download-link-by-id-response.d.ts
/**
 * 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 | bigint}
   * @memberof GetUmFuturesTradeDownloadLinkByIdResponse
   */
  expirationTimestamp?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof GetUmFuturesTradeDownloadLinkByIdResponse
   */
  isExpired?: string;
}
//#endregion
//#region src/rest-api/types/get-um-futures-transaction-download-link-by-id-response.d.ts
/**
 * 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 | bigint}
   * @memberof GetUmFuturesTransactionDownloadLinkByIdResponse
   */
  expirationTimestamp?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof GetUmFuturesTransactionDownloadLinkByIdResponse
   */
  isExpired?: string;
}
//#endregion
//#region src/rest-api/types/get-um-income-history-response-inner.d.ts
/**
 * 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 | bigint}
   * @memberof GetUmIncomeHistoryResponseInner
   */
  time?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof GetUmIncomeHistoryResponseInner
   */
  tranId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof GetUmIncomeHistoryResponseInner
   */
  tradeId?: string;
}
//#endregion
//#region src/rest-api/types/get-um-income-history-response.d.ts
/**
 *
 * @export
 * @interface GetUmIncomeHistoryResponse
 */
interface GetUmIncomeHistoryResponse extends Array<GetUmIncomeHistoryResponseInner> {}
//#endregion
//#region src/rest-api/types/get-user-commission-rate-for-cm-response.d.ts
/**
 * 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;
}
//#endregion
//#region src/rest-api/types/get-user-commission-rate-for-um-response.d.ts
/**
 * 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;
}
//#endregion
//#region src/rest-api/types/margin-account-borrow-response.d.ts
/**
 * 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 | bigint}
   * @memberof MarginAccountBorrowResponse
   */
  tranId?: number | bigint;
}
//#endregion
//#region src/rest-api/types/margin-account-new-oco-response-order-reports-inner.d.ts
/**
 * 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 | bigint}
   * @memberof MarginAccountNewOcoResponseOrderReportsInner
   */
  orderId?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof MarginAccountNewOcoResponseOrderReportsInner
   */
  orderListId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof MarginAccountNewOcoResponseOrderReportsInner
   */
  clientOrderId?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof MarginAccountNewOcoResponseOrderReportsInner
   */
  transactTime?: number | bigint;
  /**
   *
   * @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;
}
//#endregion
//#region src/rest-api/types/margin-account-new-oco-response-orders-inner.d.ts
/**
 * 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 | bigint}
   * @memberof MarginAccountNewOcoResponseOrdersInner
   */
  orderId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof MarginAccountNewOcoResponseOrdersInner
   */
  clientOrderId?: string;
}
//#endregion
//#region src/rest-api/types/margin-account-new-oco-response.d.ts
/**
 *
 * @export
 * @interface MarginAccountNewOcoResponse
 */
interface MarginAccountNewOcoResponse {
  /**
   *
   * @type {number | bigint}
   * @memberof MarginAccountNewOcoResponse
   */
  orderListId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof MarginAccountNewOcoResponse
   */
  transactionTime?: number | bigint;
  /**
   *
   * @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>;
}
//#endregion
//#region src/rest-api/types/margin-account-repay-debt-response.d.ts
/**
 * 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 | bigint}
   * @memberof MarginAccountRepayDebtResponse
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {boolean}
   * @memberof MarginAccountRepayDebtResponse
   */
  success?: boolean;
}
//#endregion
//#region src/rest-api/types/margin-account-repay-response.d.ts
/**
 * 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 | bigint}
   * @memberof MarginAccountRepayResponse
   */
  tranId?: number | bigint;
}
//#endregion
//#region src/rest-api/types/margin-account-trade-list-response-inner.d.ts
/**
 * 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 | bigint}
   * @memberof MarginAccountTradeListResponseInner
   */
  id?: number | bigint;
  /**
   *
   * @type {boolean}
   * @memberof MarginAccountTradeListResponseInner
   */
  isBestMatch?: boolean;
  /**
   *
   * @type {boolean}
   * @memberof MarginAccountTradeListResponseInner
   */
  isBuyer?: boolean;
  /**
   *
   * @type {boolean}
   * @memberof MarginAccountTradeListResponseInner
   */
  isMaker?: boolean;
  /**
   *
   * @type {number | bigint}
   * @memberof MarginAccountTradeListResponseInner
   */
  orderId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof MarginAccountTradeListResponseInner
   */
  price?: string;
  /**
   *
   * @type {string}
   * @memberof MarginAccountTradeListResponseInner
   */
  qty?: string;
  /**
   *
   * @type {string}
   * @memberof MarginAccountTradeListResponseInner
   */
  symbol?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof MarginAccountTradeListResponseInner
   */
  time?: number | bigint;
}
//#endregion
//#region src/rest-api/types/margin-account-trade-list-response.d.ts
/**
 *
 * @export
 * @interface MarginAccountTradeListResponse
 */
interface MarginAccountTradeListResponse extends Array<MarginAccountTradeListResponseInner> {}
//#endregion
//#region src/rest-api/types/margin-max-borrow-response.d.ts
/**
 * 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 {string}
   * @memberof MarginMaxBorrowResponse
   */
  amount?: string;
  /**
   *
   * @type {string}
   * @memberof MarginMaxBorrowResponse
   */
  borrowLimit?: string;
}
//#endregion
//#region src/rest-api/types/modify-cm-order-response.d.ts
/**
 * 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 | bigint}
   * @memberof ModifyCmOrderResponse
   */
  orderId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof ModifyCmOrderResponse
   */
  updateTime?: number | bigint;
}
//#endregion
//#region src/rest-api/types/modify-um-order-response.d.ts
/**
 * 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 | bigint}
   * @memberof ModifyUmOrderResponse
   */
  orderId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof ModifyUmOrderResponse
   */
  goodTillDate?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof ModifyUmOrderResponse
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof ModifyUmOrderResponse
   */
  priceMatch?: string;
}
//#endregion
//#region src/rest-api/types/new-cm-conditional-order-response.d.ts
/**
 * 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 | bigint}
   * @memberof NewCmConditionalOrderResponse
   */
  strategyId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof NewCmConditionalOrderResponse
   */
  bookTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof NewCmConditionalOrderResponse
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof NewCmConditionalOrderResponse
   */
  workingType?: string;
  /**
   *
   * @type {boolean}
   * @memberof NewCmConditionalOrderResponse
   */
  priceProtect?: boolean;
}
//#endregion
//#region src/rest-api/types/new-cm-order-response.d.ts
/**
 * 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 | bigint}
   * @memberof NewCmOrderResponse
   */
  orderId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof NewCmOrderResponse
   */
  updateTime?: number | bigint;
}
//#endregion
//#region src/rest-api/types/new-margin-order-response-fills-inner.d.ts
/**
 * 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;
}
//#endregion
//#region src/rest-api/types/new-margin-order-response.d.ts
/**
 *
 * @export
 * @interface NewMarginOrderResponse
 */
interface NewMarginOrderResponse {
  /**
   *
   * @type {string}
   * @memberof NewMarginOrderResponse
   */
  symbol?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof NewMarginOrderResponse
   */
  orderId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof NewMarginOrderResponse
   */
  clientOrderId?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof NewMarginOrderResponse
   */
  transactTime?: number | bigint;
  /**
   *
   * @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 {string}
   * @memberof NewMarginOrderResponse
   */
  marginBuyBorrowAmount?: string;
  /**
   *
   * @type {string}
   * @memberof NewMarginOrderResponse
   */
  marginBuyBorrowAsset?: string;
  /**
   *
   * @type {Array<NewMarginOrderResponseFillsInner>}
   * @memberof NewMarginOrderResponse
   */
  fills?: Array<NewMarginOrderResponseFillsInner>;
}
//#endregion
//#region src/rest-api/types/new-um-algo-order-response.d.ts
/**
 * 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 NewUmAlgoOrderResponse
 */
interface NewUmAlgoOrderResponse {
  /**
   *
   * @type {number | bigint}
   * @memberof NewUmAlgoOrderResponse
   */
  algoId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof NewUmAlgoOrderResponse
   */
  clientAlgoId?: string;
  /**
   *
   * @type {string}
   * @memberof NewUmAlgoOrderResponse
   */
  algoType?: string;
  /**
   *
   * @type {string}
   * @memberof NewUmAlgoOrderResponse
   */
  orderType?: string;
  /**
   *
   * @type {string}
   * @memberof NewUmAlgoOrderResponse
   */
  symbol?: string;
  /**
   *
   * @type {string}
   * @memberof NewUmAlgoOrderResponse
   */
  side?: string;
  /**
   *
   * @type {string}
   * @memberof NewUmAlgoOrderResponse
   */
  positionSide?: string;
  /**
   *
   * @type {string}
   * @memberof NewUmAlgoOrderResponse
   */
  timeInForce?: string;
  /**
   *
   * @type {string}
   * @memberof NewUmAlgoOrderResponse
   */
  quantity?: string;
  /**
   *
   * @type {string}
   * @memberof NewUmAlgoOrderResponse
   */
  algoStatus?: string;
  /**
   *
   * @type {string}
   * @memberof NewUmAlgoOrderResponse
   */
  triggerPrice?: string;
  /**
   *
   * @type {string}
   * @memberof NewUmAlgoOrderResponse
   */
  price?: string;
  /**
   *
   * @type {string}
   * @memberof NewUmAlgoOrderResponse
   */
  icebergQuantity?: string;
  /**
   *
   * @type {string}
   * @memberof NewUmAlgoOrderResponse
   */
  selfTradePreventionMode?: string;
  /**
   *
   * @type {string}
   * @memberof NewUmAlgoOrderResponse
   */
  workingType?: string;
  /**
   *
   * @type {string}
   * @memberof NewUmAlgoOrderResponse
   */
  priceMatch?: string;
  /**
   *
   * @type {boolean}
   * @memberof NewUmAlgoOrderResponse
   */
  priceProtect?: boolean;
  /**
   *
   * @type {boolean}
   * @memberof NewUmAlgoOrderResponse
   */
  reduceOnly?: boolean;
  /**
   *
   * @type {string}
   * @memberof NewUmAlgoOrderResponse
   */
  activatePrice?: string;
  /**
   *
   * @type {string}
   * @memberof NewUmAlgoOrderResponse
   */
  callbackRate?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof NewUmAlgoOrderResponse
   */
  createTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof NewUmAlgoOrderResponse
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof NewUmAlgoOrderResponse
   */
  triggerTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof NewUmAlgoOrderResponse
   */
  goodTillDate?: number | bigint;
}
//#endregion
//#region src/rest-api/types/new-um-conditional-order-response.d.ts
/**
 * 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 | bigint}
   * @memberof NewUmConditionalOrderResponse
   */
  strategyId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof NewUmConditionalOrderResponse
   */
  bookTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof NewUmConditionalOrderResponse
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof NewUmConditionalOrderResponse
   */
  workingType?: string;
  /**
   *
   * @type {boolean}
   * @memberof NewUmConditionalOrderResponse
   */
  priceProtect?: boolean;
  /**
   *
   * @type {string}
   * @memberof NewUmConditionalOrderResponse
   */
  selfTradePreventionMode?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof NewUmConditionalOrderResponse
   */
  goodTillDate?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof NewUmConditionalOrderResponse
   */
  priceMatch?: string;
}
//#endregion
//#region src/rest-api/types/new-um-order-response.d.ts
/**
 * 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 | bigint}
   * @memberof NewUmOrderResponse
   */
  orderId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof NewUmOrderResponse
   */
  goodTillDate?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof NewUmOrderResponse
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof NewUmOrderResponse
   */
  priceMatch?: string;
}
//#endregion
//#region src/rest-api/types/portfolio-margin-um-trading-quantitative-rules-indicators-response-indicators-accountinner.d.ts
/**
 * 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 | bigint}
   * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsACCOUNTInner
   */
  value?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsACCOUNTInner
   */
  triggerValue?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsACCOUNTInner
   */
  plannedRecoverTime?: number | bigint;
  /**
   *
   * @type {boolean}
   * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsACCOUNTInner
   */
  isLocked?: boolean;
}
//#endregion
//#region src/rest-api/types/portfolio-margin-um-trading-quantitative-rules-indicators-response-indicators-btcusdtinner.d.ts
/**
 * 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 | bigint}
   * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsBTCUSDTInner
   */
  plannedRecoverTime?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsBTCUSDTInner
   */
  indicator?: string;
  /**
   *
   * @type {number}
   * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsBTCUSDTInner
   */
  value?: number;
  /**
   *
   * @type {number}
   * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsBTCUSDTInner
   */
  triggerValue?: number;
}
//#endregion
//#region src/rest-api/types/portfolio-margin-um-trading-quantitative-rules-indicators-response-indicators.d.ts
/**
 *
 * @export
 * @interface PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicators
 */
interface PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicators {
  /**
   *
   * @type {Array<PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsBTCUSDTInner>}
   * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicators
   */
  BTCUSDT?: Array<PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsBTCUSDTInner>;
  /**
   *
   * @type {Array<PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsACCOUNTInner>}
   * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicators
   */
  ACCOUNT?: Array<PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsACCOUNTInner>;
}
//#endregion
//#region src/rest-api/types/portfolio-margin-um-trading-quantitative-rules-indicators-response.d.ts
/**
 *
 * @export
 * @interface PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponse
 */
interface PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponse {
  /**
   *
   * @type {PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicators}
   * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponse
   */
  indicators?: PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicators;
  /**
   *
   * @type {number | bigint}
   * @memberof PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponse
   */
  updateTime?: number | bigint;
}
//#endregion
//#region src/rest-api/types/query-all-cm-conditional-orders-response-inner.d.ts
/**
 * 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 | bigint}
   * @memberof QueryAllCmConditionalOrdersResponseInner
   */
  strategyId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryAllCmConditionalOrdersResponseInner
   */
  orderId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryAllCmConditionalOrdersResponseInner
   */
  status?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryAllCmConditionalOrdersResponseInner
   */
  bookTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryAllCmConditionalOrdersResponseInner
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryAllCmConditionalOrdersResponseInner
   */
  triggerTime?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryAllCmConditionalOrdersResponseInner
   */
  timeInForce?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCmConditionalOrdersResponseInner
   */
  type?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCmConditionalOrdersResponseInner
   */
  activatePrice?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCmConditionalOrdersResponseInner
   */
  priceRate?: string;
}
//#endregion
//#region src/rest-api/types/query-all-cm-conditional-orders-response.d.ts
/**
 *
 * @export
 * @interface QueryAllCmConditionalOrdersResponse
 */
interface QueryAllCmConditionalOrdersResponse extends Array<QueryAllCmConditionalOrdersResponseInner> {}
//#endregion
//#region src/rest-api/types/query-all-cm-orders-response-inner.d.ts
/**
 * 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 | bigint}
   * @memberof QueryAllCmOrdersResponseInner
   */
  orderId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryAllCmOrdersResponseInner
   */
  time?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryAllCmOrdersResponseInner
   */
  timeInForce?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCmOrdersResponseInner
   */
  type?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryAllCmOrdersResponseInner
   */
  updateTime?: number | bigint;
}
//#endregion
//#region src/rest-api/types/query-all-cm-orders-response.d.ts
/**
 *
 * @export
 * @interface QueryAllCmOrdersResponse
 */
interface QueryAllCmOrdersResponse extends Array<QueryAllCmOrdersResponseInner> {}
//#endregion
//#region src/rest-api/types/query-all-current-cm-open-conditional-orders-response-inner.d.ts
/**
 * 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 | bigint}
   * @memberof QueryAllCurrentCmOpenConditionalOrdersResponseInner
   */
  strategyId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryAllCurrentCmOpenConditionalOrdersResponseInner
   */
  bookTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryAllCurrentCmOpenConditionalOrdersResponseInner
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentCmOpenConditionalOrdersResponseInner
   */
  timeInForce?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentCmOpenConditionalOrdersResponseInner
   */
  activatePrice?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentCmOpenConditionalOrdersResponseInner
   */
  priceRate?: string;
}
//#endregion
//#region src/rest-api/types/query-all-current-cm-open-conditional-orders-response.d.ts
/**
 *
 * @export
 * @interface QueryAllCurrentCmOpenConditionalOrdersResponse
 */
interface QueryAllCurrentCmOpenConditionalOrdersResponse extends Array<QueryAllCurrentCmOpenConditionalOrdersResponseInner> {}
//#endregion
//#region src/rest-api/types/query-all-current-cm-open-orders-response.d.ts
/**
 *
 * @export
 * @interface QueryAllCurrentCmOpenOrdersResponse
 */
interface QueryAllCurrentCmOpenOrdersResponse extends Array<QueryAllCmOrdersResponseInner> {}
//#endregion
//#region src/rest-api/types/query-all-current-um-open-algo-orders-response-inner.d.ts
/**
 * 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 QueryAllCurrentUmOpenAlgoOrdersResponseInner
 */
interface QueryAllCurrentUmOpenAlgoOrdersResponseInner {
  /**
   *
   * @type {number | bigint}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  algoId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  clientAlgoId?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  algoType?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  orderType?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  symbol?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  side?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  positionSide?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  timeInForce?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  quantity?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  algoStatus?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  actualOrderId?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  actualPrice?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  triggerPrice?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  price?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  icebergQuantity?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  tpTriggerPrice?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  tpPrice?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  slTriggerPrice?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  slPrice?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  tpOrderType?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  selfTradePreventionMode?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  workingType?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  priceMatch?: string;
  /**
   *
   * @type {boolean}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  closePosition?: boolean;
  /**
   *
   * @type {boolean}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  priceProtect?: boolean;
  /**
   *
   * @type {boolean}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  reduceOnly?: boolean;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  createTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  triggerTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryAllCurrentUmOpenAlgoOrdersResponseInner
   */
  goodTillDate?: number | bigint;
}
//#endregion
//#region src/rest-api/types/query-all-current-um-open-algo-orders-response.d.ts
/**
 *
 * @export
 * @interface QueryAllCurrentUmOpenAlgoOrdersResponse
 */
interface QueryAllCurrentUmOpenAlgoOrdersResponse extends Array<QueryAllCurrentUmOpenAlgoOrdersResponseInner> {}
//#endregion
//#region src/rest-api/types/query-all-current-um-open-conditional-orders-response-inner.d.ts
/**
 * 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 | bigint}
   * @memberof QueryAllCurrentUmOpenConditionalOrdersResponseInner
   */
  strategyId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryAllCurrentUmOpenConditionalOrdersResponseInner
   */
  bookTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryAllCurrentUmOpenConditionalOrdersResponseInner
   */
  updateTime?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryAllCurrentUmOpenConditionalOrdersResponseInner
   */
  goodTillDate?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenConditionalOrdersResponseInner
   */
  priceMatch?: string;
}
//#endregion
//#region src/rest-api/types/query-all-current-um-open-conditional-orders-response.d.ts
/**
 *
 * @export
 * @interface QueryAllCurrentUmOpenConditionalOrdersResponse
 */
interface QueryAllCurrentUmOpenConditionalOrdersResponse extends Array<QueryAllCurrentUmOpenConditionalOrdersResponseInner> {}
//#endregion
//#region src/rest-api/types/query-all-current-um-open-orders-response-inner.d.ts
/**
 * 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 | bigint}
   * @memberof QueryAllCurrentUmOpenOrdersResponseInner
   */
  orderId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryAllCurrentUmOpenOrdersResponseInner
   */
  time?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenOrdersResponseInner
   */
  timeInForce?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenOrdersResponseInner
   */
  type?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryAllCurrentUmOpenOrdersResponseInner
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenOrdersResponseInner
   */
  selfTradePreventionMode?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryAllCurrentUmOpenOrdersResponseInner
   */
  goodTillDate?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryAllCurrentUmOpenOrdersResponseInner
   */
  priceMatch?: string;
}
//#endregion
//#region src/rest-api/types/query-all-current-um-open-orders-response.d.ts
/**
 *
 * @export
 * @interface QueryAllCurrentUmOpenOrdersResponse
 */
interface QueryAllCurrentUmOpenOrdersResponse extends Array<QueryAllCurrentUmOpenOrdersResponseInner> {}
//#endregion
//#region src/rest-api/types/query-all-margin-account-orders-response-inner.d.ts
/**
 * 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 | bigint}
   * @memberof QueryAllMarginAccountOrdersResponseInner
   */
  orderId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryAllMarginAccountOrdersResponseInner
   */
  time?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryAllMarginAccountOrdersResponseInner
   */
  timeInForce?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllMarginAccountOrdersResponseInner
   */
  type?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryAllMarginAccountOrdersResponseInner
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryAllMarginAccountOrdersResponseInner
   */
  accountId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryAllMarginAccountOrdersResponseInner
   */
  selfTradePreventionMode?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllMarginAccountOrdersResponseInner
   */
  preventedMatchId?: string;
  /**
   *
   * @type {string}
   * @memberof QueryAllMarginAccountOrdersResponseInner
   */
  preventedQuantity?: string;
}
//#endregion
//#region src/rest-api/types/query-all-margin-account-orders-response.d.ts
/**
 *
 * @export
 * @interface QueryAllMarginAccountOrdersResponse
 */
interface QueryAllMarginAccountOrdersResponse extends Array<QueryAllMarginAccountOrdersResponseInner> {}
//#endregion
//#region src/rest-api/types/query-all-um-conditional-orders-response-inner.d.ts
/**
 * 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 | bigint}
   * @memberof QueryAllUmConditionalOrdersResponseInner
   */
  strategyId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryAllUmConditionalOrdersResponseInner
   */
  orderId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryAllUmConditionalOrdersResponseInner
   */
  status?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryAllUmConditionalOrdersResponseInner
   */
  bookTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryAllUmConditionalOrdersResponseInner
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryAllUmConditionalOrdersResponseInner
   */
  triggerTime?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryAllUmConditionalOrdersResponseInner
   */
  goodTillDate?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryAllUmConditionalOrdersResponseInner
   */
  priceMatch?: string;
}
//#endregion
//#region src/rest-api/types/query-all-um-conditional-orders-response.d.ts
/**
 *
 * @export
 * @interface QueryAllUmConditionalOrdersResponse
 */
interface QueryAllUmConditionalOrdersResponse extends Array<QueryAllUmConditionalOrdersResponseInner> {}
//#endregion
//#region src/rest-api/types/query-all-um-orders-response.d.ts
/**
 *
 * @export
 * @interface QueryAllUmOrdersResponse
 */
interface QueryAllUmOrdersResponse extends Array<QueryAllCurrentUmOpenOrdersResponseInner> {}
//#endregion
//#region src/rest-api/types/query-cm-conditional-order-history-response.d.ts
/**
 * 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 | bigint}
   * @memberof QueryCmConditionalOrderHistoryResponse
   */
  strategyId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryCmConditionalOrderHistoryResponse
   */
  orderId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryCmConditionalOrderHistoryResponse
   */
  status?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryCmConditionalOrderHistoryResponse
   */
  bookTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryCmConditionalOrderHistoryResponse
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryCmConditionalOrderHistoryResponse
   */
  triggerTime?: number | bigint;
  /**
   *
   * @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;
}
//#endregion
//#region src/rest-api/types/query-cm-modify-order-history-response-inner-amendment-orig-qty.d.ts
/**
 * 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;
}
//#endregion
//#region src/rest-api/types/query-cm-modify-order-history-response-inner-amendment-price.d.ts
/**
 * 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;
}
//#endregion
//#region src/rest-api/types/query-cm-modify-order-history-response-inner-amendment.d.ts
/**
 *
 * @export
 * @interface QueryCmModifyOrderHistoryResponseInnerAmendment
 */
interface QueryCmModifyOrderHistoryResponseInnerAmendment {
  /**
   *
   * @type {QueryCmModifyOrderHistoryResponseInnerAmendmentPrice}
   * @memberof QueryCmModifyOrderHistoryResponseInnerAmendment
   */
  price?: QueryCmModifyOrderHistoryResponseInnerAmendmentPrice;
  /**
   *
   * @type {QueryCmModifyOrderHistoryResponseInnerAmendmentOrigQty}
   * @memberof QueryCmModifyOrderHistoryResponseInnerAmendment
   */
  origQty?: QueryCmModifyOrderHistoryResponseInnerAmendmentOrigQty;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryCmModifyOrderHistoryResponseInnerAmendment
   */
  count?: number | bigint;
}
//#endregion
//#region src/rest-api/types/query-cm-modify-order-history-response-inner.d.ts
/**
 *
 * @export
 * @interface QueryCmModifyOrderHistoryResponseInner
 */
interface QueryCmModifyOrderHistoryResponseInner {
  /**
   *
   * @type {number | bigint}
   * @memberof QueryCmModifyOrderHistoryResponseInner
   */
  amendmentId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryCmModifyOrderHistoryResponseInner
   */
  symbol?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCmModifyOrderHistoryResponseInner
   */
  pair?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryCmModifyOrderHistoryResponseInner
   */
  orderId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryCmModifyOrderHistoryResponseInner
   */
  clientOrderId?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryCmModifyOrderHistoryResponseInner
   */
  time?: number | bigint;
  /**
   *
   * @type {QueryCmModifyOrderHistoryResponseInnerAmendment}
   * @memberof QueryCmModifyOrderHistoryResponseInner
   */
  amendment?: QueryCmModifyOrderHistoryResponseInnerAmendment;
}
//#endregion
//#region src/rest-api/types/query-cm-modify-order-history-response.d.ts
/**
 *
 * @export
 * @interface QueryCmModifyOrderHistoryResponse
 */
interface QueryCmModifyOrderHistoryResponse extends Array<QueryCmModifyOrderHistoryResponseInner> {}
//#endregion
//#region src/rest-api/types/query-cm-order-response.d.ts
/**
 * 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 | bigint}
   * @memberof QueryCmOrderResponse
   */
  orderId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryCmOrderResponse
   */
  time?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryCmOrderResponse
   */
  timeInForce?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCmOrderResponse
   */
  type?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryCmOrderResponse
   */
  updateTime?: number | bigint;
}
//#endregion
//#region src/rest-api/types/query-cm-position-information-response-inner.d.ts
/**
 * 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 | bigint}
   * @memberof QueryCmPositionInformationResponseInner
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryCmPositionInformationResponseInner
   */
  maxQty?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCmPositionInformationResponseInner
   */
  notionalValue?: string;
}
//#endregion
//#region src/rest-api/types/query-cm-position-information-response.d.ts
/**
 *
 * @export
 * @interface QueryCmPositionInformationResponse
 */
interface QueryCmPositionInformationResponse extends Array<QueryCmPositionInformationResponseInner> {}
//#endregion
//#region src/rest-api/types/query-current-cm-open-conditional-order-response.d.ts
/**
 * 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 | bigint}
   * @memberof QueryCurrentCmOpenConditionalOrderResponse
   */
  strategyId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryCurrentCmOpenConditionalOrderResponse
   */
  bookTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryCurrentCmOpenConditionalOrderResponse
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentCmOpenConditionalOrderResponse
   */
  timeInForce?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentCmOpenConditionalOrderResponse
   */
  activatePrice?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentCmOpenConditionalOrderResponse
   */
  priceRate?: string;
}
//#endregion
//#region src/rest-api/types/query-current-cm-open-order-response.d.ts
/**
 *
 * @export
 * @interface QueryCurrentCmOpenOrderResponse
 */
interface QueryCurrentCmOpenOrderResponse extends Array<QueryAllCmOrdersResponseInner> {}
//#endregion
//#region src/rest-api/types/query-current-margin-open-order-response-inner.d.ts
/**
 * 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 | bigint}
   * @memberof QueryCurrentMarginOpenOrderResponseInner
   */
  orderId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryCurrentMarginOpenOrderResponseInner
   */
  time?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentMarginOpenOrderResponseInner
   */
  timeInForce?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentMarginOpenOrderResponseInner
   */
  type?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryCurrentMarginOpenOrderResponseInner
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryCurrentMarginOpenOrderResponseInner
   */
  accountId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentMarginOpenOrderResponseInner
   */
  selfTradePreventionMode?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentMarginOpenOrderResponseInner
   */
  preventedMatchId?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentMarginOpenOrderResponseInner
   */
  preventedQuantity?: string;
}
//#endregion
//#region src/rest-api/types/query-current-margin-open-order-response.d.ts
/**
 *
 * @export
 * @interface QueryCurrentMarginOpenOrderResponse
 */
interface QueryCurrentMarginOpenOrderResponse extends Array<QueryCurrentMarginOpenOrderResponseInner> {}
//#endregion
//#region src/rest-api/types/query-current-um-open-algo-order-response.d.ts
/**
 * 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 QueryCurrentUmOpenAlgoOrderResponse
 */
interface QueryCurrentUmOpenAlgoOrderResponse {
  /**
   *
   * @type {number | bigint}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  algoId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  clientAlgoId?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  algoType?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  orderType?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  symbol?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  side?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  positionSide?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  timeInForce?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  quantity?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  algoStatus?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  actualOrderId?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  actualPrice?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  triggerPrice?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  price?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  icebergQuantity?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  tpTriggerPrice?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  tpPrice?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  slTriggerPrice?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  slPrice?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  tpOrderType?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  selfTradePreventionMode?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  workingType?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  priceMatch?: string;
  /**
   *
   * @type {boolean}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  closePosition?: boolean;
  /**
   *
   * @type {boolean}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  priceProtect?: boolean;
  /**
   *
   * @type {boolean}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  reduceOnly?: boolean;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  createTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  triggerTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryCurrentUmOpenAlgoOrderResponse
   */
  goodTillDate?: number | bigint;
}
//#endregion
//#region src/rest-api/types/query-current-um-open-conditional-order-response.d.ts
/**
 * 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 | bigint}
   * @memberof QueryCurrentUmOpenConditionalOrderResponse
   */
  strategyId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryCurrentUmOpenConditionalOrderResponse
   */
  bookTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryCurrentUmOpenConditionalOrderResponse
   */
  updateTime?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryCurrentUmOpenConditionalOrderResponse
   */
  goodTillDate?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenConditionalOrderResponse
   */
  priceMatch?: string;
}
//#endregion
//#region src/rest-api/types/query-current-um-open-order-response.d.ts
/**
 * 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 | bigint}
   * @memberof QueryCurrentUmOpenOrderResponse
   */
  orderId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryCurrentUmOpenOrderResponse
   */
  time?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenOrderResponse
   */
  timeInForce?: string;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenOrderResponse
   */
  type?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryCurrentUmOpenOrderResponse
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenOrderResponse
   */
  selfTradePreventionMode?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryCurrentUmOpenOrderResponse
   */
  goodTillDate?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryCurrentUmOpenOrderResponse
   */
  priceMatch?: string;
}
//#endregion
//#region src/rest-api/types/query-margin-account-order-response.d.ts
/**
 * 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 | bigint}
   * @memberof QueryMarginAccountOrderResponse
   */
  orderId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryMarginAccountOrderResponse
   */
  time?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryMarginAccountOrderResponse
   */
  timeInForce?: string;
  /**
   *
   * @type {string}
   * @memberof QueryMarginAccountOrderResponse
   */
  type?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryMarginAccountOrderResponse
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryMarginAccountOrderResponse
   */
  accountId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryMarginAccountOrderResponse
   */
  selfTradePreventionMode?: string;
  /**
   *
   * @type {string}
   * @memberof QueryMarginAccountOrderResponse
   */
  preventedMatchId?: string;
  /**
   *
   * @type {string}
   * @memberof QueryMarginAccountOrderResponse
   */
  preventedQuantity?: string;
}
//#endregion
//#region src/rest-api/types/query-margin-accounts-all-oco-response-inner-orders-inner.d.ts
/**
 * 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 | bigint}
   * @memberof QueryMarginAccountsAllOcoResponseInnerOrdersInner
   */
  orderId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryMarginAccountsAllOcoResponseInnerOrdersInner
   */
  clientOrderId?: string;
}
//#endregion
//#region src/rest-api/types/query-margin-accounts-all-oco-response-inner.d.ts
/**
 *
 * @export
 * @interface QueryMarginAccountsAllOcoResponseInner
 */
interface QueryMarginAccountsAllOcoResponseInner {
  /**
   *
   * @type {number | bigint}
   * @memberof QueryMarginAccountsAllOcoResponseInner
   */
  orderListId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryMarginAccountsAllOcoResponseInner
   */
  transactionTime?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryMarginAccountsAllOcoResponseInner
   */
  symbol?: string;
  /**
   *
   * @type {Array<QueryMarginAccountsAllOcoResponseInnerOrdersInner>}
   * @memberof QueryMarginAccountsAllOcoResponseInner
   */
  orders?: Array<QueryMarginAccountsAllOcoResponseInnerOrdersInner>;
}
//#endregion
//#region src/rest-api/types/query-margin-accounts-all-oco-response.d.ts
/**
 *
 * @export
 * @interface QueryMarginAccountsAllOcoResponse
 */
interface QueryMarginAccountsAllOcoResponse extends Array<QueryMarginAccountsAllOcoResponseInner> {}
//#endregion
//#region src/rest-api/types/query-margin-accounts-oco-response-orders-inner.d.ts
/**
 * 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 | bigint}
   * @memberof QueryMarginAccountsOcoResponseOrdersInner
   */
  orderId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryMarginAccountsOcoResponseOrdersInner
   */
  clientOrderId?: string;
}
//#endregion
//#region src/rest-api/types/query-margin-accounts-oco-response.d.ts
/**
 *
 * @export
 * @interface QueryMarginAccountsOcoResponse
 */
interface QueryMarginAccountsOcoResponse {
  /**
   *
   * @type {number | bigint}
   * @memberof QueryMarginAccountsOcoResponse
   */
  orderListId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryMarginAccountsOcoResponse
   */
  transactionTime?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryMarginAccountsOcoResponse
   */
  symbol?: string;
  /**
   *
   * @type {Array<QueryMarginAccountsOcoResponseOrdersInner>}
   * @memberof QueryMarginAccountsOcoResponse
   */
  orders?: Array<QueryMarginAccountsOcoResponseOrdersInner>;
}
//#endregion
//#region src/rest-api/types/query-margin-accounts-open-oco-response-inner-orders-inner.d.ts
/**
 * 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 | bigint}
   * @memberof QueryMarginAccountsOpenOcoResponseInnerOrdersInner
   */
  orderId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryMarginAccountsOpenOcoResponseInnerOrdersInner
   */
  clientOrderId?: string;
}
//#endregion
//#region src/rest-api/types/query-margin-accounts-open-oco-response-inner.d.ts
/**
 *
 * @export
 * @interface QueryMarginAccountsOpenOcoResponseInner
 */
interface QueryMarginAccountsOpenOcoResponseInner {
  /**
   *
   * @type {number | bigint}
   * @memberof QueryMarginAccountsOpenOcoResponseInner
   */
  orderListId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryMarginAccountsOpenOcoResponseInner
   */
  transactionTime?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryMarginAccountsOpenOcoResponseInner
   */
  symbol?: string;
  /**
   *
   * @type {Array<QueryMarginAccountsOpenOcoResponseInnerOrdersInner>}
   * @memberof QueryMarginAccountsOpenOcoResponseInner
   */
  orders?: Array<QueryMarginAccountsOpenOcoResponseInnerOrdersInner>;
}
//#endregion
//#region src/rest-api/types/query-margin-accounts-open-oco-response.d.ts
/**
 *
 * @export
 * @interface QueryMarginAccountsOpenOcoResponse
 */
interface QueryMarginAccountsOpenOcoResponse extends Array<QueryMarginAccountsOpenOcoResponseInner> {}
//#endregion
//#region src/rest-api/types/query-margin-loan-record-response-rows-inner.d.ts
/**
 * 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 | bigint}
   * @memberof QueryMarginLoanRecordResponseRowsInner
   */
  txId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryMarginLoanRecordResponseRowsInner
   */
  asset?: string;
  /**
   *
   * @type {string}
   * @memberof QueryMarginLoanRecordResponseRowsInner
   */
  principal?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryMarginLoanRecordResponseRowsInner
   */
  timestamp?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryMarginLoanRecordResponseRowsInner
   */
  status?: string;
}
//#endregion
//#region src/rest-api/types/query-margin-loan-record-response.d.ts
/**
 *
 * @export
 * @interface QueryMarginLoanRecordResponse
 */
interface QueryMarginLoanRecordResponse {
  /**
   *
   * @type {Array<QueryMarginLoanRecordResponseRowsInner>}
   * @memberof QueryMarginLoanRecordResponse
   */
  rows?: Array<QueryMarginLoanRecordResponseRowsInner>;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryMarginLoanRecordResponse
   */
  total?: number | bigint;
}
//#endregion
//#region src/rest-api/types/query-margin-max-withdraw-response.d.ts
/**
 * 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;
}
//#endregion
//#region src/rest-api/types/query-margin-repay-record-response-rows-inner.d.ts
/**
 * 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 | bigint}
   * @memberof QueryMarginRepayRecordResponseRowsInner
   */
  timestamp?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryMarginRepayRecordResponseRowsInner
   */
  txId?: number | bigint;
}
//#endregion
//#region src/rest-api/types/query-margin-repay-record-response.d.ts
/**
 *
 * @export
 * @interface QueryMarginRepayRecordResponse
 */
interface QueryMarginRepayRecordResponse {
  /**
   *
   * @type {Array<QueryMarginRepayRecordResponseRowsInner>}
   * @memberof QueryMarginRepayRecordResponse
   */
  rows?: Array<QueryMarginRepayRecordResponseRowsInner>;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryMarginRepayRecordResponse
   */
  total?: number | bigint;
}
//#endregion
//#region src/rest-api/types/query-portfolio-margin-negative-balance-interest-history-response-inner.d.ts
/**
 * 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 | bigint}
   * @memberof QueryPortfolioMarginNegativeBalanceInterestHistoryResponseInner
   */
  interestAccuredTime?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryPortfolioMarginNegativeBalanceInterestHistoryResponseInner
   */
  interestRate?: string;
  /**
   *
   * @type {string}
   * @memberof QueryPortfolioMarginNegativeBalanceInterestHistoryResponseInner
   */
  principal?: string;
}
//#endregion
//#region src/rest-api/types/query-portfolio-margin-negative-balance-interest-history-response.d.ts
/**
 *
 * @export
 * @interface QueryPortfolioMarginNegativeBalanceInterestHistoryResponse
 */
interface QueryPortfolioMarginNegativeBalanceInterestHistoryResponse extends Array<QueryPortfolioMarginNegativeBalanceInterestHistoryResponseInner> {}
//#endregion
//#region src/rest-api/types/query-um-algo-order-history-response-inner.d.ts
/**
 * 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 QueryUmAlgoOrderHistoryResponseInner
 */
interface QueryUmAlgoOrderHistoryResponseInner {
  /**
   *
   * @type {number | bigint}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  algoId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  clientAlgoId?: string;
  /**
   *
   * @type {string}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  algoType?: string;
  /**
   *
   * @type {string}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  orderType?: string;
  /**
   *
   * @type {string}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  symbol?: string;
  /**
   *
   * @type {string}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  side?: string;
  /**
   *
   * @type {string}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  positionSide?: string;
  /**
   *
   * @type {string}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  timeInForce?: string;
  /**
   *
   * @type {string}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  quantity?: string;
  /**
   *
   * @type {string}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  algoStatus?: string;
  /**
   *
   * @type {string}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  actualOrderId?: string;
  /**
   *
   * @type {string}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  actualPrice?: string;
  /**
   *
   * @type {string}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  triggerPrice?: string;
  /**
   *
   * @type {string}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  price?: string;
  /**
   *
   * @type {string}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  icebergQuantity?: string;
  /**
   *
   * @type {string}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  tpTriggerPrice?: string;
  /**
   *
   * @type {string}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  tpPrice?: string;
  /**
   *
   * @type {string}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  slTriggerPrice?: string;
  /**
   *
   * @type {string}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  slPrice?: string;
  /**
   *
   * @type {string}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  tpOrderType?: string;
  /**
   *
   * @type {string}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  selfTradePreventionMode?: string;
  /**
   *
   * @type {string}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  workingType?: string;
  /**
   *
   * @type {string}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  priceMatch?: string;
  /**
   *
   * @type {boolean}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  closePosition?: boolean;
  /**
   *
   * @type {boolean}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  priceProtect?: boolean;
  /**
   *
   * @type {boolean}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  reduceOnly?: boolean;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  createTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  triggerTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryUmAlgoOrderHistoryResponseInner
   */
  goodTillDate?: number | bigint;
}
//#endregion
//#region src/rest-api/types/query-um-algo-order-history-response.d.ts
/**
 *
 * @export
 * @interface QueryUmAlgoOrderHistoryResponse
 */
interface QueryUmAlgoOrderHistoryResponse extends Array<QueryUmAlgoOrderHistoryResponseInner> {}
//#endregion
//#region src/rest-api/types/query-um-conditional-order-history-response.d.ts
/**
 * 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 | bigint}
   * @memberof QueryUmConditionalOrderHistoryResponse
   */
  strategyId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryUmConditionalOrderHistoryResponse
   */
  orderId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryUmConditionalOrderHistoryResponse
   */
  status?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryUmConditionalOrderHistoryResponse
   */
  bookTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryUmConditionalOrderHistoryResponse
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryUmConditionalOrderHistoryResponse
   */
  triggerTime?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryUmConditionalOrderHistoryResponse
   */
  goodTillDate?: number | bigint;
}
//#endregion
//#region src/rest-api/types/query-um-modify-order-history-response-inner.d.ts
/**
 *
 * @export
 * @interface QueryUmModifyOrderHistoryResponseInner
 */
interface QueryUmModifyOrderHistoryResponseInner {
  /**
   *
   * @type {number | bigint}
   * @memberof QueryUmModifyOrderHistoryResponseInner
   */
  amendmentId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryUmModifyOrderHistoryResponseInner
   */
  symbol?: string;
  /**
   *
   * @type {string}
   * @memberof QueryUmModifyOrderHistoryResponseInner
   */
  pair?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryUmModifyOrderHistoryResponseInner
   */
  orderId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryUmModifyOrderHistoryResponseInner
   */
  clientOrderId?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryUmModifyOrderHistoryResponseInner
   */
  time?: number | bigint;
  /**
   *
   * @type {QueryCmModifyOrderHistoryResponseInnerAmendment}
   * @memberof QueryUmModifyOrderHistoryResponseInner
   */
  amendment?: QueryCmModifyOrderHistoryResponseInnerAmendment;
  /**
   *
   * @type {string}
   * @memberof QueryUmModifyOrderHistoryResponseInner
   */
  priceMatch?: string;
}
//#endregion
//#region src/rest-api/types/query-um-modify-order-history-response.d.ts
/**
 *
 * @export
 * @interface QueryUmModifyOrderHistoryResponse
 */
interface QueryUmModifyOrderHistoryResponse extends Array<QueryUmModifyOrderHistoryResponseInner> {}
//#endregion
//#region src/rest-api/types/query-um-order-response.d.ts
/**
 * 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 | bigint}
   * @memberof QueryUmOrderResponse
   */
  orderId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryUmOrderResponse
   */
  time?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryUmOrderResponse
   */
  timeInForce?: string;
  /**
   *
   * @type {string}
   * @memberof QueryUmOrderResponse
   */
  type?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryUmOrderResponse
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryUmOrderResponse
   */
  selfTradePreventionMode?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryUmOrderResponse
   */
  goodTillDate?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof QueryUmOrderResponse
   */
  priceMatch?: string;
}
//#endregion
//#region src/rest-api/types/query-um-position-information-response-inner.d.ts
/**
 * 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 | bigint}
   * @memberof QueryUmPositionInformationResponseInner
   */
  updateTime?: number | bigint;
}
//#endregion
//#region src/rest-api/types/query-um-position-information-response.d.ts
/**
 *
 * @export
 * @interface QueryUmPositionInformationResponse
 */
interface QueryUmPositionInformationResponse extends Array<QueryUmPositionInformationResponseInner> {}
//#endregion
//#region src/rest-api/types/query-user-negative-balance-auto-exchange-record-response-rows-inner-details-inner.d.ts
/**
 * 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 | bigint}
   * @memberof QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInnerDetailsInner
   */
  negativeMaxThreshold?: number | bigint;
}
//#endregion
//#region src/rest-api/types/query-user-negative-balance-auto-exchange-record-response-rows-inner.d.ts
/**
 *
 * @export
 * @interface QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInner
 */
interface QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInner {
  /**
   *
   * @type {number | bigint}
   * @memberof QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInner
   */
  startTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInner
   */
  endTime?: number | bigint;
  /**
   *
   * @type {Array<QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInnerDetailsInner>}
   * @memberof QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInner
   */
  details?: Array<QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInnerDetailsInner>;
}
//#endregion
//#region src/rest-api/types/query-user-negative-balance-auto-exchange-record-response.d.ts
/**
 *
 * @export
 * @interface QueryUserNegativeBalanceAutoExchangeRecordResponse
 */
interface QueryUserNegativeBalanceAutoExchangeRecordResponse {
  /**
   *
   * @type {number | bigint}
   * @memberof QueryUserNegativeBalanceAutoExchangeRecordResponse
   */
  total?: number | bigint;
  /**
   *
   * @type {Array<QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInner>}
   * @memberof QueryUserNegativeBalanceAutoExchangeRecordResponse
   */
  rows?: Array<QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInner>;
}
//#endregion
//#region src/rest-api/types/query-user-rate-limit-response-inner.d.ts
/**
 * 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 | bigint}
   * @memberof QueryUserRateLimitResponseInner
   */
  intervalNum?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryUserRateLimitResponseInner
   */
  limit?: number | bigint;
}
//#endregion
//#region src/rest-api/types/query-user-rate-limit-response.d.ts
/**
 *
 * @export
 * @interface QueryUserRateLimitResponse
 */
interface QueryUserRateLimitResponse extends Array<QueryUserRateLimitResponseInner> {}
//#endregion
//#region src/rest-api/types/query-users-cm-force-orders-response-inner.d.ts
/**
 * 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 | bigint}
   * @memberof QueryUsersCmForceOrdersResponseInner
   */
  orderId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryUsersCmForceOrdersResponseInner
   */
  time?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryUsersCmForceOrdersResponseInner
   */
  updateTime?: number | bigint;
}
//#endregion
//#region src/rest-api/types/query-users-cm-force-orders-response.d.ts
/**
 *
 * @export
 * @interface QueryUsersCmForceOrdersResponse
 */
interface QueryUsersCmForceOrdersResponse extends Array<QueryUsersCmForceOrdersResponseInner> {}
//#endregion
//#region src/rest-api/types/query-users-margin-force-orders-response-rows-inner.d.ts
/**
 * 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 | bigint}
   * @memberof QueryUsersMarginForceOrdersResponseRowsInner
   */
  orderId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryUsersMarginForceOrdersResponseRowsInner
   */
  updatedTime?: number | bigint;
}
//#endregion
//#region src/rest-api/types/query-users-margin-force-orders-response.d.ts
/**
 *
 * @export
 * @interface QueryUsersMarginForceOrdersResponse
 */
interface QueryUsersMarginForceOrdersResponse {
  /**
   *
   * @type {Array<QueryUsersMarginForceOrdersResponseRowsInner>}
   * @memberof QueryUsersMarginForceOrdersResponse
   */
  rows?: Array<QueryUsersMarginForceOrdersResponseRowsInner>;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryUsersMarginForceOrdersResponse
   */
  total?: number | bigint;
}
//#endregion
//#region src/rest-api/types/query-users-um-force-orders-response-inner.d.ts
/**
 * 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 | bigint}
   * @memberof QueryUsersUmForceOrdersResponseInner
   */
  orderId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof QueryUsersUmForceOrdersResponseInner
   */
  time?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof QueryUsersUmForceOrdersResponseInner
   */
  updateTime?: number | bigint;
}
//#endregion
//#region src/rest-api/types/query-users-um-force-orders-response.d.ts
/**
 *
 * @export
 * @interface QueryUsersUmForceOrdersResponse
 */
interface QueryUsersUmForceOrdersResponse extends Array<QueryUsersUmForceOrdersResponseInner> {}
//#endregion
//#region src/rest-api/types/repay-futures-negative-balance-response.d.ts
/**
 * 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;
}
//#endregion
//#region src/rest-api/types/start-user-data-stream-response.d.ts
/**
 * 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;
}
//#endregion
//#region src/rest-api/types/toggle-bnb-burn-on-um-futures-trade-response.d.ts
/**
 * 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 | bigint}
   * @memberof ToggleBnbBurnOnUmFuturesTradeResponse
   */
  code?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof ToggleBnbBurnOnUmFuturesTradeResponse
   */
  msg?: string;
}
//#endregion
//#region src/rest-api/types/um-account-trade-list-response-inner.d.ts
/**
 * 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 | bigint}
   * @memberof UmAccountTradeListResponseInner
   */
  id?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof UmAccountTradeListResponseInner
   */
  orderId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof UmAccountTradeListResponseInner
   */
  time?: number | bigint;
  /**
   *
   * @type {boolean}
   * @memberof UmAccountTradeListResponseInner
   */
  buyer?: boolean;
  /**
   *
   * @type {boolean}
   * @memberof UmAccountTradeListResponseInner
   */
  maker?: boolean;
  /**
   *
   * @type {string}
   * @memberof UmAccountTradeListResponseInner
   */
  positionSide?: string;
}
//#endregion
//#region src/rest-api/types/um-account-trade-list-response.d.ts
/**
 *
 * @export
 * @interface UmAccountTradeListResponse
 */
interface UmAccountTradeListResponse extends Array<UmAccountTradeListResponseInner> {}
//#endregion
//#region src/rest-api/types/um-futures-account-configuration-response.d.ts
/**
 * 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 | bigint}
   * @memberof UmFuturesAccountConfigurationResponse
   */
  feeTier?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof UmFuturesAccountConfigurationResponse
   */
  updateTime?: number | bigint;
  /**
   *
   * @type {boolean}
   * @memberof UmFuturesAccountConfigurationResponse
   */
  multiAssetsMargin?: boolean;
  /**
   *
   * @type {number | bigint}
   * @memberof UmFuturesAccountConfigurationResponse
   */
  tradeGroupId?: number | bigint;
}
//#endregion
//#region src/rest-api/types/um-futures-symbol-configuration-response-inner.d.ts
/**
 * 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 | bigint}
   * @memberof UmFuturesSymbolConfigurationResponseInner
   */
  leverage?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof UmFuturesSymbolConfigurationResponseInner
   */
  maxNotionalValue?: string;
}
//#endregion
//#region src/rest-api/types/um-futures-symbol-configuration-response.d.ts
/**
 *
 * @export
 * @interface UmFuturesSymbolConfigurationResponse
 */
interface UmFuturesSymbolConfigurationResponse extends Array<UmFuturesSymbolConfigurationResponseInner> {}
//#endregion
//#region src/rest-api/types/um-notional-and-leverage-brackets-response-inner-brackets-inner.d.ts
/**
 * 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 | bigint}
   * @memberof UmNotionalAndLeverageBracketsResponseInnerBracketsInner
   */
  bracket?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof UmNotionalAndLeverageBracketsResponseInnerBracketsInner
   */
  initialLeverage?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof UmNotionalAndLeverageBracketsResponseInnerBracketsInner
   */
  notionalCap?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof UmNotionalAndLeverageBracketsResponseInnerBracketsInner
   */
  notionalFloor?: number | bigint;
  /**
   *
   * @type {number}
   * @memberof UmNotionalAndLeverageBracketsResponseInnerBracketsInner
   */
  maintMarginRatio?: number;
  /**
   *
   * @type {number | bigint}
   * @memberof UmNotionalAndLeverageBracketsResponseInnerBracketsInner
   */
  cum?: number | bigint;
}
//#endregion
//#region src/rest-api/types/um-notional-and-leverage-brackets-response-inner.d.ts
/**
 *
 * @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>;
}
//#endregion
//#region src/rest-api/types/um-notional-and-leverage-brackets-response.d.ts
/**
 *
 * @export
 * @interface UmNotionalAndLeverageBracketsResponse
 */
interface UmNotionalAndLeverageBracketsResponse extends Array<UmNotionalAndLeverageBracketsResponseInner> {}
//#endregion
//#region src/rest-api/types/um-position-adl-quantile-estimation-response-inner-adl-quantile.d.ts
/**
 * 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 UmPositionAdlQuantileEstimationResponseInnerAdlQuantile
 */
interface UmPositionAdlQuantileEstimationResponseInnerAdlQuantile {
  /**
   *
   * @type {number | bigint}
   * @memberof UmPositionAdlQuantileEstimationResponseInnerAdlQuantile
   */
  LONG?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof UmPositionAdlQuantileEstimationResponseInnerAdlQuantile
   */
  SHORT?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof UmPositionAdlQuantileEstimationResponseInnerAdlQuantile
   */
  BOTH?: number | bigint;
}
//#endregion
//#region src/rest-api/types/um-position-adl-quantile-estimation-response-inner.d.ts
/**
 *
 * @export
 * @interface UmPositionAdlQuantileEstimationResponseInner
 */
interface UmPositionAdlQuantileEstimationResponseInner {
  /**
   *
   * @type {string}
   * @memberof UmPositionAdlQuantileEstimationResponseInner
   */
  symbol?: string;
  /**
   *
   * @type {UmPositionAdlQuantileEstimationResponseInnerAdlQuantile}
   * @memberof UmPositionAdlQuantileEstimationResponseInner
   */
  adlQuantile?: UmPositionAdlQuantileEstimationResponseInnerAdlQuantile;
}
//#endregion
//#region src/rest-api/types/um-position-adl-quantile-estimation-response.d.ts
/**
 *
 * @export
 * @interface UmPositionAdlQuantileEstimationResponse
 */
interface UmPositionAdlQuantileEstimationResponse extends Array<UmPositionAdlQuantileEstimationResponseInner> {}
//#endregion
//#region src/rest-api/modules/account-api.d.ts
/**
 * 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: 7 days
   *
   * 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: 7 days
   *
   * 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: 7 days
   *
   * 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 | bigint}
   * @memberof AccountApiAccountBalance
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for accountInformation operation in AccountApi.
 * @interface AccountInformationRequest
 */
interface AccountInformationRequest {
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiAccountInformation
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof AccountApiBnbTransfer
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof AccountApiChangeAutoRepayFuturesStatus
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof AccountApiChangeCmInitialLeverage
   */
  readonly leverage: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiChangeCmInitialLeverage
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof AccountApiChangeCmPositionMode
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof AccountApiChangeUmInitialLeverage
   */
  readonly leverage: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiChangeUmInitialLeverage
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof AccountApiChangeUmPositionMode
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for cmNotionalAndLeverageBrackets operation in AccountApi.
 * @interface CmNotionalAndLeverageBracketsRequest
 */
interface CmNotionalAndLeverageBracketsRequest {
  /**
   *
   * @type {string}
   * @memberof AccountApiCmNotionalAndLeverageBrackets
   */
  readonly symbol?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiCmNotionalAndLeverageBrackets
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for fundAutoCollection operation in AccountApi.
 * @interface FundAutoCollectionRequest
 */
interface FundAutoCollectionRequest {
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiFundAutoCollection
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for fundCollectionByAsset operation in AccountApi.
 * @interface FundCollectionByAssetRequest
 */
interface FundCollectionByAssetRequest {
  /**
   *
   * @type {string}
   * @memberof AccountApiFundCollectionByAsset
   */
  readonly asset: string;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiFundCollectionByAsset
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for getAutoRepayFuturesStatus operation in AccountApi.
 * @interface GetAutoRepayFuturesStatusRequest
 */
interface GetAutoRepayFuturesStatusRequest {
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiGetAutoRepayFuturesStatus
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for getCmAccountDetail operation in AccountApi.
 * @interface GetCmAccountDetailRequest
 */
interface GetCmAccountDetailRequest {
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiGetCmAccountDetail
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for getCmCurrentPositionMode operation in AccountApi.
 * @interface GetCmCurrentPositionModeRequest
 */
interface GetCmCurrentPositionModeRequest {
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiGetCmCurrentPositionMode
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof AccountApiGetCmIncomeHistory
   */
  readonly startTime?: number | bigint;
  /**
   * Timestamp in ms to get funding until INCLUSIVE.
   * @type {number | bigint}
   * @memberof AccountApiGetCmIncomeHistory
   */
  readonly endTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiGetCmIncomeHistory
   */
  readonly page?: number | bigint;
  /**
   * Default 100; max 1000
   * @type {number | bigint}
   * @memberof AccountApiGetCmIncomeHistory
   */
  readonly limit?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiGetCmIncomeHistory
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for getDownloadIdForUmFuturesOrderHistory operation in AccountApi.
 * @interface GetDownloadIdForUmFuturesOrderHistoryRequest
 */
interface GetDownloadIdForUmFuturesOrderHistoryRequest {
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiGetDownloadIdForUmFuturesOrderHistory
   */
  readonly startTime: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiGetDownloadIdForUmFuturesOrderHistory
   */
  readonly endTime: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiGetDownloadIdForUmFuturesOrderHistory
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for getDownloadIdForUmFuturesTradeHistory operation in AccountApi.
 * @interface GetDownloadIdForUmFuturesTradeHistoryRequest
 */
interface GetDownloadIdForUmFuturesTradeHistoryRequest {
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiGetDownloadIdForUmFuturesTradeHistory
   */
  readonly startTime: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiGetDownloadIdForUmFuturesTradeHistory
   */
  readonly endTime: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiGetDownloadIdForUmFuturesTradeHistory
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for getDownloadIdForUmFuturesTransactionHistory operation in AccountApi.
 * @interface GetDownloadIdForUmFuturesTransactionHistoryRequest
 */
interface GetDownloadIdForUmFuturesTransactionHistoryRequest {
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiGetDownloadIdForUmFuturesTransactionHistory
   */
  readonly startTime: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiGetDownloadIdForUmFuturesTransactionHistory
   */
  readonly endTime: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiGetDownloadIdForUmFuturesTransactionHistory
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof AccountApiGetMarginBorrowLoanInterestHistory
   */
  readonly startTime?: number | bigint;
  /**
   * Timestamp in ms to get funding until INCLUSIVE.
   * @type {number | bigint}
   * @memberof AccountApiGetMarginBorrowLoanInterestHistory
   */
  readonly endTime?: number | bigint;
  /**
   * Currently querying page. Start from 1. Default:1
   * @type {number | bigint}
   * @memberof AccountApiGetMarginBorrowLoanInterestHistory
   */
  readonly current?: number | bigint;
  /**
   * Default:10 Max:100
   * @type {number | bigint}
   * @memberof AccountApiGetMarginBorrowLoanInterestHistory
   */
  readonly size?: number | bigint;
  /**
   * Default: `false`. Set to `true` for archived data from 6 months ago
   * @type {string}
   * @memberof AccountApiGetMarginBorrowLoanInterestHistory
   */
  readonly archived?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiGetMarginBorrowLoanInterestHistory
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for getUmAccountDetail operation in AccountApi.
 * @interface GetUmAccountDetailRequest
 */
interface GetUmAccountDetailRequest {
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiGetUmAccountDetail
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for getUmAccountDetailV2 operation in AccountApi.
 * @interface GetUmAccountDetailV2Request
 */
interface GetUmAccountDetailV2Request {
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiGetUmAccountDetailV2
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for getUmCurrentPositionMode operation in AccountApi.
 * @interface GetUmCurrentPositionModeRequest
 */
interface GetUmCurrentPositionModeRequest {
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiGetUmCurrentPositionMode
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof AccountApiGetUmFuturesOrderDownloadLinkById
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof AccountApiGetUmFuturesTradeDownloadLinkById
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof AccountApiGetUmFuturesTransactionDownloadLinkById
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof AccountApiGetUmIncomeHistory
   */
  readonly startTime?: number | bigint;
  /**
   * Timestamp in ms to get funding until INCLUSIVE.
   * @type {number | bigint}
   * @memberof AccountApiGetUmIncomeHistory
   */
  readonly endTime?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiGetUmIncomeHistory
   */
  readonly page?: number | bigint;
  /**
   * Default 100; max 1000
   * @type {number | bigint}
   * @memberof AccountApiGetUmIncomeHistory
   */
  readonly limit?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiGetUmIncomeHistory
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for getUserCommissionRateForCm operation in AccountApi.
 * @interface GetUserCommissionRateForCmRequest
 */
interface GetUserCommissionRateForCmRequest {
  /**
   *
   * @type {string}
   * @memberof AccountApiGetUserCommissionRateForCm
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiGetUserCommissionRateForCm
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for getUserCommissionRateForUm operation in AccountApi.
 * @interface GetUserCommissionRateForUmRequest
 */
interface GetUserCommissionRateForUmRequest {
  /**
   *
   * @type {string}
   * @memberof AccountApiGetUserCommissionRateForUm
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiGetUserCommissionRateForUm
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for marginMaxBorrow operation in AccountApi.
 * @interface MarginMaxBorrowRequest
 */
interface MarginMaxBorrowRequest {
  /**
   *
   * @type {string}
   * @memberof AccountApiMarginMaxBorrow
   */
  readonly asset: string;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiMarginMaxBorrow
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for portfolioMarginUmTradingQuantitativeRulesIndicators operation in AccountApi.
 * @interface PortfolioMarginUmTradingQuantitativeRulesIndicatorsRequest
 */
interface PortfolioMarginUmTradingQuantitativeRulesIndicatorsRequest {
  /**
   *
   * @type {string}
   * @memberof AccountApiPortfolioMarginUmTradingQuantitativeRulesIndicators
   */
  readonly symbol?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiPortfolioMarginUmTradingQuantitativeRulesIndicators
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof AccountApiQueryCmPositionInformation
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof AccountApiQueryMarginLoanRecord
   */
  readonly txId?: number | bigint;
  /**
   * Timestamp in ms to get funding from INCLUSIVE.
   * @type {number | bigint}
   * @memberof AccountApiQueryMarginLoanRecord
   */
  readonly startTime?: number | bigint;
  /**
   * Timestamp in ms to get funding until INCLUSIVE.
   * @type {number | bigint}
   * @memberof AccountApiQueryMarginLoanRecord
   */
  readonly endTime?: number | bigint;
  /**
   * Currently querying page. Start from 1. Default:1
   * @type {number | bigint}
   * @memberof AccountApiQueryMarginLoanRecord
   */
  readonly current?: number | bigint;
  /**
   * Default:10 Max:100
   * @type {number | bigint}
   * @memberof AccountApiQueryMarginLoanRecord
   */
  readonly size?: number | bigint;
  /**
   * Default: `false`. Set to `true` for archived data from 6 months ago
   * @type {string}
   * @memberof AccountApiQueryMarginLoanRecord
   */
  readonly archived?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiQueryMarginLoanRecord
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryMarginMaxWithdraw operation in AccountApi.
 * @interface QueryMarginMaxWithdrawRequest
 */
interface QueryMarginMaxWithdrawRequest {
  /**
   *
   * @type {string}
   * @memberof AccountApiQueryMarginMaxWithdraw
   */
  readonly asset: string;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiQueryMarginMaxWithdraw
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof AccountApiQueryMarginRepayRecord
   */
  readonly txId?: number | bigint;
  /**
   * Timestamp in ms to get funding from INCLUSIVE.
   * @type {number | bigint}
   * @memberof AccountApiQueryMarginRepayRecord
   */
  readonly startTime?: number | bigint;
  /**
   * Timestamp in ms to get funding until INCLUSIVE.
   * @type {number | bigint}
   * @memberof AccountApiQueryMarginRepayRecord
   */
  readonly endTime?: number | bigint;
  /**
   * Currently querying page. Start from 1. Default:1
   * @type {number | bigint}
   * @memberof AccountApiQueryMarginRepayRecord
   */
  readonly current?: number | bigint;
  /**
   * Default:10 Max:100
   * @type {number | bigint}
   * @memberof AccountApiQueryMarginRepayRecord
   */
  readonly size?: number | bigint;
  /**
   * Default: `false`. Set to `true` for archived data from 6 months ago
   * @type {string}
   * @memberof AccountApiQueryMarginRepayRecord
   */
  readonly archived?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiQueryMarginRepayRecord
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof AccountApiQueryPortfolioMarginNegativeBalanceInterestHistory
   */
  readonly startTime?: number | bigint;
  /**
   * Timestamp in ms to get funding until INCLUSIVE.
   * @type {number | bigint}
   * @memberof AccountApiQueryPortfolioMarginNegativeBalanceInterestHistory
   */
  readonly endTime?: number | bigint;
  /**
   * Default:10 Max:100
   * @type {number | bigint}
   * @memberof AccountApiQueryPortfolioMarginNegativeBalanceInterestHistory
   */
  readonly size?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiQueryPortfolioMarginNegativeBalanceInterestHistory
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryUmPositionInformation operation in AccountApi.
 * @interface QueryUmPositionInformationRequest
 */
interface QueryUmPositionInformationRequest {
  /**
   *
   * @type {string}
   * @memberof AccountApiQueryUmPositionInformation
   */
  readonly symbol?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiQueryUmPositionInformation
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryUserNegativeBalanceAutoExchangeRecord operation in AccountApi.
 * @interface QueryUserNegativeBalanceAutoExchangeRecordRequest
 */
interface QueryUserNegativeBalanceAutoExchangeRecordRequest {
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiQueryUserNegativeBalanceAutoExchangeRecord
   */
  readonly startTime: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiQueryUserNegativeBalanceAutoExchangeRecord
   */
  readonly endTime: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiQueryUserNegativeBalanceAutoExchangeRecord
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryUserRateLimit operation in AccountApi.
 * @interface QueryUserRateLimitRequest
 */
interface QueryUserRateLimitRequest {
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiQueryUserRateLimit
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for repayFuturesNegativeBalance operation in AccountApi.
 * @interface RepayFuturesNegativeBalanceRequest
 */
interface RepayFuturesNegativeBalanceRequest {
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiRepayFuturesNegativeBalance
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for umFuturesAccountConfiguration operation in AccountApi.
 * @interface UmFuturesAccountConfigurationRequest
 */
interface UmFuturesAccountConfigurationRequest {
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiUmFuturesAccountConfiguration
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for umFuturesSymbolConfiguration operation in AccountApi.
 * @interface UmFuturesSymbolConfigurationRequest
 */
interface UmFuturesSymbolConfigurationRequest {
  /**
   *
   * @type {string}
   * @memberof AccountApiUmFuturesSymbolConfiguration
   */
  readonly symbol?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiUmFuturesSymbolConfiguration
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for umNotionalAndLeverageBrackets operation in AccountApi.
 * @interface UmNotionalAndLeverageBracketsRequest
 */
interface UmNotionalAndLeverageBracketsRequest {
  /**
   *
   * @type {string}
   * @memberof AccountApiUmNotionalAndLeverageBrackets
   */
  readonly symbol?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountApiUmNotionalAndLeverageBrackets
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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: 7 days
   *
   * 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: 7 days
   *
   * 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: 7 days
   *
   * 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>>;
}
//#endregion
//#region src/rest-api/modules/market-data-api.d.ts
/**
 * 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>>;
}
//#endregion
//#region src/rest-api/modules/trade-api.d.ts
/**
 * 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 Algo Open Orders
   *
   * Weight: 1
   *
   * @summary Cancel All UM Algo Open Orders (TRADE)
   * @param {CancelAllUmAlgoOpenOrdersRequest} requestParameters Request parameters.
   *
   * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
   * @memberof TradeApiInterface
   */
  cancelAllUmAlgoOpenOrders(requestParameters: CancelAllUmAlgoOpenOrdersRequest): Promise<RestApiResponse<CancelAllUmAlgoOpenOrdersResponse>>;
  /**
   * Cancel All UM Open Conditional Orders
   *
   * Weight: 1
   *
   * @summary Cancel All UM Open Conditional Orders
   * @param {CancelAllUmOpenConditionalOrdersRequest} requestParameters Request parameters.
   *
   * @deprecated
   * @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 an active UM algo order.
   *
   * Either `algoId` or `clientAlgoId` must be sent.
   *
   * Weight: 1
   *
   * @summary Cancel UM Algo Order (TRADE)
   * @param {CancelUmAlgoOrderRequest} requestParameters Request parameters.
   *
   * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
   * @memberof TradeApiInterface
   */
  cancelUmAlgoOrder(requestParameters?: CancelUmAlgoOrderRequest): Promise<RestApiResponse<CancelUmAlgoOrderResponse>>;
  /**
   * Cancel UM Conditional Order
   *
   * Either `strategyId` or `newClientStrategyId` must be sent.
   *
   * Weight: 1
   *
   * @summary Cancel UM Conditional Order
   * @param {CancelUmConditionalOrderRequest} requestParameters Request parameters.
   *
   * @deprecated
   * @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`
   * 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.
   *
   * 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>>;
  /**
   * Sign TradFi-Perps agreement contract
   *
   * Weight: 5
   *
   * @summary Futures TradFi Perps Contract(USER_DATA)
   * @param {FuturesTradfiPerpsContractRequest} requestParameters Request parameters.
   *
   * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
   * @memberof TradeApiInterface
   */
  futuresTradfiPerpsContract(requestParameters?: FuturesTradfiPerpsContractRequest): Promise<RestApiResponse<FuturesTradfiPerpsContractResponse>>;
  /**
   * 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
   *
   * Algo order with type `STOP`,  parameter `timeInForce` can be sent ( default `GTC`).
   * Algo order with type `TAKE_PROFIT`,  parameter `timeInForce` can be sent ( default `GTC`).
   * Condition orders will be triggered when:
   *
   * If parameter`priceProtect`is sent as true:
   * when price reaches the `triggerPrice` , 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") >= `triggerPrice`
   * SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") <= `triggerPrice`
   * `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`:
   * BUY: latest price ("MARK_PRICE" or "CONTRACT_PRICE") <= `triggerPrice`
   * SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") >= `triggerPrice`
   * `TRAILING_STOP_MARKET`:
   * BUY: the lowest price after order placed <= `activatePrice`, and the latest price >= the lowest price * (1 + `callbackRate`)
   * SELL: the highest price after order placed >= `activatePrice`, and the latest price <= the highest price * (1 - `callbackRate`)
   *
   * For `TRAILING_STOP_MARKET`, if you got such error code.
   * ``{"code": -2021, "msg": "Order would immediately trigger."}``
   * means that the parameters you send do not meet the following requirements:
   * BUY: `activatePrice` should be smaller than latest price.
   * SELL: `activatePrice` should be larger than latest price.
   *
   * `selfTradePreventionMode` is only effective when `timeInForce` set to `IOC` or `GTC` or `GTD`.
   *
   * Weight: 1
   *
   * @summary New UM Algo Order (TRADE)
   * @param {NewUmAlgoOrderRequest} requestParameters Request parameters.
   *
   * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
   * @memberof TradeApiInterface
   */
  newUmAlgoOrder(requestParameters: NewUmAlgoOrderRequest): Promise<RestApiResponse<NewUmAlgoOrderResponse>>;
  /**
   * 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
   * @param {NewUmConditionalOrderRequest} requestParameters Request parameters.
   *
   * @deprecated
   * @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 UM open algo 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 Algo Orders (USER_DATA)
   * @param {QueryAllCurrentUmOpenAlgoOrdersRequest} requestParameters Request parameters.
   *
   * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
   * @memberof TradeApiInterface
   */
  queryAllCurrentUmOpenAlgoOrders(requestParameters?: QueryAllCurrentUmOpenAlgoOrdersRequest): Promise<RestApiResponse<QueryAllCurrentUmOpenAlgoOrdersResponse>>;
  /**
   * 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
   * @param {QueryAllCurrentUmOpenConditionalOrdersRequest} requestParameters Request parameters.
   *
   * @deprecated
   * @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
   * @param {QueryAllUmConditionalOrdersRequest} requestParameters Request parameters.
   *
   * @deprecated
   * @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>>;
  /**
   * Check an UM algo order's status.
   *
   * These orders will not be found:
   * order status is `CANCELED` or `EXPIRED` **AND** order has NO filled trade **AND** created time + 3 days < current time
   * order create time + 90 days < current time
   *
   * Either `algoId` or `clientAlgoId` must be sent.
   * `algoId` is self-increment for each specific `symbol`
   *
   * Weight: 1
   *
   * @summary Query Current UM Open Algo Order (USER_DATA)
   * @param {QueryCurrentUmOpenAlgoOrderRequest} requestParameters Request parameters.
   *
   * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
   * @memberof TradeApiInterface
   */
  queryCurrentUmOpenAlgoOrder(requestParameters?: QueryCurrentUmOpenAlgoOrderRequest): Promise<RestApiResponse<QueryCurrentUmOpenAlgoOrderResponse>>;
  /**
   * Query Current UM Open Conditional Order
   *
   * Either `strategyId` or `newClientStrategyId` must be sent.
   * If the queried order has been `CANCELED`, `TRIGGERED` or `EXPIRED`, the error message "Order does not exist" will be returned.
   *
   * Weight: 1
   *
   * @summary Query Current UM Open Conditional Order
   * @param {QueryCurrentUmOpenConditionalOrderRequest} requestParameters Request parameters.
   *
   * @deprecated
   * @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>>;
  /**
   * Get all algo orders; ACTIVE, CANCELED, TRIGGERED or FINISHED .
   *
   * If `algoId` is set, it will get orders >= that `algoId`. 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 UM Algo Order History (USER_DATA)
   * @param {QueryUmAlgoOrderHistoryRequest} requestParameters Request parameters.
   *
   * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
   * @memberof TradeApiInterface
   */
  queryUmAlgoOrderHistory(requestParameters: QueryUmAlgoOrderHistoryRequest): Promise<RestApiResponse<QueryUmAlgoOrderHistoryResponse>>;
  /**
   * 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
   * @param {QueryUmConditionalOrderHistoryRequest} requestParameters Request parameters.
   *
   * @deprecated
   * @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
   * Only support querying data in the past 90 days
   *
   * 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
   * Only support querying data in the past 90 days
   *
   * 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 '7 days' data will be returned.
   * The time between `startTime` and `endTime` cannot be longer than 7 days.
   * 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 | bigint}
   * @memberof TradeApiCancelAllCmOpenConditionalOrders
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for cancelAllCmOpenOrders operation in TradeApi.
 * @interface CancelAllCmOpenOrdersRequest
 */
interface CancelAllCmOpenOrdersRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiCancelAllCmOpenOrders
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiCancelAllCmOpenOrders
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for cancelAllUmAlgoOpenOrders operation in TradeApi.
 * @interface CancelAllUmAlgoOpenOrdersRequest
 */
interface CancelAllUmAlgoOpenOrdersRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiCancelAllUmAlgoOpenOrders
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiCancelAllUmAlgoOpenOrders
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for cancelAllUmOpenConditionalOrders operation in TradeApi.
 * @interface CancelAllUmOpenConditionalOrdersRequest
 */
interface CancelAllUmOpenConditionalOrdersRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiCancelAllUmOpenConditionalOrders
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiCancelAllUmOpenConditionalOrders
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for cancelAllUmOpenOrders operation in TradeApi.
 * @interface CancelAllUmOpenOrdersRequest
 */
interface CancelAllUmOpenOrdersRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiCancelAllUmOpenOrders
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiCancelAllUmOpenOrders
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for cancelCmConditionalOrder operation in TradeApi.
 * @interface CancelCmConditionalOrderRequest
 */
interface CancelCmConditionalOrderRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiCancelCmConditionalOrder
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiCancelCmConditionalOrder
   */
  readonly strategyId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof TradeApiCancelCmConditionalOrder
   */
  readonly newClientStrategyId?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiCancelCmConditionalOrder
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for cancelCmOrder operation in TradeApi.
 * @interface CancelCmOrderRequest
 */
interface CancelCmOrderRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiCancelCmOrder
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiCancelCmOrder
   */
  readonly orderId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof TradeApiCancelCmOrder
   */
  readonly origClientOrderId?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiCancelCmOrder
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for cancelMarginAccountAllOpenOrdersOnASymbol operation in TradeApi.
 * @interface CancelMarginAccountAllOpenOrdersOnASymbolRequest
 */
interface CancelMarginAccountAllOpenOrdersOnASymbolRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiCancelMarginAccountAllOpenOrdersOnASymbol
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiCancelMarginAccountAllOpenOrdersOnASymbol
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof TradeApiCancelMarginAccountOcoOrders
   */
  readonly orderListId?: number | bigint;
  /**
   * 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 | bigint}
   * @memberof TradeApiCancelMarginAccountOcoOrders
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for cancelMarginAccountOrder operation in TradeApi.
 * @interface CancelMarginAccountOrderRequest
 */
interface CancelMarginAccountOrderRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiCancelMarginAccountOrder
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiCancelMarginAccountOrder
   */
  readonly orderId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof TradeApiCancelMarginAccountOrder
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for cancelUmAlgoOrder operation in TradeApi.
 * @interface CancelUmAlgoOrderRequest
 */
interface CancelUmAlgoOrderRequest {
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiCancelUmAlgoOrder
   */
  readonly algoId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof TradeApiCancelUmAlgoOrder
   */
  readonly clientAlgoId?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiCancelUmAlgoOrder
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for cancelUmConditionalOrder operation in TradeApi.
 * @interface CancelUmConditionalOrderRequest
 */
interface CancelUmConditionalOrderRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiCancelUmConditionalOrder
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiCancelUmConditionalOrder
   */
  readonly strategyId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof TradeApiCancelUmConditionalOrder
   */
  readonly newClientStrategyId?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiCancelUmConditionalOrder
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for cancelUmOrder operation in TradeApi.
 * @interface CancelUmOrderRequest
 */
interface CancelUmOrderRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiCancelUmOrder
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiCancelUmOrder
   */
  readonly orderId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof TradeApiCancelUmOrder
   */
  readonly origClientOrderId?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiCancelUmOrder
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof TradeApiCmAccountTradeList
   */
  readonly startTime?: number | bigint;
  /**
   * Timestamp in ms to get funding until INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiCmAccountTradeList
   */
  readonly endTime?: number | bigint;
  /**
   * Trade id to fetch from. Default gets most recent trades.
   * @type {number | bigint}
   * @memberof TradeApiCmAccountTradeList
   */
  readonly fromId?: number | bigint;
  /**
   * Default 100; max 1000
   * @type {number | bigint}
   * @memberof TradeApiCmAccountTradeList
   */
  readonly limit?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiCmAccountTradeList
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for cmPositionAdlQuantileEstimation operation in TradeApi.
 * @interface CmPositionAdlQuantileEstimationRequest
 */
interface CmPositionAdlQuantileEstimationRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiCmPositionAdlQuantileEstimation
   */
  readonly symbol?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiCmPositionAdlQuantileEstimation
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for futuresTradfiPerpsContract operation in TradeApi.
 * @interface FuturesTradfiPerpsContractRequest
 */
interface FuturesTradfiPerpsContractRequest {
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiFuturesTradfiPerpsContract
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for getUmFuturesBnbBurnStatus operation in TradeApi.
 * @interface GetUmFuturesBnbBurnStatusRequest
 */
interface GetUmFuturesBnbBurnStatusRequest {
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiGetUmFuturesBnbBurnStatus
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof TradeApiMarginAccountBorrow
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof TradeApiMarginAccountNewOco
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof TradeApiMarginAccountRepay
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof TradeApiMarginAccountRepayDebt
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for marginAccountTradeList operation in TradeApi.
 * @interface MarginAccountTradeListRequest
 */
interface MarginAccountTradeListRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiMarginAccountTradeList
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiMarginAccountTradeList
   */
  readonly orderId?: number | bigint;
  /**
   * Timestamp in ms to get funding from INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiMarginAccountTradeList
   */
  readonly startTime?: number | bigint;
  /**
   * Timestamp in ms to get funding until INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiMarginAccountTradeList
   */
  readonly endTime?: number | bigint;
  /**
   * Trade id to fetch from. Default gets most recent trades.
   * @type {number | bigint}
   * @memberof TradeApiMarginAccountTradeList
   */
  readonly fromId?: number | bigint;
  /**
   * Default 100; max 1000
   * @type {number | bigint}
   * @memberof TradeApiMarginAccountTradeList
   */
  readonly limit?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiMarginAccountTradeList
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof TradeApiModifyCmOrder
   */
  readonly orderId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof TradeApiModifyCmOrder
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof TradeApiModifyUmOrder
   */
  readonly orderId?: number | bigint;
  /**
   *
   * @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 | bigint}
   * @memberof TradeApiModifyUmOrder
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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' | 'LIMIT_MAKER' | '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 | bigint}
   * @memberof TradeApiNewCmConditionalOrder
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof TradeApiNewCmOrder
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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;
  /**
   * Only when MARGIN_BUY or AUTO_BORROW_REPAY order takes effect, true means that the debt generated by the order needs to be repay after the order is cancelled. The default is true
   * @type {boolean}
   * @memberof TradeApiNewMarginOrder
   */
  readonly autoRepayAtCancel?: boolean;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiNewMarginOrder
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for newUmAlgoOrder operation in TradeApi.
 * @interface NewUmAlgoOrderRequest
 */
interface NewUmAlgoOrderRequest {
  /**
   * Only support `CONDITIONAL`
   * @type {string}
   * @memberof TradeApiNewUmAlgoOrder
   */
  readonly algoType: string;
  /**
   *
   * @type {string}
   * @memberof TradeApiNewUmAlgoOrder
   */
  readonly symbol: string;
  /**
   *
   * @type {'BUY' | 'SELL'}
   * @memberof TradeApiNewUmAlgoOrder
   */
  readonly side: NewUmAlgoOrderSideEnum;
  /**
   * `LIMIT`, `MARKET`
   * @type {'LIMIT' | 'MARKET'}
   * @memberof TradeApiNewUmAlgoOrder
   */
  readonly type: NewUmAlgoOrderTypeEnum;
  /**
   * Order quantity
   * @type {number}
   * @memberof TradeApiNewUmAlgoOrder
   */
  readonly quantity: number;
  /**
   * Default `BOTH` for One-way Mode ; `LONG` or `SHORT` for Hedge Mode. It must be sent in Hedge Mode.
   * @type {'BOTH' | 'LONG' | 'SHORT'}
   * @memberof TradeApiNewUmAlgoOrder
   */
  readonly positionSide?: NewUmAlgoOrderPositionSideEnum;
  /**
   *
   * @type {'GTC' | 'IOC' | 'FOK' | 'GTX'}
   * @memberof TradeApiNewUmAlgoOrder
   */
  readonly timeInForce?: NewUmAlgoOrderTimeInForceEnum;
  /**
   *
   * @type {number}
   * @memberof TradeApiNewUmAlgoOrder
   */
  readonly price?: number;
  /**
   *
   * @type {number}
   * @memberof TradeApiNewUmAlgoOrder
   */
  readonly triggerPrice?: number;
  /**
   * stopPrice triggered by: "MARK_PRICE", "CONTRACT_PRICE". Default "CONTRACT_PRICE"
   * @type {'MARK_PRICE'}
   * @memberof TradeApiNewUmAlgoOrder
   */
  readonly workingType?: NewUmAlgoOrderWorkingTypeEnum;
  /**
   * 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 TradeApiNewUmAlgoOrder
   */
  readonly priceMatch?: NewUmAlgoOrderPriceMatchEnum;
  /**
   * "true" or "false", default "false". Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders
   * @type {string}
   * @memberof TradeApiNewUmAlgoOrder
   */
  readonly priceProtect?: string;
  /**
   * "true" or "false". default "false". Cannot be sent in Hedge Mode .
   * @type {string}
   * @memberof TradeApiNewUmAlgoOrder
   */
  readonly reduceOnly?: string;
  /**
   * Used with `TRAILING_STOP_MARKET` orders, default as the latest price(supporting different `workingType`)
   * @type {number}
   * @memberof TradeApiNewUmAlgoOrder
   */
  readonly activatePrice?: number;
  /**
   * Used with `TRAILING_STOP_MARKET` orders, min 0.1, max 5 where 1 for 1%
   * @type {number}
   * @memberof TradeApiNewUmAlgoOrder
   */
  readonly callbackRate?: number;
  /**
   *
   * @type {string}
   * @memberof TradeApiNewUmAlgoOrder
   */
  readonly clientAlgoId?: string;
  /**
   * "ACK", "RESULT", default "ACK"
   * @type {'ACK' | 'RESULT'}
   * @memberof TradeApiNewUmAlgoOrder
   */
  readonly newOrderRespType?: NewUmAlgoOrderNewOrderRespTypeEnum;
  /**
   * `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 TradeApiNewUmAlgoOrder
   */
  readonly selfTradePreventionMode?: NewUmAlgoOrderSelfTradePreventionModeEnum;
  /**
   * 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 | bigint}
   * @memberof TradeApiNewUmAlgoOrder
   */
  readonly goodTillDate?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiNewUmAlgoOrder
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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' | 'LIMIT_MAKER' | '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 | bigint}
   * @memberof TradeApiNewUmConditionalOrder
   */
  readonly goodTillDate?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiNewUmConditionalOrder
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof TradeApiNewUmOrder
   */
  readonly goodTillDate?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiNewUmOrder
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryAllCmConditionalOrders operation in TradeApi.
 * @interface QueryAllCmConditionalOrdersRequest
 */
interface QueryAllCmConditionalOrdersRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryAllCmConditionalOrders
   */
  readonly symbol?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryAllCmConditionalOrders
   */
  readonly strategyId?: number | bigint;
  /**
   * Timestamp in ms to get funding from INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiQueryAllCmConditionalOrders
   */
  readonly startTime?: number | bigint;
  /**
   * Timestamp in ms to get funding until INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiQueryAllCmConditionalOrders
   */
  readonly endTime?: number | bigint;
  /**
   * Default 100; max 1000
   * @type {number | bigint}
   * @memberof TradeApiQueryAllCmConditionalOrders
   */
  readonly limit?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryAllCmConditionalOrders
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof TradeApiQueryAllCmOrders
   */
  readonly orderId?: number | bigint;
  /**
   * Timestamp in ms to get funding from INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiQueryAllCmOrders
   */
  readonly startTime?: number | bigint;
  /**
   * Timestamp in ms to get funding until INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiQueryAllCmOrders
   */
  readonly endTime?: number | bigint;
  /**
   * Default 100; max 1000
   * @type {number | bigint}
   * @memberof TradeApiQueryAllCmOrders
   */
  readonly limit?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryAllCmOrders
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryAllCurrentCmOpenConditionalOrders operation in TradeApi.
 * @interface QueryAllCurrentCmOpenConditionalOrdersRequest
 */
interface QueryAllCurrentCmOpenConditionalOrdersRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryAllCurrentCmOpenConditionalOrders
   */
  readonly symbol?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryAllCurrentCmOpenConditionalOrders
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof TradeApiQueryAllCurrentCmOpenOrders
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryAllCurrentUmOpenAlgoOrders operation in TradeApi.
 * @interface QueryAllCurrentUmOpenAlgoOrdersRequest
 */
interface QueryAllCurrentUmOpenAlgoOrdersRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryAllCurrentUmOpenAlgoOrders
   */
  readonly algoType?: string;
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryAllCurrentUmOpenAlgoOrders
   */
  readonly symbol?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryAllCurrentUmOpenAlgoOrders
   */
  readonly algoId?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryAllCurrentUmOpenAlgoOrders
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryAllCurrentUmOpenConditionalOrders operation in TradeApi.
 * @interface QueryAllCurrentUmOpenConditionalOrdersRequest
 */
interface QueryAllCurrentUmOpenConditionalOrdersRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryAllCurrentUmOpenConditionalOrders
   */
  readonly symbol?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryAllCurrentUmOpenConditionalOrders
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryAllCurrentUmOpenOrders operation in TradeApi.
 * @interface QueryAllCurrentUmOpenOrdersRequest
 */
interface QueryAllCurrentUmOpenOrdersRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryAllCurrentUmOpenOrders
   */
  readonly symbol?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryAllCurrentUmOpenOrders
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryAllMarginAccountOrders operation in TradeApi.
 * @interface QueryAllMarginAccountOrdersRequest
 */
interface QueryAllMarginAccountOrdersRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryAllMarginAccountOrders
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryAllMarginAccountOrders
   */
  readonly orderId?: number | bigint;
  /**
   * Timestamp in ms to get funding from INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiQueryAllMarginAccountOrders
   */
  readonly startTime?: number | bigint;
  /**
   * Timestamp in ms to get funding until INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiQueryAllMarginAccountOrders
   */
  readonly endTime?: number | bigint;
  /**
   * Default 100; max 1000
   * @type {number | bigint}
   * @memberof TradeApiQueryAllMarginAccountOrders
   */
  readonly limit?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryAllMarginAccountOrders
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryAllUmConditionalOrders operation in TradeApi.
 * @interface QueryAllUmConditionalOrdersRequest
 */
interface QueryAllUmConditionalOrdersRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryAllUmConditionalOrders
   */
  readonly symbol?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryAllUmConditionalOrders
   */
  readonly strategyId?: number | bigint;
  /**
   * Timestamp in ms to get funding from INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiQueryAllUmConditionalOrders
   */
  readonly startTime?: number | bigint;
  /**
   * Timestamp in ms to get funding until INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiQueryAllUmConditionalOrders
   */
  readonly endTime?: number | bigint;
  /**
   * Default 100; max 1000
   * @type {number | bigint}
   * @memberof TradeApiQueryAllUmConditionalOrders
   */
  readonly limit?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryAllUmConditionalOrders
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryAllUmOrders operation in TradeApi.
 * @interface QueryAllUmOrdersRequest
 */
interface QueryAllUmOrdersRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryAllUmOrders
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryAllUmOrders
   */
  readonly orderId?: number | bigint;
  /**
   * Timestamp in ms to get funding from INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiQueryAllUmOrders
   */
  readonly startTime?: number | bigint;
  /**
   * Timestamp in ms to get funding until INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiQueryAllUmOrders
   */
  readonly endTime?: number | bigint;
  /**
   * Default 100; max 1000
   * @type {number | bigint}
   * @memberof TradeApiQueryAllUmOrders
   */
  readonly limit?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryAllUmOrders
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryCmConditionalOrderHistory operation in TradeApi.
 * @interface QueryCmConditionalOrderHistoryRequest
 */
interface QueryCmConditionalOrderHistoryRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryCmConditionalOrderHistory
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryCmConditionalOrderHistory
   */
  readonly strategyId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryCmConditionalOrderHistory
   */
  readonly newClientStrategyId?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryCmConditionalOrderHistory
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryCmModifyOrderHistory operation in TradeApi.
 * @interface QueryCmModifyOrderHistoryRequest
 */
interface QueryCmModifyOrderHistoryRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryCmModifyOrderHistory
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryCmModifyOrderHistory
   */
  readonly orderId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryCmModifyOrderHistory
   */
  readonly origClientOrderId?: string;
  /**
   * Timestamp in ms to get funding from INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiQueryCmModifyOrderHistory
   */
  readonly startTime?: number | bigint;
  /**
   * Timestamp in ms to get funding until INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiQueryCmModifyOrderHistory
   */
  readonly endTime?: number | bigint;
  /**
   * Default 100; max 1000
   * @type {number | bigint}
   * @memberof TradeApiQueryCmModifyOrderHistory
   */
  readonly limit?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryCmModifyOrderHistory
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryCmOrder operation in TradeApi.
 * @interface QueryCmOrderRequest
 */
interface QueryCmOrderRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryCmOrder
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryCmOrder
   */
  readonly orderId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryCmOrder
   */
  readonly origClientOrderId?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryCmOrder
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryCurrentCmOpenConditionalOrder operation in TradeApi.
 * @interface QueryCurrentCmOpenConditionalOrderRequest
 */
interface QueryCurrentCmOpenConditionalOrderRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryCurrentCmOpenConditionalOrder
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryCurrentCmOpenConditionalOrder
   */
  readonly strategyId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryCurrentCmOpenConditionalOrder
   */
  readonly newClientStrategyId?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryCurrentCmOpenConditionalOrder
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryCurrentCmOpenOrder operation in TradeApi.
 * @interface QueryCurrentCmOpenOrderRequest
 */
interface QueryCurrentCmOpenOrderRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryCurrentCmOpenOrder
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryCurrentCmOpenOrder
   */
  readonly orderId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryCurrentCmOpenOrder
   */
  readonly origClientOrderId?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryCurrentCmOpenOrder
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryCurrentMarginOpenOrder operation in TradeApi.
 * @interface QueryCurrentMarginOpenOrderRequest
 */
interface QueryCurrentMarginOpenOrderRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryCurrentMarginOpenOrder
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryCurrentMarginOpenOrder
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryCurrentUmOpenAlgoOrder operation in TradeApi.
 * @interface QueryCurrentUmOpenAlgoOrderRequest
 */
interface QueryCurrentUmOpenAlgoOrderRequest {
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryCurrentUmOpenAlgoOrder
   */
  readonly algoId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryCurrentUmOpenAlgoOrder
   */
  readonly clientAlgoId?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryCurrentUmOpenAlgoOrder
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryCurrentUmOpenConditionalOrder operation in TradeApi.
 * @interface QueryCurrentUmOpenConditionalOrderRequest
 */
interface QueryCurrentUmOpenConditionalOrderRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryCurrentUmOpenConditionalOrder
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryCurrentUmOpenConditionalOrder
   */
  readonly strategyId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryCurrentUmOpenConditionalOrder
   */
  readonly newClientStrategyId?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryCurrentUmOpenConditionalOrder
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryCurrentUmOpenOrder operation in TradeApi.
 * @interface QueryCurrentUmOpenOrderRequest
 */
interface QueryCurrentUmOpenOrderRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryCurrentUmOpenOrder
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryCurrentUmOpenOrder
   */
  readonly orderId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryCurrentUmOpenOrder
   */
  readonly origClientOrderId?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryCurrentUmOpenOrder
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryMarginAccountOrder operation in TradeApi.
 * @interface QueryMarginAccountOrderRequest
 */
interface QueryMarginAccountOrderRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryMarginAccountOrder
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryMarginAccountOrder
   */
  readonly orderId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryMarginAccountOrder
   */
  readonly origClientOrderId?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryMarginAccountOrder
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryMarginAccountsAllOco operation in TradeApi.
 * @interface QueryMarginAccountsAllOcoRequest
 */
interface QueryMarginAccountsAllOcoRequest {
  /**
   * Trade id to fetch from. Default gets most recent trades.
   * @type {number | bigint}
   * @memberof TradeApiQueryMarginAccountsAllOco
   */
  readonly fromId?: number | bigint;
  /**
   * Timestamp in ms to get funding from INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiQueryMarginAccountsAllOco
   */
  readonly startTime?: number | bigint;
  /**
   * Timestamp in ms to get funding until INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiQueryMarginAccountsAllOco
   */
  readonly endTime?: number | bigint;
  /**
   * Default 100; max 1000
   * @type {number | bigint}
   * @memberof TradeApiQueryMarginAccountsAllOco
   */
  readonly limit?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryMarginAccountsAllOco
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryMarginAccountsOco operation in TradeApi.
 * @interface QueryMarginAccountsOcoRequest
 */
interface QueryMarginAccountsOcoRequest {
  /**
   * Either `orderListId` or `listClientOrderId` must be provided
   * @type {number | bigint}
   * @memberof TradeApiQueryMarginAccountsOco
   */
  readonly orderListId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryMarginAccountsOco
   */
  readonly origClientOrderId?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryMarginAccountsOco
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryMarginAccountsOpenOco operation in TradeApi.
 * @interface QueryMarginAccountsOpenOcoRequest
 */
interface QueryMarginAccountsOpenOcoRequest {
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryMarginAccountsOpenOco
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryUmAlgoOrderHistory operation in TradeApi.
 * @interface QueryUmAlgoOrderHistoryRequest
 */
interface QueryUmAlgoOrderHistoryRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryUmAlgoOrderHistory
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryUmAlgoOrderHistory
   */
  readonly algoId?: number | bigint;
  /**
   * Timestamp in ms to get funding from INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiQueryUmAlgoOrderHistory
   */
  readonly startTime?: number | bigint;
  /**
   * Timestamp in ms to get funding until INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiQueryUmAlgoOrderHistory
   */
  readonly endTime?: number | bigint;
  /**
   * Default 100; max 1000
   * @type {number | bigint}
   * @memberof TradeApiQueryUmAlgoOrderHistory
   */
  readonly limit?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryUmAlgoOrderHistory
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryUmConditionalOrderHistory operation in TradeApi.
 * @interface QueryUmConditionalOrderHistoryRequest
 */
interface QueryUmConditionalOrderHistoryRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryUmConditionalOrderHistory
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryUmConditionalOrderHistory
   */
  readonly strategyId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryUmConditionalOrderHistory
   */
  readonly newClientStrategyId?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryUmConditionalOrderHistory
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryUmModifyOrderHistory operation in TradeApi.
 * @interface QueryUmModifyOrderHistoryRequest
 */
interface QueryUmModifyOrderHistoryRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryUmModifyOrderHistory
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryUmModifyOrderHistory
   */
  readonly orderId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryUmModifyOrderHistory
   */
  readonly origClientOrderId?: string;
  /**
   * Timestamp in ms to get funding from INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiQueryUmModifyOrderHistory
   */
  readonly startTime?: number | bigint;
  /**
   * Timestamp in ms to get funding until INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiQueryUmModifyOrderHistory
   */
  readonly endTime?: number | bigint;
  /**
   * Default 100; max 1000
   * @type {number | bigint}
   * @memberof TradeApiQueryUmModifyOrderHistory
   */
  readonly limit?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryUmModifyOrderHistory
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryUmOrder operation in TradeApi.
 * @interface QueryUmOrderRequest
 */
interface QueryUmOrderRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryUmOrder
   */
  readonly symbol: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryUmOrder
   */
  readonly orderId?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof TradeApiQueryUmOrder
   */
  readonly origClientOrderId?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryUmOrder
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof TradeApiQueryUsersCmForceOrders
   */
  readonly startTime?: number | bigint;
  /**
   * Timestamp in ms to get funding until INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiQueryUsersCmForceOrders
   */
  readonly endTime?: number | bigint;
  /**
   * Default 100; max 1000
   * @type {number | bigint}
   * @memberof TradeApiQueryUsersCmForceOrders
   */
  readonly limit?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryUsersCmForceOrders
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for queryUsersMarginForceOrders operation in TradeApi.
 * @interface QueryUsersMarginForceOrdersRequest
 */
interface QueryUsersMarginForceOrdersRequest {
  /**
   * Timestamp in ms to get funding from INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiQueryUsersMarginForceOrders
   */
  readonly startTime?: number | bigint;
  /**
   * Timestamp in ms to get funding until INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiQueryUsersMarginForceOrders
   */
  readonly endTime?: number | bigint;
  /**
   * Currently querying page. Start from 1. Default:1
   * @type {number | bigint}
   * @memberof TradeApiQueryUsersMarginForceOrders
   */
  readonly current?: number | bigint;
  /**
   * Default:10 Max:100
   * @type {number | bigint}
   * @memberof TradeApiQueryUsersMarginForceOrders
   */
  readonly size?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryUsersMarginForceOrders
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof TradeApiQueryUsersUmForceOrders
   */
  readonly startTime?: number | bigint;
  /**
   * Timestamp in ms to get funding until INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiQueryUsersUmForceOrders
   */
  readonly endTime?: number | bigint;
  /**
   * Default 100; max 1000
   * @type {number | bigint}
   * @memberof TradeApiQueryUsersUmForceOrders
   */
  readonly limit?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiQueryUsersUmForceOrders
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof TradeApiToggleBnbBurnOnUmFuturesTrade
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 | bigint}
   * @memberof TradeApiUmAccountTradeList
   */
  readonly startTime?: number | bigint;
  /**
   * Timestamp in ms to get funding until INCLUSIVE.
   * @type {number | bigint}
   * @memberof TradeApiUmAccountTradeList
   */
  readonly endTime?: number | bigint;
  /**
   * Trade id to fetch from. Default gets most recent trades.
   * @type {number | bigint}
   * @memberof TradeApiUmAccountTradeList
   */
  readonly fromId?: number | bigint;
  /**
   * Default 100; max 1000
   * @type {number | bigint}
   * @memberof TradeApiUmAccountTradeList
   */
  readonly limit?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiUmAccountTradeList
   */
  readonly recvWindow?: number | bigint;
}
/**
 * Request parameters for umPositionAdlQuantileEstimation operation in TradeApi.
 * @interface UmPositionAdlQuantileEstimationRequest
 */
interface UmPositionAdlQuantileEstimationRequest {
  /**
   *
   * @type {string}
   * @memberof TradeApiUmPositionAdlQuantileEstimation
   */
  readonly symbol?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof TradeApiUmPositionAdlQuantileEstimation
   */
  readonly recvWindow?: number | bigint;
}
/**
 * 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 Algo Open Orders
   *
   * Weight: 1
   *
   * @summary Cancel All UM Algo Open Orders (TRADE)
   * @param {CancelAllUmAlgoOpenOrdersRequest} requestParameters Request parameters.
   * @returns {Promise<RestApiResponse<CancelAllUmAlgoOpenOrdersResponse>>}
   * @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-Algo-Open-Orders Binance API Documentation}
   */
  cancelAllUmAlgoOpenOrders(requestParameters: CancelAllUmAlgoOpenOrdersRequest): Promise<RestApiResponse<CancelAllUmAlgoOpenOrdersResponse>>;
  /**
   * Cancel All UM Open Conditional Orders
   *
   * Weight: 1
   *
   * @summary Cancel All UM Open Conditional Orders
   * @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 an active UM algo order.
   *
   * Either `algoId` or `clientAlgoId` must be sent.
   *
   * Weight: 1
   *
   * @summary Cancel UM Algo Order (TRADE)
   * @param {CancelUmAlgoOrderRequest} requestParameters Request parameters.
   * @returns {Promise<RestApiResponse<CancelUmAlgoOrderResponse>>}
   * @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-Algo-Order Binance API Documentation}
   */
  cancelUmAlgoOrder(requestParameters?: CancelUmAlgoOrderRequest): Promise<RestApiResponse<CancelUmAlgoOrderResponse>>;
  /**
   * Cancel UM Conditional Order
   *
   * Either `strategyId` or `newClientStrategyId` must be sent.
   *
   * Weight: 1
   *
   * @summary Cancel UM Conditional Order
   * @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`
   * 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.
   *
   * 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>>;
  /**
   * Sign TradFi-Perps agreement contract
   *
   * Weight: 5
   *
   * @summary Futures TradFi Perps Contract(USER_DATA)
   * @param {FuturesTradfiPerpsContractRequest} requestParameters Request parameters.
   * @returns {Promise<RestApiResponse<FuturesTradfiPerpsContractResponse>>}
   * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
   * @memberof TradeApi
   * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Futures-TradFi-Perps-Contract Binance API Documentation}
   */
  futuresTradfiPerpsContract(requestParameters?: FuturesTradfiPerpsContractRequest): Promise<RestApiResponse<FuturesTradfiPerpsContractResponse>>;
  /**
   * 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
   *
   * Algo order with type `STOP`,  parameter `timeInForce` can be sent ( default `GTC`).
   * Algo order with type `TAKE_PROFIT`,  parameter `timeInForce` can be sent ( default `GTC`).
   * Condition orders will be triggered when:
   *
   * If parameter`priceProtect`is sent as true:
   * when price reaches the `triggerPrice` , 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") >= `triggerPrice`
   * SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") <= `triggerPrice`
   * `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`:
   * BUY: latest price ("MARK_PRICE" or "CONTRACT_PRICE") <= `triggerPrice`
   * SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") >= `triggerPrice`
   * `TRAILING_STOP_MARKET`:
   * BUY: the lowest price after order placed <= `activatePrice`, and the latest price >= the lowest price * (1 + `callbackRate`)
   * SELL: the highest price after order placed >= `activatePrice`, and the latest price <= the highest price * (1 - `callbackRate`)
   *
   * For `TRAILING_STOP_MARKET`, if you got such error code.
   * ``{"code": -2021, "msg": "Order would immediately trigger."}``
   * means that the parameters you send do not meet the following requirements:
   * BUY: `activatePrice` should be smaller than latest price.
   * SELL: `activatePrice` should be larger than latest price.
   *
   * `selfTradePreventionMode` is only effective when `timeInForce` set to `IOC` or `GTC` or `GTD`.
   *
   * Weight: 1
   *
   * @summary New UM Algo Order (TRADE)
   * @param {NewUmAlgoOrderRequest} requestParameters Request parameters.
   * @returns {Promise<RestApiResponse<NewUmAlgoOrderResponse>>}
   * @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-Algo-Order Binance API Documentation}
   */
  newUmAlgoOrder(requestParameters: NewUmAlgoOrderRequest): Promise<RestApiResponse<NewUmAlgoOrderResponse>>;
  /**
   * 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
   * @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 UM open algo 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 Algo Orders (USER_DATA)
   * @param {QueryAllCurrentUmOpenAlgoOrdersRequest} requestParameters Request parameters.
   * @returns {Promise<RestApiResponse<QueryAllCurrentUmOpenAlgoOrdersResponse>>}
   * @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-Algo-Orders Binance API Documentation}
   */
  queryAllCurrentUmOpenAlgoOrders(requestParameters?: QueryAllCurrentUmOpenAlgoOrdersRequest): Promise<RestApiResponse<QueryAllCurrentUmOpenAlgoOrdersResponse>>;
  /**
   * 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
   * @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
   * @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>>;
  /**
   * Check an UM algo order's status.
   *
   * These orders will not be found:
   * order status is `CANCELED` or `EXPIRED` **AND** order has NO filled trade **AND** created time + 3 days < current time
   * order create time + 90 days < current time
   *
   * Either `algoId` or `clientAlgoId` must be sent.
   * `algoId` is self-increment for each specific `symbol`
   *
   * Weight: 1
   *
   * @summary Query Current UM Open Algo Order (USER_DATA)
   * @param {QueryCurrentUmOpenAlgoOrderRequest} requestParameters Request parameters.
   * @returns {Promise<RestApiResponse<QueryCurrentUmOpenAlgoOrderResponse>>}
   * @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-Algo-Order Binance API Documentation}
   */
  queryCurrentUmOpenAlgoOrder(requestParameters?: QueryCurrentUmOpenAlgoOrderRequest): Promise<RestApiResponse<QueryCurrentUmOpenAlgoOrderResponse>>;
  /**
   * Query Current UM Open Conditional Order
   *
   * Either `strategyId` or `newClientStrategyId` must be sent.
   * If the queried order has been `CANCELED`, `TRIGGERED` or `EXPIRED`, the error message "Order does not exist" will be returned.
   *
   * Weight: 1
   *
   * @summary Query Current UM Open Conditional Order
   * @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>>;
  /**
   * Get all algo orders; ACTIVE, CANCELED, TRIGGERED or FINISHED .
   *
   * If `algoId` is set, it will get orders >= that `algoId`. 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 UM Algo Order History (USER_DATA)
   * @param {QueryUmAlgoOrderHistoryRequest} requestParameters Request parameters.
   * @returns {Promise<RestApiResponse<QueryUmAlgoOrderHistoryResponse>>}
   * @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-Algo-Order-History Binance API Documentation}
   */
  queryUmAlgoOrderHistory(requestParameters: QueryUmAlgoOrderHistoryRequest): Promise<RestApiResponse<QueryUmAlgoOrderHistoryResponse>>;
  /**
   * 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
   * @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
   * Only support querying data in the past 90 days
   *
   * 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
   * Only support querying data in the past 90 days
   *
   * 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 '7 days' data will be returned.
   * The time between `startTime` and `endTime` cannot be longer than 7 days.
   * 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",
  LIMIT_MAKER = "LIMIT_MAKER",
  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 NewUmAlgoOrderSideEnum {
  BUY = "BUY",
  SELL = "SELL",
}
declare enum NewUmAlgoOrderTypeEnum {
  LIMIT = "LIMIT",
  MARKET = "MARKET",
}
declare enum NewUmAlgoOrderPositionSideEnum {
  BOTH = "BOTH",
  LONG = "LONG",
  SHORT = "SHORT",
}
declare enum NewUmAlgoOrderTimeInForceEnum {
  GTC = "GTC",
  IOC = "IOC",
  FOK = "FOK",
  GTX = "GTX",
}
declare enum NewUmAlgoOrderWorkingTypeEnum {
  MARK_PRICE = "MARK_PRICE",
}
declare enum NewUmAlgoOrderPriceMatchEnum {
  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 NewUmAlgoOrderNewOrderRespTypeEnum {
  ACK = "ACK",
  RESULT = "RESULT",
}
declare enum NewUmAlgoOrderSelfTradePreventionModeEnum {
  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",
  LIMIT_MAKER = "LIMIT_MAKER",
  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",
}
//#endregion
//#region src/rest-api/modules/user-data-streams-api.d.ts
/**
 * 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>>;
}
//#endregion
//#region src/rest-api/rest-api.d.ts
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 queryParams - Query parameters for the request.
   * @param bodyParams - Body parameters for the request.
   *
   * @returns A promise resolving to the response data object.
   */
  sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', queryParams?: Record<string, unknown>, bodyParams?: 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 queryParams - Query parameters for the request.
   * @param bodyParams - Body parameters for the request.
   *
   * @returns A promise resolving to the response data object.
   */
  sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', queryParams?: Record<string, unknown>, bodyParams?: 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: 7 days
   *
   * 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: 7 days
   *
   * 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: 7 days
   *
   * 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 Algo Open Orders
   *
   * Weight: 1
   *
   * @summary Cancel All UM Algo Open Orders (TRADE)
   * @param {CancelAllUmAlgoOpenOrdersRequest} requestParameters Request parameters.
   *
   * @returns {Promise<RestApiResponse<CancelAllUmAlgoOpenOrdersResponse>>}
   * @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-Algo-Open-Orders Binance API Documentation}
   */
  cancelAllUmAlgoOpenOrders(requestParameters: CancelAllUmAlgoOpenOrdersRequest): Promise<RestApiResponse<CancelAllUmAlgoOpenOrdersResponse>>;
  /**
   * Cancel All UM Open Conditional Orders
   *
   * Weight: 1
   *
   * @summary Cancel All UM Open Conditional Orders
   * @param {CancelAllUmOpenConditionalOrdersRequest} requestParameters Request parameters.
   * @deprecated
   * @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 an active UM algo order.
   *
   * Either `algoId` or `clientAlgoId` must be sent.
   *
   * Weight: 1
   *
   * @summary Cancel UM Algo Order (TRADE)
   * @param {CancelUmAlgoOrderRequest} requestParameters Request parameters.
   *
   * @returns {Promise<RestApiResponse<CancelUmAlgoOrderResponse>>}
   * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
   * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-UM-Algo-Order Binance API Documentation}
   */
  cancelUmAlgoOrder(requestParameters?: CancelUmAlgoOrderRequest): Promise<RestApiResponse<CancelUmAlgoOrderResponse>>;
  /**
   * Cancel UM Conditional Order
   *
   * Either `strategyId` or `newClientStrategyId` must be sent.
   *
   * Weight: 1
   *
   * @summary Cancel UM Conditional Order
   * @param {CancelUmConditionalOrderRequest} requestParameters Request parameters.
   * @deprecated
   * @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`
   * 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.
   *
   * 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>>;
  /**
   * Sign TradFi-Perps agreement contract
   *
   * Weight: 5
   *
   * @summary Futures TradFi Perps Contract(USER_DATA)
   * @param {FuturesTradfiPerpsContractRequest} requestParameters Request parameters.
   *
   * @returns {Promise<RestApiResponse<FuturesTradfiPerpsContractResponse>>}
   * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
   * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Futures-TradFi-Perps-Contract Binance API Documentation}
   */
  futuresTradfiPerpsContract(requestParameters?: FuturesTradfiPerpsContractRequest): Promise<RestApiResponse<FuturesTradfiPerpsContractResponse>>;
  /**
   * 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
   *
   * Algo order with type `STOP`,  parameter `timeInForce` can be sent ( default `GTC`).
   * Algo order with type `TAKE_PROFIT`,  parameter `timeInForce` can be sent ( default `GTC`).
   * Condition orders will be triggered when:
   *
   * If parameter`priceProtect`is sent as true:
   * when price reaches the `triggerPrice` , 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") >= `triggerPrice`
   * SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") <= `triggerPrice`
   * `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`:
   * BUY: latest price ("MARK_PRICE" or "CONTRACT_PRICE") <= `triggerPrice`
   * SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") >= `triggerPrice`
   * `TRAILING_STOP_MARKET`:
   * BUY: the lowest price after order placed <= `activatePrice`, and the latest price >= the lowest price * (1 + `callbackRate`)
   * SELL: the highest price after order placed >= `activatePrice`, and the latest price <= the highest price * (1 - `callbackRate`)
   *
   * For `TRAILING_STOP_MARKET`, if you got such error code.
   * ``{"code": -2021, "msg": "Order would immediately trigger."}``
   * means that the parameters you send do not meet the following requirements:
   * BUY: `activatePrice` should be smaller than latest price.
   * SELL: `activatePrice` should be larger than latest price.
   *
   * `selfTradePreventionMode` is only effective when `timeInForce` set to `IOC` or `GTC` or `GTD`.
   *
   * Weight: 1
   *
   * @summary New UM Algo Order (TRADE)
   * @param {NewUmAlgoOrderRequest} requestParameters Request parameters.
   *
   * @returns {Promise<RestApiResponse<NewUmAlgoOrderResponse>>}
   * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
   * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-UM-Algo-Order Binance API Documentation}
   */
  newUmAlgoOrder(requestParameters: NewUmAlgoOrderRequest): Promise<RestApiResponse<NewUmAlgoOrderResponse>>;
  /**
   * 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
   * @param {NewUmConditionalOrderRequest} requestParameters Request parameters.
   * @deprecated
   * @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 UM open algo 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 Algo Orders (USER_DATA)
   * @param {QueryAllCurrentUmOpenAlgoOrdersRequest} requestParameters Request parameters.
   *
   * @returns {Promise<RestApiResponse<QueryAllCurrentUmOpenAlgoOrdersResponse>>}
   * @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-Algo-Orders Binance API Documentation}
   */
  queryAllCurrentUmOpenAlgoOrders(requestParameters?: QueryAllCurrentUmOpenAlgoOrdersRequest): Promise<RestApiResponse<QueryAllCurrentUmOpenAlgoOrdersResponse>>;
  /**
   * 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
   * @param {QueryAllCurrentUmOpenConditionalOrdersRequest} requestParameters Request parameters.
   * @deprecated
   * @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
   * @param {QueryAllUmConditionalOrdersRequest} requestParameters Request parameters.
   * @deprecated
   * @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>>;
  /**
   * Check an UM algo order's status.
   *
   * These orders will not be found:
   * order status is `CANCELED` or `EXPIRED` **AND** order has NO filled trade **AND** created time + 3 days < current time
   * order create time + 90 days < current time
   *
   * Either `algoId` or `clientAlgoId` must be sent.
   * `algoId` is self-increment for each specific `symbol`
   *
   * Weight: 1
   *
   * @summary Query Current UM Open Algo Order (USER_DATA)
   * @param {QueryCurrentUmOpenAlgoOrderRequest} requestParameters Request parameters.
   *
   * @returns {Promise<RestApiResponse<QueryCurrentUmOpenAlgoOrderResponse>>}
   * @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-Algo-Order Binance API Documentation}
   */
  queryCurrentUmOpenAlgoOrder(requestParameters?: QueryCurrentUmOpenAlgoOrderRequest): Promise<RestApiResponse<QueryCurrentUmOpenAlgoOrderResponse>>;
  /**
   * Query Current UM Open Conditional Order
   *
   * Either `strategyId` or `newClientStrategyId` must be sent.
   * If the queried order has been `CANCELED`, `TRIGGERED` or `EXPIRED`, the error message "Order does not exist" will be returned.
   *
   * Weight: 1
   *
   * @summary Query Current UM Open Conditional Order
   * @param {QueryCurrentUmOpenConditionalOrderRequest} requestParameters Request parameters.
   * @deprecated
   * @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>>;
  /**
   * Get all algo orders; ACTIVE, CANCELED, TRIGGERED or FINISHED .
   *
   * If `algoId` is set, it will get orders >= that `algoId`. 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 UM Algo Order History (USER_DATA)
   * @param {QueryUmAlgoOrderHistoryRequest} requestParameters Request parameters.
   *
   * @returns {Promise<RestApiResponse<QueryUmAlgoOrderHistoryResponse>>}
   * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
   * @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Algo-Order-History Binance API Documentation}
   */
  queryUmAlgoOrderHistory(requestParameters: QueryUmAlgoOrderHistoryRequest): Promise<RestApiResponse<QueryUmAlgoOrderHistoryResponse>>;
  /**
   * 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
   * @param {QueryUmConditionalOrderHistoryRequest} requestParameters Request parameters.
   * @deprecated
   * @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
   * Only support querying data in the past 90 days
   *
   * 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
   * Only support querying data in the past 90 days
   *
   * 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 '7 days' data will be returned.
   * The time between `startTime` and `endTime` cannot be longer than 7 days.
   * 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>>;
}
declare namespace index_d_exports {
  export { AccountApi, AccountApiInterface, AccountBalanceRequest, AccountBalanceResponse, AccountBalanceResponse1, AccountBalanceResponse1Inner, AccountBalanceResponse2, AccountInformationRequest, AccountInformationResponse, BnbTransferRequest, BnbTransferResponse, CancelAllCmOpenConditionalOrdersRequest, CancelAllCmOpenConditionalOrdersResponse, CancelAllCmOpenOrdersRequest, CancelAllCmOpenOrdersResponse, CancelAllUmAlgoOpenOrdersRequest, CancelAllUmAlgoOpenOrdersResponse, CancelAllUmOpenConditionalOrdersRequest, CancelAllUmOpenConditionalOrdersResponse, CancelAllUmOpenOrdersRequest, CancelAllUmOpenOrdersResponse, CancelCmConditionalOrderRequest, CancelCmConditionalOrderResponse, CancelCmOrderRequest, CancelCmOrderResponse, CancelMarginAccountAllOpenOrdersOnASymbolRequest, CancelMarginAccountAllOpenOrdersOnASymbolResponse, CancelMarginAccountAllOpenOrdersOnASymbolResponseInner, CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrderReportsInner, CancelMarginAccountAllOpenOrdersOnASymbolResponseInnerOrdersInner, CancelMarginAccountOcoOrdersRequest, CancelMarginAccountOcoOrdersResponse, CancelMarginAccountOcoOrdersResponseOrderReportsInner, CancelMarginAccountOcoOrdersResponseOrdersInner, CancelMarginAccountOrderRequest, CancelMarginAccountOrderResponse, CancelUmAlgoOrderRequest, CancelUmAlgoOrderResponse, CancelUmConditionalOrderRequest, CancelUmConditionalOrderResponse, CancelUmOrderRequest, CancelUmOrderResponse, ChangeAutoRepayFuturesStatusRequest, ChangeAutoRepayFuturesStatusResponse, ChangeCmInitialLeverageRequest, ChangeCmInitialLeverageResponse, ChangeCmPositionModeRequest, ChangeCmPositionModeResponse, ChangeUmInitialLeverageRequest, ChangeUmInitialLeverageResponse, ChangeUmPositionModeRequest, ChangeUmPositionModeResponse, CmAccountTradeListRequest, CmAccountTradeListResponse, CmAccountTradeListResponseInner, CmNotionalAndLeverageBracketsRequest, CmNotionalAndLeverageBracketsResponse, CmNotionalAndLeverageBracketsResponseInner, CmNotionalAndLeverageBracketsResponseInnerBracketsInner, CmPositionAdlQuantileEstimationRequest, CmPositionAdlQuantileEstimationResponse, CmPositionAdlQuantileEstimationResponseInner, CmPositionAdlQuantileEstimationResponseInnerAdlQuantile, FundAutoCollectionRequest, FundAutoCollectionResponse, FundCollectionByAssetRequest, FundCollectionByAssetResponse, FuturesTradfiPerpsContractRequest, FuturesTradfiPerpsContractResponse, GetAutoRepayFuturesStatusRequest, GetAutoRepayFuturesStatusResponse, GetCmAccountDetailRequest, GetCmAccountDetailResponse, GetCmAccountDetailResponseAssetsInner, GetCmAccountDetailResponsePositionsInner, GetCmCurrentPositionModeRequest, GetCmCurrentPositionModeResponse, GetCmIncomeHistoryRequest, GetCmIncomeHistoryResponse, GetCmIncomeHistoryResponseInner, GetDownloadIdForUmFuturesOrderHistoryRequest, GetDownloadIdForUmFuturesOrderHistoryResponse, GetDownloadIdForUmFuturesTradeHistoryRequest, GetDownloadIdForUmFuturesTradeHistoryResponse, GetDownloadIdForUmFuturesTransactionHistoryRequest, GetDownloadIdForUmFuturesTransactionHistoryResponse, GetMarginBorrowLoanInterestHistoryRequest, GetMarginBorrowLoanInterestHistoryResponse, GetMarginBorrowLoanInterestHistoryResponseRowsInner, GetUmAccountDetailRequest, GetUmAccountDetailResponse, GetUmAccountDetailResponsePositionsInner, GetUmAccountDetailV2Request, GetUmAccountDetailV2Response, GetUmAccountDetailV2ResponseAssetsInner, GetUmAccountDetailV2ResponsePositionsInner, GetUmCurrentPositionModeRequest, GetUmCurrentPositionModeResponse, GetUmFuturesBnbBurnStatusRequest, GetUmFuturesBnbBurnStatusResponse, GetUmFuturesOrderDownloadLinkByIdRequest, GetUmFuturesOrderDownloadLinkByIdResponse, GetUmFuturesTradeDownloadLinkByIdRequest, GetUmFuturesTradeDownloadLinkByIdResponse, GetUmFuturesTransactionDownloadLinkByIdRequest, GetUmFuturesTransactionDownloadLinkByIdResponse, GetUmIncomeHistoryRequest, GetUmIncomeHistoryResponse, GetUmIncomeHistoryResponseInner, GetUserCommissionRateForCmRequest, GetUserCommissionRateForCmResponse, GetUserCommissionRateForUmRequest, GetUserCommissionRateForUmResponse, MarginAccountBorrowRequest, MarginAccountBorrowResponse, MarginAccountNewOcoNewOrderRespTypeEnum, MarginAccountNewOcoRequest, MarginAccountNewOcoResponse, MarginAccountNewOcoResponseOrderReportsInner, MarginAccountNewOcoResponseOrdersInner, MarginAccountNewOcoSideEffectTypeEnum, MarginAccountNewOcoSideEnum, MarginAccountNewOcoStopLimitTimeInForceEnum, MarginAccountRepayDebtRequest, MarginAccountRepayDebtResponse, MarginAccountRepayRequest, MarginAccountRepayResponse, MarginAccountTradeListRequest, MarginAccountTradeListResponse, MarginAccountTradeListResponseInner, MarginMaxBorrowRequest, MarginMaxBorrowResponse, MarketDataApi, MarketDataApiInterface, ModifyCmOrderPriceMatchEnum, ModifyCmOrderRequest, ModifyCmOrderResponse, ModifyCmOrderSideEnum, ModifyUmOrderPriceMatchEnum, ModifyUmOrderRequest, ModifyUmOrderResponse, ModifyUmOrderSideEnum, NewCmConditionalOrderPositionSideEnum, NewCmConditionalOrderRequest, NewCmConditionalOrderResponse, NewCmConditionalOrderSideEnum, NewCmConditionalOrderStrategyTypeEnum, NewCmConditionalOrderTimeInForceEnum, NewCmConditionalOrderWorkingTypeEnum, NewCmOrderNewOrderRespTypeEnum, NewCmOrderPositionSideEnum, NewCmOrderPriceMatchEnum, NewCmOrderRequest, NewCmOrderResponse, NewCmOrderSideEnum, NewCmOrderTimeInForceEnum, NewCmOrderTypeEnum, NewMarginOrderNewOrderRespTypeEnum, NewMarginOrderRequest, NewMarginOrderResponse, NewMarginOrderResponseFillsInner, NewMarginOrderSelfTradePreventionModeEnum, NewMarginOrderSideEffectTypeEnum, NewMarginOrderSideEnum, NewMarginOrderTimeInForceEnum, NewMarginOrderTypeEnum, NewUmAlgoOrderNewOrderRespTypeEnum, NewUmAlgoOrderPositionSideEnum, NewUmAlgoOrderPriceMatchEnum, NewUmAlgoOrderRequest, NewUmAlgoOrderResponse, NewUmAlgoOrderSelfTradePreventionModeEnum, NewUmAlgoOrderSideEnum, NewUmAlgoOrderTimeInForceEnum, NewUmAlgoOrderTypeEnum, NewUmAlgoOrderWorkingTypeEnum, NewUmConditionalOrderPositionSideEnum, NewUmConditionalOrderPriceMatchEnum, NewUmConditionalOrderRequest, NewUmConditionalOrderResponse, NewUmConditionalOrderSelfTradePreventionModeEnum, NewUmConditionalOrderSideEnum, NewUmConditionalOrderStrategyTypeEnum, NewUmConditionalOrderTimeInForceEnum, NewUmConditionalOrderWorkingTypeEnum, NewUmOrderNewOrderRespTypeEnum, NewUmOrderPositionSideEnum, NewUmOrderPriceMatchEnum, NewUmOrderRequest, NewUmOrderResponse, NewUmOrderSelfTradePreventionModeEnum, NewUmOrderSideEnum, NewUmOrderTimeInForceEnum, NewUmOrderTypeEnum, PortfolioMarginUmTradingQuantitativeRulesIndicatorsRequest, PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponse, PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicators, PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsACCOUNTInner, PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponseIndicatorsBTCUSDTInner, QueryAllCmConditionalOrdersRequest, QueryAllCmConditionalOrdersResponse, QueryAllCmConditionalOrdersResponseInner, QueryAllCmOrdersRequest, QueryAllCmOrdersResponse, QueryAllCmOrdersResponseInner, QueryAllCurrentCmOpenConditionalOrdersRequest, QueryAllCurrentCmOpenConditionalOrdersResponse, QueryAllCurrentCmOpenConditionalOrdersResponseInner, QueryAllCurrentCmOpenOrdersRequest, QueryAllCurrentCmOpenOrdersResponse, QueryAllCurrentUmOpenAlgoOrdersRequest, QueryAllCurrentUmOpenAlgoOrdersResponse, QueryAllCurrentUmOpenAlgoOrdersResponseInner, QueryAllCurrentUmOpenConditionalOrdersRequest, QueryAllCurrentUmOpenConditionalOrdersResponse, QueryAllCurrentUmOpenConditionalOrdersResponseInner, QueryAllCurrentUmOpenOrdersRequest, QueryAllCurrentUmOpenOrdersResponse, QueryAllCurrentUmOpenOrdersResponseInner, QueryAllMarginAccountOrdersRequest, QueryAllMarginAccountOrdersResponse, QueryAllMarginAccountOrdersResponseInner, QueryAllUmConditionalOrdersRequest, QueryAllUmConditionalOrdersResponse, QueryAllUmConditionalOrdersResponseInner, QueryAllUmOrdersRequest, QueryAllUmOrdersResponse, QueryCmConditionalOrderHistoryRequest, QueryCmConditionalOrderHistoryResponse, QueryCmModifyOrderHistoryRequest, QueryCmModifyOrderHistoryResponse, QueryCmModifyOrderHistoryResponseInner, QueryCmModifyOrderHistoryResponseInnerAmendment, QueryCmModifyOrderHistoryResponseInnerAmendmentOrigQty, QueryCmModifyOrderHistoryResponseInnerAmendmentPrice, QueryCmOrderRequest, QueryCmOrderResponse, QueryCmPositionInformationRequest, QueryCmPositionInformationResponse, QueryCmPositionInformationResponseInner, QueryCurrentCmOpenConditionalOrderRequest, QueryCurrentCmOpenConditionalOrderResponse, QueryCurrentCmOpenOrderRequest, QueryCurrentCmOpenOrderResponse, QueryCurrentMarginOpenOrderRequest, QueryCurrentMarginOpenOrderResponse, QueryCurrentMarginOpenOrderResponseInner, QueryCurrentUmOpenAlgoOrderRequest, QueryCurrentUmOpenAlgoOrderResponse, QueryCurrentUmOpenConditionalOrderRequest, QueryCurrentUmOpenConditionalOrderResponse, QueryCurrentUmOpenOrderRequest, QueryCurrentUmOpenOrderResponse, QueryMarginAccountOrderRequest, QueryMarginAccountOrderResponse, QueryMarginAccountsAllOcoRequest, QueryMarginAccountsAllOcoResponse, QueryMarginAccountsAllOcoResponseInner, QueryMarginAccountsAllOcoResponseInnerOrdersInner, QueryMarginAccountsOcoRequest, QueryMarginAccountsOcoResponse, QueryMarginAccountsOcoResponseOrdersInner, QueryMarginAccountsOpenOcoRequest, QueryMarginAccountsOpenOcoResponse, QueryMarginAccountsOpenOcoResponseInner, QueryMarginAccountsOpenOcoResponseInnerOrdersInner, QueryMarginLoanRecordRequest, QueryMarginLoanRecordResponse, QueryMarginLoanRecordResponseRowsInner, QueryMarginMaxWithdrawRequest, QueryMarginMaxWithdrawResponse, QueryMarginRepayRecordRequest, QueryMarginRepayRecordResponse, QueryMarginRepayRecordResponseRowsInner, QueryPortfolioMarginNegativeBalanceInterestHistoryRequest, QueryPortfolioMarginNegativeBalanceInterestHistoryResponse, QueryPortfolioMarginNegativeBalanceInterestHistoryResponseInner, QueryUmAlgoOrderHistoryRequest, QueryUmAlgoOrderHistoryResponse, QueryUmAlgoOrderHistoryResponseInner, QueryUmConditionalOrderHistoryRequest, QueryUmConditionalOrderHistoryResponse, QueryUmModifyOrderHistoryRequest, QueryUmModifyOrderHistoryResponse, QueryUmModifyOrderHistoryResponseInner, QueryUmOrderRequest, QueryUmOrderResponse, QueryUmPositionInformationRequest, QueryUmPositionInformationResponse, QueryUmPositionInformationResponseInner, QueryUserNegativeBalanceAutoExchangeRecordRequest, QueryUserNegativeBalanceAutoExchangeRecordResponse, QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInner, QueryUserNegativeBalanceAutoExchangeRecordResponseRowsInnerDetailsInner, QueryUserRateLimitRequest, QueryUserRateLimitResponse, QueryUserRateLimitResponseInner, QueryUsersCmForceOrdersAutoCloseTypeEnum, QueryUsersCmForceOrdersRequest, QueryUsersCmForceOrdersResponse, QueryUsersCmForceOrdersResponseInner, QueryUsersMarginForceOrdersRequest, QueryUsersMarginForceOrdersResponse, QueryUsersMarginForceOrdersResponseRowsInner, QueryUsersUmForceOrdersAutoCloseTypeEnum, QueryUsersUmForceOrdersRequest, QueryUsersUmForceOrdersResponse, QueryUsersUmForceOrdersResponseInner, RepayFuturesNegativeBalanceRequest, RepayFuturesNegativeBalanceResponse, RestAPI, StartUserDataStreamResponse, ToggleBnbBurnOnUmFuturesTradeRequest, ToggleBnbBurnOnUmFuturesTradeResponse, TradeApi, TradeApiInterface, UmAccountTradeListRequest, UmAccountTradeListResponse, UmAccountTradeListResponseInner, UmFuturesAccountConfigurationRequest, UmFuturesAccountConfigurationResponse, UmFuturesSymbolConfigurationRequest, UmFuturesSymbolConfigurationResponse, UmFuturesSymbolConfigurationResponseInner, UmNotionalAndLeverageBracketsRequest, UmNotionalAndLeverageBracketsResponse, UmNotionalAndLeverageBracketsResponseInner, UmNotionalAndLeverageBracketsResponseInnerBracketsInner, UmPositionAdlQuantileEstimationRequest, UmPositionAdlQuantileEstimationResponse, UmPositionAdlQuantileEstimationResponseInner, UmPositionAdlQuantileEstimationResponseInnerAdlQuantile, UserDataStreamsApi, UserDataStreamsApiInterface };
}
//#endregion
//#region src/websocket-streams/types/account-config-update-ac.d.ts
/**
 * Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface AccountConfigUpdateAc
 */
interface AccountConfigUpdateAc {
  /**
   *
   * @type {string}
   * @memberof AccountConfigUpdateAc
   */
  s?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountConfigUpdateAc
   */
  l?: number | bigint;
}
//#endregion
//#region src/websocket-streams/types/account-config-update.d.ts
/**
 *
 * @export
 * @interface AccountConfigUpdate
 */
interface AccountConfigUpdate {
  /**
   *
   * @type {string}
   * @memberof AccountConfigUpdate
   */
  fs?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountConfigUpdate
   */
  E?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountConfigUpdate
   */
  T?: number | bigint;
  /**
   *
   * @type {AccountConfigUpdateAc}
   * @memberof AccountConfigUpdate
   */
  ac?: AccountConfigUpdateAc;
}
//#endregion
//#region src/websocket-streams/types/account-update-abinner.d.ts
/**
 * Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface AccountUpdateABInner
 */
interface AccountUpdateABInner {
  /**
   *
   * @type {string}
   * @memberof AccountUpdateABInner
   */
  a?: string;
  /**
   *
   * @type {string}
   * @memberof AccountUpdateABInner
   */
  wb?: string;
  /**
   *
   * @type {string}
   * @memberof AccountUpdateABInner
   */
  cw?: string;
  /**
   *
   * @type {string}
   * @memberof AccountUpdateABInner
   */
  bc?: string;
}
//#endregion
//#region src/websocket-streams/types/account-update-apinner.d.ts
/**
 * Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface AccountUpdateAPInner
 */
interface AccountUpdateAPInner {
  /**
   *
   * @type {string}
   * @memberof AccountUpdateAPInner
   */
  s?: string;
  /**
   *
   * @type {string}
   * @memberof AccountUpdateAPInner
   */
  pa?: string;
  /**
   *
   * @type {string}
   * @memberof AccountUpdateAPInner
   */
  ep?: string;
  /**
   *
   * @type {string}
   * @memberof AccountUpdateAPInner
   */
  cr?: string;
  /**
   *
   * @type {string}
   * @memberof AccountUpdateAPInner
   */
  up?: string;
  /**
   *
   * @type {string}
   * @memberof AccountUpdateAPInner
   */
  ps?: string;
  /**
   *
   * @type {string}
   * @memberof AccountUpdateAPInner
   */
  bep?: string;
}
//#endregion
//#region src/websocket-streams/types/account-update-a.d.ts
/**
 *
 * @export
 * @interface AccountUpdateA
 */
interface AccountUpdateA {
  /**
   *
   * @type {string}
   * @memberof AccountUpdateA
   */
  m?: string;
  /**
   *
   * @type {Array<AccountUpdateABInner>}
   * @memberof AccountUpdateA
   */
  B?: Array<AccountUpdateABInner>;
  /**
   *
   * @type {Array<AccountUpdateAPInner>}
   * @memberof AccountUpdateA
   */
  P?: Array<AccountUpdateAPInner>;
}
//#endregion
//#region src/websocket-streams/types/account-update.d.ts
/**
 *
 * @export
 * @interface AccountUpdate
 */
interface AccountUpdate {
  /**
   *
   * @type {string}
   * @memberof AccountUpdate
   */
  fs?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountUpdate
   */
  E?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof AccountUpdate
   */
  T?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof AccountUpdate
   */
  i?: string;
  /**
   *
   * @type {AccountUpdateA}
   * @memberof AccountUpdate
   */
  a?: AccountUpdateA;
}
//#endregion
//#region src/websocket-streams/types/algo-update-ao.d.ts
/**
 * Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface AlgoUpdateAo
 */
interface AlgoUpdateAo {
  /**
   *
   * @type {string}
   * @memberof AlgoUpdateAo
   */
  caid?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof AlgoUpdateAo
   */
  aid?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof AlgoUpdateAo
   */
  at?: string;
  /**
   *
   * @type {string}
   * @memberof AlgoUpdateAo
   */
  o?: string;
  /**
   *
   * @type {string}
   * @memberof AlgoUpdateAo
   */
  s?: string;
  /**
   *
   * @type {string}
   * @memberof AlgoUpdateAo
   */
  S?: string;
  /**
   *
   * @type {string}
   * @memberof AlgoUpdateAo
   */
  ps?: string;
  /**
   *
   * @type {string}
   * @memberof AlgoUpdateAo
   */
  f?: string;
  /**
   *
   * @type {string}
   * @memberof AlgoUpdateAo
   */
  q?: string;
  /**
   *
   * @type {string}
   * @memberof AlgoUpdateAo
   */
  X?: string;
  /**
   *
   * @type {string}
   * @memberof AlgoUpdateAo
   */
  ai?: string;
  /**
   *
   * @type {string}
   * @memberof AlgoUpdateAo
   */
  ap?: string;
  /**
   *
   * @type {string}
   * @memberof AlgoUpdateAo
   */
  aq?: string;
  /**
   *
   * @type {string}
   * @memberof AlgoUpdateAo
   */
  act?: string;
  /**
   *
   * @type {string}
   * @memberof AlgoUpdateAo
   */
  tp?: string;
  /**
   *
   * @type {string}
   * @memberof AlgoUpdateAo
   */
  p?: string;
  /**
   *
   * @type {string}
   * @memberof AlgoUpdateAo
   */
  V?: string;
  /**
   *
   * @type {string}
   * @memberof AlgoUpdateAo
   */
  wt?: string;
  /**
   *
   * @type {string}
   * @memberof AlgoUpdateAo
   */
  pm?: string;
  /**
   *
   * @type {boolean}
   * @memberof AlgoUpdateAo
   */
  cp?: boolean;
  /**
   *
   * @type {boolean}
   * @memberof AlgoUpdateAo
   */
  pP?: boolean;
  /**
   *
   * @type {boolean}
   * @memberof AlgoUpdateAo
   */
  R?: boolean;
  /**
   *
   * @type {number | bigint}
   * @memberof AlgoUpdateAo
   */
  tt?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof AlgoUpdateAo
   */
  gtd?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof AlgoUpdateAo
   */
  rm?: string;
}
//#endregion
//#region src/websocket-streams/types/algo-update.d.ts
/**
 *
 * @export
 * @interface AlgoUpdate
 */
interface AlgoUpdate {
  /**
   *
   * @type {number | bigint}
   * @memberof AlgoUpdate
   */
  T?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof AlgoUpdate
   */
  E?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof AlgoUpdate
   */
  fs?: string;
  /**
   *
   * @type {AlgoUpdateAo}
   * @memberof AlgoUpdate
   */
  ao?: AlgoUpdateAo;
}
//#endregion
//#region src/websocket-streams/types/balanceupdate.d.ts
/**
 * Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface Balanceupdate
 */
interface Balanceupdate {
  /**
   *
   * @type {number | bigint}
   * @memberof Balanceupdate
   */
  E?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof Balanceupdate
   */
  a?: string;
  /**
   *
   * @type {string}
   * @memberof Balanceupdate
   */
  d?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof Balanceupdate
   */
  U?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof Balanceupdate
   */
  T?: number | bigint;
}
//#endregion
//#region src/websocket-streams/types/conditional-order-trade-update-so.d.ts
/**
 * Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface ConditionalOrderTradeUpdateSo
 */
interface ConditionalOrderTradeUpdateSo {
  /**
   *
   * @type {string}
   * @memberof ConditionalOrderTradeUpdateSo
   */
  s?: string;
  /**
   *
   * @type {string}
   * @memberof ConditionalOrderTradeUpdateSo
   */
  c?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof ConditionalOrderTradeUpdateSo
   */
  si?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof ConditionalOrderTradeUpdateSo
   */
  S?: string;
  /**
   *
   * @type {string}
   * @memberof ConditionalOrderTradeUpdateSo
   */
  st?: string;
  /**
   *
   * @type {string}
   * @memberof ConditionalOrderTradeUpdateSo
   */
  f?: string;
  /**
   *
   * @type {string}
   * @memberof ConditionalOrderTradeUpdateSo
   */
  q?: string;
  /**
   *
   * @type {string}
   * @memberof ConditionalOrderTradeUpdateSo
   */
  p?: string;
  /**
   *
   * @type {string}
   * @memberof ConditionalOrderTradeUpdateSo
   */
  sp?: string;
  /**
   *
   * @type {string}
   * @memberof ConditionalOrderTradeUpdateSo
   */
  os?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof ConditionalOrderTradeUpdateSo
   */
  T?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof ConditionalOrderTradeUpdateSo
   */
  ut?: number | bigint;
  /**
   *
   * @type {boolean}
   * @memberof ConditionalOrderTradeUpdateSo
   */
  R?: boolean;
  /**
   *
   * @type {string}
   * @memberof ConditionalOrderTradeUpdateSo
   */
  wt?: string;
  /**
   *
   * @type {string}
   * @memberof ConditionalOrderTradeUpdateSo
   */
  ps?: string;
  /**
   *
   * @type {boolean}
   * @memberof ConditionalOrderTradeUpdateSo
   */
  cp?: boolean;
  /**
   *
   * @type {string}
   * @memberof ConditionalOrderTradeUpdateSo
   */
  AP?: string;
  /**
   *
   * @type {string}
   * @memberof ConditionalOrderTradeUpdateSo
   */
  cr?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof ConditionalOrderTradeUpdateSo
   */
  i?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof ConditionalOrderTradeUpdateSo
   */
  V?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof ConditionalOrderTradeUpdateSo
   */
  gtd?: number | bigint;
}
//#endregion
//#region src/websocket-streams/types/conditional-order-trade-update.d.ts
/**
 *
 * @export
 * @interface ConditionalOrderTradeUpdate
 */
interface ConditionalOrderTradeUpdate {
  /**
   *
   * @type {number | bigint}
   * @memberof ConditionalOrderTradeUpdate
   */
  T?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof ConditionalOrderTradeUpdate
   */
  E?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof ConditionalOrderTradeUpdate
   */
  fs?: string;
  /**
   *
   * @type {ConditionalOrderTradeUpdateSo}
   * @memberof ConditionalOrderTradeUpdate
   */
  so?: ConditionalOrderTradeUpdateSo;
}
//#endregion
//#region src/websocket-streams/types/executionreport.d.ts
/**
 * Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface Executionreport
 */
interface Executionreport {
  /**
   *
   * @type {number | bigint}
   * @memberof Executionreport
   */
  E?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  s?: string;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  c?: string;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  S?: string;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  o?: string;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  f?: string;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  q?: string;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  p?: string;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  P?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof Executionreport
   */
  d?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  F?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof Executionreport
   */
  g?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  C?: string;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  x?: string;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  X?: string;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  r?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof Executionreport
   */
  i?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  l?: string;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  z?: string;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  L?: string;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  n?: string;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  N?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof Executionreport
   */
  T?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof Executionreport
   */
  t?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof Executionreport
   */
  v?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof Executionreport
   */
  I?: number | bigint;
  /**
   *
   * @type {boolean}
   * @memberof Executionreport
   */
  w?: boolean;
  /**
   *
   * @type {boolean}
   * @memberof Executionreport
   */
  m?: boolean;
  /**
   *
   * @type {number | bigint}
   * @memberof Executionreport
   */
  O?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  Z?: string;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  Y?: string;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  Q?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof Executionreport
   */
  D?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof Executionreport
   */
  j?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof Executionreport
   */
  J?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof Executionreport
   */
  W?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  V?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof Executionreport
   */
  u?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof Executionreport
   */
  U?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  A?: string;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  B?: string;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  Cs?: string;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  pl?: string;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  pL?: string;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  pY?: string;
  /**
   *
   * @type {string}
   * @memberof Executionreport
   */
  eR?: string;
}
//#endregion
//#region src/websocket-streams/types/liabilitychange.d.ts
/**
 * Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface Liabilitychange
 */
interface Liabilitychange {
  /**
   *
   * @type {number | bigint}
   * @memberof Liabilitychange
   */
  E?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof Liabilitychange
   */
  a?: string;
  /**
   *
   * @type {string}
   * @memberof Liabilitychange
   */
  t?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof Liabilitychange
   */
  T?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof Liabilitychange
   */
  p?: string;
  /**
   *
   * @type {string}
   * @memberof Liabilitychange
   */
  i?: string;
  /**
   *
   * @type {string}
   * @memberof Liabilitychange
   */
  l?: string;
}
//#endregion
//#region src/websocket-streams/types/listenkeyexpired.d.ts
/**
 * Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface Listenkeyexpired
 */
interface Listenkeyexpired {
  /**
   *
   * @type {number | bigint}
   * @memberof Listenkeyexpired
   */
  E?: number | bigint;
}
//#endregion
//#region src/websocket-streams/types/openorderloss-oinner.d.ts
/**
 * Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface OpenorderlossOInner
 */
interface OpenorderlossOInner {
  /**
   *
   * @type {string}
   * @memberof OpenorderlossOInner
   */
  a?: string;
  /**
   *
   * @type {string}
   * @memberof OpenorderlossOInner
   */
  o?: string;
}
//#endregion
//#region src/websocket-streams/types/openorderloss.d.ts
/**
 *
 * @export
 * @interface Openorderloss
 */
interface Openorderloss {
  /**
   *
   * @type {number | bigint}
   * @memberof Openorderloss
   */
  E?: number | bigint;
  /**
   *
   * @type {Array<OpenorderlossOInner>}
   * @memberof Openorderloss
   */
  O?: Array<OpenorderlossOInner>;
}
//#endregion
//#region src/websocket-streams/types/order-trade-update-o.d.ts
/**
 * Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface OrderTradeUpdateO
 */
interface OrderTradeUpdateO {
  /**
   *
   * @type {string}
   * @memberof OrderTradeUpdateO
   */
  s?: string;
  /**
   *
   * @type {string}
   * @memberof OrderTradeUpdateO
   */
  c?: string;
  /**
   *
   * @type {string}
   * @memberof OrderTradeUpdateO
   */
  S?: string;
  /**
   *
   * @type {string}
   * @memberof OrderTradeUpdateO
   */
  o?: string;
  /**
   *
   * @type {string}
   * @memberof OrderTradeUpdateO
   */
  f?: string;
  /**
   *
   * @type {string}
   * @memberof OrderTradeUpdateO
   */
  q?: string;
  /**
   *
   * @type {string}
   * @memberof OrderTradeUpdateO
   */
  p?: string;
  /**
   *
   * @type {string}
   * @memberof OrderTradeUpdateO
   */
  ap?: string;
  /**
   *
   * @type {string}
   * @memberof OrderTradeUpdateO
   */
  sp?: string;
  /**
   *
   * @type {string}
   * @memberof OrderTradeUpdateO
   */
  x?: string;
  /**
   *
   * @type {string}
   * @memberof OrderTradeUpdateO
   */
  X?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof OrderTradeUpdateO
   */
  i?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof OrderTradeUpdateO
   */
  l?: string;
  /**
   *
   * @type {string}
   * @memberof OrderTradeUpdateO
   */
  z?: string;
  /**
   *
   * @type {string}
   * @memberof OrderTradeUpdateO
   */
  L?: string;
  /**
   *
   * @type {string}
   * @memberof OrderTradeUpdateO
   */
  N?: string;
  /**
   *
   * @type {string}
   * @memberof OrderTradeUpdateO
   */
  n?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof OrderTradeUpdateO
   */
  T?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof OrderTradeUpdateO
   */
  t?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof OrderTradeUpdateO
   */
  b?: string;
  /**
   *
   * @type {string}
   * @memberof OrderTradeUpdateO
   */
  a?: string;
  /**
   *
   * @type {boolean}
   * @memberof OrderTradeUpdateO
   */
  m?: boolean;
  /**
   *
   * @type {boolean}
   * @memberof OrderTradeUpdateO
   */
  R?: boolean;
  /**
   *
   * @type {string}
   * @memberof OrderTradeUpdateO
   */
  ps?: string;
  /**
   *
   * @type {string}
   * @memberof OrderTradeUpdateO
   */
  rp?: string;
  /**
   *
   * @type {string}
   * @memberof OrderTradeUpdateO
   */
  st?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof OrderTradeUpdateO
   */
  si?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof OrderTradeUpdateO
   */
  V?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof OrderTradeUpdateO
   */
  gtd?: number | bigint;
}
//#endregion
//#region src/websocket-streams/types/order-trade-update.d.ts
/**
 *
 * @export
 * @interface OrderTradeUpdate
 */
interface OrderTradeUpdate {
  /**
   *
   * @type {string}
   * @memberof OrderTradeUpdate
   */
  fs?: string;
  /**
   *
   * @type {number | bigint}
   * @memberof OrderTradeUpdate
   */
  E?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof OrderTradeUpdate
   */
  T?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof OrderTradeUpdate
   */
  i?: string;
  /**
   *
   * @type {OrderTradeUpdateO}
   * @memberof OrderTradeUpdate
   */
  o?: OrderTradeUpdateO;
}
//#endregion
//#region src/websocket-streams/types/outboundaccountposition-binner.d.ts
/**
 * Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface OutboundaccountpositionBInner
 */
interface OutboundaccountpositionBInner {
  /**
   *
   * @type {string}
   * @memberof OutboundaccountpositionBInner
   */
  a?: string;
  /**
   *
   * @type {string}
   * @memberof OutboundaccountpositionBInner
   */
  f?: string;
  /**
   *
   * @type {string}
   * @memberof OutboundaccountpositionBInner
   */
  l?: string;
}
//#endregion
//#region src/websocket-streams/types/outboundaccountposition.d.ts
/**
 *
 * @export
 * @interface Outboundaccountposition
 */
interface Outboundaccountposition {
  /**
   *
   * @type {number | bigint}
   * @memberof Outboundaccountposition
   */
  E?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof Outboundaccountposition
   */
  u?: number | bigint;
  /**
   *
   * @type {number | bigint}
   * @memberof Outboundaccountposition
   */
  U?: number | bigint;
  /**
   *
   * @type {Array<OutboundaccountpositionBInner>}
   * @memberof Outboundaccountposition
   */
  B?: Array<OutboundaccountpositionBInner>;
}
//#endregion
//#region src/websocket-streams/types/risklevelchange.d.ts
/**
 * Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 *
 * @export
 * @interface Risklevelchange
 */
interface Risklevelchange {
  /**
   *
   * @type {number | bigint}
   * @memberof Risklevelchange
   */
  E?: number | bigint;
  /**
   *
   * @type {string}
   * @memberof Risklevelchange
   */
  u?: string;
  /**
   *
   * @type {string}
   * @memberof Risklevelchange
   */
  s?: string;
  /**
   *
   * @type {string}
   * @memberof Risklevelchange
   */
  eq?: string;
  /**
   *
   * @type {string}
   * @memberof Risklevelchange
   */
  ae?: string;
  /**
   *
   * @type {string}
   * @memberof Risklevelchange
   */
  m?: string;
}
//#endregion
//#region src/websocket-streams/types/user-data-stream-events-response.d.ts
/**
 * @type UserDataStreamEventsResponse
 * @export
 */
type UserDataStreamEventsResponse = ({
  e: 'ACCOUNT_CONFIG_UPDATE';
} & AccountConfigUpdate) | ({
  e: 'ACCOUNT_UPDATE';
} & AccountUpdate) | ({
  e: 'ALGO_UPDATE';
} & AlgoUpdate) | ({
  e: 'CONDITIONAL_ORDER_TRADE_UPDATE';
} & ConditionalOrderTradeUpdate) | ({
  e: 'ORDER_TRADE_UPDATE';
} & OrderTradeUpdate) | ({
  e: 'balanceUpdate';
} & Balanceupdate) | ({
  e: 'executionReport';
} & Executionreport) | ({
  e: 'liabilityChange';
} & Liabilitychange) | ({
  e: 'listenKeyExpired';
} & Listenkeyexpired) | ({
  e: 'openOrderLoss';
} & Openorderloss) | ({
  e: 'outboundAccountPosition';
} & Outboundaccountposition) | ({
  e: 'riskLevelChange';
} & Risklevelchange);
//#endregion
//#region src/websocket-streams/websocket-streams-connection.d.ts
declare class WebsocketStreamsConnection {
  private websocketBase;
  constructor(websocketBase: WebsocketStreamsBase);
  /**
   * Adds an event listener for the specified WebSocket event.
   * @param event - The WebSocket event to listen for, such as 'open', 'message', 'error', 'close', 'ping', or 'pong'.
   * @param listener - The callback function to be executed when the event is triggered. The function can accept any number of arguments.
   */
  on(event: 'open' | 'message' | 'error' | 'close' | 'ping' | 'pong', listener: (...args: any[]) => void): void;
  /**
   * Removes an event listener for the specified WebSocket event.
   * @param event - The WebSocket event to stop listening for, such as 'open', 'message', 'error', 'close', 'ping', or 'pong'.
   * @param listener - The callback function that was previously added as the event listener.
   */
  off(event: 'open' | 'message' | 'error' | 'close' | 'ping' | 'pong', listener: (...args: any[]) => void): void;
  /**
   * Disconnects from the WebSocket server.
   * If there is no active connection, a warning is logged.
   * Otherwise, all connections in the connection pool are closed gracefully,
   * and a message is logged indicating that the connection has been disconnected.
   * @returns A Promise that resolves when all connections have been closed.
   * @throws Error if the WebSocket client is not set.
   */
  disconnect(): Promise<void>;
  /**
   * Checks if the WebSocket connection is currently open.
   * @returns `true` if the connection is open, `false` otherwise.
   */
  isConnected(): boolean;
  /**
   * Sends a ping message to all connected Websocket servers in the pool.
   * If no connections are ready, a warning is logged.
   * For each active connection, the ping message is sent, and debug logs provide details.
   * @throws Error if a Websocket client is not set for a connection.
   */
  pingServer(): void;
  /**
   * Subscribes to one or multiple WebSocket streams
   * Handles both single and pool modes
   * @param stream Single stream name or array of stream names to subscribe to
   * @param id Optional subscription ID
   * @returns void
   */
  subscribe(stream: string | string[], id?: string): void;
  /**
   * Unsubscribes from one or multiple WebSocket streams
   * Handles both single and pool modes
   * @param stream Single stream name or array of stream names to unsubscribe from
   * @param id Optional unsubscription ID
   * @returns void
   */
  unsubscribe(stream: string | string[], id?: string): void;
  /**
   * Checks if the WebSocket connection is subscribed to the specified stream.
   * @param stream The name of the WebSocket stream to check.
   * @returns `true` if the connection is subscribed to the stream, `false` otherwise.
   */
  isSubscribed(stream: string): boolean;
  /**
   * Subscribes to the user data WebSocket stream using the provided listen key.
   * @param listenKey - The listen key for the user data WebSocket stream.
   * @param id - Optional user data stream ID
   * @returns A WebSocket stream handler for the user data stream.
   */
  userData(listenKey: string, id?: string): WebsocketStream<UserDataStreamEventsResponse>;
}
//#endregion
//#region src/websocket-streams/websocket-streams.d.ts
declare class WebsocketStreams {
  private configuration;
  constructor(configuration: ConfigurationWebsocketStreams);
  /**
   * Connects to the Binance WebSocket streams and returns a `WebsocketStreamsConnection` instance.
   *
   * @param {object} [options] - Optional connection options.
   * @param {string|string[]} [options.stream] - The stream(s) to connect to.
   * @param {'single'|'pool'} [options.mode] - The connection mode, either 'single' or 'pool'. Overwrite the `mode` option in the configuration.
   * @param {number} [options.poolSize] - The number of connections to use in pool mode. Overwrite the `poolSize` option in the configuration.
   * @returns {Promise<WebsocketStreamsConnection>} - A promise that resolves to a `WebsocketStreamsConnection` instance.
   */
  connect({
    stream,
    mode,
    poolSize
  }?: {
    stream?: string | string[];
    mode?: 'single' | 'pool';
    poolSize?: number;
  }): Promise<WebsocketStreamsConnection>;
}
declare namespace index_d_exports$1 {
  export { AccountConfigUpdate, AccountConfigUpdateAc, AccountUpdate, AccountUpdateA, AccountUpdateABInner, AccountUpdateAPInner, AlgoUpdate, AlgoUpdateAo, Balanceupdate, ConditionalOrderTradeUpdate, ConditionalOrderTradeUpdateSo, Executionreport, Liabilitychange, Listenkeyexpired, Openorderloss, OpenorderlossOInner, OrderTradeUpdate, OrderTradeUpdateO, Outboundaccountposition, OutboundaccountpositionBInner, Risklevelchange, UserDataStreamEventsResponse, WebsocketStreams, WebsocketStreamsConnection };
}
//#endregion
//#region src/derivatives-trading-portfolio-margin.d.ts
interface ConfigurationDerivativesTradingPortfolioMargin {
  configurationRestAPI?: ConfigurationRestAPI;
  configurationWebsocketStreams?: ConfigurationWebsocketStreams;
}
declare class DerivativesTradingPortfolioMargin {
  restAPI: RestAPI;
  websocketStreams: WebsocketStreams;
  constructor(config: ConfigurationDerivativesTradingPortfolioMargin);
}
//#endregion
export { BadRequestError, type ConfigurationDerivativesTradingPortfolioMargin, ConnectorClientError, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PROD_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_TESTNET_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_PROD_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_TESTNET_URL, DerivativesTradingPortfolioMargin, index_d_exports as DerivativesTradingPortfolioMarginRestAPI, index_d_exports$1 as DerivativesTradingPortfolioMarginWebsocketStreams, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError };
//# sourceMappingURL=index.d.ts.map