This is a simple React app that allows users to track arbitrage opportunities between different decentralized exchanges (DEXs) for a specific ERC20 token on different blockchain networks. The app fetches token pair data and liquidity information using the Moralis Token Pairs API and finds price differences across exchanges.
- Fetch token pairs and liquidity for a specific ERC20 token on multiple networks (Ethereum, Binance Smart Chain, Polygon).
- Identify arbitrage opportunities by comparing prices across exchanges.
- Display detailed information about token pairs, including exchange names, prices, and liquidity.
- Built-in loading states with dynamic messages.
- Node.js (v12 or higher)
- React (v17 or higher)
- A Moralis account to get an API key. You can sign up for a Moralis account here.
- Clone the repository:
git clone https://github.com/bharathbabu-moralis/crypto-arbitrage-tracker-moralis
cd frontend
- Install dependencies:
npm install
- Create a
.env
file in the root directory and add your Moralis API key:
REACT_APP_MORALIS_API_KEY=your-moralis-api-key
- Start the development server:
npm start
The app will be running at http://localhost:3000
.
- Enter the token contract address of the ERC20 token you want to track in the input field.
- Select the blockchain network from the dropdown
- Click on the "Find Arbitrage Opportunities" button to fetch token pair data and see if there are any arbitrage opportunities across exchanges.
This app uses the Moralis Web3 Token API to get token pairs and liquidity details. For more information, check out the official API documentation: