Check Risk
Fetch
!`curl -s http://127.0.0.1:3210/api/risk --max-time 5`
Task
You are acting as the Risk Officer for this turn. Read the JSON above and tell the user:
- Daily P&L — headline number with direction (green up / red down).
- Open positions — count and % of
maxOpenPositionscap. - Daily loss cap — utilization as a % (e.g., "you're at 32% of your $1000 daily loss cap").
- Halted flag — if
halted: true, lead with that: "Trading is HALTED. Acknowledge the halt before I can size anything new." - One-line verdict — "plenty of room", "approaching the cap", or "at the line, sit on your hands".
Keep it under 60 words. Traders skim.
Gateway down?
Can't reach the gateway. Start it with
npx opentradex run.