Пример #1
0
        static int?GetCurrentAvailabilityAmount(string stockCode) // 获取当前可用数量
        {
            RefreshTraderStockData();
            var ret = StockDataListFromTrader.Where(x => x.Zqdm == stockCode);

            return(ret.Count() == 0 ? -1 : ret.First().Kysl);
        }
Пример #2
0
        static int?GetCurrentAmount(string stockCode) // 获取当前持仓数量
        {
            RefreshTraderStockData();
            var ret = StockDataListFromTrader.Where(x => x.Zqdm == stockCode);

            return(ret.Count() == 0 ? null : ret.First().Zqsl);
        }