import { ESide } from "@utils/contractRules";

export interface PositionDeliveryModalProps {
  /**
   * show
   * */
  open: boolean;
  /**
   * onConfirm
   * */
  onConfirm: (v: any) => void;

  /**
   * symbol 合约名
   * */
  symbol: string;
  /**
   *  side 方向
   * */
  side: ESide;
  /**
   *  level 杠杆
   * */
  level: string | number;
  /**
   * openPrice 开仓价
   * */
  avgEntryPrice: string | number;
  tickSizeScale: number;
  /**
   * newestPrice 最新价
   * */
  newestPrice: string | number;
  /**
   * positionAmt持仓张数
   * */
  positionAmt: string | number;

  ctVal: string;
  ctValScale: number;
  costSizeScale: number;
  posMargin: string | number;
  initPxs: any;
  setInitPxs: any;
  onRef?: any;
}
