|
il y a 1 an | |
---|---|---|
.. | ||
migrations | il y a 1 an | |
programs | il y a 1 an | |
programs_py | il y a 2 ans | |
tests | il y a 1 an | |
.gitignore | il y a 2 ans | |
.prettierignore | il y a 2 ans | |
Anchor.toml | il y a 2 ans | |
Cargo.toml | il y a 1 an | |
README.md | il y a 2 ans | |
package.json | il y a 1 an | |
tsconfig.json | il y a 1 an |
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.