# Application Documentation This section provides documentation for the main MEV Bot application and its core services. ## Documents in this Section - [MEV Bot Application](MEV_BOT_APPLICATION.md) - Main application documentation - [Arbitrage Service](ARBITRAGE_SERVICE.md) - Core arbitrage service implementation ## Application Structure The MEV Bot application is structured as a command-line interface with multiple modes of operation: 1. **Start Mode** - Continuous monitoring and arbitrage detection 2. **Scan Mode** - One-time market scanning 3. **Test Mode** - Testing and validation ## Key Components ### Main Application (cmd/mev-bot) The entry point for the MEV bot application that handles: - Configuration loading - Component initialization - Service lifecycle management - Graceful shutdown handling ### Arbitrage Service The core service that orchestrates: - Event processing - Opportunity detection - Profitability analysis - Transaction execution ## Application Flow 1. **Initialization** - Load configuration - Initialize logging - Set up security - Create core services 2. **Operation** - Start monitoring - Process events - Detect opportunities - Execute profitable trades 3. **Shutdown** - Graceful cleanup - Resource release - Final logging For detailed information about the application and its services, see the individual documentation files.