public List <YahooStockData> GetAvStockEod(string ticker, string start, string end, string period)
        {
            var startDate = DateTime.Parse(start);
            var endDate   = DateTime.Parse(end);

            return(AlphaVantageHelper.GetAvStockEod(ticker, startDate, endDate, period, avKey.ApiKey));
        }
Exemple #2
0
 public void OnGet()
 {
     AvModel.Ticker     = "USDJPY";
     AvModel.Interval   = 1;
     AvModel.Outputsize = 1;
     AvModel.FxData     = AlphaVantageHelper.GetAvFxBar(AvModel.Ticker, AvModel.Interval, AvModel.Outputsize, avKey.ApiKey);
 }
 public void OnGet()
 {
     AvModel.Ticker    = "IBM";
     AvModel.StartDate = DateTime.Parse("2018-01-01");
     AvModel.EndDate   = DateTime.Parse("2018-03-01");
     AvModel.StockData = AlphaVantageHelper.GetAvStockEod(AvModel.Ticker, AvModel.StartDate, AvModel.EndDate, AvModel.Period, avKey.ApiKey);
 }
Exemple #4
0
 public void OnGet()
 {
     AvModel.Ticker     = "IBM";
     AvModel.Interval   = 1;
     AvModel.Outputsize = 1;
     AvModel.StockData  = AlphaVantageHelper.GetAvStockBar(AvModel.Ticker, AvModel.Interval, AvModel.Outputsize, avKey.ApiKey);
 }
 public void OnGet()
 {
     AvModel.Ticker    = "USDEUR";
     AvModel.StartDate = DateTime.Parse("2018-01-01");
     AvModel.EndDate   = DateTime.Parse("2018-03-01");
     AvModel.Period    = "daily";
     AvModel.FxData    = AlphaVantageHelper.GetAvFxEod(AvModel.Ticker, AvModel.StartDate, AvModel.EndDate, AvModel.Period, avKey.ApiKey);
 }
Exemple #6
0
 public void OnPost()
 {
     AvModel.FxData = AlphaVantageHelper.GetAvFxBar(AvModel.Ticker, AvModel.Interval, AvModel.Outputsize, avKey.ApiKey);
 }
 public void OnPost()
 {
     AvModel = AlphaVantageHelper.GetAvStockQuote(AvModel.Ticker, avKey.ApiKey);
 }
Exemple #8
0
 public void OnPost()
 {
     AvModel = AlphaVantageHelper.GetAvSectorPerf(avKey.ApiKey);
 }
Exemple #9
0
 public AvSectorModel(IOptions <ApiKeySettings.AlphaVantage> alpha)
 {
     avKey   = alpha.Value;
     AvModel = AlphaVantageHelper.GetAvSectorPerf(avKey.ApiKey);
 }
 public void OnPost()
 {
     AvModel.FxData = AlphaVantageHelper.GetAvFxEod(AvModel.Ticker, AvModel.StartDate, AvModel.EndDate, AvModel.Period, avKey.ApiKey);
 }