Add pricing fetches. Add unit test.
Some checks failed
Build .NET Project / build (push) Has been cancelled
Some checks failed
Build .NET Project / build (push) Has been cancelled
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user