Crate pyth_sdk_solana

source ·
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

A price with a degree of uncertainty at a certain time, represented as a price +- a confidence interval.
Represents a current aggregation price from pyth publisher feeds.

Enums

Errors that may be returned by Pyth.

Constants

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

Functions

Loads Pyth Price Feed from Account when using Solana Client.
Loads Pyth Feed Price from Price Account Info.

Type Definitions

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