A sophisticated automated trading bot for the Lighter Protocol with percentage-based position sizing and intelligent risk management.
This software is for educational purposes only. Automated trading involves significant financial risk. Use at your own risk.
- Percentage-based position sizing - Risk management based on account balance
- Dynamic hold times - Random, market-specific, or volatility-based durations
- Single position mode - Hold one position at a time with intelligent timing
- Multi-pair trading - BTC, ETH, HYPE, SOL, BNB support
- Mandatory proxy support - All traffic routed through secure proxy
- Comprehensive logging - Detailed trade tracking
git clone https://github.com/yourusername/lighter-trading-bot.git
cd lighter-trading-bot
pip install -r trading_bot_requirements.txt# Copy environment template
cp env.example .env
# Edit with your Lighter API credentials AND proxy settings
nano .env# Start bot
python3 start_bot.py start
# Check status
python3 start_bot.py status
# Stop bot
python3 start_bot.py stopKey settings in .env:
ACCOUNT_BALANCE=500- Your account balanceMIN_POSITION_PERCENT=50- Minimum risk per tradeMAX_POSITION_PERCENT=80- Maximum risk per tradeMIN_POSITION_HOLD_MINUTES=3- Minimum hold timeMAX_POSITION_HOLD_MINUTES=10- Maximum hold time
- Random Selection: Picks random trading pair and direction
- Smart Sizing: Calculates position size based on account percentage
- Order Execution: Places market order with verification
- Position Hold: Holds for configured duration
- Auto Close: Closes position and repeats cycle
- Environment variables for sensitive data
- Automatic gitignore for credentials
- Process locking prevents multiple instances
- Comprehensive input validation
INFO - Percentage calculation: 67.9% of $500 = $339.60 risk → $1697.98 notional
INFO - Placing SHORT market order: ETH size=0.097 units
INFO - Trade successful! Position opened: ETH SHORT
- Position size capped at 80% of account balance
- Daily trade limits
- Order fill verification
- Single position mode to limit exposure
CRYPTOCURRENCY TRADING IS HIGHLY RISKY
- Can lose money quickly
- Never invest more than you can afford to lose
- Test with small amounts first
- Consider this experimental software
Use responsibly and happy trading! 🚀
