Skip to main content
Use live data feeds from ESPN (sports), NWS (weather), and Chainlink (on-chain oracles) to price prediction markets with real-world data.

ESPN Sports Feed

Trade NBA game outcome markets using live ESPN scoreboard data:

NWS Weather Feed

Trade weather prediction markets using National Weather Service forecasts and alerts:
Use Chainlink price feeds as an on-chain data source for crypto prediction markets:

How It Works

  1. ESPNFeed polls the ESPN API for live game data (scores, time remaining, game status) and converts it to a FeedSnapshot with price representing win probability
  2. NWSFeed fetches NWS point forecasts and active alerts, providing precipitation probability as the feed price
  3. ChainlinkFeed reads on-chain price oracles via JSON-RPC eth_call, providing decentralized price data

Combined Example

Use multiple real-world feeds together:

Run It

See Feeds for the full feed reference.