How to get Kalshi and Polymarket prices into Google Sheets
Google Sheets has no built-in formula for prediction market prices. You can write your own script, or install an add-on that gives you ready-made formulas. This page covers both.
Option 1: the EventPrice add-on (about 1 minute)
- Install EventPrice from the Google Workspace Marketplace.
- Open any Google Sheet.
- Type a formula.
Coming soon to the Google Workspace Marketplace
Free. No exchange login needed.
For a Kalshi market, use its ticker:
=KALSHI("TICKER")
For every market in a Kalshi event or series, such as New York City's daily high temperature:
=KALSHI_MARKETS("KXHIGHNY")
That returns a table with each outcome's bid, ask, last price, volume and close date.
For a Polymarket market, paste its link:
=POLYMARKET("https://polymarket.com/event/your-market-link")
Add a second argument to get a different field, for example 24-hour volume:
=POLYMARKET("https://polymarket.com/event/your-market-link", "volume_24h")
Option 2: write your own script
Both exchanges publish free public data feeds, so you can fetch prices yourself. In your sheet, open Extensions, then Apps Script, and write a function that requests the market's data and returns the price. You will need to handle the data format, errors, rate limits and refresh timing yourself. This works well if you are comfortable with JavaScript and only need a few markets.
What you can build
- A watchlist of markets across both exchanges on one sheet
- A side-by-side comparison of the same event on Kalshi and Polymarket
- A position tracker: your entry price in one column, the live price in the next, profit or loss in a third
- Position sizing with
=KELLY(your_probability, price)
Good to know
- Prices are between 0 and 1. A price of 0.62 means the market puts the chance at about 62%.
- Prices refresh at most once a minute.
- EventPrice reads public data only. It never asks for your exchange login.
All formulas
| Formula | Returns |
|---|---|
=KALSHI("TICKER") | Last traded price, in dollars (0 to 1) |
=KALSHI("TICKER", "yes_ask") | One field: last, yes_bid, yes_ask, no_bid, no_ask, volume, volume_24h, open_interest, status, result, close_time, name, event |
=KALSHI_MARKETS("TICKER") | Every market in an event or series. Optional second argument: open, closed or settled |
=POLYMARKET("link") | Current YES price (0 to 1) |
=POLYMARKET("link", "volume_24h") | One field: yes, no, last, bid, ask, volume, volume_24h, liquidity, change_1d, change_1w, question, end_date, closed |
=POLYMARKET_EVENT("link") | Every market in an event |
=KELLY(0.60, 0.45) | Share of bankroll to stake if you believe 60% and YES costs $0.45. Optional third argument for fractional Kelly, such as 0.5. Fees are not included |