コード例 #1
0
        public Task <MarketPriceRes> GetLatestPrice(string ticker)
        {
            var handler = new MarketPriceHandler();

            return(handler.Execute(new MarketPriceReq
            {
                PriceDate = DateTime.Now,
                Ticker = ticker,
                ApiFunction = ApiFunction.TIME_SERIES_INTRADAY
            }));
        }
コード例 #2
0
        public Task <MarketPriceRes> GetPrevClose(string ticker)
        {
            var handler = new MarketPriceHandler();

            return(handler.Execute(new MarketPriceReq
            {
                PriceDate = DateTime.Now,
                Ticker = ticker,
                getPreviousClose = true,
                ApiFunction = ApiFunction.TIME_SERIES_DAILY
            }));
        }