Aller au contenu
GET /v1/historical

Price at a past timestamp

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/tokenprice-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/tokenprice-api/v1/historical" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/tokenprice-api/v1/historical", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/tokenprice-api/v1/historical");
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/tokenprice-api/v1/historical",
    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": {
        "price": 1,
        "token": "ethereum:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
        "symbol": "USDC",
        "decimals": 6,
        "timestamp": 1700000107,
        "confidence": 0.99,
        "requested_timestamp": 1700000000
    },
    "meta": {
        "timestamp": "2026-06-09T11:39:45.989Z",
        "request_id": "c2df436c-34c1-4f39-846b-b77a20178a79"
    },
    "status": "ok",
    "message": "Historical price retrieved successfully",
    "success": true
}