OilPriceAPI Docs
Quick Start
API Reference
  • SDKs and languages
  • Tutorials
  • Articles
  • Documentation directory
  • Quick reference
  • API explorer
  • FAQ
  • Changelog
  • Status
  • Dashboard
GitHub
Quick Start
API Reference
  • SDKs and languages
  • Tutorials
  • Articles
  • Documentation directory
  • Quick reference
  • API explorer
  • FAQ
  • Changelog
  • Status
  • Dashboard
GitHub
  • Interactive Explorer

    • Interactive API Explorer
  • Price Data

    • API Reference
    • Get Latest Prices
    • Historical Prices
    • Batch Prices
    • Excel Latest Price Gateway
    • Price Widget Endpoints
    • Price Utility Endpoints
    • Demo API (No Authentication)
    • Natural Gas Intelligence
    • Energy News Feed
  • Commodities

    • List Commodities
    • Get Commodity Details
    • Denmark diesel list prices (OK Danmark)
    • Data Publication & Collection Schedules
  • AI Agents (MCP)

    • Get Market Brief
    • Subscriptions / Watches
    • Agent Subscriptions with MCP
  • Marine Fuels

    • Marine Fuel API
    • List Marine Fuel Ports
    • Get Port Details with Prices
    • Bunker Fuels
    • Maritime Fuels
  • Fuel Surcharges

    • Fuel Surcharge API
  • Premium Endpoints

    • All Prices API - One Call, All Commodities
    • Cushing Oil Storage Intelligence API
    • Drilling Intelligence API
    • Marine Fuels API
    • ICE Brent Futures API
    • Aviation Fuel Pilot
  • Spreads & Margins

    • Spreads & Margins
    • Crack Spreads
    • European Gasoil Crack
    • Basis Spreads
    • Refining Margins
    • Curve Structure
    • Physical Premiums
  • Market Indicators

    • Market Indicators
    • Fuel Switching
    • Price Context
    • Storage Analytics
    • CFTC Positioning
    • Market Annotations
  • Futures

    • Futures API
    • ICE Brent Futures
    • WTI Futures
    • Continuous Futures (Brent, WTI)
    • ICE Gas Oil Futures
    • NYMEX Natural Gas Futures
    • ICE EUA Carbon Futures
    • EU Carbon Futures
    • TTF Gas Futures
    • LNG JKM Futures
    • UK Carbon Futures
  • Dark Data (Premium)

    • Energy Intelligence API
    • Rig Counts
    • Well Permits
    • Well Production Beta
    • Drilling Intelligence (Public)
    • Oil Inventories
    • OPEC Production
    • Drilling Productivity
    • Forecasts (STEO)
  • Well Production (Beta)

    • Well Production Data
    • Well Production API Reference
  • Analytics

    • Analytics API
  • Webhooks API

    • Webhooks API Reference
    • Webhook Endpoint Reference
  • Alerts

    • Price Alerts API
  • Scheduled Deliveries

    • Scheduled Deliveries API
  • Account & Billing

    • Account API
    • API Keys
    • Subscriptions
    • Organizations

WTI Futures

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.

Endpoints

MethodEndpointDescription
GET/v1/futures/ice-wtiCurrent contract prices
GET/v1/futures/ice-wti/historicalHistorical data
GET/v1/futures/ice-wti/ohlcDaily OHLC
GET/v1/futures/ice-wti/intraday5-minute intervals
GET/v1/futures/ice-wti/spreadsCalendar spreads
GET/v1/futures/ice-wti/curveFutures curve
GET/v1/futures/ice-wti/spread-historySpread history

Replace ice-wti with nymex-wti in any path above for the same data.

Current Prices

GET /v1/futures/ice-wti

Response

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

Enhanced Contract Fields

FieldTypeDescription
days_to_expiryintegerDays until contract expires
contract_statusstringfront_month, near_expiry, active, or expired
is_front_monthbooleanWhether this is the primary trading contract
expiry_datedateCalculated expiry date (ISO 8601)
open_interestintegerOpen 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.

Historical Data

GET /v1/futures/ice-wti/historical

Parameters

ParameterTypeDefaultDescription
from / todatelast 30 daysWindow (YYYY-MM-DD). start_date / end_date are aliases
daysinteger—Last N days ending today (1-730); not combined with dates
contractsstringallComma-separated contract months; contract_month for one
intervalstringdailydaily, weekly or monthly
formatstringjsonjson 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.

OHLC Data

GET /v1/futures/ice-wti/ohlc

Parameters

ParameterTypeDefaultDescription
daysinteger30Period (1-1825). Larger values are served as 1825 with truncated: true, days_requested, and days_served in the response
contractstringfront monthContract month

Intraday Data

GET /v1/futures/ice-wti/intraday

Parameters

ParameterTypeDefaultDescription
datedatetodayTrading date
contractstringfront monthContract month

Calendar Spreads

GET /v1/futures/ice-wti/spreads

Parameters

ParameterTypeDefaultDescription
pairsstringconsecutiveSpread pairs
daysinteger30Analysis period

Futures Curve

GET /v1/futures/ice-wti/curve

Parameters

ParameterTypeDefaultDescription
datedatetodayAnalysis date

Spread History

GET /v1/futures/ice-wti/spread-history

Parameters

ParameterTypeRequiredDescription
front_contractstringYesFront contract
back_contractstringYesBack contract
daysintegerNoHistory period

Quick Example

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']}")

Related

  • ICE Brent Futures
  • ICE Gas Oil Futures
  • NYMEX Natural Gas Futures
  • ICE EUA Carbon Futures
Last Updated: 11/15/26, 8:08 PM
Prev
ICE Brent Futures
Next
Continuous Futures (Brent, WTI)