- A new order is placed (matching runs automatically for that market)
- A matching transaction is sent to the protocol
Reduce vs Reduce
Closing-long orders are matched against closing-short orders. This pairs traders who are both reducing or closing existing positions.
Leftover Reduce vs Same-Side Increase
Any remaining unmatched reduce orders are matched against increase orders on
the same side. For example, leftover closing-long orders match against
opening-long orders. A trader closing a long is paired with a trader opening a
new long.
Order priority
Within each step, orders are processed using price-time priority:- Liquidation close orders are always processed first.
- Price priority orders with a more favorable execution price threshold are filled before others.
- Time priority (FIFO) among orders at the same price level, earlier orders are filled first.