Show HN: TradeGate – Deterministic pre-trade firewall for AI trading agents
Category: security
Tags: ai-agent-safety, trading, audit-log, risk-engine, mcp, python
Score: 6.8/10 (Innovation: 6, Technical: 8, Documentation: 8, Utility: 5)
TradeGate is a deterministic pre-trade execution firewall, audit chain, and MCP server that sits between AI trading agents and paper/sandbox brokers. It enforces 17 gate rules and 8 monotone sizing rules with fail-closed behavior, an OS single-writer lock, a latching kill switch, and a SHA-256 hash-chained audit log. The project is notable for treating AI agent safety as an enforcement problem with tamper-evident auditing rather than relying on prompt-level guardrails.
Target audience: AI agent developers, quantitative traders, fintech engineers, and security engineers building safe tool-use pipelines
Repository: https://github.com/hkedia08/tradegate · Python · MIT
View on Hacker News