Why it is only this long
The order updates itself
order.filled is live. You hold the object place() gave you and read it — no lookup, no bookkeeping.The hedge picks its own venue
A market order across
HEDGE_ON walks the merged book and takes the cheapest liquidity, wherever it is.Fees are in the comparison
fee_offset on the hedge venues means “cheapest” accounts for what each one charges you.Dead venues drop out
A venue that stops publishing leaves the book on its own, so the hedge never routes into a stale price.
Picking up after a restart
SORY keeps nothing on disk. Ask the venues what you still have working:Before you point it at real money
post_only and time_in_force are refused on any venue that has not proven it supports them, rather than sent without. Check the venues table before you rely on either.