Real-time and historical reference prices for the WTI crude oil futures contract.
The WTI family follows the NYMEX CL contract calendar. Every endpoint below is also served under /v1/futures/nymex-wti (for example /v1/futures/nymex-wti/curve) and /v1/futures/wti, with an identical response.
| Method | Endpoint | Description |
|---|
| GET | /v1/futures/ice-wti | Current contract prices |
| GET | /v1/futures/ice-wti/historical | Historical data |
| GET | /v1/futures/ice-wti/ohlc | Daily OHLC |
| GET | /v1/futures/ice-wti/intraday | 5-minute intervals |
| GET | /v1/futures/ice-wti/spreads | Calendar spreads |
| GET | /v1/futures/ice-wti/curve | Futures curve |
| GET | /v1/futures/ice-wti/spread-history | Spread history |
Replace ice-wti with nymex-wti in any path above for the same data.
{
"commodity": "WTI_FUTURES",
"source": "market_reporting",
"updated_at": "2025-12-29T14:30:00.000Z",
"trading_hours": "01:00-23:00 GMT",
"contracts": [
{
"contract_month": "2026-02",
"last_price": 71.25,
"currency": "USD",
"open": 70.95,
"close": 71.20,
"high": 71.55,
"low": 70.80,
"volume": 98432,
"change_percent": 0.35,
"days_to_expiry": 18,
"contract_status": "front_month",
"is_front_month": true,
"expiry_date": "2026-01-28",
"open_interest": 198234
}
],
"metadata": {
"total_contracts": 12,
"data_source": "market_reporting",
"front_month_contract": "2026-02"
}
}
| Field | Type | Description |
|---|
days_to_expiry | integer | Days until contract expires |
contract_status | string | front_month, near_expiry, active, or expired |
is_front_month | boolean | Whether this is the primary trading contract |
expiry_date | date | Calculated expiry date (ISO 8601) |
open_interest | integer | Open interest (when available) |
expiry_date is the CL last trading day: three US business days before the 25th calendar day of the month before the contract month, counting from the last US business day before the 25th when the 25th is not a business day. The WTI front month is held through its own last trading day rather than rolling 7 days early.
GET /v1/futures/ice-wti/historical
| Parameter | Type | Default | Description |
|---|
from / to | date | last 30 days | Window (YYYY-MM-DD). start_date / end_date are aliases |
days | integer | — | Last N days ending today (1-730); not combined with dates |
contracts | string | all | Comma-separated contract months; contract_month for one |
interval | string | daily | daily, weekly or monthly |
format | string | json | json or csv |
Any other parameter returns 400 UNKNOWN_PARAMETERS. See historical query parameters for the full rules, the daily row fields and the CSV columns.
GET /v1/futures/ice-wti/ohlc
| Parameter | Type | Default | Description |
|---|
days | integer | 30 | Period (1-1825). Larger values are served as 1825 with truncated: true, days_requested, and days_served in the response |
contract | string | front month | Contract month |
GET /v1/futures/ice-wti/intraday
| Parameter | Type | Default | Description |
|---|
date | date | today | Trading date |
contract | string | front month | Contract month |
GET /v1/futures/ice-wti/spreads
| Parameter | Type | Default | Description |
|---|
pairs | string | consecutive | Spread pairs |
days | integer | 30 | Analysis period |
GET /v1/futures/ice-wti/curve
| Parameter | Type | Default | Description |
|---|
date | date | today | Analysis date |
GET /v1/futures/ice-wti/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-wti",
headers={"Authorization": "Token YOUR_API_KEY"}
)
data = response.json()
print(f"WTI Front Month: ${data['contracts'][0]['last_price']}")