skyblu
1
According to this announcement: Binance to Extend the Self-Trade Prevention (STP) Function to All Binance Spot and Margin Users | Binance Support
STP will be mandatory, but in the docs it still says the selfTradePreventionMode in New Order (TRADE) is optional.
So, after 2023-10-26 08:00 (UTC) can we still send orders without selfTradePreventionMode set or will it be rejected?
Hi skyblu,
The selfTradePreventionMode is optional because there’s a default value if you do not provide it in the request.
Quoting from the announcement you linked:
- The “EXPIRE_MAKER” STP mode will be the default mode for all trading pairs and orders on Binance Spot and Margin.
So if you don’t provide the value in the parameter, it will default to EXPIRE_MAKER
. Previously, the default was NONE
.
If you ever want to know what the allowed and default STP values are, please check exchangeInfo.
Hope that helps.
1 Like