place_order
Place a real buy or sell order on a market using limit or market types. Specify size and optionally price, time-in-force, or reduce-only.
Instructions
Place an order on a market. Supports limit and market orders, buy/sell. For limit orders a price is required. Requires API credentials. This submits a REAL order to the matching engine.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | Order side. | |
| size | Yes | Order quantity in base units, as a positive decimal string (> 0). | |
| type | Yes | Order type. | |
| price | No | Limit price as a positive decimal string (> 0). Required for limit orders, ignored for market. | |
| market_id | Yes | Market id, e.g. "BTC-USDX-PERP". | |
| reduce_only | No | If true, only reduces an existing position. | |
| time_in_force | No | Time in force. Defaults to GTC for limit, IOC for market. `PostOnly` rejects the order if it would take liquidity on entry, guaranteeing it rests as a maker. |