InsiderTransactionDA refactoring and TradeBook updates.
This commit is contained in:
@@ -17,7 +17,7 @@ namespace MarketData.DataAccess
|
||||
MySqlConnection sqlConnection = null;
|
||||
MySqlDataReader sqlDataReader = null;
|
||||
MySqlCommand sqlCommand=null;
|
||||
InsiderTransactionSummaries insiderTransactionSummaries=new InsiderTransactionSummaries();
|
||||
InsiderTransactionSummaries insiderTransactionSummaries =new InsiderTransactionSummaries();
|
||||
String strQuery = null;
|
||||
|
||||
try
|
||||
@@ -44,7 +44,7 @@ namespace MarketData.DataAccess
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
MDTrace.WriteLine(LogLevel.DEBUG,exception);
|
||||
MDTrace.WriteLine(LogLevel.DEBUG,String.Format("GetInsiderTransactionSummaries Exception: {0}",exception.ToString()));
|
||||
return null;
|
||||
}
|
||||
finally
|
||||
@@ -96,7 +96,7 @@ namespace MarketData.DataAccess
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
MDTrace.WriteLine(LogLevel.DEBUG,exception);
|
||||
MDTrace.WriteLine(LogLevel.DEBUG,String.Format("GetInsiderTransactions Exception: {0}",exception.ToString()));
|
||||
return null;
|
||||
}
|
||||
finally
|
||||
@@ -173,7 +173,7 @@ namespace MarketData.DataAccess
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
MDTrace.WriteLine(LogLevel.DEBUG,exception);
|
||||
MDTrace.WriteLine(LogLevel.DEBUG,String.Format("InsertInsiderTransactions Exception: {0}",exception.ToString()));
|
||||
MDTrace.WriteLine(LogLevel.DEBUG,"Query was '" + strQuery + "'");
|
||||
return false;
|
||||
}
|
||||
@@ -211,7 +211,7 @@ namespace MarketData.DataAccess
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
MDTrace.WriteLine(LogLevel.DEBUG,exception);
|
||||
MDTrace.WriteLine(LogLevel.DEBUG,String.Format("DeleteInsiderTransactions Exception: {0}",exception.ToString()));
|
||||
if (null != strQuery) MDTrace.WriteLine(LogLevel.DEBUG,"Query was " + strQuery);
|
||||
return false;
|
||||
}
|
||||
@@ -250,7 +250,7 @@ namespace MarketData.DataAccess
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
MDTrace.WriteLine(LogLevel.DEBUG,exception);
|
||||
MDTrace.WriteLine(LogLevel.DEBUG,String.Format("DeleteInsiderTransactionsYearsGreaterEqual Exception: {0}",exception.ToString()));
|
||||
if (null != strQuery) MDTrace.WriteLine(LogLevel.DEBUG,"Query was " + strQuery);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1241,7 +1241,7 @@ 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=15)
|
||||
public static InsiderTransactions GetInsiderTransactions(String symbol,int timePeriodDays=5)
|
||||
{
|
||||
MemoryStream memoryStream = null;
|
||||
HttpNetResponse httpNetResponse=null;
|
||||
|
||||
Reference in New Issue
Block a user