StopLimitDA.cs Removed DeleteStopLimt(String symbol)
Added DeleteStopLimit(String symbol, double shares)
Added GetStopLimits(String symbol)
Obsoleted GetStopLimit(String symbol)
StopLimit.cs - Commented out references to EffectiveDate
This commit is contained in:
@@ -57,7 +57,7 @@ namespace MarketData.MarketDataModel
|
||||
public double StopPrice{get;set;}
|
||||
public double Shares{get;set;}
|
||||
public String StopType{get;set;}
|
||||
public DateTime EffectiveDate{get;set;} // if the EffectiveDate is Epoch then the StopLimit is taken to be in effect and is the most recent. Otherwise it is considered an historical stop limit
|
||||
// public DateTime EffectiveDate{get;set;} // if the EffectiveDate is Epoch then the StopLimit is taken to be in effect and is the most recent. Otherwise it is considered an historical stop limit
|
||||
|
||||
public StopLimit()
|
||||
{
|
||||
@@ -70,7 +70,7 @@ namespace MarketData.MarketDataModel
|
||||
sb.Append(Utility.FormatCurrency(StopPrice)).Append(",");
|
||||
sb.Append(Utility.FormatNumber(Shares, 3)).Append(",");
|
||||
sb.Append(StopType).Append(",");
|
||||
sb.Append(EffectiveDate.ToShortDateString());
|
||||
// sb.Append(EffectiveDate.ToShortDateString());
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ namespace MarketData.MarketDataModel
|
||||
nvpCollection.Add(new NVP("StopPrice", StopPrice.ToString()));
|
||||
nvpCollection.Add(new NVP("Shares", Shares.ToString()));
|
||||
nvpCollection.Add(new NVP("StopType", StopType.ToString()));
|
||||
nvpCollection.Add(new NVP("EffectiveDate", EffectiveDate.ToShortDateString()));
|
||||
// nvpCollection.Add(new NVP("EffectiveDate", EffectiveDate.ToShortDateString()));
|
||||
return nvpCollection;
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ namespace MarketData.MarketDataModel
|
||||
stopLimit.StopPrice=nvpDictionary["StopPrice"].Get<double>();
|
||||
stopLimit.Shares=nvpDictionary["Shares"].Get<double>();
|
||||
stopLimit.StopType=nvpDictionary["StopType"].Get<String>();
|
||||
stopLimit.EffectiveDate=nvpDictionary["EffectiveDate"].Get<DateTime>();
|
||||
// stopLimit.EffectiveDate=nvpDictionary["EffectiveDate"].Get<DateTime>();
|
||||
return stopLimit;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user