Position size calculator
position_sizePosition size from entry, stop and the USDT you are willing to lose, rounded to the contract's step, with margin, fees, loss at the stop and a warning if liquidation comes before the stop.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>",
"side": "<side>",
"entry": "<entry>",
"stop": "<stop>",
"risk_usdt": "<risk_usdt>",
"leverage": "<leverage>"
},
"name": "position_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | ||
| stop | Yes | ||
| entry | Yes | ||
| symbol | Yes | Coin of a USDT perpetual contract, e.g. BTC, ETH, SOL (BTCUSDT also works). | |
| leverage | Yes | ||
| risk_usdt | Yes |