Self-Trade Prevention Option | STP Flag | Description |
---|---|---|
Decrement & cancel (default) | dc | Cancel smaller order and decrement larger order by the smaller size. If the same size, cancel both. |
Cancel oldest | co | Cancel older (resting) order in full. Continue to execute the newer taking order. |
Cancel newest | cn | Cancel newer (taking) order in full. Let the old resting order remain on the order book. |
Cancel both | cb | Cancel both orders immediately. |
market
order using decrement and cancel (dc
) self-trade prevention encounters an open limit order, the behavior depends on which fields were specified for the market order.
funds
and size
are specified:
funds
is specified (and not size
):
Order State | Description |
---|---|
received | Valid orders that are sent to the matching engine and confirmed immediately. |
open | Any part of the order not filled immediately. Orders stay open until canceled or filled by new orders. |
done | An full order executed against another order immediately. A partial order filled or canceled (and no longer eligible for matching) |