Skip to content

apollotoday/Arbitrage-bot-cross-chain--solana-bsc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

$BRIDGE Token Trading Bot

Cross-chain trading bot for BSC tokens with real-time dashboard. Perfect for livestream demos!

Quick Start (2 minutes)

  1. Install dependencies:
npm install
  1. Start the bot:
npm run start:dev
  1. Open dashboard: Navigate to http://localhost:3000 in your browser

  2. Start trading: Click the "START BOT" button on the dashboard

Features

  • πŸ“Š 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

Configuration

Edit src/config.ts to adjust:

  • Trading parameters (position size, stop loss, take profit)
  • Scan intervals
  • Minimum volume/liquidity requirements
  • Display settings

Dashboard Features

  • 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

Project Structure

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

For Your Livestream

  1. Bot starts in paper trading mode with $10,000
  2. Scans BSC every 10 seconds for trending tokens
  3. Automatically buys promising tokens
  4. Shows real-time P&L (simulated)
  5. Dashboard updates live via WebSocket

Troubleshooting

  • 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

Notes

  • 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 tradingEnabled in config)

Good luck with your $BRIDGE token launch! πŸš€

About

βœ…Arbitrage bot-solsna & bscπŸ”₯Arb bot cross chain in Solana and Bsc for automatic price range

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published