Skip to main content

Flatten Everything

This command will cancel all active orders and flatten all positions across all accounts. This is the nuclear option for when you absolutely must close everything.

danger

Please use caution. Flatten everything will flatten all positions and orders immediately.

Example Payload

key=your-secret-key;
command=flatteneverything;
On Tradovate

With destination=tradovate;, FLATTENEVERYTHING liquidates every open position and cancels every working order across all linked Tradovate identities, live and demo alike — the same blast radius as on NinjaTrader. You can optionally include account= to limit the sweep to a single Tradovate account.