Perelyn aca7380e1b feat: remove steel examples (#420) 2 هفته پیش
..
anchor 40aed81963 chore: bumped versions (#378) 4 ماه پیش
README.md b6f68abb8c Add Pyth readme 2 سال پیش

README.md

What is Pyth ?

Pyth is an Oracle that offers on-chain low-latency market data from institutional sources. This means you can use prices from real-life assets in your Solana programs.

The price for each asset will be represented inside of a Solana account. We call those accounts price feeds.

For example, the price feed for SOL/USD on mainnet is represented on this account address: H6ARHf6YXhGYeQfUzQNGk6rDNnLBQKrenN712K4AQJEG.

You can find more of these price feeds here.

To use such a price feed, you need to pass its account into your instructions context.

You can get an asset's information by reading the account's data. The feed will consist of:

  • A price
  • A confidence interval
  • An exponent

To read more about Pyth, please navigate to the Pyth documentation.