Place an order
place_orderPlace a USD-notional perpetual order with risk limits enforced; omit price to cross the spread. Logs order and reason.
Instructions
Place an order sized in USD notional. Every order is checked against the risk limits first; if it breaches one it is refused and nothing reaches the exchange. Omit price for a marketable order that crosses the spread. Both the order and your stated reason are written to a permanent log, including when the order is refused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tif | No | Time in force. Defaults to Ioc when marketable, Gtc otherwise. | |
| side | Yes | ||
| price | No | Limit price. Omit to cross the spread and fill now. | |
| reason | Yes | Why you are placing this order, in one or two sentences. State the signal or condition you are acting on and why this size. A human will read this later to understand what you were doing, so write what actually drove the decision rather than a generic summary. | |
| symbol | Yes | Perp symbol, for example BTC. | |
| sizeUsd | Yes | Notional size in USD, not asset units. | |
| stopLoss | No | Trigger price of a stop-loss for this order: below the entry for a buy, above it for a sell. An order that fills now gets a stop under the whole position; a resting order takes its stop with it, placed as it fills, so the position is never unprotected. How far the stop sits decides what the trade risks (distance to stop x size), which get_limits reports as maxTradeRiskUsd: a wider stop needs a smaller order. | |
| reduceOnly | No | True if this order may only shrink an existing position. |