Vai al contenuto
GET /v1/history

Price & volume time series

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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

{
    "data": {
        "id": 4151,
        "count": 365,
        "series": [
            {
                "avg_low": 1305268,
                "avg_high": 1324593,
                "timestamp": 1772388000,
                "low_volume": 1200,
                "high_volume": 1070
            },
            {
                "avg_low": 1302308,
                "avg_high": 1320794,
                "timestamp": 1772409600,
                "low_volume": 1036,
                "high_volume": 833
            },
            {
                "avg_low": 1303157,
                "avg_high": 1320682,
                "timestamp": 1772431200,
                "low_volume": 454,
                "high_volume": 514
            },
            {
                "avg_low": 1299631,
                "avg_high": 1318544,
                "timestamp": 1772452800,
                "low_volume": 521,
                "high_volume": 544
            },
            {
                "avg_low": 1298048,
                "avg_high": 1318528,
                "timestamp": 1772474400,
                "low_volume": 882,
                "high_volume": 733
            },
            {
                "avg_low": 1295067,
                "avg_high": 1315121,
                "timestamp": 1772496000,
                "low_volume": 871,
                "high_volume": 709
            },
            {
                "avg_low": 1282752,
                "avg_high": 1310146,
                "timestamp": 1772517600,
                "low_volume": 332,
                "high_volume": 384
            },
            {
                "avg_low": 1282624,
                "avg_high": 1307443,
                "timestamp": 1772539200,
                "low_volume": 487,
                "high_volume": 515
            },
            {
                "avg_low": 1283869,
                "avg_high": 1307710,
                "timestamp": 1772560800,
                "low_volume": 895,
                "high_volume": 768
            },
            {
                "avg_low": 1284028,
                "avg_high": 1308301,
                "timestamp": 1772582400,
                "low_volume": 978,
                "high_volume": 887
            },
            {
                "avg_low": 1280386,
                "avg_high": 1303393,
                "timestamp": 1772604000,
                "low_volume": 382,
                "high_volume": 297
            },
            {
                "avg_low": 1268123,
                "avg_high": 1293057,
                "timestamp": 1772625600,
                "low_volume": 785,
                "high_volume": 729
            },
            {
                "avg_low": 1272485,
                "avg_high": 1294901,
                "timestamp": 1772647200,
                "low_volume": 883,
                "high_volume": 855
            },
            {
                "avg_low": 1276508,
                "avg_high": 1300845,
                "timestamp": 1772668800,
                "low_v
…