Pyth Oracle Prices

Learn more about getting a Pyth Price data stream from our WebSocket.

Getting Started

Access real-time Oracle prices for tokens and other off-chain assets from Pyth's price feeds. Learn more about the available Pyth pricefeeds and products here.

Follow our guided recipe to learn how you can quickly start streaming Pyth Prices from Solana.

Filters

Utilize the following filters to configure your Pyth Oracle feed. Leaving these empty will return ALL price feeds.

NameDescription
priceFeedAccountThe public key of the Pyth Price Feed
productAccountThe public key of the Pyth Product

Response

Overview of the response from a Pyth Oracle Price data stream:

NameDescription
confidenceConfidence interval of how close we think the true price is to the average. It's influenced by both how sure each person quoting the price is, and how much they agree with each other.
emac1HExponentially-weighted moving average confidence interval is a time-weighted average of the confidence interval.
emap1HExponentially-weighted moving average price is a time-weighted average of the aggregate price.
lastUpdatedThe last updated time.
pricePrice of asset expressed in USD.
priceFeedAccountThe public key of the Pyth Price Feed.
validSlotThe last valid slot