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§

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.
PriceFeed
Represents a current aggregation price from pyth publisher feeds.

Enums§

PythError
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_accountDeprecated
Loads Pyth Price Feed from Account when using Solana Client.
load_price_feed_from_account_infoDeprecated
Loads Pyth Feed Price from Price Account Info.

Type Aliases§

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