Example #1
0
        public void valid_symbol_dividend_with_from_and_to_date_returns_result()
        {
            EODHistoricalDataClient client = new EODHistoricalDataClient(Consts.ApiToken, true);
            List <Dividend>         divs   = client.GetDividends(Consts.TestSymbol, Consts.StartDate, Consts.EndDate);

            Assert.IsTrue(divs.Count > 0);
        }
Example #2
0
        public void valid_symbol_dividend_with_to_date_returns_result()
        {
            using var client = new EODHistoricalDataClient(Consts.ApiToken, true);
            var divs = client.GetDividends(Consts.TestSymbol, null, Consts.EndDate);

            Assert.IsTrue(divs.Count > 0);
        }
Example #3
0
 public void null_symbol_dividend_throws_exception()
 {
     EODHistoricalDataClient client = new EODHistoricalDataClient(Consts.ApiToken);
     List <Dividend>         divs   = client.GetDividends(null, null, null);
 }