Description
Detect significant price deltas across decentralized exchanges (DEXs) for potential arbitrage opportunities. Analyzes liquidity and pricing inefficiencies.
Inputs
{
"token_pair": "token1/token2",
"dexes": ["uniswap", "sushiswap"],
"min_delta": "0.5%"
}
Outputs
{
"ok": true,
"data": {
"opportunities": [],
"best_spread": "2.3%"
}
}
Usage
Demo Mode
python scripts/main.py --demo
Find Arbitrage
echo '{"token_pair":"ETH/USDC","dexes":["uniswap","sushiswap"]}' | python3 scripts/main.py
Examples
Example 1: Detect Arb
$ echo '{"token_pair":"ETH/USDC","dexes":["uniswap","sushiswap"],"min_delta":"0.5%"}' | python3 scripts/main.py
{
"ok": true,
"data": {
"opportunities": [{"from": "uniswap", "to": "sushiswap", "spread": "1.2%"}],
"best_spread": "1.2%"
}
}
Error Handling
When an error occurs, the skill returns:
{
"ok": false,
"error": "Error description",
"details": {
"token_pair": "Invalid token pair"
}
}