I’m trying to make a limit order with timeInForce = ‘GTX’ (post only) and ‘reduceOnly=true’, but the order is created without reduceOnly parameter.
I’m able to create the same order with timeInForce = ‘GTC’ - this way ‘reduceOnly=true’ is working fine.
MJW
2
Not true.
Your full request and raw error msg pls
MJW
4
For 1. - you set reduceOnly to 1 which makes it false
For 2. - you failed because you don’t have any LTCUSDT position to reduce.
It has nothing to do with “GTX”. Open some position and set reduceOnly = true and you’d succeed no matter whether it’s GTC or GTX
MJW, thanks for your help. I found my mistake:
- ‘reduceOnly’ => ‘true’ (must have type = string, not boolean)
- When making ‘reduceOnly’ order I had another open order that would be filled before (as written in p.3 here https://dev.binance.vision/t/why-do-you-get-reduceonly-rejection-errors/1198)
Finally I was able to make an order with timeInForce = ‘GTX’ (post only) and ‘reduceOnly=true’,