Real-time and historical Gas Oil (diesel/heating oil) futures data from the Intercontinental Exchange (ICE).
| Method | Endpoint | Description |
|---|
| GET | /v1/futures/ice-gasoil | Current contract prices |
| GET | /v1/futures/ice-gasoil/historical | Historical data |
| GET | /v1/futures/ice-gasoil/ohlc | Daily OHLC |
| GET | /v1/futures/ice-gasoil/intraday | 5-minute intervals |
| GET | /v1/futures/ice-gasoil/spreads | Calendar spreads |
| GET | /v1/futures/ice-gasoil/curve | Futures curve |
| GET | /v1/futures/ice-gasoil/spread-history | Spread history |
GET /v1/futures/ice-gasoil
{
"commodity": "GASOIL_FUTURES",
"source": "ICE",
"updated_at": "2025-12-29T14:30:00.000Z",
"trading_hours": "01:00-23:00 GMT",
"contracts": [
{
"contract_month": "2026-01",
"last_price": 685.50,
"currency": "USD",
"unit": "metric_ton",
"open": 683.25,
"close": 685.00,
"high": 687.75,
"low": 682.50,
"volume": 45678,
"change_percent": 0.29
}
]
}
GET /v1/futures/ice-gasoil/historical
| Parameter | Type | Default | Description |
|---|
from | date | 30 days ago | Start date |
to | date | today | End date |
contracts | string | all | Contract months |
format | string | json | json or csv |
GET /v1/futures/ice-gasoil/ohlc
| Parameter | Type | Default | Description |
|---|
days | integer | 30 | Period (1-365) |
contract | string | front month | Contract month |
GET /v1/futures/ice-gasoil/intraday
| Parameter | Type | Default | Description |
|---|
date | date | today | Trading date |
contract | string | front month | Contract month |
GET /v1/futures/ice-gasoil/spreads
| Parameter | Type | Default | Description |
|---|
pairs | string | consecutive | Spread pairs |
days | integer | 30 | Analysis period |
GET /v1/futures/ice-gasoil/curve
| Parameter | Type | Default | Description |
|---|
date | date | today | Analysis date |
GET /v1/futures/ice-gasoil/spread-history
| Parameter | Type | Required | Description |
|---|
front_contract | string | Yes | Front contract |
back_contract | string | Yes | Back contract |
days | integer | No | History period |
import requests
response = requests.get(
"https://api.oilpriceapi.com/v1/futures/ice-gasoil",
headers={"Authorization": "Token YOUR_API_KEY"}
)
data = response.json()
print(f"Gas Oil Front Month: ${data['contracts'][0]['last_price']}/MT")