👎 Deprecated:

This crate has been deprecated. Please use pyth-sdk-solana instead.

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

instructionDeprecated

Program instructions for end-to-end testing and instruction counts

processorDeprecated

Program instruction processor for end-to-end testing and instruction counts

Structs

AccKeyDeprecated

Public key of a Solana account

AttributeIterDeprecated
EmaDeprecated

An exponentially-weighted moving average.

MappingDeprecated

Mapping accounts form a linked-list containing the listing of all products on Pyth.

PriceDeprecated

Price accounts represent a continuously-updating price feed for a product.

PriceCompDeprecated

The price and confidence contributed by a specific publisher.

PriceConfDeprecated

A price with a degree of uncertainty, represented as a price +- a confidence interval. The confidence interval roughly corresponds to the standard error of a normal distribution. Both the price and confidence are stored in a fixed-point numeric representation, x * 10^expo, where expo is the exponent. For example:

PriceInfoDeprecated

A price and confidence at a specific slot. This struct can represent either a publisher’s contribution or the outcome of price aggregation.

ProductDeprecated

Product accounts contain metadata for a single product, such as its symbol (“Crypto.BTC/USD”) and its base/quote currencies.

Enums

AccountTypeDeprecated

The type of Pyth account determines what data it contains

CorpActionDeprecated

Status of any ongoing corporate actions. (still undergoing dev)

PriceStatusDeprecated

The current status of a price feed.

PriceTypeDeprecated

The type of prices associated with a product – each product may have multiple price feeds of different types.

PythErrorDeprecated

Errors that may be returned by Pyth.

Constants

MAGICDeprecated
MAP_TABLE_SIZEDeprecated
PROD_ACCT_SIZEDeprecated
PROD_ATTR_SIZEDeprecated
PROD_HDR_SIZEDeprecated
VERSIONDeprecated
VERSION_2Deprecated

Statics

IDDeprecated

The static program ID

Functions

check_idDeprecated

Confirms that a given pubkey is equivalent to the program ID

idDeprecated

Returns the program ID

load_mappingDeprecated

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

load_priceDeprecated

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

load_productDeprecated

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