A TypeScript-based arbitrage trading bot that monitors and executes trades across multiple cryptocurrency exchanges including Binance, Astroport, and Duality.
- Real-time price monitoring across multiple exchanges
- Automated arbitrage opportunity detection
- Support for multiple trading pairs
- WebSocket integration for real-time market data
- Configurable trading parameters
- Integration with multiple DeFi protocols
- Node.js (v14 or higher)
- TypeScript
- Binance API credentials
- Cosmos wallet with mnemonic
- Access to Neutron network
- Clone the repository
- Install dependencies:
npm install- Copy the environment configuration:
cp .env.example .env- Configure your
.envfile with your API keys and settings
Configure environment variables in your .env file:
npm run devnpm run build
npm startYou can also use PM2 for process management:
pm2 start ecosystem.config.js/src/arbitrage- Arbitrage strategies implementationbinanceDuality.ts- Binance-Duality arbitrage logicinit.ts- Initialization and setupnewArbitrage.ts- New arbitrage implementations
/exchange- Exchange-specific implementations/binance/rest- REST API client/websocket- WebSocket implementations for public and private data
/duality- Duality protocol integration/astroport- Astroport protocol integration
/types- TypeScript type definitions/utilexchange.ts- Exchange utility functionslogger.ts- Logging utilitiestoken.ts- Token configurations and helpers
npm run build- Build the TypeScript codenpm run start- Start the production servernpm run dev- Start the development server with hot-reloadnpm run lint- Run ESLintnpm run test- Run testsnpm run format- Format code using Prettier
ISC