Add pricing fetches. Add unit test.
Some checks failed
Build .NET Project / build (push) Has been cancelled

This commit is contained in:
2026-03-19 18:07:52 -04:00
parent 22f30466bc
commit 230e2b931f
3 changed files with 136 additions and 19 deletions

View File

@@ -5375,7 +5375,12 @@ namespace MarketData.Helper
//********************************************************************************************************************************************************************************************************
// ******************************************************************************** H I S T O R I C A L P R I C I N G Y A H O O *********************************************************************
//********************************************************************************************************************************************************************************************************
/// <summary>
/// GetDailyPrice - This feed returns a single price for the given pricing date.
/// </summary>
/// <param name="symbol"></param>
/// <param name="pricingDate"></param>
/// <returns></returns>
public static Price GetDailyPrice(String symbol, DateTime pricingDate)
{
if (null == symbol) return null;
@@ -5396,6 +5401,13 @@ namespace MarketData.Helper
return price;
}
/// <summary>
/// GetDailyPrices - Retrieve prices from Yahoo. This feed can retrieve historical prices from Yahoo as well as current day price
/// </summary>
/// <param name="symbol"></param>
/// <param name="startDate"></param>
/// <param name="endDate"></param>
/// <returns></returns>
public static Prices GetDailyPrices(String symbol, DateTime startDate, DateTime endDate)
{
HttpNetResponse httpNetResponse=null;