|
há 1 ano atrás | |
---|---|---|
.. | ||
migrations | há 1 ano atrás | |
programs | há 1 ano atrás | |
programs_py | há 2 anos atrás | |
tests | há 1 ano atrás | |
.gitignore | há 2 anos atrás | |
.prettierignore | há 2 anos atrás | |
Anchor.toml | há 2 anos atrás | |
Cargo.toml | há 1 ano atrás | |
README.md | há 2 anos atrás | |
package.json | há 1 ano atrás | |
tsconfig.json | há 1 ano atrás |
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.