Calculate Hyperliquid fees
calculate_hyperliquid_feesEstimate Hyperliquid spot or perpetual trading fees by specifying notional, maker/taker role, fee tier, discounts, and builder fee.
Instructions
Estimate Hyperliquid spot or perpetual trading fees from notional, maker/taker role, fee tier, discounts, asset multiplier, maker rebate, and builder fee. This is a transparent estimate, not an exchange quote.
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": {
"notional_usd": "<notional_usd>"
},
"name": "calculate_hyperliquid_fees"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | taker | |
| tier | No | Hyperliquid fee tier, 0 through 6. | |
| sides | No | 1 for entry only, 2 for entry plus exit. | |
| market | No | perps | |
| notional_usd | Yes | One-side trade notional. | |
| builder_fee_bps | No | ||
| asset_fee_multiplier | No | ||
| maker_rebate_percent | No | ||
| staking_discount_percent | No | ||
| referral_discount_percent | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Structured tool result. |