Which documentation are you referring to? I can’t find the definition anywhere. This is the definition of TRAILING_STOP_MARKET from the futures documentation. The lowest/highest price can be retrieved from the kline endpoint.
TRAILING_STOP_MARKET:
BUY: the lowest price after order placed <= activationPrice, and the latest price >= the lowest price * (1 + callbackRate)
SELL: the highest price after order placed >= activationPrice, and the latest price <= the highest price * (1 - callbackRate)
For TRAILING_STOP_MARKET, if you got such error code.
{"code": -2021, "msg": "Order would immediately trigger."}
means that the parameters you send do not meet the following requirements:
BUY: activationPrice should be smaller than latest price.
SELL: activationPrice should be larger than latest price.
Hi , As ACTIVATION PRICE is optional at NEW ORDER API, if I don’t determine the AP , WHEN the order will be triggered ? Wich Will be the rules / conditions for this situation ?