place_order
Submit a trade order after pre-trade risk checks pass. Uses the middleware-approved intent to execute the order safely on the paper broker.
Instructions
Submit an order. Subject to pre-trade risk limits.
By the time this body runs the middleware has already approved the order -- it is unreachable otherwise. The handler therefore uses the vetted intent from the middleware rather than re-parsing its own arguments, so there is no second interpretation of the agent's input that could differ from the one the rails checked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | Yes | ||
| side | Yes | ||
| symbol | Yes | ||
| order_type | No | market | |
| limit_price | No | ||
| time_in_force | No | day | |
| client_order_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||