Vai al contenuto
GET /v1/prices

Many assets in one call (any class)

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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

{
    "data": {
        "count": 5,
        "prices": [
            {
                "value": 63298.3919,
                "source": "RedStone",
                "symbol": "BTC",
                "timestamp": "2026-06-12T01:42:40.000Z"
            },
            {
                "value": 1662.47256779,
                "source": "RedStone",
                "symbol": "ETH",
                "timestamp": "2026-06-12T01:42:40.000Z"
            },
            {
                "value": 295.53,
                "source": "RedStone",
                "symbol": "AAPL",
                "timestamp": "2026-06-12T01:42:40.000Z"
            },
            {
                "value": 4179.42944,
                "source": "RedStone",
                "symbol": "XAU",
                "timestamp": "2026-06-12T01:42:40.000Z"
            },
            {
                "value": 1.15621906,
                "source": "RedStone",
                "symbol": "EUR",
                "timestamp": "2026-06-12T01:42:40.000Z"
            }
        ],
        "source": "RedStone",
        "missing": [],
        "requested": 5
    },
    "meta": {
        "timestamp": "2026-06-12T01:42:59.451Z",
        "request_id": "2880ceca-4427-4b85-abc0-8b7ad0103a09"
    },
    "status": "ok",
    "message": "Prices retrieved successfully",
    "success": true
}