finds.dev← search

// the find

pyth-network/pyth-sdk-rs

★ 112 · Rust · Apache-2.0 · updated Aug 2025

Pyth SDK in Rust

Rust SDK for consuming Pyth Network oracle price feeds, targeting primarily Solana on-chain programs but also off-chain use cases. It provides price feed reading, confidence interval handling, and basic price combination utilities. Mainly useful if you're building Solana DeFi contracts that need reliable price data.

- Clean separation between the chain-agnostic `pyth-sdk` crate and the Solana-specific `pyth-sdk-solana` crate — makes the core types reusable across potential future chain integrations

- Both raw and Anchor-based Solana examples are included with deploy scripts, which meaningfully reduces setup friction for new integrators

- JSON Schema generation from Rust types via `cargo run --example schema` is a practical touch for cross-language interop and is enforced in CI

- Confidence interval is a first-class concept in the price types, which is the right design for oracle data — too many price feed integrations ignore this entirely

- Only 112 stars and the scope is narrow — this covers Solana and nothing else despite the 'SDK' branding; EVM/CosmWasm users need to look elsewhere (pyth-crosschain)

- The pyth-sdk base crate has very thin documentation and the price combination utilities (baskets, non-USD quote currencies advertised in the README) are minimal to the point of being toy implementations

- No mock/stub types for testing contracts that consume this SDK — you're expected to either hit devnet or wire up real account data in tests, which is painful

- The README still references only ~50 markets which is years out of date, suggesting the docs aren't kept in sync with the actual product, which raises questions about other staleness

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →