r/PredictionMarkets • • 1d ago

Python dev exploring prediction markets — what's the most annoying manual check or monitoring gap you still deal with?

Not selling anything and no links here — I'm a Python/automation dev learning the Polymarket & Kalshi ecosystems and trying to understand what real traders actually waste time on.

I keep seeing folks mention things like checking true orderbook exit depth while AFK, catching stale limit orders, filtering out market-maker noise when tracking wallets, or getting pinged on sudden rule clarifications.

If you trade actively, what's the #1 repetitive check or read-only alert you wish existed (without handing private keys to a third-party trading bot)? Happy to prototype 1–2 interesting read-only scripts in the open just to learn the space.

0 Upvotes

15 comments sorted by

1

u/Prestigious_Test379 1d ago

A few read-only checks I ended up wanting after running small bots on Kalshi's 15-minute markets:

  1. Is a window actually open right now? This morning the 15-minute BTC and gold series had nothing open from about 08:00 to 10:00 UTC, and GET /markets returned a couple of 500s around 08:17 and 08:32. A check that says "no open market, next one opens at X" saves a lot of confused debugging.

  2. Spendable cash against the cost of one contract. If cash is under (your price cap + the fee) for a single contract, every signal after that is a no-op. Worth an alert the moment it happens, not when you notice there were no fills all day.

  3. Resting orders that went stale. A limit placed exactly at the ask in the last few minutes often just sits there once the book moves a cent. Flag anything resting more than N seconds in a market that closes within M minutes.

  4. Refusals by series. With an API key that could trade but not transfer between Kalshi's exchanges, I've seen buys refused on NBA and college basketball markets while NHL and soccer filled, same account, same evening. A daily count of refused orders per series would have shown it on day one.

  5. For the gold and oil 15-minute markets: how far public spot is from the settlement print. In my logs a public gold proxy was off the settlement feed's 15-minute move by about 0.02 percentage points on average and 0.17 at worst. If your "above target" call is inside that gap, it isn't a call.

All of these need only the markets, balance and orders endpoints.

1

u/AlbatrossCommon4826 1d ago

This is gold — thank you for sharing actual production logs instead of theory. Checks #1–#3 (window status + 500 handling, spendable cash below contract+fee, and stale resting orders near close) look super clean to bundle into a lightweight read-only Kalshi watchdog script. For #1 and #3, are you mostly polling REST every few seconds or listening to a feed? Happy to hack together a small open-source prototype for #1–#3 and drop the repo here if it's useful

1

u/Prestigious_Test379 19h ago

REST polling only. I have not used the websocket feed, so I can't compare the two.

Each bot runs on a schedule, a few fixed minutes inside every 15-minute window, and reads the market and the book fresh at the start of the run. So #1 is just "ask for the series' open market": if there is none, the series' next event carries its open time. For #3 each run starts from open positions and resting orders, so a stale order is seen at most one run later.

For a standalone watchdog I'd poll slowly for most of the window and tighten to every 10 to 30 seconds in the last five minutes, since that is when an order placed at the ask gets left behind. Treat a 500 as "unknown", not as "closed", and retry: mine were gone half an hour later.

1

u/AlbatrossCommon4826 8h ago

Super clear, thank you — the adaptive polling (slow early, 10–30s in the final 5 mins) and treating 500 as unknown instead of closed are exact operational details I would've gotten wrong from docs alone. I'll put together a clean REST-only prototype around this and drop it back here once it's ready

1

u/AlbatrossCommon4826 18m ago

Put together a first cut of the public REST-only watchdog based on your notes:https://github.com/larry-egfl/kalshi-readonly-watchdog

The window mode handles OPEN / NO_OPEN_WINDOW (pulling the next unopened event's open_time), treats 5xx as UNKNOWN with retries instead of closed, and tightens polling automatically in the final 5 minutes. Kept it strictly public-endpoint for now so anyone can test it without keys — curious if the state logic matches what you'd expect before I wire up optional authenticated checks for spendable cash and stale resting orders.

1

u/charvelchedraui 1d ago

i'd want an alert when a market's close time and its resolution source don't line up, like a market that closes before the data it resolves on is published. those are the ones where people get surprised.

1

u/AlbatrossCommon4826 1d ago

Really sharp catch — I hadn't thought about close-time vs. resolution-source release mismatch. Are you seeing this mostly on Kalshi econ/data markets or Polymarket? If there's a clean way to flag markets where close_time sits earlier than the scheduled release, that could be a neat read-only scanner.

1

u/charvelchedraui 18h ago

i'd start with econ and data markets since the release time is public. pull close_time, compare it to the release calendar, and flag anything that closes before the number is out.

1

u/AlbatrossCommon4826 8h ago

Makes total sense — starting with econ/data series where release timestamps are fixed makes the comparison clean and reliable. Going to inspect how Kalshi exposes close_time on those series first and see how cleanly it maps

1

u/charvelchedraui 7h ago

post what you find. if even one series closes after the number is out, that's the case for the whole tool.

1

u/AlbatrossCommon4826 6m ago

Just ran a quick scan across 5 flagship econ series (KXCPI, KXCPIYOY, KXFED, KXGDP, KXPAYROLLS) and checked their close_time against official BLS/BEA/FOMC schedules:

  • KXCPI, KXCPIYOY, KXPAYROLLS, KXGDP: all close at 8:29 AM ET (1 min before the 8:30 AM ET print)

  • KXFED: closes at 1:55 PM ET (5 min before the 2:00 PM ET FOMC statement)

So on the headline macro series, Kalshi consistently locks trading 1–5 min before the number drops (all with can_close_early=True, and a 1.5h–5h gap between close_time and expected_expiration_time while waiting on settlement). One unexpected catch from the diff though: KXPAYROLLS-26DEC is currently missing the secondary close-time rule clause that KXPAYROLLS-26NOV has.

Here's the little read-only CLI I used to pull this:https://github.com/larry-egfl/kalshi-readonly-watchdog

If there are smaller/less-watched data series where you've seen close_time actually slip past the release (or behave weirdly), drop a couple tickers and I'll scan those next.

1

u/Rich_Dragonfly2424 1d ago

If I were building read-only checks, I would start with the boring ones. Ping me when a limit order has gone stale, when exit depth is too thin to get out at my price, and when fees would wipe the leftover edge on a trade I am about to place.

I would also write the exit rule and a daily stop before the entry. Then I would log every alert versus what I actually did, and test any new rule on weeks I did not use to design it. A check that looks smart on old data can fail on fresh data.

Keep any bot small and read-only until those habits are solid. This is not financial advice.

1

u/Any-Aide-1230 1d ago

The one I keep hitting is boring: going back to a long dated market weeks later with no record of what the price was when I made my call, or why I made it. Exit depth alerts are great for active positions, but for slower markets the gap is memory, not speed. I'm working on a journal side project (Sayf) around that review side, so I'm curious too. For people here, is the bigger pain the live monitoring OP describes, or the review afterward? And has anyone actually paid for a tool for either?

1

u/Shoddy_Peanut7320 1d ago

I'd start with an alert for rule or resolution wording changes, since a small edit can change what you're actually holding and it's easy to miss. Second would be exit depth, meaning what you'd really get if you sold your whole position into the book right now, not just the last price. Both can stay read-only. If you also like trading around news and events, Cymetica's Event Cards are another way to do it with stocks and crypto.