Im trying to create order
And received error
msg: “Not all sent parameters were read; read ‘8’ parameter(s) but was sent ‘9’.”
The parameters in the request looks good, do you have another parameter sent in the body?
Hey @Simple_Development. Could you resolve your problem?
I created this order and got the same error:
Hi, yes i resolved problem. I did send POST request and pass params in request body. Works fine. But query params doesnt work yet. Support cannot help me.
For POST, PUT, and DELETE endpoints, the parameters may be sent as a query string or in the request body with content type application/x-www-form-urlencoded. You may mix parameters between both the query string and request body if you wish to do so.
@Simple_Development are you sure it’s resolved? I get this same error when sending the following parameter string as body of a post request:
I have tried to reduce the commands to the required ones only, but no luck, I always get the error “Not all sent parameters were read; read ‘9’ parameter(s) but was sent ‘10’.” (replace 9 and 10 by n and n+1, depending on the number of parameters). What am I doing wrong? I have set the header Content-Type to application/x-www-form-urlencoded, API key is correct, checked all that more than once. The Rest API works for other commands, just /api/v3/order and /api/v3/order/test throw this error message. I would really like to know how to trade via API…
@docmanni, you’re sending
timeStamp instead of
timestamp. Plus, no need to send
timeInForce for MARKET order.
@aisling what an excellent find!!! Stupid me! Thank you so much, my hair will be eternally thankful that you prevented it from turning grey more than necessary.
Now I’m fighting a “LOT_SIZE” error when I want to sell all LSK in my account, but I hope that I’ll be able to solve that…