SKIP TO CONTENT
Blockchain

Price Feed

A data stream providing real-time asset prices to smart contracts for DeFi operations.

What is a Price Feed?

A price feed is a data service that provides asset prices to smart contracts. Since blockchains cannot natively access off-chain data, price feeds bridge this gap, enabling DeFi protocols to function with accurate market information.

Why Price Feeds Matter

DeFi operations depend on accurate prices for:

  • Lending: Collateral valuations and liquidations
  • Derivatives: Settlement and margin calculations
  • Stablecoins: Peg maintenance mechanisms
  • Yield: APY calculations and rebalancing

Price Feed Providers

Chainlink: Market leader with extensive network
  • Decentralized node operators
  • Multiple data sources aggregated
  • Wide asset coverage
Pyth Network: High-frequency updates from market makers Band Protocol: Cross-chain oracle solution Uniswap TWAP: On-chain DEX-based pricing Redstone: Modular oracle design

Price Feed Mechanics

Pull Model: Contracts request prices when needed Push Model: Prices published on schedule or deviation

Update triggers:

  • Deviation threshold (e.g., 0.5% price change)
  • Heartbeat interval (e.g., every hour)
  • On-demand requests

Price Feed Quality Factors

Freshness: How recently was the price updated? Accuracy: Does it reflect true market price? Reliability: Uptime and availability Decentralization: How many independent sources? Latency: Time between market price and feed update

On-Chain vs Off-Chain Oracles

On-Chain (TWAP):
  • Uses DEX trading data
  • Manipulation resistant over time
  • Limited to on-chain pairs
  • May lag spot prices
Off-Chain (Chainlink):
  • Aggregates from exchanges
  • Real-time accuracy
  • Requires trust in operators
  • Broader asset coverage

Price Feed Risks

Stale Prices: Outdated data leading to incorrect operations Manipulation: Artificial price distortions Downtime: Feed unavailability Front-running: Exploiting pending updates

Best Practices for Protocols

  • Use multiple price sources
  • Implement staleness checks
  • Add circuit breakers for extreme moves
  • Fallback mechanisms for outages
  • Regular monitoring and alerting

Evaluating Price Feed Safety

Check:

  • Provider reputation and track record
  • Update frequency and freshness
  • Number of data sources
  • Historical accuracy and uptime
  • Protocol's fallback mechanisms

Examples

  • Chainlink provides 1000+ price feeds
  • Aave uses Chainlink oracles for all asset prices

Put this term to work. Browse live yield data.

Track live yields, compare protocols, and build your DeFi portfolio with Fensory.

GET EARLY ACCESSArrow right