evm_calculate_arbitrage
Calculates arbitrage opportunities across DEX pools by comparing token prices, factoring gas, slippage, and flash loan fees, and identifying profitable routes with execution details.
Instructions
Calculate arbitrage opportunities across DEX pools.
Compares token prices across multiple DEXs to identify profitable arbitrage trades. Factors in gas costs, slippage, and flash loan fees.
PARAMETERS:
chain: Target EVM chain
tokenIn: Input token address
tokenOut: Output token address
amountIn: Amount to arbitrage in token units
dexes: DEX names to compare (e.g., ["uniswap", "sushiswap"])
ANALYSIS: • Compares prices across multiple DEXs • Calculates net profit after gas and fees • Identifies best arbitrage route • Estimates execution risk
Returns profit opportunity, optimal route, and execution instructions.
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": {
"chain": "<chain>",
"tokenIn": "<tokenIn>",
"tokenOut": "<tokenOut>",
"amountIn": "<amountIn>"
},
"name": "evm_calculate_arbitrage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ||
| dexes | No | DEXs to compare | |
| tokenIn | Yes | Input token address | |
| amountIn | Yes | Amount to arbitrage | |
| tokenOut | Yes | Output token address |