Sandbox Use Market Close

Setting key
sandbox_use_market_close
Default
OFF

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.

Financial Information Disclaimer

This site provides general information about ACondor, a software tool for automating options trading strategies. Nothing on this site is investment, tax, or financial advice. Options trading involves substantial risk of loss. Past behavior of any strategy does not guarantee future results. Consult a licensed financial professional before trading options. ACondor may earn a commission from affiliate links at no extra cost to you.