General updates
This commit is contained in:
@@ -43,9 +43,17 @@ namespace MarketDataUnitTests
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void LatestPriceXXXRetrieval()
|
||||
public void LatestPriceRetrieval()
|
||||
{
|
||||
String symbol="ACWX";
|
||||
String symbol="AAPL";
|
||||
Price price=MarketDataHelper.GetLatestPrice(symbol);
|
||||
Assert.IsTrue(null!=price && price.IsValid);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void LatestPriceGoogleRetrieval()
|
||||
{
|
||||
String symbol="AAPL";
|
||||
Price price=MarketDataHelper.GetLatestPriceGoogle(symbol);
|
||||
Assert.IsTrue(null!=price && price.IsValid);
|
||||
}
|
||||
@@ -55,7 +63,7 @@ namespace MarketDataUnitTests
|
||||
{
|
||||
String symbol="AAPL";
|
||||
Price price=MarketDataHelper.GetLatestPriceYahoo(symbol);
|
||||
Assert.IsTrue(null!=price,"No Price");
|
||||
Assert.IsTrue(null!=price,"No Price from Yahoo");
|
||||
Assert.IsTrue(price.IsValid,"Invalid Price");
|
||||
}
|
||||
|
||||
@@ -68,6 +76,27 @@ namespace MarketDataUnitTests
|
||||
Assert.IsTrue(price.IsValid,"Invalid Price");
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void DailyPricesYahoo()
|
||||
{
|
||||
String symbol="AAPL";
|
||||
DateTime startDate=DateTime.Parse("04-08-2024");
|
||||
DateTime endDate=DateTime.Parse("04-01-2024");
|
||||
|
||||
Prices prices = MarketDataHelper.GetDailyPrices(symbol, startDate, endDate);
|
||||
Assert.IsTrue(null!=prices,"No Price from BigCharts");
|
||||
}
|
||||
//public static Prices GetDailyPrices(String symbol, DateTime startDate, DateTime endDate)
|
||||
|
||||
[TestMethod]
|
||||
public void HistoricalPriceBigChartsRetrieval()
|
||||
{
|
||||
String symbol="AAPL";
|
||||
DateTime asOf=DateTime.Now;
|
||||
Price price = MarketDataHelper.GetPriceAsOf(symbol, asOf);
|
||||
Assert.IsTrue(null!=price,"No Price from BigCharts");
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void ConsumerPriceIndexBureauOfLaborStatisticsRetrieval()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user