コード例 #1
0
        /// <summary>
        /// Called by UpdatePortfolioPrices and LimitOrderChecks
        /// </summary>
        /// <param name="securities"></param>
        /// <returns></returns>
        public void GetUpdatedPricing(List <Security> securities)
        {
            var resultList = new List <Security>();

            if (securities != null && securities.Count > 0)
            {
                using (var yahooAPI = new YahooAPIService())
                {
                    yahooAPI.GetUpdatedPricing(securities);
                }
            }
        }
コード例 #2
0
        public async Task GetUpdatedPricing(List <Position> positions)
        {
            var secList = new List <Security>();

            foreach (var pos in positions)
            {
                secList.Add(pos.Security);
            }


            if (positions != null && positions.Count > 0)
            {
                using (var yahooAPI = new YahooAPIService())
                {
                    await yahooAPI.GetUpdatedPricing(positions);
                }
            }
        }