File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments