I’ve noticed that the futures API returns incorrect error code in the following scenario.
The API documentation lists the following error code:
-4015 INVALID_CL_ORD_ID_LEN
Client order id is not valid.
Client order id length should be less than 32 chars
I’ve just recently made the following request:
https://fapi.binance.com/fapi/v1/order?symbol=STORJUSDT&side=BUY&type=LIMIT&timeInForce=IOC&quantity=90&newOrderRespType=RESULT&price=0.2709&newClientOrderId=TPF_6338262ce89e9cc99b92e76d4c1e9cc3&reduceOnly=true
Which had a client order id that is 36 characters long. (timestamp and signature removed)
This was working in the past month, but recently I received the following error to this:
{"msg":"Illegal characters found in parameter 'newClientOrderId'; legal range is '^[a-zA-Z0-9-_]{1,32}$'.","code":-1100}
The sent client order has acceptable characters, but is too long. I believe the error code -4015 should be returned instead of -1100.