Sandbox Use Market Close
What it does
In the tastytrade sandbox only, submit closing orders as market orders instead of limit orders. The sandbox never fills limit orders above $3, so multi-leg closes sit in closing_working state forever. Market orders fill at $1 in sandbox, exercising the real fill-event path. An environment guard in broker.py enforces this OFF for live accounts regardless of this flag.
When to change it
Turn ON during sandbox validation to allow the bot to exercise the full fill path for multi-leg exits. Must be OFF for all live accounts.
Safe range
ON (sandbox only) or OFF (always for live).
Example
Iron condor close order at $2.40 debit sits unfilled in sandbox (limit above $3 cap). With sandbox_use_market_close=ON, it submits as market and fills at $1, booking the close.