//public Boolean IsValidUpDownRange(RawMarketData rmdFuture) //{ // double upPrice = kfi.YesterdayLastPrice + 0.7 * (kfi.UpLimit - kfi.YesterdayLastPrice); // double downPrice = kfi.YesterdayLastPrice - 0.7 * (kfi.YesterdayLastPrice - kfi.DownLimit); // if (rmdFuture.CurPrice < upPrice && rmdFuture.CurPrice > downPrice) // { // return true; // } // return false; //} public OptionContOORData(String code, double enterValue, Account account, IOOR_Product optionProduct) { Code = code; EnterValue = enterValue; _Account = account; TradingOrders = new ArrayList(); CancelOrders = new ArrayList(); OptionProduct = optionProduct; }
public OptionContOOR(String code, double enterValue, Account account, IOOR_Product optionProduct) { _context = new OptionContOORData(code, enterValue, account, optionProduct); _state = new OptionContOOR_Trading(_context); }