|
před 1 rokem | |
---|---|---|
.. | ||
migrations | před 1 rokem | |
programs | před 1 rokem | |
programs_py | před 2 roky | |
tests | před 1 rokem | |
.gitignore | před 2 roky | |
.prettierignore | před 2 roky | |
Anchor.toml | před 2 roky | |
Cargo.toml | před 1 rokem | |
README.md | před 2 roky | |
package.json | před 1 rokem | |
tsconfig.json | před 1 rokem |
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.