Skip to main content
Glama

Bybit Server

set_trading_stop

Set take profit, stop loss, or trailing stop parameters for trades on Bybit. Input category, symbol, and optional price levels to customize risk management for positions.

Instructions

Set trading stop Args: category (str): Category (spot, linear, inverse, etc.) symbol (str): Symbol (e.g., BTCUSDT) takeProfit (Optional[str]): Take profit price stopLoss (Optional[str]): Stop loss price trailingStop (Optional[str]): Trailing stop positionIdx (Optional[int]): Position index Returns: Dict: Setting result Example: set_trading_stop("spot", "BTCUSDT", "55000", "45000", "1000", 0) Reference: https://bybit-exchange.github.io/docs/v5/position/trading-stop

Input Schema

NameRequiredDescriptionDefault
categoryYesCategory (spot, linear, inverse, etc.)
positionIdxNoPosition index
stopLossNoStop loss price
symbolYesSymbol (e.g., BTCUSDT)
takeProfitNoTake profit price
trailingStopNoTrailing stop

Input Schema (JSON Schema)

{ "properties": { "category": { "description": "Category (spot, linear, inverse, etc.)", "title": "Category", "type": "string" }, "positionIdx": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "description": "Position index", "title": "Positionidx" }, "stopLoss": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Stop loss price", "title": "Stoploss" }, "symbol": { "description": "Symbol (e.g., BTCUSDT)", "title": "Symbol", "type": "string" }, "takeProfit": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Take profit price", "title": "Takeprofit" }, "trailingStop": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Trailing stop", "title": "Trailingstop" } }, "required": [ "category", "symbol" ], "title": "set_trading_stopArguments", "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dlwjdtn535/mcp-bybit-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server