Purpose:
This app automatically trades cryptocurrencies across multiple exchanges using user-provided API keys. It should perform automated buy and sell actions based on price differences (arbitrage) and profit thresholds set by the user.
Core Requirements:
1. Authentication:
- Email + password login and registration.
- Optional 2FA security for users.
- Users can reset passwords through email verification.
2. Exchange API Connections:
- Users can connect their Binance, KuCoin, MEXC, and Coinbase accounts by entering their API Key and Secret.
- API keys must be stored securely and encrypted in the backend.
- The app should test the validity of each key before saving.
3. Auto Trading System:
- The backend should fetch real-time prices from all connected exchanges using each user's API keys.
- Compare prices across exchanges every few seconds.
- When a profit opportunity (arbitrage spread) is detected:
→ Automatically buy low on one exchange and sell…