Match fractional share lots and preserve order quantities across restart
This commit is contained in:
@@ -26,5 +26,5 @@ WITH selected_events AS (
|
||||
AND (e.at_ms,e.execution,o.seq)<(:before_ms,:before_execution,:before_order)
|
||||
)
|
||||
SELECT at_ms,execution,order_seq,account,market,outcome,side,kind,price,quantity,role
|
||||
FROM legs WHERE CASE WHEN :cash THEN price*quantity/100.0 ELSE quantity END >= :minimum
|
||||
FROM legs WHERE CASE WHEN :cash THEN price*quantity/10000.0 ELSE quantity/100.0 END >= :minimum
|
||||
ORDER BY at_ms DESC,execution DESC,order_seq DESC LIMIT :limit
|
||||
|
||||
Reference in New Issue
Block a user