calculate_position_size
Calculate hypothetical Hyperliquid sizing, margin, leverage, and diagnostics from supplied equity and prices. The service caps leverage at 5x and risk at 2% of equity. Requires Pioneer, Syndicate, or eligible futures-strategy x402 subject to route terms. Sizing does not place an order or determine actual liquidation.
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": {
"equity": "<equity>",
"entryPrice": "<entryPrice>",
"stopPrice": "<stopPrice>"
},
"name": "calculate_position_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| equity | Yes | Total account equity in USD. | |
| stopPrice | Yes | Stop price in USD per unit, different from entry. Below entry implies long, above implies short. | |
| entryPrice | Yes | Proposed entry price in USD per unit. | |
| riskPercent | No | Fraction of equity to risk. Use 0.01 for 1%. Defaults to the 2% cap before applying riskMultiplier. | |
| targetPrice | No | Optional target price in USD per unit used for reward/risk diagnostics. | |
| riskMultiplier | No | Scale the requested fraction from 0.1 to 1. Defaults to 1. |