/v1/crack
3:2:1 crack spread (refining margin)
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
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_..."}
)
Example response
A real response from this endpoint, captured by the latest 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
}