Skip to main content
Glama

Bybit MCP Server

calculate_position_size

Determine optimal position size for trades on Bybit using risk management inputs like account balance, risk percentage, stop loss, and leverage. Ensures calculated trades align with risk tolerance and market conditions.

Instructions

Calculate optimal position size based on risk management principles

Input Schema

NameRequiredDescriptionDefault
accountBalanceYesTotal account balance in USDT
categoryYesCategory (linear, inverse)
currentPriceNoCurrent price (optional, will fetch if not provided)
leverageNoLeverage to use (optional, defaults to 1x)
riskPercentageYesRisk percentage per trade (e.g., 2 for 2%)
stopLossPriceYesStop loss price
symbolYesSymbol (e.g., ETHUSDT)

Input Schema (JSON Schema)

{ "properties": { "accountBalance": { "description": "Total account balance in USDT", "type": "number" }, "category": { "description": "Category (linear, inverse)", "type": "string" }, "currentPrice": { "description": "Current price (optional, will fetch if not provided)", "type": "number" }, "leverage": { "description": "Leverage to use (optional, defaults to 1x)", "type": "number" }, "riskPercentage": { "description": "Risk percentage per trade (e.g., 2 for 2%)", "type": "number" }, "stopLossPrice": { "description": "Stop loss price", "type": "number" }, "symbol": { "description": "Symbol (e.g., ETHUSDT)", "type": "string" } }, "required": [ "category", "symbol", "accountBalance", "riskPercentage", "stopLossPrice" ], "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