add_order
Place buy or sell orders on Kraken for any asset pair. Supports market, limit, stop-loss, iceberg, and other order types with configurable flags, leverage, and time-in-force.
Instructions
Place a new order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pair | Yes | Asset pair (e.g. `XBTUSD`). | |
| type | Yes | `buy` or `sell`. | |
| ordertype | Yes | `market`, `limit`, `stop-loss`, `take-profit`, `stop-loss-limit`, `take-profit-limit`, `trailing-stop`, `trailing-stop-limit`, `iceberg`, `settle-position`. | |
| volume | Yes | Order quantity in base asset units. | |
| price | No | Limit/stop price. | |
| price2 | No | Secondary price (e.g. for stop-limit). | |
| leverage | No | Margin leverage (e.g. `2:1`). | |
| oflags | No | Order flags (`post`, `fcib`, `fciq`, `nompp`, `viqc`). | |
| timeinforce | No | `GTC`, `IOC`, `GTD`. | |
| starttm | No | ||
| expiretm | No | Expiration time. | |
| userref | No | User reference id (integer). | |
| cl_ord_id | No | Client order id (string). | |
| validate | No | If True, only validate — do not submit. | |
| close_ordertype | No | ||
| close_price | No | ||
| close_price2 | No | ||
| deadline | No | ||
| reduce_only | No | Reduce existing position only (margin). | |
| stptype | No | Self-trade prevention behaviour. | |
| trigger | No | Price trigger source (`index` or `last`). | |
| displayvol | No |