Skip to main content
Glama

Bybit MCP Server

set_margin_mode

Adjust margin trading settings on Bybit by specifying category, symbol, trade mode (isolated/cross), and leverage for buy/sell positions to optimize risk management.

Instructions

Set margin mode

Input Schema

NameRequiredDescriptionDefault
buyLeverageYesBuying leverage
categoryYesCategory (spot, linear, inverse, etc.)
sellLeverageYesSelling leverage
symbolYesSymbol (e.g., BTCUSDT)
tradeModeYesTrading mode (0: Isolated, 1: Cross)

Input Schema (JSON Schema)

{ "properties": { "buyLeverage": { "description": "Buying leverage", "type": "string" }, "category": { "description": "Category (spot, linear, inverse, etc.)", "type": "string" }, "sellLeverage": { "description": "Selling leverage", "type": "string" }, "symbol": { "description": "Symbol (e.g., BTCUSDT)", "type": "string" }, "tradeMode": { "description": "Trading mode (0: Isolated, 1: Cross)", "type": "number" } }, "required": [ "category", "symbol", "tradeMode", "buyLeverage", "sellLeverage" ], "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/kondisettyravi/mcp-bybit-node'

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