pyth

Fetch and validate real-time Pyth price data for Solana programs.

11|13|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/MetalLegBob/drfraudsworth --skill pyth-metallegbob
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pyth
Source: https://github.com/MetalLegBob/drfraudsworth/tree/main/.claude/skills/pyth-skill
Command: npx skills add https://github.com/MetalLegBob/drfraudsworth --skill pyth-metallegbob

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Retrieves and validates real-time price data from the Pyth oracle to power Solana-based DeFi applications, including on-chain feeds, EMA pricing, and confidence-bound checks.

Core Features & Use Cases

  • Real-Time Price Feeds: Access reliable price updates for multiple assets with low latency.
  • Confidence Intervals: Provide uncertainty bounds for risk management and liquidation decisions.
  • EMA Prices: Exponential moving averages to smooth price signals for sensitive operations.
  • On-Chain & Off-Chain Integration: On-chain CPI and off-chain data via Hermes for comprehensive tooling.
  • Use Case: DeFi lending, collateral valuation, and price-driven event triggers.

Quick Start

Install the Hermes client and the Pyth Solana receiver, then fetch the latest price updates for a feed and plug them into your Solana program.

Frequently Asked Questions about pyth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch real-time Pyth price feeds for a Solana program?

To fetch real-time Pyth price feeds for a Solana program, install the Hermes client and Pyth Solana receiver, retrieve latest updates, and pass them into your program via on-chain CPI. This enforces feed verification and freshness checks for production DeFi.

What are confidence intervals in Pyth oracle price feeds used for?

Confidence intervals in Pyth oracle price feeds represent uncertainty bounds around the reported price. They are used for risk management and liquidation decisions, ensuring Solana DeFi applications handle volatile assets safely by avoiding acting on unreliable prices.

Can I access Pyth price data off-chain for Solana development?

Yes, you can access Pyth price data off-chain for Solana development by using the Hermes client. Hermes enables comprehensive off-chain data access alongside on-chain CPI integration, allowing you to validate real-time price updates before submitting transactions.

When should I use EMA prices from a Pyth oracle instead of spot prices?

You should use EMA prices from a Pyth oracle for sensitive Solana DeFi operations requiring smoothed price signals. Exponential moving averages filter short-term volatility, making them ideal for collateral valuation and lending protocols where stable pricing is critical.

Does the Pyth Solana receiver enforce freshness checks for production DeFi applications?

Yes, the Pyth Solana receiver enforces freshness checks and feed verification suitable for production-grade DeFi applications. It validates that real-time price data is current and reliable before integration, preventing stale price execution in Solana programs.