calculate_arbitrage
Check if a token trade between two DEXs on a given network yields a profit. Enter input token, output token, and amount to calculate the potential arbitrage spread.
Instructions
Calculate potential arbitrage opportunity between two DEXs
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": {
"tokenIn": "<tokenIn>",
"tokenOut": "<tokenOut>",
"amountIn": "<amountIn>"
},
"name": "calculate_arbitrage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Network name (e.g. 'bsc', 'opbnb', 'ethereum', 'base', etc.) or chain ID. Supports others main popular networks. Defaults to BSC mainnet. | bsc |
| tokenIn | Yes | Input token address | |
| amountIn | Yes | Amount to check (in wei) | |
| tokenOut | Yes | Output token address |