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

Structures and functions for interacting with Solana on-chain account data.

Structs

Represents a current aggregation price from pyth publisher feeds.

A price with a degree of uncertainty, represented as a price +- a confidence interval.

Enums

Represents availability status of a price feed.

Errors that may be returned by Pyth.

Constants

Maximum valid slot period before price is considered to be stale.

Functions

Loads Pyth Price from the raw byte value of a Solana account.

Type Definitions

Consists of 32 bytes and it is currently based on largest Public Key size on various blockchains.