---
title: "Commodity prediction markets API | Narwhal API"
description: "Query market-implied probabilities for metals and energy events by topic and dated event. Access latest odds, minute to daily history and a live stream."
url: "https://narwhalapi.com/api/predictions/commodities"
---

All APIs

# Commodity prediction markets API

Query market-implied probabilities for metals and energy events by topic and dated event. Access latest odds, minute to daily history and a live stream.

[Get a free API key](https://narwhalapi.com/signup)
[Read the docs →](https://narwhalapi.com/docs/api/predictions.md)

## First request

### Get topic details

```
curl --request GET \
  --url "https://api.narwhalapi.com/v1/predictions/topics/xau-settle" \
  --header "Authorization: Bearer $NARWHAL_API_KEY"
```

## Endpoints

GET List prediction topics`/v1/predictions/topics`

Every topic Narwhal covers, with its shape, unit and venues. Use it to find a topic id.

#### Parameters

- `group` optional central_banks, us_prices, us_jobs, us_activity, global_activity, global_prices, metals, energy, rates or fx.

#### Each topic in the list

- `topic_id` field The topic id, such as usa-cpi-yoy.
- `group` field The group the topic belongs to, such as central_banks or metals.
- `title` field The topic's name.
- `shape` field How the odds are laid out, such as scalar or binary.
- `unit` field The unit of the value, such as usd_per_barrel. Left out when there is none.
- `venues` field The venues that quote it: kalshi, polymarket or both.
- `resolution_kind` field release, price_fix, price_window or occurrence.
- `calendar` field The calendar release family the topic follows, with country and family. Left out when it follows none.
- `next_event_id` field The first open event of the topic. Left out when there is none.

---

[Full reference →](https://narwhalapi.com/docs/api/predictions.md)

GET Get topic details`/v1/predictions/topics/{topic_id}`

One topic with its upcoming and trading events and the 5 most recent others.

#### Parameters

- `topic_id` required A topic id, such as usa-cpi-yoy.

#### Response fields

- `topic_id` field The topic id, such as usa-cpi-yoy.
- `group` field The group the topic belongs to, such as central_banks or metals.
- `title` field The topic's name.
- `shape` field How the odds are laid out, such as scalar or binary.
- `unit` field The unit of the value, such as usd_per_barrel. Left out when there is none.
- `venues` field The venues that quote it: kalshi, polymarket or both.
- `resolution_kind` field release, price_fix, price_window or occurrence.
- `calendar` field The calendar release family the topic follows, with country and family. Left out when it follows none.
- `events` field Each event has event_id, question, status, closes_at, resolves_at, release_id and result.

---

[Full reference →](https://narwhalapi.com/docs/api/predictions.md)

GET List dated events`/v1/predictions/events`

Dated events across topics, with their status and times. Filter by topic, shape, status or resolution time.

#### Parameters

- `topic` optional Only events of this topic id.
- `shape` optional Only events of this shape.
- `status` optional upcoming, trading, closed, settled or void.
- `release_id` optional Only events that resolve on this calendar release.
- `from, to` optional UTC times that filter resolves_at. from must be before to.
- `limit` optional 1 to 100. The default is 50.
- `cursor` optional Pass next_cursor from the previous page to read the next one.

#### Each event in the list

- `event_id` field The event id.
- `question` field The question the event asks.
- `status` field upcoming, trading, closed, settled or void.
- `closes_at, resolves_at` field Closing and resolution times, in UTC.
- `topic_id, shape` field The topic and the shape of its odds.
- `release_id` field The calendar release the event resolves on. Left out when there is none.
- `result` field On settled and void events, whether the result is final and when it settled.
- `next_cursor` field The cursor for the next page. Null on the last page.

---

[Full reference →](https://narwhalapi.com/docs/api/predictions.md)

GET Get event odds by shape`/v1/predictions/{shape}/{event_id}`

The latest odds for one event, with each venue's quote and the blended probability.

#### Parameters

- `shape` required scalar, extreme, timing or binary.
- `event_id` required An event id, such as usa-cpi-yoy-2026-09.
- `at` optional A past captured minute, in UTC.

#### Response fields

- `event_id` field The event id.
- `topic_id` field The topic the event belongs to.
- `question` field The question the event asks.
- `status` field upcoming, trading, closed, settled or void.
- `closes_at` field The closing time, in UTC.
- `resolves_at` field The resolution time, in UTC.
- `as_of` field When the venues were last checked.
- `stale` field True when the last venue check was more than 3 minutes ago.
- `resolution` field A text description of how the event resolves.
- `resolves_with` field The Narwhal endpoint that publishes the official value. Left out when there is none.
- `venues` field One record per venue market: link, rules, settlement source, weight, volume and open interest.
- `result` field Each venue's outcome, once the event is settled or void.
- `outcomes` scalar Each outcome has key, label, lower, upper, probability and quotes.
- `up, down` extreme The chance of reaching each high or low level in the window.
- `steps` timing The chance that it has happened by each date or meeting.
- `probability` binary The chance of yes, with the quotes behind it.
- `quotes` field Each venue's probability with the Kalshi tickers or Polymarket market ids behind it.

---

[Full reference →](https://narwhalapi.com/docs/api/predictions.md)

GET Get historical odds for an event`/v1/predictions/{shape}/{event_id}/history`

Odds over time for one event, as bars.

#### Parameters

- `shape` required scalar, extreme, timing or binary.
- `event_id` required An event id, such as usa-cpi-yoy-2026-09.
- `interval` optional 1m, 5m, 1h (the default) or 1d. 1m and 5m bars are kept for 30 days.
- `start` required The start, in UTC.
- `end` required The end, in UTC, after start. At most 2 days for 1m, 7 for 5m, 92 for 1h and 3,660 for 1d.
- `cursor` optional Pass next_cursor from the previous page, with the same start, end and interval.

#### Response fields

- `series` field One series per outcome, each with key, active_from and bars.
- `bars` field Each bar has timestamp, the start of the bar, and close. Live bars add open, high and low.
- `active_to` field Sent once the series has ended.
- `next_cursor` field The cursor for the next page. Null on the last page.

---

[Full reference →](https://narwhalapi.com/docs/api/predictions.md)

GET Get central bank policy paths`/v1/predictions/policy-paths/{authority}`

The odds of a cut, no change and a rise at each coming meeting, with the expected change in basis points.

#### Parameters

- `authority` required federal-reserve, european-central-bank, bank-of-england, bank-of-japan, bank-of-canada, reserve-bank-of-australia or bank-indonesia.

#### Response fields

- `as_of` field When the odds were taken.
- `meetings` field One row per coming meeting, with event_id and resolves_at.
- `p_cut, p_hold, p_hike` field The chance of a cut, no change and a rise.
- `expected_change_bps` field The probability weighted change at the meeting, in basis points.
- `cumulative_change_bps` field The expected changes added up across meetings.

---

[Full reference →](https://narwhalapi.com/docs/api/predictions.md)

WS Stream live odds over WebSocket`/v1/predictions/stream`

Live odds over a WebSocket. Send your key in the Authorization header, then subscribe. Each connection costs 1 call.

#### Parameters

- `action` required subscribe.
- `topics` array Up to 40 topic ids.
- `event_ids` array Up to 200 event ids.

#### Messages

- `snapshot` message The full event, with its shape.
- `update` message The event again when it changes, at most once a minute.
- `status` message An event's new status.
- `heartbeat` message Sent every 30 seconds.

---

[Full reference →](https://narwhalapi.com/docs/api/predictions.md)

## Use cases

### Polymarket against Kalshi

Compare both venues on one question and see the gap between them.

[Read the guide →](https://narwhalapi.com/how-to/compare-polymarket-and-kalshi-on-one-question.md)

### Odds as probabilities

Turn prices into implied probabilities and remove the overround.

[Read the guide →](https://narwhalapi.com/how-to/convert-prediction-market-odds-to-probability.md)

### Alerts when odds move

Run a script on a schedule and get an alert when the odds move past a threshold.

[Read the guide →](https://narwhalapi.com/how-to/get-an-alert-when-prediction-odds-move.md)

### Live updates

Open a WebSocket, subscribe and handle reconnects.

[Read the guide →](https://narwhalapi.com/how-to/stream-live-data.md)

### Rate decision odds in a product

Show the odds of a cut, hold or hike at the next central bank meetings.

[Read the use case →](https://narwhalapi.com/use-cases/central-bank-rate-odds.md)

### Price gaps between venues

Compare one question on Kalshi and Polymarket.

[Read the use case →](https://narwhalapi.com/use-cases/prediction-market-arbitrage.md)

### Odds history for research

Pull odds history and settled results for a study.

[Read the use case →](https://narwhalapi.com/use-cases/prediction-market-research.md)

## Coverage

- [Copper price at a fixed time](https://narwhalapi.com/predictions/copper-price-odds.md)Metals
- [Gold futures high and low by year end](https://narwhalapi.com/predictions/gold-price-odds.md)Metals
- [Silver monthly high and low](https://narwhalapi.com/predictions/silver-price-odds.md)Metals
- [Silver price at a fixed time](https://narwhalapi.com/predictions/silver-price-odds.md)Metals
- [Silver up or down on the day](https://narwhalapi.com/predictions/silver-price-odds.md)Metals
- [Silver weekly high and low](https://narwhalapi.com/predictions/silver-price-odds.md)Metals
- [Gold monthly high and low](https://narwhalapi.com/predictions/gold-price-odds.md)Metals
- [Gold price at a fixed time](https://narwhalapi.com/predictions/gold-price-odds.md)Metals
- [Gold up or down on the day](https://narwhalapi.com/predictions/gold-price-odds.md)Metals
- [Gold weekly high and low](https://narwhalapi.com/predictions/gold-price-odds.md)Metals
- [Brent crude oil price at a fixed time](https://narwhalapi.com/predictions/brent-oil-price-odds.md)Energy
- [Crude oil all-time high by a date](https://narwhalapi.com/predictions/wti-oil-price-odds.md)Energy

Show all 20 topics

- [Natural gas price at a fixed time](https://narwhalapi.com/predictions/natural-gas-price-odds.md)Energy
- [Natural gas up or down on the day](https://narwhalapi.com/predictions/natural-gas-price-odds.md)Energy
- [Natural gas weekly high and low](https://narwhalapi.com/predictions/natural-gas-price-odds.md)Energy
- [WTI crude oil daily close](https://narwhalapi.com/predictions/wti-oil-price-odds.md)Energy
- [WTI crude oil monthly high and low](https://narwhalapi.com/predictions/wti-oil-price-odds.md)Energy
- [WTI crude oil price at a fixed time](https://narwhalapi.com/predictions/wti-oil-price-odds.md)Energy
- [WTI crude oil up or down on the day](https://narwhalapi.com/predictions/wti-oil-price-odds.md)Energy
- [WTI crude oil weekly high and low](https://narwhalapi.com/predictions/wti-oil-price-odds.md)Energy

## Sources

- Kalshi[Kalshi market data guide](https://docs.kalshi.com/getting_started/quick_start_market_data)
- Polymarket[Polymarket API overview](https://docs.polymarket.com/getting-started/api)

## Related APIs

### Economic data API

Official indicators for prices, labour, output, trade, and rates.

[Explore the API →](https://narwhalapi.com/api/economics.md)

### Economic calendar API

Release schedules, status, and publication versions.

[Explore the API →](https://narwhalapi.com/api/economic-calendar.md)

### Commodities API

Prices for spot metals and physical commodities, with native units and series definitions.

[Explore the API →](https://narwhalapi.com/api/commodities.md)

### Kalshi odds API

Kalshi odds through Narwhal, with each outcome's Kalshi tickers.

[Explore the page →](https://narwhalapi.com/api/predictions/kalshi.md)

### Polymarket odds API

Polymarket odds through Narwhal, with each outcome's Polymarket markets.

[Explore the page →](https://narwhalapi.com/api/predictions/polymarket.md)

## FAQ

Are these commodity spot prices?

No. The API returns market-implied probabilities for commodity events, including price-level outcomes.

Are the odds delayed?

No. Odds are live for every account.

Can I retrieve historical odds or use a stream?

Minute to daily odds history is available. Every account can also use a live stream, and each connection costs 1 call.

What does an event include?

A question, close and resolve times, an official resolution source, and a status: upcoming, trading, closed, settled or void.

Which event shapes are there?

Scalar distributions, binary odds, extreme highs and lows, and timing markets, plus central bank policy paths.

What do the topics cover?

Gold and silver coverage includes price levels and weekly or monthly highs and lows, alongside other metals and energy commodities.

## Start with a free key

Free $10 credits every month, no card.Free $10 credits a month, no card.

[Get a free API key](https://narwhalapi.com/signup)
