Skip to content

Commit 37e68d2

Browse files
authored
Feat(pricefeed/price feed id) add data (#445)
1 parent 6f28fe7 commit 37e68d2

File tree

5 files changed

+50
-17
lines changed

5 files changed

+50
-17
lines changed

pages/price-feeds/_meta.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@
3636
},
3737

3838
"api-reference": "API Reference",
39-
"price-feed-ids": "Price Feed IDs",
39+
"price-feeds": "Price Feeds",
4040
"sponsored-feeds": "Sponsored Feeds",
41+
"asset-classes": "Asset Classes",
4142
"market-hours": "Market Hours",
4243
"best-practices": "Best Practices",
4344
"error-codes": "Error Codes",

pages/price-feeds/price-feed-ids.mdx

Lines changed: 0 additions & 16 deletions
This file was deleted.

pages/price-feeds/price-feeds.mdx

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Price Feeds
2+
3+
Pyth Price Feeds provide real-time, first-party, market data for a wide range of assets.
4+
5+
Every price feed has a **unique ID**, representing the specific pair of assets being priced.
6+
These specific pairs are part of an asset class, which is a broader category of assets.
7+
8+
Anyone can fetch available price feeds and their IDs via [Hermes API](https://hermes.pyth.network/docs/#/rest/price_feeds_metadata).
9+
10+
## Asset Classes
11+
12+
Every price feed belongs to an asset class. These asset classes distinguish between different types of assets, such as crypto, US equities, and metals.
13+
14+
Refer to the [Asset Classes](./price-feeds/asset-classes.md) page to learn more about the existing asset classes.
15+
16+
## Price Feed IDs
17+
18+
Price Feed IDs are unique identifiers for each specific pair of assets being priced (e.g. BTC/USD).
19+
Every price update is tagged with the corresponding price feed ID.
20+
21+
Applications need to store the IDs of the feeds they wish to read.
22+
However, the IDs may be represented in different formats (e.g. hex or base58) depending on the blockchain.
23+
Price feeds also have different IDs in the Stable and Beta channels.
24+
25+
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.
26+
27+
### Solana Price Feed Accounts
28+
29+
On Solana, each feed additionally has a collection of **price feed accounts** containing the feed's data.
30+
The addresses of these accounts are programmatically derived from the feed id and a shard id, which is simply a 16-bit number.
31+
See [How to Use Real-Time Data on Solana](./use-real-time-data/solana#price-feed-accounts) for more information on price feed accounts.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"asset-classes": "Asset Classes"
3+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Asset Classes
2+
3+
[Pyth price feeds](https://www.pyth.network/price-feeds) provide market data for the following asset classes:
4+
5+
| Asset Class | Subclass | Definition |
6+
| ----------- | ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
7+
| Crypto | Spot Prices | Real-time prices for cryptocurrencies and digital assets |
8+
| | 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 |
9+
| | Indices | Real-time prices that measure the performance of baskets of cryptocurrencies and digital assets |
10+
| US Equities | Spot Prices | Real-time prices for US equities |
11+
| FX | Spot Prices | Real-time prices for fiat currency pairs |
12+
| Metals | Spot Prices | Real-time prices for precious metals |
13+
| Rates | Future Prices | Real-time prices for fixed income products, including bond futures |
14+
| Commodities | Futures Prices | Real-time prices for commodity futures |

0 commit comments

Comments
 (0)