|
vor 1 Jahr | |
---|---|---|
.. | ||
migrations | vor 1 Jahr | |
programs | vor 1 Jahr | |
programs_py | vor 2 Jahren | |
tests | vor 1 Jahr | |
.gitignore | vor 2 Jahren | |
.prettierignore | vor 2 Jahren | |
Anchor.toml | vor 1 Jahr | |
Cargo.toml | vor 1 Jahr | |
README.md | vor 2 Jahren | |
package.json | vor 1 Jahr | |
tsconfig.json | vor 1 Jahr |
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.