I am trying to retrieve the latest market data specifically for USDT pairs using Binance’s APIs, but I’m encountering inconsistencies in the returned data, especially regarding volume. Below are the details:
- Server Location: Our server is based in the United States.
- API Methods Tried:
Method 1:
https://www.binance.com/fapi/v1/ticker/24hr
This API returns the error:
"Service unavailable from a restricted location according to 'b. Eligibility'..."
Method 2:
https://data-api.binance.vision/api/v3/ticker/24hr
This API call is successful, but the returned data seems incorrect.
Key Issue with Returned Data:
For example, the 24-hour volume forBTCUSDT
is shown as 16047.94003000, which seems far too low compared to what’s shown on the official website.
{
"symbol": "BTCUSDT",
"priceChange": "-156.23000000",
"priceChangePercent": "-0.228",
"weightedAvgPrice": "68550.78985793",
"prevClosePrice": "68428.97000000",
"lastPrice": "68272.73000000",
"lastQty": "0.00721000",
"bidPrice": "68272.72000000",
"bidQty": "17.85081000",
"askPrice": "68272.73000000",
"askQty": "0.61941000",
"openPrice": "68428.96000000",
"highPrice": "69000.00000000",
"lowPrice": "68088.00000000",
"volume": "16047.94003000",
"quoteVolume": "1100098964.64917830",
"openTime": 1729262325747,
"closeTime": 1729348725747,
"firstId": 3940411003,
"lastId": 3942763215,
"count": 2352213
}