place_order
Place trade orders via the flox engine with dry-run simulation or live execution requiring operator approval. Used for manual hedges and operator-driven order entry.
Instructions
Place an order through the user's running flox engine. Talks HTTP to the local ControlServer the user app embeds; reads URL + bearer token from FLOX_CONTROL_URL and FLOX_CONTROL_TOKEN. Default dry_run=true; the server simulates acceptance without dispatching to the executor. live tier additionally requires an approve_token issued out of band by the operator. Use this for manual hedges or operator-driven order entry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Account to place against. paper-prefixed names are allowed in paper scope; live scope is required for any other. | |
| symbol | Yes | ||
| side | Yes | ||
| qty | Yes | ||
| type | No | Default market. | |
| price | No | Required for limit orders; ignored for market. | |
| reason | No | Free-text annotation recorded in the audit log. | |
| dry_run | No | Default true. Set false to actually dispatch. | |
| approve_token | No | Required for live scope. One-shot token issued by ControlServer.issue_approval(). |