Refining Margins
Margin endpoints return source-timestamped refining margin analytics.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /v1/spreads/margin | Current margin snapshot |
| GET | /v1/spreads/margin/historical | Historical margin values |
| GET | /v1/spreads/margin/all | All available margin series |
Example
curl "https://api.oilpriceapi.com/v1/spreads/margin?code=GULF_COAST_REFINING_MARGIN" \
-H "Authorization: Token YOUR_API_KEY"
See Spreads & Margins for common parameters, response shape, and error handling.