Пример #1
0
        public void valid_symbol_split_with_from_and_to_date_and_both_tradedate_returns_result()
        {
            using var client = new EODHistoricalDataClient(Consts.ApiToken, true);
            var options = client.GetOptions(Consts.TestSymbol, Consts.OptionsStartDate, Consts.OptionsEndDate, Consts.OptionsTradeStartDate, Consts.OptionsTradeEndDate);

            Assert.IsNotNull(options);
            Assert.IsTrue(options.Data.Count > 0);
        }
Пример #2
0
        public void options_valid_symbols_returns_prices()
        {
            using var client = new EODHistoricalDataClient(Consts.ApiToken, true);
            var options = client.GetOptions(Consts.TestSymbol, null, null);

            Assert.IsNotNull(options);
            Assert.IsTrue(options.Data.Count > 0);
        }
        public void valid_symbol_split_with_to_date_returns_result()
        {
            EODHistoricalDataClient client = new EODHistoricalDataClient(Consts.ApiToken, true);
            Options options = client.GetOptions(Consts.TestSymbol, null, Consts.OptionsEndDate);

            Assert.IsNotNull(options);
            Assert.IsTrue(options.Data.Count > 0);
        }
Пример #4
0
 public void options_null_list_throws_exception()
 {
     using var client = new EODHistoricalDataClient(Consts.ApiToken);
     var options = client.GetOptions(null, null, null);
 }