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
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 |