|
hai 1 ano | |
---|---|---|
.. | ||
migrations | hai 1 ano | |
programs | hai 1 ano | |
programs_py | %!s(int64=2) %!d(string=hai) anos | |
tests | hai 1 ano | |
.gitignore | %!s(int64=2) %!d(string=hai) anos | |
.prettierignore | %!s(int64=2) %!d(string=hai) anos | |
Anchor.toml | hai 1 ano | |
Cargo.toml | hai 1 ano | |
README.md | %!s(int64=2) %!d(string=hai) anos | |
package.json | hai 1 ano | |
tsconfig.json | hai 1 ano |
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.