Skip to content

Commit b6f68ab

Browse files
Add Pyth readme
1 parent f22f802 commit b6f68ab

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

oracles/pyth/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## What is Pyth ?
2+
3+
Pyth is an Oracle that offers on-chain low-latency market data from institutional sources.
4+
This means you can use prices from real-life assets in your Solana programs.
5+
6+
The price for each asset will be represented inside of a Solana account. We call those accounts price feeds.
7+
8+
For example, the price feed for SOL/USD on mainnet is represented on this account address: `H6ARHf6YXhGYeQfUzQNGk6rDNnLBQKrenN712K4AQJEG`.
9+
10+
You can find more of these price feeds [here](https://pyth.network/price-feeds?cluster=mainnet-beta).
11+
12+
To use such a price feed, you need to pass its account into your instructions context.
13+
14+
You can get an asset's information by reading the account's data. The feed will consist of:
15+
16+
- A price
17+
- A confidence interval
18+
- An exponent
19+
20+
To read more about Pyth, please navigate to [the Pyth documentation](https://docs.pyth.network/solana-price-feeds).
21+
22+

0 commit comments

Comments
 (0)