👎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§
- instruction
Deprecated - Program instructions for end-to-end testing and instruction counts
- processor
Deprecated - Program instruction processor for end-to-end testing and instruction counts
Structs§
- AccKey
Deprecated - Public key of a Solana account
- Attribute
Iter Deprecated - Ema
Deprecated - An exponentially-weighted moving average.
- Mapping
Deprecated - Mapping accounts form a linked-list containing the listing of all products on Pyth.
- Price
Deprecated - Price accounts represent a continuously-updating price feed for a product.
- Price
Comp Deprecated - The price and confidence contributed by a specific publisher.
- Price
Conf Deprecated - 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
, whereexpo
is the exponent. For example: - Price
Info Deprecated - A price and confidence at a specific slot. This struct can represent either a publisher’s contribution or the outcome of price aggregation.
- Product
Deprecated - Product accounts contain metadata for a single product, such as its symbol (“Crypto.BTC/USD”) and its base/quote currencies.
Enums§
- Account
Type Deprecated - The type of Pyth account determines what data it contains
- Corp
Action Deprecated - Status of any ongoing corporate actions. (still undergoing dev)
- Price
Status Deprecated - The current status of a price feed.
- Price
Type Deprecated - The type of prices associated with a product – each product may have multiple price feeds of different types.
- Pyth
Error Deprecated - Errors that may be returned by Pyth.
Constants§
- ID
Deprecated - The const program ID.
- MAGIC
Deprecated - MAP_
TABLE_ SIZE Deprecated - MAX_
SLOT_ DIFFERENCE Deprecated - PROD_
ACCT_ SIZE Deprecated - PROD_
ATTR_ SIZE Deprecated - PROD_
HDR_ SIZE Deprecated - VERSION
Deprecated - VERSION_
2 Deprecated
Functions§
- check_
id Deprecated - Returns
true
if given pubkey is the program ID. - id
Deprecated - Returns the program ID.
- load_
mapping Deprecated - Get a
Mapping
account from the raw byte value of a Solana account. - load_
price Deprecated - Get a
Price
account from the raw byte value of a Solana account. - load_
product Deprecated - Get a
Product
account from the raw byte value of a Solana account.