Why do you get 'reduceOnly rejection' errors

Q:
When you place an order with ‘reduceOnly=true’ in one-way mode or ‘SELL LONG’/‘BUY SHORT’ in hedge mode, you could get below error:
“-2022: ReduceOnly Order is rejected”
What could be the possible reasons?

A:
Several reasons you might want to check for reduceOnly order rejection:

You don’t have any position to close
You’re at the edge of liquidation
You have other open orders that would be filled before the failed one and close all positions
A little bit explanation for #3 -

Let’s say your current position is 1 BTC for short; And you have an open order to close this BTC at 10000; If you place another order to close 1 BTC at 9999, it’d be rejected. (Because the order with 10000 for sure would be filled and close everything before this “9999” order )

If you still think you shouldn’t have been rejected after checking above things, please contact CS

1 Like

Sounds like the error message has little to do with the actual cause. Please return a more understandable error message instead when this happens.

I, for example, get the same error sometimes when trading in Hedge Mode, without me ever sending reduceOnly as a parameter.

When you place an order with ‘reduceOnly=true’ in one-way mode or ‘SELL LONG’/‘BUY SHORT’ in hedge mode,