Key Modules and Components

  • Monitoring & Trade Logic: Keeps a close watch on the market, retrieving real-time prices and making informed decisions to trigger buy/sell operations. Features real-time price retrieval, frontend updates via Socket.IO, and retry logic for failed transactions.

  • Operations Handlers: Central to executing trade operations efficiently and accurately. Components include a Buy Checker, Sell Checker, Transaction Confirmation, and Risk Management.

  • Order Model (Database): Serves as the comprehensive record keeper for all trade-related data. Stores token identifiers, trade metrics, and risk management fields.

  • Buy and Sell Services: Crucial for executing blockchain transactions on Solana. Manages blockchain connections and buy/sell orders considering slippage and priority fees.

  • Utilities and Logging: Facilitates recording and retrieval of transaction logs for historical reference and debugging. Assists in logging risk events and maintains structured logs.