Place a new perpetual futures order on Hyperliquid.
POST /exchange with an order action type. The Provider API normalizes the order format and handles EIP-712 signing delegation.
hyperliquidBTC, ETH)buy or sellmarket, limit, stop_market, stop_limit"0.1" for 0.1 BTC)limit and stop_limit orders.stop_market and stop_limit orders.true, the order can only reduce an existing position. Defaults to false.open, filled, partially_filled, canceled| Status | Code | Description |
|---|---|---|
| 400 | INVALID_ORDER | Invalid order parameters |
| 400 | INVALID_PARAMS | Missing required fields |
| 401 | INVALID_API_KEY | Missing or invalid API key |
| 401 | SIGNATURE_ERROR | Invalid EIP-712 signature |
| 422 | INSUFFICIENT_MARGIN | Not enough collateral |
| 422 | ORDER_REJECTED | Exchange rejected the order |
| 422 | PRICE_TOO_FAR | Limit price too far from mark |
| 422 | SIZE_TOO_SMALL | Below minimum order size |
| 422 | MAX_LEVERAGE_EXCEEDED | Leverage too high |
| 422 | TOO_MANY_ORDERS | Max open orders reached |
| 429 | RATE_LIMITED | Rate limit exceeded |