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.
Name | Description |
---|---|
priceFeedAccount | The public key of the Pyth Price Feed |
productAccount | The public key of the Pyth Product |
Response
Overview of the response from a Pyth Oracle Price data stream:
Name | Description |
---|---|
confidence | Confidence 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. |
emac1H | Exponentially-weighted moving average confidence interval is a time-weighted average of the confidence interval. |
emap1H | Exponentially-weighted moving average price is a time-weighted average of the aggregate price. |
lastUpdated | The last updated time. |
price | Price of asset expressed in USD. |
priceFeedAccount | The public key of the Pyth Price Feed. |
validSlot | The last valid slot |
Updated 5 months ago