static int?GetCurrentAvailabilityAmount(string stockCode) // 获取当前可用数量 { RefreshTraderStockData(); var ret = StockDataListFromTrader.Where(x => x.Zqdm == stockCode); return(ret.Count() == 0 ? -1 : ret.First().Kysl); }
static int?GetCurrentAmount(string stockCode) // 获取当前持仓数量 { RefreshTraderStockData(); var ret = StockDataListFromTrader.Where(x => x.Zqdm == stockCode); return(ret.Count() == 0 ? null : ret.First().Zqsl); }