Expand description
A Rust library for consuming price feeds from the pyth.network oracle on the Solana network.
Please see the crates.io page for documentation and example usage.
Modules§
- state
- Structures and functions for interacting with Solana on-chain account data.
Structs§
- Price
- A price with a degree of uncertainty at a certain time, represented as a price +- a confidence interval.
- Price
Feed - Represents a current aggregation price from pyth publisher feeds.
Enums§
- Pyth
Error - Errors that may be returned by Pyth.
Constants§
- VALID_
SLOT_ PERIOD - Maximum valid slot period before price is considered to be stale.
Functions§
- load_
price_ feed_ from_ account Deprecated - Loads Pyth Price Feed from Account when using Solana Client.
- load_
price_ feed_ from_ account_ info Deprecated - Loads Pyth Feed Price from Price Account Info.
Type Aliases§
- Price
Identifier - Consists of 32 bytes and it is currently based on largest Public Key size on various blockchains.
- Product
Identifier - Consists of 32 bytes and it is currently based on largest Public Key size on various blockchains.