wsCreateOrder
Place a new order on Bybit via WebSocket for spot, linear, inverse, and option markets. Requires user confirmation of symbol, side, quantity, and price. Check order status separately.
Instructions
Place a new order via WebSocket on Bybit V5 unified account.
IMPORTANT: This tool places/modifies real orders via WebSocket. Confirm symbol, side, quantity, and price with the user before calling. Response is an acknowledgment only; use subscribeOrder or REST endpoints to verify actual order status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | Yes | Product type. | |
| symbol | Yes | Trading pair or contract name. | |
| isLeverage | No | Whether to borrow (spot margin). `0`=spot trading, `1`=margin trading | |
| side | Yes | Order direction. | |
| orderType | Yes | Order type. | |
| qty | Yes | Order quantity (positive number as string). | |
| marketUnit | No | Unit for spot market order quantity. `baseCoin` or `quoteCoin` | |
| price | No | Order price. Required for limit orders; ignored for market orders. | |
| triggerDirection | No | Conditional order trigger direction. `1`=rise, `2`=fall | |
| orderFilter | No | Order type filter (spot only). `Order`=normal, `tpslOrder`=TP/SL, `StopOrder`=conditional | |
| triggerPrice | No | Trigger price for conditional or TP/SL orders. | |
| triggerBy | No | Price type used to trigger conditional orders. | |
| orderIv | No | Implied volatility for option orders. e.g., "0.1" means 10%. | |
| timeInForce | No | Time-in-force. `GTC`=Good Till Cancel, `IOC`=Immediate or Cancel, `FOK`=Fill or Kill, `PostOnly`=maker-only | |
| positionIdx | No | Position index for linear/inverse hedge mode. `0`=one-way, `1`=buy-side, `2`=sell-side | |
| orderLinkId | No | User-defined order ID. Required for options. | |
| takeProfit | No | Take-profit price. | |
| stopLoss | No | Stop-loss price. | |
| tpTriggerBy | No | Price type to trigger take-profit. | |
| slTriggerBy | No | Price type to trigger stop-loss. | |
| reduceOnly | No | Reduce-only flag. Valid for futures and options. | |
| closeOnTrigger | No | Close-on-trigger flag. Valid for linear/inverse futures. | |
| smpType | No | Self-match prevention execution type. | |
| mmp | No | Market maker protection flag. Valid for options only. | |
| tpslMode | No | TP/SL mode. `Full`=entire position (market only), `Partial`=partial position (supports limit) | |
| tpLimitPrice | No | Limit price when take-profit is triggered (Partial mode). | |
| slLimitPrice | No | Limit price when stop-loss is triggered (Partial mode). | |
| tpOrderType | No | Order type for take-profit. | |
| slOrderType | No | Order type for stop-loss. | |
| rpiTakerAccess | No | Whether OpenAPI orders can take RPI orders. |