diff --git a/pages/price-feeds/_meta.json b/pages/price-feeds/_meta.json index 40201b91..bed5cc6d 100644 --- a/pages/price-feeds/_meta.json +++ b/pages/price-feeds/_meta.json @@ -36,8 +36,9 @@ }, "api-reference": "API Reference", - "price-feed-ids": "Price Feed IDs", + "price-feeds": "Price Feeds", "sponsored-feeds": "Sponsored Feeds", + "asset-classes": "Asset Classes", "market-hours": "Market Hours", "best-practices": "Best Practices", "error-codes": "Error Codes", diff --git a/pages/price-feeds/price-feed-ids.mdx b/pages/price-feeds/price-feed-ids.mdx deleted file mode 100644 index 51583c1a..00000000 --- a/pages/price-feeds/price-feed-ids.mdx +++ /dev/null @@ -1,16 +0,0 @@ -# Price Feed IDs - -Every Pyth Price Feed has a unique ID, representing the specific pair of assets being priced (e.g., BTC/USD). -Every price update is tagged with the corresponding price feed ID. -Applications need to store the IDs of the feeds they wish to read. -However, the IDs may be represented in different formats (e.g., hex or base58) depending on the blockchain. -Price feeds also have different IDs in the Stable and Beta channels. - -The full catalog of price feeds is listed on the [pyth.network website](https://pyth.network/price-feeds/). -The [Price Feed ID reference](https://pyth.network/developers/price-feed-ids) also lets you identify a feed's ID in your chosen ecosystem. - -## Solana Price Feed Accounts - -On Solana, each feed additionally has a collection of **price feed accounts** containing the feed's data. -The addresses of these accounts are programmatically derived from the feed id and a shard id, which is simply a 16-bit number. -See [How to Use Real-Time Data on Solana](./use-real-time-data/solana#price-feed-accounts) for more information on price feed accounts. diff --git a/pages/price-feeds/price-feeds.mdx b/pages/price-feeds/price-feeds.mdx new file mode 100644 index 00000000..9041d27d --- /dev/null +++ b/pages/price-feeds/price-feeds.mdx @@ -0,0 +1,31 @@ +# Price Feeds + +Pyth Price Feeds provide real-time, first-party, market data for a wide range of assets. + +Every price feed has a **unique ID**, representing the specific pair of assets being priced. +These specific pairs are part of an asset class, which is a broader category of assets. + +Anyone can fetch available price feeds and their IDs via [Hermes API](https://hermes.pyth.network/docs/#/rest/price_feeds_metadata). + +## Asset Classes + +Every price feed belongs to an asset class. These asset classes distinguish between different types of assets, such as crypto, US equities, and metals. + +Refer to the [Asset Classes](./price-feeds/asset-classes.md) page to learn more about the existing asset classes. + +## Price Feed IDs + +Price Feed IDs are unique identifiers for each specific pair of assets being priced (e.g. BTC/USD). +Every price update is tagged with the corresponding price feed ID. + +Applications need to store the IDs of the feeds they wish to read. +However, the IDs may be represented in different formats (e.g. hex or base58) depending on the blockchain. +Price feeds also have different IDs in the Stable and Beta channels. + +Refer to the [Price Feed ID reference catalog](https://www.pyth.network/developers/price-feed-ids) to identify a feed's ID in your chosen ecosystem. + +### Solana Price Feed Accounts + +On Solana, each feed additionally has a collection of **price feed accounts** containing the feed's data. +The addresses of these accounts are programmatically derived from the feed id and a shard id, which is simply a 16-bit number. +See [How to Use Real-Time Data on Solana](./use-real-time-data/solana#price-feed-accounts) for more information on price feed accounts. diff --git a/pages/price-feeds/price-feeds/_meta.json b/pages/price-feeds/price-feeds/_meta.json new file mode 100644 index 00000000..4310675f --- /dev/null +++ b/pages/price-feeds/price-feeds/_meta.json @@ -0,0 +1,3 @@ +{ + "asset-classes": "Asset Classes" +} diff --git a/pages/price-feeds/price-feeds/asset-classes.mdx b/pages/price-feeds/price-feeds/asset-classes.mdx new file mode 100644 index 00000000..b1d435bd --- /dev/null +++ b/pages/price-feeds/price-feeds/asset-classes.mdx @@ -0,0 +1,14 @@ +# Asset Classes + +[Pyth price feeds](https://www.pyth.network/price-feeds) provide market data for the following asset classes: + +| Asset Class | Subclass | Definition | +| ----------- | ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Crypto | Spot Prices | Real-time prices for cryptocurrencies and digital assets | +| | Redemption Rates | Real-time swap rates derived from smart contracts for the redemption of liquid staking and liquid restaking tokens (LSTs and LRTs), liquidity provider tokens (LP Tokens) and interest-bearing assets, including tokenised notes | +| | Indices | Real-time prices that measure the performance of baskets of cryptocurrencies and digital assets | +| US Equities | Spot Prices | Real-time prices for US equities | +| FX | Spot Prices | Real-time prices for fiat currency pairs | +| Metals | Spot Prices | Real-time prices for precious metals | +| Rates | Future Prices | Real-time prices for fixed income products, including bond futures | +| Commodities | Futures Prices | Real-time prices for commodity futures |