Module pyth_sdk_solana::state

source ·
Expand description

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

Structs

Mapping accounts form a linked-list containing the listing of all products on Pyth.
A price with a degree of uncertainty at a certain time, represented as a price +- a confidence interval.
Price accounts represent a continuously-updating price feed for a product.
The price and confidence contributed by a specific publisher.
Represents a current aggregation price from pyth publisher feeds.
A price and confidence at a specific slot. This struct can represent either a publisher’s contribution or the outcome of price aggregation.
Product accounts contain metadata for a single product, such as its symbol (“Crypto.BTC/USD”) and its base/quote currencies.
An number represented as both value and also in rational as numer/denom.

Enums

The type of Pyth account determines what data it contains
Status of any ongoing corporate actions. (still undergoing dev)
Represents availability status of a price feed.
The type of prices associated with a product – each product may have multiple price feeds of different types.

Constants

Functions

Get a Mapping account from the raw byte value of a Solana account.
Get a Price account from the raw byte value of a Solana account.
Get a Product account from the raw byte value of a Solana account.

Type Definitions

EmaDeprecated