fix: Bind SpreaderType dropdown to all algo types in synth ladder

Bugs (fixed):
  * The SpreaderType dropdown only works for plain spreader orders. It
    doesn't work for icebergs, leans, etc.
This commit is contained in:
John Colvin committed 2025-04-10 16:16:43 -04:00
1 parent 960a8af77a
commit 4d4aefc0a7
1 file changed
+4 -4
@@ -779,10 +779,10 @@ namespace mbts.spark {
// is what was specificed in the extra parameter box
(price, def.StopLimit.StopPrice) =
(def.StopLimit.StopPrice, price);
} else if (def.Spreader is not null) {
var strategy = def.Spreader.ExecutionStrategy;
if (strategy is not null) {
strategy.SpreaderType = spreader_type;
}
if (security.HasSynthetic) {
foreach (var d in OrderDataHelper.enumerate_algo_hierarchy(def).Where(d => d.CustomCase == CustomOrderDefinition.CustomOneofCase.Spreader)) {
d.Spreader.ExecutionStrategy.SpreaderType = spreader_type;
}
}
}