Keshav and I spend a lot of time on prediction markets. If we’re watching a game, following an election, or reading about the Fed, one of us usually opens a new tab to check the odds. Over time the markets became our default way to see what people actually expect to happen.
The annoying part was everything around that habit. We’d leave the article to hunt for the right market. When we found a quote or chart worth keeping, there was nowhere to put it next to the odds, so it usually got lost in a pile of open tabs.
So we built 'What Are the Odds', a Chrome extension that brings the odds to the article you’re already reading and keeps a record of what you learn along the way.
What it does:
Open the extension on a news article and it finds related prediction markets, starting with Gemini. For each market you can:
- See the current odds and how the price moved over the last day, week, or month
- Read the settlement rules, which is where most of the surprises are
- Clip passages or images to that market in the Info Library
- Take a position if you feel confident
As you clip, each market builds up a brief with your original sources, a snapshot of the odds, and the market’s rules.
How we built it:
Claude reads the headline and up to 5,000 characters of the article and pulls out the questions the story leaves open. We search Gemini’s event API for matching contracts and quotes, then fetch candles by contract symbol to chart price history. Polymarket fills in when it has a closer match or Gemini has nothing. Everything you save stays local in your Chrome profile, including clips, chart snapshots, and simulated positions.
Challenges and what we learned
Finding the right market was much harder than we expected. Search finds markets that sound like the article, but it often misses the one that answers the article’s question. A story about a team’s next game and a market on whether that team wins the season share almost every keyword, and they’re completely different bets. We ended up checking the event, the timeframe, and the settlement conditions together. The extension also shows the exact passage that connects the article to the market, so readers can judge the match for themselves. We check that the passage appears word for word in the article, because a model will occasionally quote something the article never said.
The data was messier than we assumed. Gemini and Polymarket structure events and prices differently, so a lot of our time went into normalizing both into something one chart could draw. Plenty of contracts barely trade. When we spot-checked four live Gemini contracts, two had no price history at all. We chart only what the exchange returns, even when that leaves a sparse line.
Speed was also a problem, since one article takes several requests. We search both exchanges in parallel, cache recent lookups, and show the matched markets before their charts finish loading.
Built With
- anthropic-claude-api
- canvas-api
- chrome
- css
- gemini-prediction-markets-api
- html
- indexeddb
- javascript
- manifest-v3
- node.js
- polymarket-api