Estimate trading fees
agentrail_estimate_feesEstimate the exchange fee for a trade of a given size at public base-tier rates. Costs 1 credit per successful call. AgentRail never places orders. Example: Kraken, taker, 1,000 USD.
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": {
"venue": "<venue>",
"liquidity": "<liquidity>",
"notional_usd": "<notional_usd>",
"idempotency_key": "<idempotency_key>"
},
"name": "agentrail_estimate_fees"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| venue | Yes | ||
| liquidity | Yes | maker = resting limit order; taker = order that fills immediately | |
| notional_usd | Yes | Trade size in USD | |
| idempotency_key | Yes | Unique per distinct call, e.g. a UUID. Retrying with the SAME key and SAME arguments is never charged twice and returns the original result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| venue | Yes | ||
| billing | Yes | ||
| fee_usd | Yes | ||
| schedule | Yes | ||
| liquidity | Yes | ||
| disclaimer | Yes | ||
| fee_rate_pct | Yes | ||
| notional_usd | Yes |