Skip to main content

Event payload

This example is an explicitly selected spot event. Default followers now receive 30-second and 60-second TWAP events with the same shape and different identity fields. See Chainlink Spot and TWAP Prices for the subscription filters.

Fields

string
required
Always "price_feed".
string
required
Feed name (e.g. "BTC/USD", "ETH/USD"). Top-level convenience field, same value as data.feed.
number
required
Observation timestamp in Unix seconds. Top-level convenience field, same value as data.timestamp.
boolean
required
true for a Chainlink-computed TWAP and false for a spot price.
30 | 60 | null
required
Chainlink TWAP lookback window. null on spot events.
object
required

Notes

  • Update rate: approximately 1 update per second per feed.
  • No snapshot: unlike settlement subscriptions, price feed subscriptions do not include an initial snapshot. The first event arrives with the next price observation (~1 second after subscribing).
  • TWAP windows: when you subscribe to both windows, key state by feed and twap_window_seconds. See Chainlink Spot and TWAP Prices.
  • Deduplication: include feed, twap_window_seconds, and timestamp in a TWAP deduplication key.