place_order_with_trailing_stop
Place orders with a trailing stop loss on Bybit, allowing automatic adjustment of stop-loss levels based on market movement, enhancing risk management for cryptocurrency trading.
Instructions
Place order with trailing stop loss
Input Schema
Name | Required | Description | Default |
---|---|---|---|
activePrice | No | Price at which trailing stop activates (optional) | |
category | Yes | Category (linear, inverse) | |
orderLinkId | No | Order link ID (optional) | |
orderType | Yes | Order type (Market, Limit) | |
positionIdx | No | Position index (optional, auto-detected if not provided) | |
price | No | Order price (for limit orders) | |
qty | Yes | Order quantity | |
side | Yes | Order side (Buy, Sell) | |
symbol | Yes | Symbol (e.g., ETHUSDT) | |
timeInForce | No | Time in force (GTC, IOC, FOK) | |
trailingStop | Yes | Trailing stop distance |
Input Schema (JSON Schema)
{
"properties": {
"activePrice": {
"description": "Price at which trailing stop activates (optional)",
"type": "string"
},
"category": {
"description": "Category (linear, inverse)",
"type": "string"
},
"orderLinkId": {
"description": "Order link ID (optional)",
"type": "string"
},
"orderType": {
"description": "Order type (Market, Limit)",
"type": "string"
},
"positionIdx": {
"description": "Position index (optional, auto-detected if not provided)",
"type": "string"
},
"price": {
"description": "Order price (for limit orders)",
"type": "string"
},
"qty": {
"description": "Order quantity",
"type": "string"
},
"side": {
"description": "Order side (Buy, Sell)",
"type": "string"
},
"symbol": {
"description": "Symbol (e.g., ETHUSDT)",
"type": "string"
},
"timeInForce": {
"description": "Time in force (GTC, IOC, FOK)",
"type": "string"
},
"trailingStop": {
"description": "Trailing stop distance",
"type": "string"
}
},
"required": [
"category",
"symbol",
"side",
"orderType",
"qty",
"trailingStop"
],
"type": "object"
}