Comment on page
Self Trade Prevention
The implementation of our Self-Trade Prevention (STP) feature enables users trading all instruments via API to configure an STP parameter for their orders. This feature effectively mitigates unintentional self-trading. With this parameter, users have the flexibility to determine the outcome in case of a self-trade, whether to expire the maker order, the taker order, or both orders.
There are three distinct modes for the STP function, more details
- 1.EXPIRE_MAKER : close the resting order
- 2.EXPIRE_TAKER (Default): close the aggressive order
- 3.EXPIRE_BOTH : close both