public MarketDetph Clone() { MarketDetph newMD = new MarketDetph(); // 合约ID newMD.instrumentId = instrumentId; // 交易所ID newMD.exchangeId = exchangeId; // 交易日 newMD.tradingday = tradingday; // 更新时间 newMD.updateTime = updateTime; // 更新毫秒 newMD.updateMS = updateMS; // 最新价 newMD.latestPrice = latestPrice; // 开盘价 newMD.open = open; // 最高价 newMD.high = high; // 最低价 newMD.low = low; // 现量 newMD.latestVol = latestVol; // 持仓量 newMD.openInt = openInt; // 收盘价 newMD.todayClosePrice = todayClosePrice; // 成交金额 newMD.turnover = turnover; // 均价 newMD.avgLatestPrice = avgLatestPrice; // 昨结算价 newMD.preSettlementPrice = preSettlementPrice; // 昨收价 newMD.yesterdayClosePrice = yesterdayClosePrice; // 昨持仓量 newMD.yesterdayOpenInt = yesterdayOpenInt; // 结算价 newMD.settlementPrice = settlementPrice; // 涨停价 newMD.upperLimitPrice = upperLimitPrice; // 跌停价 newMD.lowerLimitPrice = lowerLimitPrice; // 买一价 newMD.bidPrice1 = bidPrice1; // 卖一量 newMD.bidVol1 = bidVol1; // 卖一价 newMD.askPrice1 = askPrice1; // 卖一量 newMD.askVol1 = askVol1; // 买二价 newMD.bidPrice2 = bidPrice2; // 买二量 newMD.bidVol2 = bidVol2; // 卖二价 newMD.askPrice2 = askPrice2; // 卖二量 newMD.askVol2 = askVol2; // 买三价 newMD.bidPrice3 = bidPrice3; // 买三量 newMD.bidVol3 = bidVol3; // 卖三价 newMD.askPrice3 = askPrice3; // 卖三量 newMD.askVol3 = askVol3; // 买四价 newMD.bidPrice4 = bidPrice4; // 买四量 newMD.bidVol4 = bidVol4; // 卖四价 newMD.askPrice4 = askPrice4; // 卖四量 newMD.askVol4 = askVol4; // 买五价 newMD.bidPrice5 = bidPrice5; // 买五量 newMD.bidVol5 = bidVol5; // 卖五价 newMD.askPrice5 = askPrice5; // 卖五量 newMD.askVol5 = askVol5; return(newMD); }
public bool CompareTo(MarketDetph o) { return(instrumentId == o.instrumentId && exchangeId == o.exchangeId && tradingday == o.tradingday && updateTime == o.updateTime && updateMS == o.updateMS); }