Skip to content

OxForged/market-maker-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solana Market Maker Telegram Bot 🤖📈

Solana Logo Telegram Logo

A sophisticated Telegram bot for automated trading on Solana, featuring market making, arbitrage strategies, and real-time monitoring with MEV protection.


Features ✨

  • Automated Market Making 🤖

    • Continuous bid/ask placement
    • Dynamic spread adjustment
    • Inventory rebalancing
  • Arbitrage Detection 🔍

    • Cross-DEX price monitoring
    • Profitability calculation
    • JITO MEV-protected execution
  • Real-Time Alerts 🔔

    • Price movement notifications
    • Trade execution updates
    • System health monitoring
  • Secure Wallet Management 🔒

    • Encrypted key storage
    • Multi-wallet support
    • Transaction signing

Tech Stack ⚙️

Core:

  • TypeScript
  • Node.js
  • Solana Web3.js

Integrations:

  • Telegram Bot API
  • Jupiter Aggregator
  • Raydium SDK
  • JITO (MEV protection)

Infrastructure:

  • Rate-limited APIs
  • Encrypted storage
  • Real-time monitoring

Getting Started 🚀

Prerequisites

  • Node.js v18+
  • Telegram bot token
  • Solana RPC endpoint
  • JITO API credentials (optional)

Installation

git clone https://github.com/your-repo/solana-market-maker-bot.git
cd solana-market-maker-bot
npm install
cp .env.example .env

Configuration

Edit .env:

TELEGRAM_BOT_TOKEN=your_bot_token
SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
JUPITER_API_KEY=your_jupiter_key
ENCRYPTION_SECRET=your_32_char_encryption_key
JITO_ENDPOINT=https://jito-api.example.com
JITO_AUTH_KEY=your_jito_key

Running the bot

npm run build
npm start

Command Reference 💬

Command --> Description

  • /connect_wallet --> Connect your Solana wallet
  • /buy [token] [amount] --> Execute buy order
  • /watch_token [token] [price] --> Set price alert
  • /start_mm [pair] --> Start market making
  • /stop_mm --> Stop market making
  • /portfolio --> View current holdings

Architecture 🏗️

src/
├── core/               # Core trading logic
│   ├── blockchain/     # Solana/Jupiter/Raydium
│   ├── bot/            # Telegram interface
│   ├── engine/         # Trading strategies
│   └── security/       # Encryption/auth
│
├── services/           # Supporting services
│   ├── api/            # Market data
│   ├── alert/          # Notifications
│   ├── analytics/      # Performance tracking
│   └── wallet/         # Key management
│
└── types/              # Type definitions

Development 🛠️

Testing

npm test              # Run unit tests
npm run test:int      # Integration tests
npm run test:e2e      # End-to-end tests

Building

npm run build         # Compile TypeScript
npm run lint          # Run linter

Deployment 🚢

Docker

docker build -t market-maker-bot .
docker run -d --env-file .env market-maker-bot

PM2 (Production)

npm install -g pm2
pm2 start dist/main.js --name "market-maker-bot"

Contributing 🤝

  1. Fork the project

  2. Create your feature branch (git checkout -b feature/AmazingFeature)

  3. Commit your changes (git commit -m 'Add some amazing feature')

  4. Push to the branch (git push origin feature/AmazingFeature)

  5. Open a Pull Request.


License 📄

Distributed under the MIT License. See LICENSE for more information.


Contact 📧

Project Link: https://github.com/thetruesammyjay/market-maker-bot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 98.2%
  • Other 1.8%