I'm just trying to hit this API, but I'm getting "Not all sent parameters were read; read '9' parameter(s) but was sent '10'." this as result.

const endpoint = ‘/api/v3/order/test’;
const timestamp = Date.now();
const queryString = symbol=${symbol}&side=BUY&type=LIMIT&timeInForce=GTC&quantity=1&price=0.1&recvWindow=5000&timestamp=${timestamp};
const signature = crypto.createHmac(‘sha256’, apiSecret).update(queryString).digest(‘hex’);

try {
    const response = await axios.post(
        `${apiUrl}${endpoint}?${queryString}&signature=${signature}`,
        {},
        {
            headers: {
                'X-MBX-APIKEY': apiKey
            }
        }
    );
    console.info(response.data);
} catch (error) {
    console.error('Error setting futures leverage:', error);
}

It actually looks quite good: Binance Docs

What strikes me is that I only see 9 parameters, not 10! What is the 10th parameter?

  1. symbol
  2. side
  3. type
  4. timeInForce
  5. quantity
  6. price
  7. recvWindow
  8. timestamp
  9. signature

Can you display the URI after it has been generated? Something seems to be smuggled in somewhere!

Just to be sure, symbol is already defined in your code, right?
const symbol = 'BTCUSDT';