Ayush a3b87a4948 update: tokens native, formatter, trigger action on project changes (#81) 1 жил өмнө
..
migrations a3b87a4948 update: tokens native, formatter, trigger action on project changes (#81) 1 жил өмнө
programs 70efc6010f add idl-build to cargo.toml features 1 жил өмнө
programs_py f22f80270d add seahorse example 2 жил өмнө
tests a3b87a4948 update: tokens native, formatter, trigger action on project changes (#81) 1 жил өмнө
.gitignore f22f80270d add seahorse example 2 жил өмнө
.prettierignore f22f80270d add seahorse example 2 жил өмнө
Anchor.toml f22f80270d add seahorse example 2 жил өмнө
Cargo.toml 56dafe4b4a add resolver = "2" to fix compile warning 1 жил өмнө
README.md 9831611233 Update Seahorse README 2 жил өмнө
package.json a3b87a4948 update: tokens native, formatter, trigger action on project changes (#81) 1 жил өмнө
tsconfig.json a3b87a4948 update: tokens native, formatter, trigger action on project changes (#81) 1 жил өмнө

README.md

Using Seahorse with Pyth

Make sure to import the Pyth module for Seahorse.

from seahorse.pyth import *

You have to validate a price feed's ID for security reasons, if you want to read the SOL/USD price feed, you can verify the account in the context like this:

price_account.validate_price_feed("SOL/USD")

For more information, visit the Seahorse documentation on Pyth.