Example #1
0
        public static async Task <List <FundStockPosition> > GetFundStockPositions(string fundCode, DateTime date)
        {
            var positions = DataDao.GetFundStockPositions(fundCode, date);

            if (DataHelper.IsDataReady(positions?.FirstOrDefault()))
            {
                return(positions);
            }
            else
            {
                positions = await EmService.GetFundStockPositions(fundCode, date);

                DataDao.UpdateFundStockPositions(positions);
                return(positions);
            }
        }