Binance US: Illegal characters found in a parameter.

Hello,

I’m trying to fetch some GET routes with Binance US API but for a huge quantity of endpoint I only have the following error as a response

{ code: -1100, msg: 'Illegal characters found in a parameter.' }

I’m using the code sample of the documentation

timestamp=`date +%s000`

api_key=<your_api_key>
secret_key=<your_secret_key>

api_url="https://api.binance.us"

signature=`echo -n "timestamp=$timestamp" | openssl dgst -sha256 -hmac $secret_key`

curl -X "GET" "$api_url/sapi/v1/fiatpayment/query/deposit/history?timestamp=$timestamp&signature=$signature" \
     -H "X-MBX-APIKEY: $api_key"

The endpoint /sapi/v1/fiatpayment/query/deposit/history does not exist.

I think this endpoint is used here (Binance.US API Documentation) right ? I’m missing something ?

My apologies the endpoint does exist on Binance.US. Can you provide the full URL generated?

Sure the URL is https://api.binance.us/sapi/v1/fiatpayment/query/deposit/history?timestamp=1661531969092&signature=<AN HEXA STRING SIGNATURE>

Obviously I do not put the signature here but the parameter is sent

Hello,

I am also getting this same error when trying to get convert to BNB dust logs. Any fix for this yet?

curl -X GET "$api_url/sapi/v1/asset/query/dust-logs?startTime=$startTime&endTime=$endTime&timestamp=$timestamp&signature=$signature" \
    -H "X-MBX-APIKEY: $api_key"

Full URL
https://api.binance.us/sapi/v1/asset/query/dust-logs?startTime=1661775601000&endTime=1661775601000&signature=

Please feel free to join the Binance US Telegram API channel for this concern.