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

3:2:1 crack spread (refining margin)

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

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

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

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

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

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

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_..."}
)

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

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

{
    "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
}