Module price_update

Source

Structs§

Price
A Pyth price. The actual price is (price ± conf)* 10^exponent. publish_time may be used to check the recency of the price.
PriceFeedMessage
PriceUpdateV2
A price update account. This account is used by the Pyth Receiver program to store a verified price update from a Pyth price feed. It contains:

Enums§

VerificationLevel
Pyth price updates are bridged to all blockchains via Wormhole. Using the price updates on another chain requires verifying the signatures of the Wormhole guardians. The usual process is to check the signatures for two thirds of the total number of guardians, but this can be cumbersome on Solana because of the transaction size limits, so we also allow for partial verification.

Functions§

get_feed_id_from_hex
Get a FeedId from a hex string.

Type Aliases§

FeedId
Id of a feed producing the message. One feed produces one or more messages.