Skip to content

Remove risk limits to unbur den agent trading#11

Merged
brycedbjork merged 1 commit into
mainfrom
bryce/risk-limits-review
Feb 23, 2026
Merged

Remove risk limits to unbur den agent trading#11
brycedbjork merged 1 commit into
mainfrom
bryce/risk-limits-review

Conversation

@brycedbjork
Copy link
Copy Markdown
Collaborator

Summary

Comprehensively removed the risk limits system to maximize agent trading effectiveness. The system acted as a pre-trade brake, preventing orders that violated configured thresholds.

Removed:

  • Risk engine and all 10 pre-trade checks (position size, order value, daily loss, sector exposure, rate limiting, duplicate detection)
  • Risk monitors (heartbeat timeout, connection loss circuit breaker, drawdown breaker)
  • Risk commands (broker check/limits/set/halt/resume/override)
  • Risk audit events and configuration system

Preserved:

  • Health check polling (drives IB Gateway reconnection)
  • --dry-run on orders (now simple preview without risk validation)
  • runtime.keepalive (lightweight ping)
  • Paper trading mode
  • RATE_LIMITED error code (used by E*Trade provider for HTTP 429)

Test Results

  • Daemon: 95 tests pass ✓
  • CLI: 38 tests pass ✓
  • Python SDK: 3 tests pass ✓
  • TypeScript SDK: compiles clean ✓
  • Website: builds successfully ✓

Net change: 49 files, +70/-1571 lines (1,501 line reduction)

🤖 Generated with Claude Code

…ectiveness

Removed all pre-trade risk checks, guards, and enforcement infrastructure including:
- Risk engine (RiskEngine, position size/order value/daily loss/sector/rate/duplicate checks)
- Risk monitors (HeartbeatMonitor, ConnectionLossMonitor, drawdown circuit breaker)
- Risk commands (broker check/limits/set/halt/resume/override)
- Risk config, risk audit events, and risk error codes
- Preserved: health check polling (reconnection), --dry-run (now simple preview), RATE_LIMITED (broker HTTP 429)

All tests pass: daemon (95 tests), CLI (38 tests), Python SDK (3 tests), TypeScript compiles, website builds.

Co-Authored-By: Bryce Bjork <brycedbjork@gmail.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
broker-cli Ready Ready Preview Feb 23, 2026 5:47am

Request Review

@brycedbjork brycedbjork merged commit ecc659c into main Feb 23, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant