Skip to content

Files

Latest commit

b237b18 · Jul 11, 2024

History

History

seahorse

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jun 4, 2024
Apr 26, 2024
May 15, 2023
Jun 4, 2024
May 15, 2023
May 15, 2023
Jul 11, 2024
Apr 26, 2024
May 15, 2023
Jun 4, 2024
Jun 4, 2024

Using Seahorse with Pyth

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.