Merge branch 'DJ_ICE_release_candidates' into DJ_ICE

This commit is contained in:
Taha Afzal committed 2020-06-11 21:22:18 -04:00
commit 04db38d627
1 file changed
+1 -1
@@ -534,7 +534,7 @@ namespace mbts.spark {
if (ticks_from_settle.HasValue) {
var max_cross = (current_settings?.ladder_order_limits?.max_settlement_cross_ticks)?.as_nullable();
if (max_cross.HasValue) {
if (side == Side.Sell ? ticks_from_settle < max_cross.Value : ticks_from_settle > max_cross.Value)
if (side == Side.Sell ? ticks_from_settle < (-1 * max_cross.Value) : ticks_from_settle > max_cross.Value)
msg = $"exceeds settle cross ticks limit ({ticks_from_settle.Value})";
}
}