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
Name | Required | Description | Default |
---|---|---|---|
accountBalance | Yes | Total account balance in USDT | |
category | Yes | Category (linear, inverse) | |
currentPrice | No | Current price (optional, will fetch if not provided) | |
leverage | No | Leverage to use (optional, defaults to 1x) | |
riskPercentage | Yes | Risk percentage per trade (e.g., 2 for 2%) | |
stopLossPrice | Yes | Stop loss price | |
symbol | Yes | Symbol (e.g., ETHUSDT) |