fix typeo in previous commit

This commit is contained in:
John Colvin committed 2018-03-08 13:33:53 -05:00
1 parent 7a1e8f9570
commit 6cfc519d2d
2 files changed
+4 -4

No files matched your search

@@ -55,11 +55,11 @@ namespace mbts.spark {
public override ICell create_cell(LegSpreaderParamsTuple leg_tup) { return new DynamicTypeCell(this, leg_tup); }
}
class SizeModel : RowModelBase<double> {
public SizeModel(bool read_only) {
class QuantityModel : RowModelBase<double> {
public QuantityModel(bool read_only) {
this.read_only = read_only;
}
public override string display_name { get; } = "";
public override string display_name { get; } = "Quantity";
public override string[] section_path { get; } = new string[0];
public override bool read_only { get; }
public override double get_value(LegSpreaderParamsTuple leg_tup) { return leg_tup.leg.Side == Side.Buy ? leg_tup.leg.Quantity : -leg_tup.leg.Quantity; }
@@ -106,7 +106,7 @@ namespace mbts.spark {
.Select(l => new LegSpreaderParamsTuple(l, _strategy.LegParamsMap[l.Security.Id].Clone()))
);
rows = new IRowModel[] {
new SizeModel(!is_new),
new QuantityModel(!is_new),
new PriceMultiplierModel(),
new IsQuoteModel(),
//new EnableHedgingModel(),