# Kalshi AI Trading Bot Speedrunning - Can We Profit In 12 Hours?
<!--
ref: @content/youtube/all-about-ai/2026-08-22-kalshi-ai-trading-bot-speedrunning-can-we-profit-in-12-hours
tags: [prediction-markets, ai-coding-agents, algorithmic-trading, hypothesis-testing, volatility-filter, websocket-execution, ai-agents]
version: 6
updated_at: 2026-11-21T20:23:50.889Z
-->

*Synthesized from All About AI on All About AI, 2026-08-22.*

The host of All About AI narrates a solo, unscripted speedrun: going from zero to a live prediction-market trading bot on Kalshi's Bitcoin up/down 15-minute market in a single evening, using Codex with GPT-5.6 on "high" reasoning plus two of his own pre-built agent skills. (The host does not state his name on camera; no guests appear.)

## Core Thesis

The bottleneck in systematic trading research is no longer writing code or running backtests — it's having a repeatable pipeline, and coding agents plus purpose-built skill files now collapse that pipeline from weeks to hours. The host's argument is that a hobbyist can generate hypotheses from raw market data, validate them with walk-forward and out-of-sample testing, ship the winner as live execution code, and have real money working overnight. He is careful to separate the speed claim from the edge claim: a 15.7% overnight gain on a $120 account proves the workflow, not the strategy's long-run expectancy.

## Key Insights

- The workflow splits into two distinct, pre-written skill files rather than one mega-prompt: a **research skill** whose explicit instruction is *don't test anything* — just read the data, surface what's strange about it, and propose hypotheses — and a separate **hypothesis tester skill** that runs backtesting, walk-forward, and out-of-sample validation. Keeping generation and validation apart is what stops the agent from fitting a story to noise.
- Kalshi exposes a historical data endpoint, and the host simply pasted that documentation link into Codex and told it to read the historical data before doing anything else. Grounding the agent in the actual field schema (timestamps, historical coverage) came before hypothesis generation.
- Five hypotheses came out of the research pass. Two were rejected outright by the tester (an outcome-alternation idea and a "minute-five under-dispersion" idea). Three survived. None were great — the host says so plainly — but hypothesis #1, a **volatility persistence** effect, was worth taking live.
- He asked the agent for **estimated trades per day** straight out of the data before committing, and got **32 trades/day** under a top-third volatility filter. Trade frequency is a go/no-go input, not an afterthought: a strategy that fires twice a week can't be evaluated overnight.
- The final strategy is small enough to state in five lines. Look at the **immediately previous 15-minute contract**; compute its absolute **BRTI** move from start to close; it must be at least **15.4 basis points** to qualify (historical top tier of volatility). In the current contract at the **5-minute** mark, take the **yes midpoint** — above 50¢ buy yes, below 50¢ buy no, exactly 50¢ skip. Wait one full minute. At **minute six**, place a **$5 fill-or-kill order** against a **fresh WebSocket book**, subject to depth and timing checks.
- The host explicitly redirected the agent mid-plan to **use WebSockets instead of polling** for the order book. Reading a stale book on a contract that resolves in fifteen minutes is how a paper edge dies in execution.
- Results after roughly 24 hours: the account went from **$120 to $137** — just under **$20**, a **15.7%** gain — on **18 trades, 14 wins and 4 losses**, with a **maximum drawdown of about $12** (roughly three consecutive losses). P&L was around **+$15** at the point he checked the drawdown chart. With trades sized at $5 and payoffs near even money, win rate is the dominant variable.
- The host does not oversell it: he expects no strong long-run return from this model, only that it can be interesting in certain regimes. The filter's selectivity was visible live — one window skipped because the preceding BTC move was **4 basis points** against the 15.4 bp threshold.
- He mentions a side project, a "micro hedge fund for AI agents" with strategies published at **maxxquant.com**, designed so an agent could allocate as little as **one-millionth of a dollar** via a crypto rail. He notes the account's early drawdown was research spend, and the curve since has been steady rather than steep.
- Model choice is deliberately fungible. He lists **GPT-5.6, Claude Code, opencode, Kimi K2 (Kimi-K-tree), GLM, and Qwen** as interchangeable drivers for this kind of work — the structured skills carry the method, not the model.

## Actionable Takeaways

1. **Point the agent at the data source first.** Copy the Kalshi historical-data documentation link into Codex and have it read the endpoint — fields, timestamps, coverage — before you ask a single research question.
2. **Run a research-only skill that is forbidden to test.** Its job is to look at the data, ask what's anomalous, and emit a set of candidate hypotheses. The host got 5 from one pass on the BTC 15-minute up/down market.
3. **Run a separate tester skill** that puts each hypothesis through backtesting, walk-forward, and out-of-sample analysis, and let it reject candidates. Two of five died here.
4. **Ask for estimated trades per day before you build.** The volatility-persistence hypothesis with a top-third filter projected 32 trades/day — enough to get a readable sample in one overnight session.
5. **Write the spec tightly, then hand it over.** The host's prompt named the exact filter (top-third, 90% threshold), the expected 32 trades/day, told the agent credentials were in the environment (`.env`), and asked it to confirm readiness before running — rather than letting it improvise scope.
6. **Specify WebSockets, not polling,** for the order book. Place against a freshly-read book.
7. **Use fill-or-kill at small fixed size.** $5 per order with depth and timing checks means a missed fill costs nothing, and the tick-level entry rule stays honest.
8. **Size the account so the experiment is cheap.** $120 of live capital was enough to produce an 18-trade sample and a real $12 drawdown without the outcome mattering financially.
9. **Check health before you walk away.** The host asked the running bot to confirm it was healthy and got back a live explanation of why the current window was being skipped (4 bp move vs. the 15.4 bp requirement) — a good signal the filter is actually wired in.
10. **Read a good overnight result as workflow validation, not edge discovery.** 15.7% on 18 trades is a small sample; the host's own expectation for long-run returns on this model is low.

## Notable Quotes

> "I just wanted to see how fast we actually can do this kind of like a speed run." — All About AI

> "We always want to use the web socket, right?" — All About AI

> "I don't have like a big expectation of good returns over long time for this model. But in periods, this could be super interesting." — All About AI

> "14 wins, four losses, not bad." — All About AI

---

*Related: `@content/youtube/yc-root-access/building-ai-for-the-650b-home-services-market` · `@content/youtube/steph-france/marketers-do-with-openclaw` · `@content/youtube/steph-france/hidden-openclaw-business-use-cases` · `@content/youtube/steph-france/ai-agents-automation-spectrum` · `@content/youtube/all-about-ai/2026-07-29-opus-5-vs-gpt-5-6-on-polymarket-predictions-week-1`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*