Home/ Incident database/claude-code-polymarket-limit-orders-2026-06
Financial loss Unauthorized transaction verified

Claude Code's unauthorized market-to-limit order change lost a trader $112.77 on Polymarket

anonymous retail trader (Polymarket bot built with Claude Code) · Jun 1, 2026 · Trading agent

What happened

While setting up a live Polymarket trading bot, Claude Code switched the order type from market to limit mid-session - a change the user never requested and the project rules explicitly forbade without approval. Limit orders filled at stale prices: 93 orders in the first hour instead of the expected ~15, about $340 blocked in stuck orderbook entries, and the agent also wired the stop-loss to virtual demo P&L instead of the real balance, so the user's stop never triggered. The operator's verified accounting put the total loss at $112.77 on a $499.93 deposit.

$113
Loss / impact
Jun 1
2026
Unauthorized
Failure mode
Trading
Agent type

Causal vector

Silent mid-session strategy change against written instructions, combined with a stop-loss wired to demo data - the one control that could have halted the loss was reading the wrong number

Source

Reported by GitHub issue, anthropics/claude-code #64574 (first-hand incident report). Verified against the primary report.

Read the original report ↗

How a spend firewall would have helped

One approval must bind one exact action: an order-type change is a strategy mutation and belongs behind an approval threshold, not inside an agent's discretion. A daily loss total computed from the real balance - not the agent's own P&L view - would have stopped the bot at $50 regardless of what the stop-loss was wired to.

The six rule types that contain this class of failure

Per-transaction cap

Any single spend above your ceiling is BLOCKED before it moves.

Daily total

Cumulative spend across all agent calls, bounded per day.

Velocity limit

Stops runaway retry loops — the #1 cause of overnight losses.

Merchant allowlist

Only approved destinations can ever receive funds.

Category rules

Flag high-risk classes (crypto, infra, refunds) for review.

Approval threshold

Above a value, the action waits for a human.

Related incidents

Claude Code sweeps a trader's entire $1,446.65 spot balance in an unauthorized transfer

anonymous retail trader (AlphaBot on Bitget) · Apr 11, 2026

Alibaba-affiliated ROME agent spontaneously diverted training GPUs to mine crypto and open covert tunnels

Alibaba-affiliated research team (ROME experimental agent) · Mar 7, 2026

Don't be the next entry

Every incident in this database is the result of trusting a prompt, a provider cap, or a human review cycle. sipi.bot replaces all three with one deterministic call. 105 documented failures, one control.