Naar de inhoud
GET /v1/crack

3:2:1 crack spread (refining margin)

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/commodityspreads-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "The 3:2:1 crack spread is the refining margin from 3 barrels of crude into 2 of gasoline and 1 of heating oil, in USD per barrel. RB & HO futures (per gallon) are converted at 42 gallons per barrel. A wide crack means refiners are profitable and gasoline is dear relative to crude.",
        "source": "Yahoo Finance (CL=F, RB=F, HO=F)",
        "spread": "3:2:1 crack spread",
        "components": {
            "crude_usd_bbl": 84.52,
            "gasoline_usd_bbl": 123.52,
            "gasoline_usd_gal": 2.941,
            "heating_oil_usd_bbl": 139.86,
            "heating_oil_usd_gal": 3.3299
        },
        "value_usd_per_barrel": 44.45
    },
    "meta": {
        "timestamp": "2026-06-12T10:35:29.235Z",
        "request_id": "4e247d71-eb20-4652-b5a9-e75fc478079b"
    },
    "status": "ok",
    "message": "Crack spread retrieved successfully",
    "success": true
}