Zum Inhalt springen
GET /v1/coins/ohlc

OHLC candlesticks

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/crypto-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "id": "bitcoin",
        "days": "7",
        "count": 42,
        "candles": [
            {
                "low": 75680,
                "high": 76918,
                "open": 76798,
                "time": 1779480000000,
                "close": 75785
            },
            {
                "low": 75419,
                "high": 75979,
                "open": 75825,
                "time": 1779494400000,
                "close": 75483
            },
            {
                "low": 75201,
                "high": 75570,
                "open": 75501,
                "time": 1779508800000,
                "close": 75548
            },
            {
                "low": 74478,
                "high": 75555,
                "open": 75540,
                "time": 1779523200000,
                "close": 74501
            },
            {
                "low": 74344,
                "high": 74772,
                "open": 74532,
                "time": 1779537600000,
                "close": 74727
            },
            {
                "low": 74589,
                "high": 75543,
                "open": 74678,
                "time": 1779552000000,
                "close": 75429
            },
            {
                "low": 75344,
                "high": 75859,
                "open": 75484,
                "time": 1779566400000,
                "close": 75859
            },
            {
                "low": 75873,
                "high": 77084,
                "open": 75894,
                "time": 1779580800000,
                "close": 76673
            },
            {
                "low": 76560,
                "high": 76852,
                "open": 76622,
                "time": 1779595200000,
                "close": 76696
            },
            {
                "low": 76570,
                "high": 76926,
                "open": 76747,
                "time": 1779609600000,
                "close": 76693
            },
            {
                "low": 76649,
                "high": 77216,
                "open": 76710,
                "time": 1779624000000,
                "close": 77189
            },
            {
                "low": 76278,
                "high": 77166,
                "open": 77166,
                "time": 1779638400000,
                "close": 76278
            },
            {
                "low": 76367,
                "high": 76679,
                "open": 76367,
                "time": 1779652800000,
                "close": 76668
            },
            {
                "low": 76053,
                "high": 77060,
                "open": 76617,
                "time": 1779667200000,
                "close": 76988
            },
            {
                "low": 76879,
                "high": 77304,
                "open": 77082,
                "time": 1779681600000,
                "close": 76946
            },
            {
                "
…