General updates

This commit is contained in:
2024-04-09 18:07:51 -04:00
parent f794f215dc
commit 97569dca2a
5 changed files with 52 additions and 14 deletions

View File

@@ -5227,6 +5227,7 @@ namespace MarketData.Helper
}
return prices;
}
public static Price GetPriceAsOf(String symbol, DateTime asOf)
{
HttpNetResponse httpNetResponse=null;
@@ -5293,12 +5294,6 @@ 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 *********************************************************************
//********************************************************************************************************************************************************************************************************
// *********************************************************************************************************************************************************
// *********************************************************************************************************************************************************
// ********************************************************************************************************************************************************************************************************************
// ******************************************************************************************************** N E W V E R S I O N *************************************************************************************
// ********************************************************************************************************************************************************************************************************************
// Implemented 06/10/2022
public static Price GetDailyPrice(String symbol,DateTime pricingDate)
@@ -5319,12 +5314,15 @@ namespace MarketData.Helper
HttpNetResponse httpNetResponse=null;
try
{
startDate=startDate.Date;
endDate=endDate.Date;
if(startDate>endDate)
{
DateTime tempDate=startDate;
startDate=endDate;
endDate=tempDate;
}
MDTrace.WriteLine(LogLevel.DEBUG,String.Format("[MarketDataHelper:GetDailyPrices]{0} start:{1} end:{2}",symbol,Utility.DateTimeToStringMMHDDHYYYY(startDate),Utility.DateTimeToStringMMHDDHYYYY(endDate)));
StringBuilder sb = new StringBuilder();
String strRequest;