Repository navigation
Drop-in Apache-2.0 deterministic risk firewall + Touch ID approval gate for TradingAgents #1729
abrichr
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Built a small Apache-2.0 wrapper to put a deterministic Python risk firewall and 1-tap Touch ID approval gate between
TradingAgentsfinal decisions and a live broker (IBKR or Alpaca), so the LLM never holds broker credentials or sends market orders directly.What it enforces outside the LLM
MARKET_ORDER_FORBIDDEN)MISSING_HARD_STOP)Try it locally (zero API keys needed)
Full example: https://github.com/clearfills/clearfills/blob/main/examples/tradingagents_clearfills.py
You can also run
clearfills benchmarklocally to test 25 adversarial prompt-injection and fat-finger scenarios against the firewall (<1ms p99). Happy to answer questions or take PRs if anyone wants additional venue adapters.All reactions