position_size
Position sizing for linear USD shares/coins: prices in USD, account risk in percent, fees/slippage in basis points, quantity increment in units. Returns results, conditions, assumptions, an editable link, share page and PNG. No account access or order execution.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "position_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee | No | Fee per fill in basis points; negative maker fees are rebates in the spread model. | |
| risk | No | Loss budget as a percentage of the account. | |
| stop | No | Stop price. | |
| entry | No | Trade entry price. | |
| target | No | Trade target price, or target inventory percentage for inventory quotes. | |
| balance | No | Account balance in dollars. | |
| slippage | No | Slippage per side in basis points. | |
| unitStep | No | Quantity increment; 0 disables rounding. | |
| direction | No | long or short. | long |
| maxLeverage | No | Maximum notional exposure divided by equity. | |
| include_image | No | Also inline a PNG no wider than 1000 pixels. Image URL is always returned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metrics | Yes | ||
| results | Yes | ||
| edit_url | Yes | ||
| image_url | Yes | ||
| share_url | Yes | ||
| calculator | Yes | ||
| conditions | Yes | ||
| disclaimer | Yes | ||
| assumptions | Yes |