A lightweight React app to detect crypto arbitrage opportunities in real-time using live Binance prices.
Arbitrage is the simultaneous purchase and sale of an asset or financial instrument in different markets to exploit price discrepancies, thereby generating a risk-free profit. It relies on the principle that identical or equivalent assets should have the same price across markets; when this condition fails, arbitrage opportunities arise. Arbitrage helps to ensure price efficiency across markets by aligning prices through trading activities.
- Fetches live BTC and ETH prices in USDT from Binance API
- Builds an exchange graph and detects arbitrage cycles using Bellman-Ford algorithm
- Highlights arbitrage cycle path if detected
- Manual refresh for latest price updates
- Error handling and loading states
- Clone the repo
- Run
npm install
to install dependencies - Start the app with
npm run dev
- Click Refresh Prices to fetch latest data and check for arbitrage
- React.js
- Binance Public API
- Bellman Ford for arbitrage detection