{"id":23092093,"url":"https://github.com/bennythink/aicryptobot","last_synced_at":"2025-07-24T00:04:05.331Z","repository":{"id":267357172,"uuid":"890782115","full_name":"BennyThink/AICryptoBot","owner":"BennyThink","description":"💰通过K线数据，使用 LLM 分析加密货币走势，提供交易建议🪙","archived":false,"fork":false,"pushed_at":"2025-01-09T19:27:09.000Z","size":2166,"stargazers_count":57,"open_issues_count":1,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-19T00:28:47.639Z","etag":null,"topics":["binance","btc","cryptocurrency","llm"],"latest_commit_sha":null,"homepage":"https://dmesg.app/candlestick-llm.html","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BennyThink.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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,"zenodo":null}},"created_at":"2024-11-19T07:05:01.000Z","updated_at":"2025-07-15T18:36:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"ed209fb0-3e9d-417e-b03b-4acdeb4fcff5","html_url":"https://github.com/BennyThink/AICryptoBot","commit_stats":null,"previous_names":["bennythink/aicryptobot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BennyThink/AICryptoBot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BennyThink%2FAICryptoBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BennyThink%2FAICryptoBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BennyThink%2FAICryptoBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BennyThink%2FAICryptoBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BennyThink","download_url":"https://codeload.github.com/BennyThink/AICryptoBot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BennyThink%2FAICryptoBot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266770187,"owners_count":23981519,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["binance","btc","cryptocurrency","llm"],"created_at":"2024-12-16T21:27:59.822Z","updated_at":"2025-07-24T00:04:05.302Z","avatar_url":"https://github.com/BennyThink.png","language":"Python","funding_links":["https://www.buymeacoffee.com/bennythink"],"categories":[],"sub_categories":[],"readme":"# AICryptoBot\n\n\u003e [!CAUTION]\n\u003e 本项目仅供学习交流使用。交易有风险，入市需谨慎。若因本项目产生任何损失，概不负责。\n\n# 简介\n\n通过调用加密货币交易所的API接口，获取不同时间周期的K线数据，并计算关键技术指标（如RSI、MACD等）。\n\n结合先进的大语言模型（如 Pixtral、GPT、Claude 等）的强大分析能力，对币种未来的价格走势进行智能预测，为投资决策提供高效的辅助支持。\n\n# 功能演示\n\n## Telegram 机器人模式\n\n![image](/assets/bot.png)\n\n## 脚本模式\n\n会自动用默认浏览器打开分析结果，你也可以在 `output` 目录下找到对应的文件手动查阅\n\n![image](/assets/script.jpg)\n\n## K线数据来源\n\n币安合约\n\n## 支持的LLM\n\n更多模型支持中……\n\n* OpenAI兼容的模型接口，包括 MistralAI、Grok 等\n\n# 使用方式\n\n由于 API 接口成本高昂，因此不提供公开可使用的bot。\n\u003e [!NOTE]\n\u003e 也许以后有需求会考虑做个网站或者试用bot，但是目前只能自行搭建环境使用。\n\n需要自行配置，推荐使用 Docker 或者手动配置环境的方式。\n\n# 使用 docker 运行\n\n具体可用命令参考下一节\n\n```shell\ndocker run ghcr.io/bennythink/src\n```\n\n# 手动配置环境\n\n## 安装 Python\n\nPython 3.8+，使用 [pdm](https://github.com/pdm-project/pdm)作为包管理器\n\n安装pdm可以参考[官方文档](https://pdm-project.org/zh-cn/latest/)\n\n或者也可以使用 pip 安装\n\n```shell\npip install pdm==2.20.1\n```\n\n## 安装 ta-lib\n\n需要安装 `ta-lib` 作为计算技术指标的依赖\n\n### macOS\n\n```shell\nbrew install ta-lib\n```\n\n### Linux\n\n参考 `Dockerfile` 编译并安装 `ta-lib`\n\n## Windows\n\n根据文档安装 `ta-lib`，[参考文档](https://github.com/TA-Lib/ta-lib-python?tab=readme-ov-file#windows)\n也可以使用[预编译的版本](https://github.com/cgohlke/talib-build/)\n\n## 安装依赖\n\n克隆本项目之后，切换到工作目录\n\n```shell\ngit clone https://github.com/BennyThink/AICryptoBot\npdm install\n```\n\n## 配置环境变量\n\n根据个人需求，阅读参考配置文件中的注释进行设置。\n\n需要配置 LLM的接口，对于 GPT 接口，推荐使用 [「头顶冒火」的API](https://burn.hair/register?aff=lNgp️)\n\n根据数据时间间隔的不同，每次调用会消耗不等的token数量，默认配置可能会消耗50-90K的 token，约 0.1-0.2 美元。\n\n\u003e [!IMPORTANT]  \n\u003e 请根据个人投资策略和需求，自行配置时间间隔，以便最大化节约成本。\n\n```shell\ncp .env.example aicryptbot/.env\n```\n\n# 使用\n\n支持两种模式，第一种是以 Telegram bot 的形式运行，第二种是脚本方式，默认为脚本模式\n\n```shell\n# 脚本模式\npython main.py --symbols=ETHUSDT,BTCUSDT\n# 机器人模式，之后可以和机器人对话，发送交易对即可\npython main.py --mode=bot\n```\n\n如果在 Docker 中运行，那么直接接配置好环境变量，然后运行即可\n\n```shell\ndocker run --env-file .env ghcr.io/bennythink/src --symbols=ETHUSDT,BTCUSDT\ndocker run --env-file .env ghcr.io/bennythink/src --mode=bot\n```\n\n# 代码自动格式化\n\n```shell\nblack --line-length 120 . \u0026\u0026 isort --profile black . \n```\n\n# 参考链接\n\n* 币安文档：[https://www.binance.com/zh-CN/binance-api](https://www.binance.com/zh-CN/binance-api)\n* 头顶冒火🤯 GPT 接口站：[https://burn.hair/](https://burn.hair/register?aff=lNgp️)\n* 头顶冒火🤯 Claude+Mistral+Grok+GPT模型：[https://api.burn.hair/](https://api.burn.hair)\n* 小白手把手使用教程：https://dmesg.app/candlestick-llm.html/2\n\n# 赞赏\n\n如果觉得这个项目对你有帮助，可以请我喝杯咖啡\n\n* Stripe： https://buy.stripe.com/dR67vU4p13Ox73a6oq\n* Buy Me a Coffee: https://www.buymeacoffee.com/bennythink\n* Toncoin: `UQBkXRAUVoEF2AA7QejHpsr3JmBWhsIfQTLURxJ3txc_rVFI`\n* USDT-TON: `UQBkXRAUVoEF2AA7QejHpsr3JmBWhsIfQTLURxJ3txc_rVFI`\n* USDT-TRC20: `TL8kqCm9SwrV44qLaKvWbwrTtDN3sx5dVP`\n* XLM: `GDGGEI35XJ7BQ6K3WLSVVFJA5JWGSIDVT4QAWAYHBG2Y3V3NLP76RC5U`\n* TRX:`TF9peZjC2FYjU4xNMPg3uP4caYLJxtXeJS`\n* ALGO: `Q3YIDNVGHNWYPPOWJE4K5UVTYGM33ADPNVRKXSTYGWAPAWADJSDZ34N6AA`\n\n# License\n\nMIT\n ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbennythink%2Faicryptobot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbennythink%2Faicryptobot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbennythink%2Faicryptobot/lists"}