https://github.com/mkdir700/open-sol-bot
一个完全开源的 Solana 链上交易机器人,支持跟单交易和自动交易功能。 A fully open-source Solana on-chain trading bot that supports copy trading and automated trading features.
https://github.com/mkdir700/open-sol-bot
blockchain solana telegram-bot trader transaction
Last synced: 5 months ago
JSON representation
一个完全开源的 Solana 链上交易机器人,支持跟单交易和自动交易功能。 A fully open-source Solana on-chain trading bot that supports copy trading and automated trading features.
- Host: GitHub
- URL: https://github.com/mkdir700/open-sol-bot
- Owner: mkdir700
- Created: 2024-08-09T07:05:03.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-02-07T08:44:21.000Z (5 months ago)
- Last Synced: 2025-02-09T07:06:49.204Z (5 months ago)
- Topics: blockchain, solana, telegram-bot, trader, transaction
- Language: Python
- Homepage:
- Size: 536 KB
- Stars: 108
- Watchers: 3
- Forks: 32
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🤖 OpenSolBot
一个完全开源的 Solana 链上交易机器人,支持跟单交易和自动交易功能。 ⚡️
> 💡 这是一个开源的交易机器人项目,参考了 GMGN Bot 的实现。本项目完全开源,私钥由您自己保管,避免资产泄露风险。
## ⚠️ 免责声明
本项目仅作为个人学习和研究使用,不作为生产级别项目:
- 🎓 这是一个练习作品,主要用于学习和研究目的
- ⚠️ 不建议在生产环境中直接使用
- 📢 作者不对使用本项目造成的任何损失负责
- 💡 如果您决定使用本项目,请自行承担相关风险## 🎯 演示

SWAP

跟单

监控

> 🤖 前往体验: [https://t.me/open_sol_bot](https://t.me/open_sol_bot)
> 💬 交流群组: [https://t.me/opensolbot](https://t.me/opensolbot)
>
> ⚠️ **警告**:此机器人仅供测试体验使用
> - ❌ 请勿导入个人钱包
> - ❌ 请勿向钱包充值
> - 📢 测试数据可能随时被清除
> - 🔬 仅用于功能演示和测试## ✨ 主要功能
- 💬 Telegram Bot
- 📊 跟单交易功能
- 🔍 监控功能
- 🎫 激活码系统
- 🔒 安全开源## 💻 环境要求
- 🐍 Python 3.10+
- 📦 MySQL
- 🗄️ Redis
- 🐳 Docker (Recommended)## 📥 快速开始
```bash
git clone https://github.com/mkdir700/open-sol-bot.git
cd open-sol-bot
```## ⚙️ 配置说明
复制并编辑配置文件:
```bash
cp example.config.toml config.toml
```### 必要配置
- `tg_bot.token`: Telegram Bot Token([如何创建 Bot Token](https://core.telegram.org/bots#how-do-i-create-a-bot))
- `rpc.endpoints`: RPC 节点列表,建议使用私有 RPC 节点,例如:Helius、Quicknode 等
- `api`: API 配置, 包括 [Helius](https://helius.dev) 和 [Shyft](https://shyft.to),这些 API 有一定的免费额度,对于个人而言已经足够了。
```
[api]
helius_api_base_url = "https://api.helius.xyz/v0"
helius_api_key = ""
shyft_api_base_url = "https://api.shyft.to"
shyft_api_key = ""
```> 💡 为了获得更快的跟单速度,默认使用 `geyser` 模式,同时也支持 WebSocket 订阅方式
## 🚀 使用说明
使用 Docker 运行:
```
make up
```停止服务:
```
make down
```详细部署文档:[https://github.com/mkdir700/open-sol-bot/wiki/Deployment](https://github.com/mkdir700/open-sol-bot/wiki/Deployment)
## ⚠️ 注意事项
- 🔒 请确保配置文件中的私钥安全
- 💡 建议先使用小额资金测试
- 🌟 确保 RPC 节点的稳定性和可用性## 🙏 特别致谢
- Raydium 交易模块参考自 [AL-THE-BOT-FATHER/raydium_py](https://github.com/AL-THE-BOT-FATHER/raydium_py)
- Pump 交易模块参考自 [wisarmy/raytx](https://github.com/wisarmy/raytx/blob/main/src/pump.rs)## 📄 许可证
[MIT License](./LICENSE)