Μετάβαση στο περιεχόμενο
GET /v1/meta

Service metadata & live sample

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/tokenpricehistory-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

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

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "data": {
        "note": "All endpoints take a required coin as <chain>:<contract_address> (e.g. ethereum:0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 = WETH) or coingecko:<id> (e.g. coingecko:bitcoin). chart takes period (1h/1d/1w) and span (1-365). at takes timestamp (unix) or date (YYYY-MM-DD). change takes period (e.g. 24h, 7d). Prices are USD.",
        "sample": {
            "coin": "ethereum:0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
            "symbol": "WETH",
            "first_price": 839.535
        },
        "source": "DeFiLlama open coins API (coins.llama.fi), live",
        "service": "tokenpricehistory-api",
        "endpoints": {
            "GET /v1/at": "Price at a past date/timestamp (coin, timestamp or date).",
            "GET /v1/meta": "This document.",
            "GET /v1/chart": "Price series over time for a token (coin, period, span).",
            "GET /v1/first": "The token's first-ever recorded price (coin).",
            "GET /v1/change": "Percentage price change over a period (coin, period)."
        },
        "description": "Historical price for any crypto token by its on-chain contract address, keyless. The time dimension: a price chart over any window, the price at any past date/timestamp, the percentage change over a period, and the token's first-ever recorded price. Works for any token on any chain by chain:address (and coingecko:<id>), covering long-tail tokens centralized APIs miss. Live, nothing stored beyond a short protective cache. The token price-history layer for charting, backtesting, accounting, tax and analytics apps. Distinct from current-price and coin-slug APIs — this prices a token's HISTORY by contract address.",
        "upstream_status": "ok"
    },
    "meta": {
        "timestamp": "2026-06-14T08:04:21.630Z",
        "request_id": "90cfa8ff-309f-40e7-aad5-71772f4e35a5"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}