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 })); }
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 })); }