Testing options orders in sandbox

For developers testing options orders in sandbox: how to force fills, partial fills, cancels, and rejects.

In sandbox, a simulator fills certain options orders. Use it to test specific scenarios.

Filling orders after hours

Options orders placed outside market hours are filled at market open, as in production. To test an immediate fill, set the ignoreMarketHoursForTest flag on the account. See Testing in sandbox for the request.

Order testing scenarios

To test specific options order scenarios, place orders on options contracts in these underlying symbols. Each symbol forces a different behavior.

Underlying symbolHandling
MMMReceive multiple fills.
EATReceive a partial fill, then submit a cancel.
AMZNThe system cancels the order.
AAPLThe whole order is filled.
METAReceive a partial fill, then an unsolicited cancel.
ASSTThe order is rejected.
IRENReceive an order acknowledgment, with no further action.

Did this page help you?