/v1/ticker
A symbol 24h ticker
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/htx-api/v1/ticker" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/htx-api/v1/ticker", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/htx-api/v1/ticker");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/htx-api/v1/ticker",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"ask": 61443.02,
"bid": 61442.45,
"low": 60744.39,
"high": 62834,
"last": 61441.83,
"open": 61700.01,
"source": "HTX",
"symbol": "btcusdt",
"trades_24h": 27450,
"change_24h_pct": -0.4184,
"base_volume_24h": 1016.8727,
"quote_volume_24h": 62764034.33
},
"meta": {
"timestamp": "2026-06-10T22:56:37.230Z",
"request_id": "2c601425-1312-4937-9807-19697ccdfd55"
},
"status": "ok",
"message": "Ticker retrieved successfully",
"success": true
}