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.

Online100.00% uptime, last 30 days279 ms typical response

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

GETList prediction topics/v1/predictions/topics

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

Parameters

  • groupoptional

    central_banks, us_prices, us_jobs, us_activity, global_activity, global_prices, metals, energy, rates or fx.

Each topic in the list

  • topic_idfield

    The topic id, such as usa-cpi-yoy.

  • groupfield

    The group the topic belongs to, such as central_banks or metals.

  • titlefield

    The topic's name.

  • shapefield

    How the odds are laid out, such as scalar or binary.

  • unitfield

    The unit of the value, such as usd_per_barrel. Left out when there is none.

  • venuesfield

    The venues that quote it: kalshi, polymarket or both.

  • resolution_kindfield

    release, price_fix, price_window or occurrence.

  • calendarfield

    The calendar release family the topic follows, with country and family. Left out when it follows none.

  • next_event_idfield

    The first open event of the topic. Left out when there is none.


Full reference →
GETGet topic details/v1/predictions/topics/{topic_id}

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

Parameters

  • topic_idrequired

    A topic id, such as usa-cpi-yoy.

Response fields

  • topic_idfield

    The topic id, such as usa-cpi-yoy.

  • groupfield

    The group the topic belongs to, such as central_banks or metals.

  • titlefield

    The topic's name.

  • shapefield

    How the odds are laid out, such as scalar or binary.

  • unitfield

    The unit of the value, such as usd_per_barrel. Left out when there is none.

  • venuesfield

    The venues that quote it: kalshi, polymarket or both.

  • resolution_kindfield

    release, price_fix, price_window or occurrence.

  • calendarfield

    The calendar release family the topic follows, with country and family. Left out when it follows none.

  • eventsfield

    Each event has event_id, question, status, closes_at, resolves_at, release_id and result.


Full reference →
GETList dated events/v1/predictions/events

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

Parameters

  • topicoptional

    Only events of this topic id.

  • shapeoptional

    Only events of this shape.

  • statusoptional

    upcoming, trading, closed, settled or void.

  • release_idoptional

    Only events that resolve on this calendar release.

  • from, tooptional

    UTC times that filter resolves_at. from must be before to.

  • limitoptional

    1 to 100. The default is 50.

  • cursoroptional

    Pass next_cursor from the previous page to read the next one.

Each event in the list

  • event_idfield

    The event id.

  • questionfield

    The question the event asks.

  • statusfield

    upcoming, trading, closed, settled or void.

  • closes_at, resolves_atfield

    Closing and resolution times, in UTC.

  • topic_id, shapefield

    The topic and the shape of its odds.

  • release_idfield

    The calendar release the event resolves on. Left out when there is none.

  • resultfield

    On settled and void events, whether the result is final and when it settled.

  • next_cursorfield

    The cursor for the next page. Null on the last page.


Full reference →
GETGet 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

  • shaperequired

    scalar, extreme, timing or binary.

  • event_idrequired

    An event id, such as usa-cpi-yoy-2026-09.

  • atoptional

    A past captured minute, in UTC.

Response fields

  • event_idfield

    The event id.

  • topic_idfield

    The topic the event belongs to.

  • questionfield

    The question the event asks.

  • statusfield

    upcoming, trading, closed, settled or void.

  • closes_atfield

    The closing time, in UTC.

  • resolves_atfield

    The resolution time, in UTC.

  • as_offield

    When the venues were last checked.

  • stalefield

    True when the last venue check was more than 3 minutes ago.

  • resolutionfield

    A text description of how the event resolves.

  • resolves_withfield

    The Narwhal endpoint that publishes the official value. Left out when there is none.

  • venuesfield

    One record per venue market: link, rules, settlement source, weight, volume and open interest.

  • resultfield

    Each venue's outcome, once the event is settled or void.

  • outcomesscalar

    Each outcome has key, label, lower, upper, probability and quotes.

  • up, downextreme

    The chance of reaching each high or low level in the window.

  • stepstiming

    The chance that it has happened by each date or meeting.

  • probabilitybinary

    The chance of yes, with the quotes behind it.

  • quotesfield

    Each venue's probability with the Kalshi tickers or Polymarket market ids behind it.


Full reference →
GETGet historical odds for an event/v1/predictions/{shape}/{event_id}/history

Odds over time for one event, as bars.

Parameters

  • shaperequired

    scalar, extreme, timing or binary.

  • event_idrequired

    An event id, such as usa-cpi-yoy-2026-09.

  • intervaloptional

    1m, 5m, 1h (the default) or 1d. 1m and 5m bars are kept for 30 days.

  • startrequired

    The start, in UTC.

  • endrequired

    The end, in UTC, after start. At most 2 days for 1m, 7 for 5m, 92 for 1h and 3,660 for 1d.

  • cursoroptional

    Pass next_cursor from the previous page, with the same start, end and interval.

Response fields

  • seriesfield

    One series per outcome, each with key, active_from and bars.

  • barsfield

    Each bar has timestamp, the start of the bar, and close. Live bars add open, high and low.

  • active_tofield

    Sent once the series has ended.

  • next_cursorfield

    The cursor for the next page. Null on the last page.


Full reference →
GETGet 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

  • authorityrequired

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

Response fields

  • as_offield

    When the odds were taken.

  • meetingsfield

    One row per coming meeting, with event_id and resolves_at.

  • p_cut, p_hold, p_hikefield

    The chance of a cut, no change and a rise.

  • expected_change_bpsfield

    The probability weighted change at the meeting, in basis points.

  • cumulative_change_bpsfield

    The expected changes added up across meetings.


Full reference →
WSStream 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

  • actionrequired

    subscribe.

  • topicsarray

    Up to 40 topic ids.

  • event_idsarray

    Up to 200 event ids.

Messages

  • snapshotmessage

    The full event, with its shape.

  • updatemessage

    The event again when it changes, at most once a minute.

  • statusmessage

    An event's new status.

  • heartbeatmessage

    Sent every 30 seconds.


Full reference →

Use cases

Polymarket against Kalshi

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

Read the guide →

Odds as probabilities

Turn prices into implied probabilities and remove the overround.

Read the guide →

Alerts when odds move

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

Read the guide →

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 →

Coverage

Show all 20 topics

Sources

Related APIs

Economic data API

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

Explore the API →

Commodities API

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

Explore the API →

Polymarket odds API

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

Explore the page →

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.