LIMIT ORDER raises status code 400

Hi there, i’m getting a status code 400 in the test net when trying to set a limit order.
Here’s the request:

/api/v3/order?quantity=1&price=20&symbol=LTCBUSD&side=BUY&type=LIMIT&timestamp={timestamp}&signature={signature}

Here’s the response:

url: “https://testnet.binance.vision/api/v3/order?quantity=1&price=20&symbol=LTCBUSD&side=BUY&type=LIMIT&timestamp={timestamp}&signature={signature}
xsrfCookieName: “XSRF-TOKEN”
xsrfHeaderName: “X-XSRF-TOKEN”
message: “Request failed with status code 400”
name: “Error”
stack: "Error: Request failed with status code 400 …

Could anyone help me?

You should also read the body of the response. It contains the information about the error.
However, from your parameters, i am guessing that not sending timeInForce causes this error.

1 Like