Vai al contenuto
GET /v1/at

Price at a past date or timestamp

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/tokenpricehistory-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/tokenpricehistory-api/v1/at" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/tokenpricehistory-api/v1/at", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/tokenpricehistory-api/v1/at");
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/tokenpricehistory-api/v1/at",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "coin": "ethereum:0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
        "note": "Closest recorded USD price at or before the requested time.",
        "price": 2275.21,
        "source": "DeFiLlama",
        "symbol": "WETH",
        "confidence": 0.99,
        "price_timestamp": 1704067207,
        "requested_timestamp": 1704067200
    },
    "meta": {
        "timestamp": "2026-06-14T08:04:19.641Z",
        "request_id": "06eba318-61cb-4ba9-bb60-600e5dbe7bd8"
    },
    "status": "ok",
    "message": "Historical price retrieved successfully",
    "success": true
}