Launching today
TradeGate
Deterministic execution firewall for AI trading agents
1 follower
Deterministic execution firewall for AI trading agents
1 follower
TradeGate sits between AI agents (MCP / Python) and paper brokers. Every order passes 17 fail-closed risk gates, binary-search size trimming, a disk-latched emergency stop, and a tamper-proof SHA-256 audit log. Open source, paper/sandbox only.



Free
Launch Team

Build your Framer site from Claude, Codex or CursorYour AI agent builds it. You review before it goes live.
Promoted
Hey Product Hunt! š I'm Harsh, solo builder behind TradeGate.
The Problem
Seven major brokerages launched MCP servers in 2026 so AI agents can trade ā and immediately hit a safety wall. Interactive Brokers refuses MCP order submission (drafts only), while others turn confirmations off by default for external agents.
Prompt guardrails aren't enough when money moves. LLMs hallucinate position sizes, retry timed-out HTTP calls into double fills, trade on stale balances or market holidays, and get hijacked by indirect prompt injection in external news.
How TradeGate Works
TradeGate sits outside the LLM as a deterministic pre-trade execution firewall (paper & sandbox only):
⢠17 fail-closed risk gates: mode allowlist, order sanity, restricted lists, exchange hours & holidays, 300s snapshot freshness, durable duplicate detection, ±5% limit price collar, and unpriced holdings.
⢠8 monotone sizing rules + auto-trim: when an agent tries an oversized buy ($80k = 80% of a $100k account against a 20% cap), binary search trims it to the exact largest legal share count (49 shares) instead of crashing the loop.
⢠OS single-writer lock + disk-latched Emergency Stop: an unapproved or overfilled broker trade immediately freezes all trading across restarts until a human enters a reasoned unlock.
⢠Tamper-proof SHA-256 audit.jsonl: every check, trim, block, fill, and rule change is hash-chained and fsync'd to disk. Download the raw log and run tradegate verify-audit locally to verify zero tampering.
Try It Live in 10 Seconds (Zero Login)
Click "Run All 8 Tests" on https://hkedia08-tradegate.hf.space to watch real attacks get caught live ā including a prompt-injection hijack, oversized auto-trim, rogue-fill emergency stop, and a 1-byte log tamper check. Open Rules to tighten limits live or click Use With AI for the 5-line MCP config for Claude Desktop, Cursor, or Copilot.
(Paper & sandbox adapters only ā SQLite LocalPaperBroker and AlpacaPaperBroker strictly allowlisted to paper-api.alpaca.markets. Both refuse live mode fail-closed.)
What's the #1 risk rule or broker integration you'd want before letting an AI agent touch even a paper account? Would love your feedback below!