place_order
Place an order via the local flox engine. Supports paper and live scopes with dry-run simulation or actual dispatch using a one-shot approval token.
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(). |