Cross-chain trading bot for BSC tokens with real-time dashboard. Perfect for livestream demos!
- Install dependencies:
npm install- Start the bot:
npm run start:dev-
Open dashboard: Navigate to http://localhost:3000 in your browser
-
Start trading: Click the "START BOT" button on the dashboard
- π Real-time BSC token monitoring via DexScreener API
- π° Paper trading mode (no real money required)
- π― Automatic buy/sell based on volume and trends
- π Live P&L tracking
- π WebSocket-powered dashboard
- π¨ Hacker aesthetic dark theme
Edit src/config.ts to adjust:
- Trading parameters (position size, stop loss, take profit)
- Scan intervals
- Minimum volume/liquidity requirements
- Display settings
- Treasury Stats: Balance, P&L, win rate, trade count
- BSC Trending Tokens: Top 10 by volume
- Open Positions: Real-time position tracking
- Trade History: Complete trade log
- Activity Feed: Live bot activity
crypto_project/
βββ src/
β βββ index.ts # Main entry point
β βββ server.ts # Express + WebSocket server
β βββ config.ts # Configuration file
β βββ services/
β β βββ dexscreener.ts # DexScreener API integration
β β βββ paperTrading.ts # Paper trading engine
β β βββ tradingBot.ts # Bot logic
β βββ types/ # TypeScript interfaces
βββ public/ # Dashboard files
β βββ index.html
β βββ styles.css
β βββ app.js
βββ package.json
- Bot starts in paper trading mode with $10,000
- Scans BSC every 10 seconds for trending tokens
- Automatically buys promising tokens
- Shows real-time P&L (simulated)
- Dashboard updates live via WebSocket
- Port already in use: Change ports in
src/config.ts - No tokens showing: DexScreener API might be rate limited, wait a minute
- WebSocket disconnected: Refresh the dashboard page
- This is a DEMO bot for educational purposes
- Uses paper trading (no real transactions)
- Perfect for demonstrating on livestream
- Easy to modify for real trading (change
tradingEnabledin config)
Good luck with your $BRIDGE token launch! π