finds.dev

pyth-network/pyth-sdk-rs

Pyth SDK in Rust

View on GitHubHomepage ↗

★ 112RustApache-2.0updated Aug 2025

// the take

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

We read the README, the directory tree and a key source file in June 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
112
Forks
70
Language
Rust
License
Apache-2.0
Last commit
14 Aug 2025

// nearby

If pyth-sdk-rs isn't quite it.

All repos →