This commit is contained in:
@@ -87,47 +87,6 @@ namespace MarketData.DataAccess
|
||||
if (null != sqlConnection) sqlConnection.Close();
|
||||
}
|
||||
}
|
||||
|
||||
// [Obsolete("This method is obsolete. Use GetSopLimits(String symbol) instead.", false)]
|
||||
// public static StopLimit GetStopLimit(String symbol)
|
||||
// {
|
||||
// MySqlConnection sqlConnection = null;
|
||||
// MySqlDataReader sqlDataReader = null;
|
||||
// MySqlCommand sqlCommand = null;
|
||||
// String strQuery = null;
|
||||
|
||||
// try
|
||||
// {
|
||||
// StringBuilder sb = new StringBuilder();
|
||||
// if (null == symbol) return null;
|
||||
// sqlConnection = SqlUtils.CreateMySqlConnection(MainDataSource.Instance.LocateDataSource("portfolio_data"));
|
||||
// sb.Append("select symbol,stop_limit,shares,stop_type from stoplimits ");
|
||||
// sb.Append("where symbol='").Append(symbol).Append("'");
|
||||
// strQuery = sb.ToString();
|
||||
// sqlCommand = new MySqlCommand(strQuery, sqlConnection);
|
||||
// sqlCommand.CommandTimeout = SqlUtils.COMMAND_TIMEOUT;
|
||||
// sqlDataReader = sqlCommand.ExecuteReader();
|
||||
// if (!sqlDataReader.Read()) return null;
|
||||
// StopLimit stopLimit = new StopLimit();
|
||||
// stopLimit.Symbol = sqlDataReader.GetString(0);
|
||||
// stopLimit.StopPrice = sqlDataReader.GetDouble(1);
|
||||
// stopLimit.Shares = sqlDataReader.GetDouble(2);
|
||||
// stopLimit.StopType = sqlDataReader.GetString(3);
|
||||
// return stopLimit;
|
||||
// }
|
||||
// catch (Exception exception)
|
||||
// {
|
||||
// MDTrace.WriteLine(LogLevel.DEBUG, exception);
|
||||
// return null;
|
||||
// }
|
||||
// finally
|
||||
// {
|
||||
// if (null != sqlCommand) sqlCommand.Dispose();
|
||||
// if (null != sqlDataReader) { sqlDataReader.Close(); sqlDataReader.Dispose(); }
|
||||
// if (null != sqlConnection) sqlConnection.Close();
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
public static StopLimit GetStopLimit(String symbol,double shares)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user