Fix InsiderTransaction Feed

This commit is contained in:
2024-02-23 15:51:43 -05:00
parent 5a2d4c6a79
commit 1d53646433
14 changed files with 3 additions and 13 deletions

View File

@@ -107,7 +107,6 @@ namespace MarketData.Helper
symbol = symbol.ToUpper();
MDTrace.WriteLine(LogLevel.DEBUG,String.Format("Load insider transactions for {0}", symbol));
InsiderTransactions insiderTransactions = MarketDataHelper.GetInsiderTransactions(symbol);
// public static SECFilings GetSECInsiderTransactions(String symbol,String cik,int timePeriodDays=7)
if (null == insiderTransactions || 0 == insiderTransactions.Count)
{
MDTrace.WriteLine(LogLevel.DEBUG,String.Format("No insider transactions for {0}", symbol));

View File

@@ -1245,7 +1245,8 @@ namespace MarketData.Helper
// ***************************************************************************************************************************************************************************************
// ************************************ S E C F I L I N G S - F O R M 4 & F O R M 5 - F O R I N S I D E R T R A N S A C T I O N S S E C . G O V ***************************S
// ***************************************************************************************************************************************************************************************
public static InsiderTransactions GetInsiderTransactions(String symbol,int timePeriodDays=7)
// public static InsiderTransactions GetInsiderTransactions(String symbol,int timePeriodDays=7)
public static InsiderTransactions GetInsiderTransactions(String symbol,int timePeriodDays=180)
{
MemoryStream memoryStream = null;
HttpNetResponse httpNetResponse=null;
@@ -1256,6 +1257,7 @@ namespace MarketData.Helper
try
{
MDTrace.WriteLine(LogLevel.DEBUG,String.Format("GetInsiderTransactions: symbol:{0} dayCount:{1}",symbol,timePeriodDays));
DateGenerator dateGenerator=new DateGenerator();
String cik=PricingDA.GetCIKForSymbol(symbol);
if(null==cik)