Infrastructure Overview

The bot is designed with a modular architecture, where each component has a defined responsibility — from market data collection to trade execution and risk control. This structure ensures easier main

1. Token Management & Data Layer

  • Users can track and manage tokens by providing contract addresses directly.

  • The system collects price data, transaction history, and liquidity details.

  • Historical data is stored for trend tracking and strategy backtesting.

2. Strategy & Risk Layer

  • User-defined strategies specify entry/exit rules, stop-loss, and profit targets.

  • Risk thresholds (price drops, position size limits, slippage tolerances) are applied before any trade is executed.

  • This layer acts as a filter, ensuring only valid trades move forward.

3. Core Engine

  • Handles real-time market monitoring.

  • Executes trades based on configured strategies.

  • Optimized for high throughput, with faster execution and improved RPC handling for reliability.

4. Execution Handlers

  • Specialized services that construct, send, and confirm buy/sell transactions on the Solana blockchain.

  • After each trade, token states are updated (holdings, PnL, active orders).

5. Persistence Layer (Database)

  • MongoDB stores all relevant data: token states, trading history, risk events, and execution logs.

  • Ensures persistence across sessions and enables accurate reporting/analysis.

6. User Dashboard & Communication Layer

  • The dashboard, connected via Socket.IO, streams real-time data to users.

  • Displays balances, active orders, historical trades, and live execution updates.

  • Provides configuration panels for strategies, risk parameters, and wallet details.

Last updated