public object run(LogicProcess process) { bool success = false; IMarketResponse response = process.comm.SendQueryMarketRequest(process.commodity); if (response.getType() == ResponseType.qCommodity) { MQCommodity resp = (MQCommodity)response; success = resp.getAsk() <= resp.getBid(); next(process, success); } return(response); }
public object run(LogicProcess process) { bool success = false; IMarketResponse response = process.comm.SendQueryMarketRequest(process.commodity); //myLogger.Info("BidCompare: Sent query"); if (response.getType() == ResponseType.qCommodity) { MQCommodity resp = (MQCommodity)response; success = resp.getBid() >= process.price; next(process, success); } return(response); }
public override int getBid() { return(info.getBid()); }