The DEX arbitrage bot tracks price difference between DEX exchanges and calculates optimal trade size and profit.
- Uniswap V2
- Balancer V2
- Uniswap V3 (soon)
You can search for arbitrage opportunities across any pair of supported DEXs, such as Uniswap V2 & Sushiswap, Uniswap V2 & Balancer V2, Sushiswap & Balancer V2, etc.
- Multiple exchanges, routes, and tokens
- Minimum trade profit
- Finds optimal trade size (binary search – soon)
npm install --save-dev hardhat
Run mainnet fork node on localhost: npx hardhat node --fork https://eth-mainnet.alchemyapi.io/v2/[API_KEY]
Deploy contracts: npx hardhat --network localhost run scripts/deploy.js
Open console: npx hardhat --network localhost console
Run bot: npx hardhat --network localhost run scripts/trade.js