{"id":25645629,"url":"https://github.com/chainbuff/open-sol-bot","last_synced_at":"2026-03-17T08:34:37.123Z","repository":{"id":253361826,"uuid":"840194506","full_name":"ChainBuff/open-sol-bot","owner":"ChainBuff","description":"一个完全开源的 Solana 链上交易机器人，支持跟单交易和自动交易功能。 A fully open-source Solana on-chain trading bot that supports copy trading and automated trading features. ","archived":false,"fork":false,"pushed_at":"2025-03-01T01:47:19.000Z","size":1005,"stargazers_count":225,"open_issues_count":17,"forks_count":81,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T09:07:42.816Z","etag":null,"topics":["blockchain","solana","telegram-bot","trader","transaction"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChainBuff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-09T07:05:03.000Z","updated_at":"2025-04-04T01:07:48.000Z","dependencies_parsed_at":"2025-01-02T08:22:57.531Z","dependency_job_id":"16a01d2b-f171-48b8-a869-a795c0ded8c0","html_url":"https://github.com/ChainBuff/open-sol-bot","commit_stats":{"total_commits":20,"total_committers":1,"mean_commits":20.0,"dds":0.0,"last_synced_commit":"ec03b4b2e896fc23b180cfbc7a8c213766e06a61"},"previous_names":["mkdir700/gmgn-auto-trader","mkdir700/open-sol-bot","chainbuff/open-sol-bot"],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChainBuff%2Fopen-sol-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChainBuff%2Fopen-sol-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChainBuff%2Fopen-sol-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChainBuff%2Fopen-sol-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChainBuff","download_url":"https://codeload.github.com/ChainBuff/open-sol-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248633299,"owners_count":21136851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","solana","telegram-bot","trader","transaction"],"created_at":"2025-02-23T09:08:10.712Z","updated_at":"2026-03-17T08:34:37.085Z","avatar_url":"https://github.com/ChainBuff.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🤖 OpenSolBot\n\n一个完全开源的 Solana 链上交易机器人，支持跟单交易和自动交易功能。 ⚡️\n\n\u003e 💡 这是一个开源的交易机器人项目，参考了 GMGN Bot 的实现。本项目完全开源，私钥由您自己保管，避免资产泄露风险。\n\n## ⚠️ 免责声明\n\n本项目仅作为个人学习和研究使用，不作为生产级别项目：\n\n- 🎓 这是一个练习作品，主要用于学习和研究目的\n- ⚠️ 不建议在生产环境中直接使用\n- 📢 作者不对使用本项目造成的任何损失负责\n- 💡 如果您决定使用本项目，请自行承担相关风险\n\n## 🎯 演示\n\n![Trading Bot Demo](https://github.com/user-attachments/assets/a4389538-b317-4858-a41d-b0f374d1a18f)\n\n\u003cdetails\u003e\u003csummary\u003eSWAP\u003c/summary\u003e\n\u003cp\u003e\n\n![Image](https://github.com/user-attachments/assets/7005e10f-e599-414c-9520-b2e558f9e86b)\n\n\u003c/p\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e跟单\u003c/summary\u003e\n\u003cp\u003e\n\n![Image](https://github.com/user-attachments/assets/653eb952-b8f9-4084-a0d3-42e719cc3043)\n\n\u003c/p\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e监控\u003c/summary\u003e\n\u003cp\u003e\n\n![Image](https://github.com/user-attachments/assets/095f87f9-f95c-437a-b5ff-9a6a19e37fc6)\n\n\u003c/p\u003e\n\u003c/details\u003e\n\n\u003e 💬 交流群组: [https://t.me/chainbuff](https://t.me/chainbuff)\n\u003e\n\u003e ⚠️ **警告**：此机器人仅供测试体验使用\n\u003e\n\u003e - ❌ 请勿导入个人钱包\n\u003e - ❌ 请勿向钱包充值\n\u003e - 📢 测试数据可能随时被清除\n\u003e - 🔬 仅用于功能演示和测试\n\n## ✨ 主要功能\n\n- 💬 Telegram Bot\n- 📊 跟单交易功能\n- 🔍 监控功能\n- 🎫 激活码系统\n- 🔒 安全开源\n\n## 💻 环境要求\n\n- 🐍 Python 3.10+\n- 📦 MySQL\n- 🗄️ Redis\n- 🐳 Docker (Recommended)\n\n## 📥 快速开始\n\n```bash\ngit clone https://github.com/mkdir700/open-sol-bot.git\ncd open-sol-bot\n```\n\n## ⚙️ 配置说明\n\n复制并编辑配置文件：\n\n```bash\ncp example.config.toml config.toml\n```\n\n### 必要配置\n\n- `tg_bot.token`: Telegram Bot Token（[如何创建 Bot Token](https://core.telegram.org/bots#how-do-i-create-a-bot)）\n- `rpc.endpoints`: RPC 节点列表，建议使用私有 RPC 节点，例如：Helius、Quicknode 等\n- `api`: API 配置, 包括 [Helius](https://helius.dev) 和 [Shyft](https://shyft.to)，这些 API 有一定的免费额度，对于个人而言已经足够了。\n  ```\n  [api]\n  helius_api_base_url = \"https://api.helius.xyz/v0\"\n  helius_api_key = \"\"\n  shyft_api_base_url = \"https://api.shyft.to\"\n  shyft_api_key = \"\"\n  ```\n- `db`: 数据库连接配置，默认配置适用于本地开发环境。在 Docker 环境中会自动使用容器别名。\n  ```\n  [db]\n  # 本地开发环境（从源码运行）\n  mysql_url = \"mysql+pymysql://root:root@127.0.0.1:3307/solana_trade_bot\"\n  redis_url = \"redis://127.0.0.1:6380/0\"\n  ```\n\n\u003e 💡 为了获得更快的跟单速度，默认使用 `geyser` 模式，同时也支持 WebSocket 订阅方式\n\n## 🚀 使用说明\n\nPodman 请使用以下命令：\n\n启动：\n\n```\nmake up\n```\n\n停止服务：\n\n```\nmake down\n```\n\n\u003cdetails\u003e\u003csummary\u003eDocker 请使用以下命令:\u003c/summary\u003e\n\u003cp\u003e\n启动：\n\n```bash\ndocker compose up -d\n```\n\n停止服务：\n\n```bash\ndocker compose down\n```\n\n\u003c/p\u003e\n\u003c/details\u003e\n\n更新：\n\n```\ngit pull\npodman/docker compose up -d --build\n```\n\n\u003e 升级版本建议带上 `--build` 参数，这将重新构建容器\n\n详细部署文档：[https://github.com/mkdir700/open-sol-bot/wiki/Deployment](https://github.com/mkdir700/open-sol-bot/wiki/Deployment)\n\n## ⚠️ 注意事项\n\n- 🔒 请确保配置文件中的私钥安全\n- 💡 建议先使用小额资金测试\n- 🌟 确保 RPC 节点的稳定性和可用性\n\n## 🤝 如何贡献\n\n我们非常欢迎您对本项目做出贡献！如果您想参与项目开发，请先阅读我们的[贡献指南](CONTRIBUTING.md)。\n\n## 🙏 特别致谢\n\n- Raydium 交易模块参考自 [AL-THE-BOT-FATHER/raydium_py](https://github.com/AL-THE-BOT-FATHER/raydium_py)\n- Pump 交易模块参考自 [wisarmy/raytx](https://github.com/wisarmy/raytx/blob/main/src/pump.rs)\n\n## 📄 许可证\n\n[Apache 2.0](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainbuff%2Fopen-sol-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchainbuff%2Fopen-sol-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainbuff%2Fopen-sol-bot/lists"}