Order Manager
| Field | Value |
|---|---|
| Task ref | TM-24 |
| Code | packages/agents/src/trademate_agents/order |
| Trigger | Pipeline order stage and /agents/order/plan |
| Model class | deterministic first, optional quick-think overlay |
| Prompt location | order/engine.py overlay prompt |
| Inputs | approved risk decision, action, entry, stop, target, preferences, broker capabilities |
| Outputs | ExecutionPlan with entry legs, stop, take-profit ladder, client order intent |
| Storage | agent_decisions, trades, pipeline response |
| Budget | $0.02 per plan |
Guardrails
- Overlay may only adjust eligible prices within bounded limits.
- Client order IDs must remain idempotent.
- Paper execution remains the default path.
Trace Expectations
trademate.task_ref=TM-24- stages:
build_plan, optionaloverlay, broker handoff - broker capability snapshot without secrets