[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"similar-chrisleekr--binance-trading-bot":3,"tool-chrisleekr--binance-trading-bot":64},[4,17,27,35,44,52],{"id":5,"name":6,"github_repo":7,"description_zh":8,"stars":9,"difficulty_score":10,"last_commit_at":11,"category_tags":12,"status":16},1381,"everything-claude-code","affaan-m\u002Feverything-claude-code","everything-claude-code 是一套专为 AI 编程助手（如 Claude Code、Codex、Cursor 等）打造的高性能优化系统。它不仅仅是一组配置文件，而是一个经过长期实战打磨的完整框架，旨在解决 AI 代理在实际开发中面临的效率低下、记忆丢失、安全隐患及缺乏持续学习能力等核心痛点。\n\n通过引入技能模块化、直觉增强、记忆持久化机制以及内置的安全扫描功能，everything-claude-code 能显著提升 AI 在复杂任务中的表现，帮助开发者构建更稳定、更智能的生产级 AI 代理。其独特的“研究优先”开发理念和针对 Token 消耗的优化策略，使得模型响应更快、成本更低，同时有效防御潜在的攻击向量。\n\n这套工具特别适合软件开发者、AI 研究人员以及希望深度定制 AI 工作流的技术团队使用。无论您是在构建大型代码库，还是需要 AI 协助进行安全审计与自动化测试，everything-claude-code 都能提供强大的底层支持。作为一个曾荣获 Anthropic 黑客大奖的开源项目，它融合了多语言支持与丰富的实战钩子（hooks），让 AI 真正成长为懂上",150037,2,"2026-04-10T23:33:47",[13,14,15],"开发框架","Agent","语言模型","ready",{"id":18,"name":19,"github_repo":20,"description_zh":21,"stars":22,"difficulty_score":10,"last_commit_at":23,"category_tags":24,"status":16},6121,"gemini-cli","google-gemini\u002Fgemini-cli","gemini-cli 是一款由谷歌推出的开源 AI 命令行工具，它将强大的 Gemini 大模型能力直接集成到用户的终端环境中。对于习惯在命令行工作的开发者而言，它提供了一条从输入提示词到获取模型响应的最短路径，无需切换窗口即可享受智能辅助。\n\n这款工具主要解决了开发过程中频繁上下文切换的痛点，让用户能在熟悉的终端界面内直接完成代码理解、生成、调试以及自动化运维任务。无论是查询大型代码库、根据草图生成应用，还是执行复杂的 Git 操作，gemini-cli 都能通过自然语言指令高效处理。\n\n它特别适合广大软件工程师、DevOps 人员及技术研究人员使用。其核心亮点包括支持高达 100 万 token 的超长上下文窗口，具备出色的逻辑推理能力；内置 Google 搜索、文件操作及 Shell 命令执行等实用工具；更独特的是，它支持 MCP（模型上下文协议），允许用户灵活扩展自定义集成，连接如图像生成等外部能力。此外，个人谷歌账号即可享受免费的额度支持，且项目基于 Apache 2.0 协议完全开源，是提升终端工作效率的理想助手。",100752,"2026-04-10T01:20:03",[25,14,26,13],"插件","图像",{"id":28,"name":29,"github_repo":30,"description_zh":31,"stars":32,"difficulty_score":10,"last_commit_at":33,"category_tags":34,"status":16},4721,"markitdown","microsoft\u002Fmarkitdown","MarkItDown 是一款由微软 AutoGen 团队打造的轻量级 Python 工具，专为将各类文件高效转换为 Markdown 格式而设计。它支持 PDF、Word、Excel、PPT、图片（含 OCR）、音频（含语音转录）、HTML 乃至 YouTube 链接等多种格式的解析，能够精准提取文档中的标题、列表、表格和链接等关键结构信息。\n\n在人工智能应用日益普及的今天，大语言模型（LLM）虽擅长处理文本，却难以直接读取复杂的二进制办公文档。MarkItDown 恰好解决了这一痛点，它将非结构化或半结构化的文件转化为模型“原生理解”且 Token 效率极高的 Markdown 格式，成为连接本地文件与 AI 分析 pipeline 的理想桥梁。此外，它还提供了 MCP（模型上下文协议）服务器，可无缝集成到 Claude Desktop 等 LLM 应用中。\n\n这款工具特别适合开发者、数据科学家及 AI 研究人员使用，尤其是那些需要构建文档检索增强生成（RAG）系统、进行批量文本分析或希望让 AI 助手直接“阅读”本地文件的用户。虽然生成的内容也具备一定可读性，但其核心优势在于为机器",93400,"2026-04-06T19:52:38",[25,13],{"id":36,"name":37,"github_repo":38,"description_zh":39,"stars":40,"difficulty_score":41,"last_commit_at":42,"category_tags":43,"status":16},4487,"LLMs-from-scratch","rasbt\u002FLLMs-from-scratch","LLMs-from-scratch 是一个基于 PyTorch 的开源教育项目，旨在引导用户从零开始一步步构建一个类似 ChatGPT 的大型语言模型（LLM）。它不仅是同名技术著作的官方代码库，更提供了一套完整的实践方案，涵盖模型开发、预训练及微调的全过程。\n\n该项目主要解决了大模型领域“黑盒化”的学习痛点。许多开发者虽能调用现成模型，却难以深入理解其内部架构与训练机制。通过亲手编写每一行核心代码，用户能够透彻掌握 Transformer 架构、注意力机制等关键原理，从而真正理解大模型是如何“思考”的。此外，项目还包含了加载大型预训练权重进行微调的代码，帮助用户将理论知识延伸至实际应用。\n\nLLMs-from-scratch 特别适合希望深入底层原理的 AI 开发者、研究人员以及计算机专业的学生。对于不满足于仅使用 API，而是渴望探究模型构建细节的技术人员而言，这是极佳的学习资源。其独特的技术亮点在于“循序渐进”的教学设计：将复杂的系统工程拆解为清晰的步骤，配合详细的图表与示例，让构建一个虽小但功能完备的大模型变得触手可及。无论你是想夯实理论基础，还是为未来研发更大规模的模型做准备",90106,3,"2026-04-06T11:19:32",[15,26,14,13],{"id":45,"name":46,"github_repo":47,"description_zh":48,"stars":49,"difficulty_score":10,"last_commit_at":50,"category_tags":51,"status":16},3704,"NextChat","ChatGPTNextWeb\u002FNextChat","NextChat 是一款轻量且极速的 AI 助手，旨在为用户提供流畅、跨平台的大模型交互体验。它完美解决了用户在多设备间切换时难以保持对话连续性，以及面对众多 AI 模型不知如何统一管理的痛点。无论是日常办公、学习辅助还是创意激发，NextChat 都能让用户随时随地通过网页、iOS、Android、Windows、MacOS 或 Linux 端无缝接入智能服务。\n\n这款工具非常适合普通用户、学生、职场人士以及需要私有化部署的企业团队使用。对于开发者而言，它也提供了便捷的自托管方案，支持一键部署到 Vercel 或 Zeabur 等平台。\n\nNextChat 的核心亮点在于其广泛的模型兼容性，原生支持 Claude、DeepSeek、GPT-4 及 Gemini Pro 等主流大模型，让用户在一个界面即可自由切换不同 AI 能力。此外，它还率先支持 MCP（Model Context Protocol）协议，增强了上下文处理能力。针对企业用户，NextChat 提供专业版解决方案，具备品牌定制、细粒度权限控制、内部知识库整合及安全审计等功能，满足公司对数据隐私和个性化管理的高标准要求。",87618,"2026-04-05T07:20:52",[13,15],{"id":53,"name":54,"github_repo":55,"description_zh":56,"stars":57,"difficulty_score":10,"last_commit_at":58,"category_tags":59,"status":16},2268,"ML-For-Beginners","microsoft\u002FML-For-Beginners","ML-For-Beginners 是由微软推出的一套系统化机器学习入门课程，旨在帮助零基础用户轻松掌握经典机器学习知识。这套课程将学习路径规划为 12 周，包含 26 节精炼课程和 52 道配套测验，内容涵盖从基础概念到实际应用的完整流程，有效解决了初学者面对庞大知识体系时无从下手、缺乏结构化指导的痛点。\n\n无论是希望转型的开发者、需要补充算法背景的研究人员，还是对人工智能充满好奇的普通爱好者，都能从中受益。课程不仅提供了清晰的理论讲解，还强调动手实践，让用户在循序渐进中建立扎实的技能基础。其独特的亮点在于强大的多语言支持，通过自动化机制提供了包括简体中文在内的 50 多种语言版本，极大地降低了全球不同背景用户的学习门槛。此外，项目采用开源协作模式，社区活跃且内容持续更新，确保学习者能获取前沿且准确的技术资讯。如果你正寻找一条清晰、友好且专业的机器学习入门之路，ML-For-Beginners 将是理想的起点。",85092,"2026-04-10T11:13:16",[26,60,61,25,14,62,15,13,63],"数据工具","视频","其他","音频",{"id":65,"github_repo":66,"name":67,"description_en":68,"description_zh":69,"ai_summary_zh":70,"readme_en":71,"readme_zh":72,"quickstart_zh":73,"use_case_zh":74,"hero_image_url":75,"owner_login":76,"owner_name":77,"owner_avatar_url":78,"owner_bio":79,"owner_company":80,"owner_location":81,"owner_email":79,"owner_twitter":79,"owner_website":82,"owner_url":83,"languages":84,"stars":112,"forks":113,"last_commit_at":114,"license":115,"difficulty_score":41,"env_os":116,"env_gpu":117,"env_ram":117,"env_deps":118,"category_tags":124,"github_topics":125,"view_count":10,"oss_zip_url":79,"oss_zip_packed_at":79,"status":16,"created_at":136,"updated_at":137,"faqs":138,"releases":168},4963,"chrisleekr\u002Fbinance-trading-bot","binance-trading-bot","Automated Binance trading bot -  Trade multiple cryptocurrencies. Buy low\u002Fsell high with Grid Trading. Integrated with TradingView technical analysis","binance-trading-bot 是一款专为币安交易所设计的自动化加密货币交易机器人，旨在帮助用户在波动市场中执行“低买高卖”策略。它核心解决了人工交易难以实时盯盘、容易受情绪影响导致错失最佳买卖点的问题，通过程序化方式自动完成多币种监控与交易执行。\n\n该工具特别适合具备一定技术基础的开发者、量化交易爱好者或希望尝试自动化策略的进阶投资者使用。虽然普通用户也可部署，但需要熟悉 Docker、MongoDB 及基础命令行操作，且需自行承担资金风险，因为它不保证盈利。\n\n其独特亮点在于采用了“追踪网格交易”（Trailing Grid Trade）机制。与传统固定价格挂单不同，当市场价格持续下跌时，它能自动撤销旧买单并以更低价格重新挂单，从而尽可能接近底部买入；反之在上涨趋势中也能动态调整卖单以锁定更高利润。此外，项目支持同时监控多个交易对，每秒实时更新数据，并兼容树莓派等低功耗设备（使用特定版本 MongoDB），方便用户搭建私有化部署环境。值得一提的是，它还预留了与 TradingView 技术分析集成的能力，为策略优化提供更多可能。使用前请务必阅读免责声明并备份配置，理性对待投","binance-trading-bot 是一款专为币安交易所设计的自动化加密货币交易机器人，旨在帮助用户在波动市场中执行“低买高卖”策略。它核心解决了人工交易难以实时盯盘、容易受情绪影响导致错失最佳买卖点的问题，通过程序化方式自动完成多币种监控与交易执行。\n\n该工具特别适合具备一定技术基础的开发者、量化交易爱好者或希望尝试自动化策略的进阶投资者使用。虽然普通用户也可部署，但需要熟悉 Docker、MongoDB 及基础命令行操作，且需自行承担资金风险，因为它不保证盈利。\n\n其独特亮点在于采用了“追踪网格交易”（Trailing Grid Trade）机制。与传统固定价格挂单不同，当市场价格持续下跌时，它能自动撤销旧买单并以更低价格重新挂单，从而尽可能接近底部买入；反之在上涨趋势中也能动态调整卖单以锁定更高利润。此外，项目支持同时监控多个交易对，每秒实时更新数据，并兼容树莓派等低功耗设备（使用特定版本 MongoDB），方便用户搭建私有化部署环境。值得一提的是，它还预留了与 TradingView 技术分析集成的能力，为策略优化提供更多可能。使用前请务必阅读免责声明并备份配置，理性对待投资风险。","# Binance Trading Bot\n\n[![Stand With Ukraine](https:\u002F\u002Fraw.githubusercontent.com\u002Fvshymanskyy\u002FStandWithUkraine\u002Fmain\u002Fbanner2-direct.svg)](https:\u002F\u002Fwar.ukraine.ua)\n\n\n[![GitHub version](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fpackage-json\u002Fv\u002Fchrisleekr\u002Fbinance-trading-bot)](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Freleases)\n[![Build](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fworkflows\u002FPush\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Factions?query=workflow%3APush)\n[![CodeCov](https:\u002F\u002Fcodecov.io\u002Fgh\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fbranch\u002Fmaster\u002Fgraph\u002Fbadge.svg)](https:\u002F\u002Fcodecov.io\u002Fgh\u002Fchrisleekr\u002Fbinance-trading-bot)\n[![Docker pull](https:\u002F\u002Fimg.shields.io\u002Fdocker\u002Fpulls\u002Fchrisleekr\u002Fbinance-trading-bot)](https:\u002F\u002Fhub.docker.com\u002Fr\u002Fchrisleekr\u002Fbinance-trading-bot)\n[![GitHub contributors](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fcontributors\u002Fchrisleekr\u002Fbinance-trading-bot)](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fgraphs\u002Fcontributors)\n[![MIT License](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002Fchrisleekr\u002Fbinance-trading-bot)](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fblob\u002Fmaster\u002FLICENSE)\n\n> Automated Binance trading bot with trailing buy\u002Fsell strategy\n\n---\n\n[![ko](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flang-한국어-brightgreen.svg)](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fblob\u002Fmaster\u002FREADME.ko.md)\n[![中文](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flang-中文-blue.svg)](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fblob\u002Fmaster\u002FREADME.zh-cn.md)\n\nThis is a test project. I am just testing my code.\n\n## Warnings\n\n**I cannot guarantee whether you can make money or not.**\n\n**So use it at your own risk! I have no responsibility for any loss or hardship\nincurred directly or indirectly by using this code. Read\n[disclaimer](#disclaimer) before using this code.**\n\n**Before updating the bot, make sure to record the last buy price in the note. It may lose the configuration or last buy price records.**\n\n## How it works\n\n### Trailing Grid Trade Buy\u002FSell Bot\n\nThis bot is using the concept of trailing buy\u002Fsell order which allows following the price fall\u002Frise.\n\n> Trailing Stop Orders\n> About Trailing Stop Orders Concept you can find at [Binance Official document](https:\u002F\u002Fwww.binance.com\u002Fen\u002Fsupport\u002Ffaq\u002F360042299292)\n>\n> TL;DR\n> Place orders at a fixed value or percentage when the price changes. Using this feature you can buy at the lowest possible price when buying down and sell at the highest possible price when selling up.\n\n- The bot supports multiple buy\u002Fsell orders based on the configuration.\n- The bot can monitor multiple symbols. All symbols will be monitored per second.\n- The bot is using MongoDB to provide a persistence database. However, it does not use the latest MongoDB to support Raspberry Pi 32bit. Used MongoDB version\n  is 3.2.20, which is provided by [apcheamitru](https:\u002F\u002Fhub.docker.com\u002Fr\u002Fapcheamitru\u002Farm32v7-mongo).\n- The bot is tested\u002Fworking with Linux and Raspberry Pi 4 32bit. Other platforms are not tested.\n\n#### Buy Signal\n\nThe bot will continuously monitor the coin based on the grid trade configuration.\n\nFor grid trade #1, the bot will place a STOP-LOSS-LIMIT order to buy when the current price reaches the lowest price. If the current price continuously falls, then the bot will cancel the previous order and re-place the new STOP-LOSS-LIMIT order with the new price.\n\nAfter grid trade #1, the bot will monitor the COIN based on the last buy price.\n\n- The bot will not place a buy order of the grid trade #1 if has enough coin (typically over $10 worth) to sell when reaches the trigger price for selling.\n- The bot will remove the last buy price if the estimated value is less than the last buy price removal threshold.\n\n##### Buy Scenario\n\nLet say, if the buy grid trade configurations are set as below:\n\n- Number of grids: 2\n- Grids\n  | No# | Trigger Percentage  | Stop Price Percentage | Limit price percentage | USDT |\n  | --- | ------------------- | --------------------- | ---------------------- | ---- |\n  | 1   | 1                   | 1.05                  | 1.051                  | 50   |\n  | 2   | 0.8                 | 1.03                  | 1.031                  | 100  |\n\nTo make it easier to understand, I will use `$` as a USDT symbol. For the simple calculation, I do not take an account for the commission. In real trading, the quantity may be different.\n\nYour 1st grid trading for buying is configured as below:\n\n- Grid No#: 1\n- Trigger percentage: 1\n- Stop percentage: 1.05 (5.00%)\n- Limit percentage: 1.051 (5.10%)\n- Max purchase amount: $50\n\nAnd the market is as below:\n\n- Current price: $105\n- Lowest price: $100\n- Trigger price: $100\n\nWhen the current price is falling to the lowest price ($100) and lower than ATH(All-Time High) restricted price if enabled, the bot will place new STOP-LOSS-LIMIT order for buying.\n\n- Stop price: $100 * 1.05 = $105\n- Limit price: $100 * 1.051 = $105.1\n- Quantity: 0.47573\n\nLet's assume the market changes as below:\n\n- Current price: $95\n\nThen the bot will follow the price fall and place new STOP-LOSS-LIMIT order as below:\n\n- Stop price: $95 * 1.05 = $99.75\n- Limit price: $95 * 1.051 = $99.845\n- Quantity: 0.5\n\nLet's assume the market changes as below:\n\n- Current price: $100\n\nThen the bot will execute 1st purchase for the coin. The last buy price will be recorded as `$99.845`. The purchased quantity will be `0.5`.\n\nOnce the coin is purchased, the bot will start monitoring the sell signal and at the same time, monitor the next grid trading for buying.\n\nYour 2nd grid trading for buying is configured as below:\n\n- Grid#: 2\n- Current last buy price: $99.845\n- Trigger percentage: 0.8 (20%)\n- Stop percentage: 1.03 (3.00%)\n- Limit percentage: 1.031 (3.10%)\n- Max purchase amount: $100\n\nAnd if the current price is continuously falling to `$79.876` (20% lower), then the bot will place new STOP-LOSS-LIMIT order for the 2nd grid trading for the coin.\n\nLet's assume the market changes as below:\n\n- Current price: $75\n\nThen the bot will follow the price fall and place new STOP-LOSS-LIMT order as below:\n\n- Stop price: $75 * 1.03 = $77.25\n- Limit price: $75 * 1.031 = $77.325\n- Quantity: 1.29\n\nLet's assume the market changes as below:\n\n- Current price: $78\n\nThen the bot will execute 2nd purchase for the coin. The last buy price will be automatically re-calculated as below:\n\n- Final last buy price: ($50 + $100)\u002F(0.5 COIN + 1.29 COIN) = $83.80\n\n##### In-depth Buy Configuration in-depth\n\nThe detailed document for buy configuration available here.\n\n[https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fwiki\u002FBuy-Scenario](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fwiki\u002FBuy-Scenario)\n\n### Sell Signal\n\nIf there is enough balance for selling and the last buy price is recorded in the bot, then the bot will start monitoring the sell signal of the grid trade #1. Once the current price reaches the trigger price of the grid trade #1, then the bot will place a STOP-LOSS-LIMIT order to sell. If the current price continuously rises, then the bot will cancel the previous order and re-place the new STOP-LOSS-LIMIT order with the new price.\n\n- If the bot does not have a record for the last buy price, the bot will not sell the coin.\n- If the coin is worth less than the last buy price removal threshold, then the bot will remove the last buy price.\n- If the coin is not worth than the minimum notional value, then the bot will not place an order.\n\n#### Sell Scenario\n\nLet say, if the sell grid trade configurations are set as below:\n\n- Number of grids: 2\n- Grids\n  | No# | Trigger Percentage  | Stop Price Percentage | Limit price percentage | Sell Quantity Percentage |\n  | --- | ------------------- | --------------------- | ---------------------- |------------------------- |\n  | 1st | 1.05                | 0.97                  | 0.969                  | 0.5                      |\n  | 2nd | 1.08                | 0.95                  | 0.949                  | 1                        |\n\nUnlike buy, the sell configuration will use the percentage of a quantity. If you want to sell all of your coin quantity, then simply configure it as `1` (100%).\n\nFrom the last buy actions, you now have the following balances:\n\n- Current quantity: 1.79\n- Current last buy price: $83.80\n\nYour 1st grid trading for selling is configured as below:\n\n- Grid No# 1\n- Trigger percentage: 1.05\n- Stop price percentage: 0.97\n- Limit price percentage: 0.969\n- Sell amount percentage: 0.5\n\nLet's assume the market changes as below:\n\n- Current price: $88\n\nAs the current price is higher than the sell trigger price($87.99), then the bot will place new STOP-LOSS-LIMIT order for selling.\n\n- Stop price: $88 * 0.97 = $85.36\n- Limit price: $88 * 0.969 = $85.272\n- Quantity: 0.895\n\nLet's assume the market changes as below:\n\n- Current price: $90\n\nThen the bot will follow the price rise and place new STOP-LOSS-LIMIT order as below:\n\n- Stop price: $90 * 0.97 = $87.30\n- Limit price: $90 * 0.969 = $87.21\n- Quantity: 0.895\n\nLet's assume the market changes as below:\n\n- Current price: $87\n\nThen the bot will execute 1st sell for the coin. Then the bot will now wait for 2nd selling trigger price ($83.80 * 1.08 = $90.504).\n\n- Current quantity: 0.895\n- Current last buy price: $83.80\n\nLet's assume the market changes as below:\n\n- Current price: $91\n\nThen the current price($91) is higher than 2nd selling trigger price ($90.504), the bot will place new STOP-LOSS-LIMIT order as below:\n\n- Stop price: $91 * 0.95 = $86.45\n- Limit price: $91 * 0.949 = $86.359\n- Quantity: 0.895\n\nLet's assume the market changes as below:\n\n- Current price: $100\n\nThen the bot will follow the price rise and place new STOP-LOSS-LIMT order as below:\n\n- Stop price: $100 * 0.95 = $95\n- Limit price: $100 * 0.949 = $94.9\n- Quantity: 0.895\n\nLet's assume the market changes as below:\n\n- Current price: $94\n\nThen the bot will execute 2nd sell for the coin.\n\nThe final profit would be\n\n- 1st sell: $94.9 * 0.895 = $84.9355\n- 2nd sell: $87.21 * 0.895 = $78.05295\n- Final profit: $162 (8% profit)\n\n##### In-depth Sell Configuration\n\nThe detailed document for buy configuration available here.\n\n[https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fwiki\u002FSell-Scenario](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fwiki\u002FSell-Scenario)\n\n### [Features](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fwiki\u002FFeatures)\n\n- Manual trade\n- Convert small balances to BNB\n- Trade all symbols\n- Monitoring multiple coins simultaneously\n- Stop-Loss\n- Restrict buying with ATH price\n- Grid Trade for buy\u002Fsell\n- Integrated with TradingView Technical Analysis\n\n### Frontend + WebSocket\n\nReact.js based frontend communicating via Web Socket:\n\n- List monitoring coins with buy\u002Fsell signals\u002Fopen orders\n- View account balances\n- View open\u002Fclosed trades\n- Manage global\u002Fsymbol settings\n- Delete caches that are not monitored\n- Link to public URL\n- Support Add to Home Screen\n- Secure frontend\n\n## Environment Parameters\n\nUse environment parameters to adjust parameters. Check `\u002Fconfig\u002Fcustom-environment-variables.json` to see list of available environment parameters.\n\nOr use the frontend to adjust configurations after launching the application.\n\n## How to use\n\n1. Create `.env` file based on `.env.dist`.\n\n   | Environment Key                | Description                                                               | Sample Value                                                                                        |\n   | ------------------------------ | ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |\n   | BINANCE_LIVE_API_KEY           | Binance API key for live                                                  | (from [Binance](https:\u002F\u002Fbinance.zendesk.com\u002Fhc\u002Fen-us\u002Farticles\u002F360002502072-How-to-create-API))      |\n   | BINANCE_LIVE_SECRET_KEY        | Binance API secret for live                                               | (from [Binance](https:\u002F\u002Fbinance.zendesk.com\u002Fhc\u002Fen-us\u002Farticles\u002F360002502072-How-to-create-API))      |\n   | BINANCE_TEST_API_KEY           | Binance API key for test                                                  | (from [Binance Spot Test Network](https:\u002F\u002Ftestnet.binance.vision\u002F))                                 |\n   | BINANCE_TEST_SECRET_KEY        | Binance API secret for test                                               | (from [Binance Spot Test Network](https:\u002F\u002Ftestnet.binance.vision\u002F))                                 |\n   | BINANCE_SLACK_ENABLED          | Slack enable\u002Fdisable                                                      | true                                                                                                |\n   | BINANCE_SLACK_WEBHOOK_URL      | Slack webhook URL                                                         | (from [Slack](https:\u002F\u002Fslack.com\u002Fintl\u002Fen-au\u002Fhelp\u002Farticles\u002F115005265063-Incoming-webhooks-for-Slack)) |\n   | BINANCE_SLACK_CHANNEL          | Slack channel                                                             | \"#binance\"                                                                                          |\n   | BINANCE_SLACK_USERNAME         | Slack username                                                            | Chris                                                                                               |\n   | BINANCE_LOCAL_TUNNEL_ENABLED   | Enable\u002FDisable [local tunnel](https:\u002F\u002Fgithub.com\u002Flocaltunnel\u002Flocaltunnel) | true                                                                                                |\n   | BINANCE_LOCAL_TUNNEL_SUBDOMAIN | Local tunnel public URL subdomain                                         | binance                                                                                             |\n   | BINANCE_AUTHENTICATION_ENABLED | Enable\u002FDisable frontend authentication                                    | true  |\n   | BINANCE_AUTHENTICATION_PASSWORD | Frontend password                                                        | 123456 |\n   | BINANCE_LOG_LEVEL               | Logging level. [Possible values described on `bunyan` docs.](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fbunyan#levels) | ERROR |\n\n   *A local tunnel makes the bot accessible from the outside. Please set the subdomain of the local tunnel as a subdomain that only you can remember.*\n   *You must change the authentication password; otherwise, it will be configured as the default password.*\n\n2. Launch\u002FUpdate the bot with docker-compose\n\n   Pull latest code first:\n\n   ```bash\n   git pull\n   ```\n\n   If want production\u002Flive mode, then use the latest build image from DockerHub:\n\n   ```bash\n   docker-compose -f docker-compose.server.yml pull\n   docker-compose -f docker-compose.server.yml up -d\n   ```\n\n   Or if want development\u002Ftest mode, then run below commands:\n\n   ```bash\n   docker-compose up -d --build\n   ```\n\n3. Open browser `http:\u002F\u002F0.0.0.0:8080` to see the frontend\n\n   - When launching the application, it will notify public URL to the Slack.\n   - If you have any issue with the bot, you can check the log to find out what happened with the bot. Please take a look [Troubleshooting](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fwiki\u002FTroubleshooting)\n\n### Install via Stackfile\n\n1. In [Portainer](https:\u002F\u002Fwww.portainer.io\u002F) create new Stack\n\n2. Copy content of `docker-stack.yml` or upload the file\n\n3. Set environment keys for `binance-bot` in the `docker-stack.yml`\n\n4. Launch and open browser `http:\u002F\u002F0.0.0.0:8080` to see the frontend\n\n## Screenshots\n\n| Password Protected | Frontend Mobile |\n| ------------------ | --------------- |\n| ![Password Protected](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fchrisleekr_binance-trading-bot_readme_acc8c871a913.png) | ![Frontend Mobile](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fchrisleekr_binance-trading-bot_readme_6589e73cf475.png) |\n\n| Setting | Manual Trade |\n| ------- | ------------ |\n| ![Setting](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fchrisleekr_binance-trading-bot_readme_f1ccbf48bc7b.png) | ![Manual Trade](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fchrisleekr_binance-trading-bot_readme_03a6fab984ff.png) |\n\n| Frontend Desktop  | Closed Trades |\n| ----------------- | ------------- |\n| ![Frontend Desktop](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fchrisleekr_binance-trading-bot_readme_58609b92904f.png) | ![Closed Trades](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fchrisleekr_binance-trading-bot_readme_bd07c6de95b3.png) |\n\n### Sample Trade\n\n| Chart                                                                                                          | Buy Orders                                                                                                          | Sell Orders                                                                                                          |\n| -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |\n| ![Chart](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fchrisleekr_binance-trading-bot_readme_d1801024ce81.png) | ![Buy Orders](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fchrisleekr_binance-trading-bot_readme_f6390026ef31.png) | ![Sell Orders](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fchrisleekr_binance-trading-bot_readme_3332ac275cbf.png) |\n\n## Changes & Todo\n\nPlease refer\n[CHANGELOG.md](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fblob\u002Fmaster\u002FCHANGELOG.md)\nto view the past changes.\n\n- [ ] Develop simple setup screen for secrets\n- [ ] Allow to execute stop-loss before buy action - [#299](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fissues\u002F299)\n- [ ] Improve sell strategy with conditional stop price percentage based on the profit percentage - [#94](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fissues\u002F94)\n- [ ] Add sudden drop buy strategy - [#67](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fissues\u002F67)\n- [ ] Manage setting profiles (save\u002Fchange\u002Fload?\u002Fexport?) - [#151](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fissues\u002F151)\n- [ ] Improve notifications by supporting Apprise - [#106](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fissues\u002F106)\n- [ ] Support cool time after hitting the lowest price before buy - [#105](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fissues\u002F105)\n- [ ] Reset global configuration to initial configuration - [#97](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fissues\u002F97)\n- [ ] Support multilingual frontend - [#56](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fissues\u002F56)\n- [ ] Non linear stop price and chase function - [#246](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fissues\u002F246)\n- [ ] Support STOP-LOSS configuration per grid trade for selling - [#261](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fissues\u002F261)\n\n## Donations\n\nIf you find this project helpful, feel free to make a small\n[donation](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fblob\u002Fmaster\u002FDONATIONS.md)\nto the developer.\n\n## Acknowledgments\n\n- [@d0x2f](https:\u002F\u002Fgithub.com\u002Fd0x2f)\n- And many others! Thanks guys!\n\n## Contributors\n\nThanks to all contributors :heart: [Click to see our heroes](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fgraphs\u002Fcontributors)\n\n## Disclaimer\n\nI give no warranty and accepts no responsibility or liability for the accuracy or the completeness of the information and materials contained in this project. Under no circumstances will I be held responsible or liable in any way for any claims, damages, losses, expenses, costs or liabilities whatsoever (including, without limitation, any direct or indirect damages for loss of profits, business interruption or loss of information) resulting from or arising directly or indirectly from your use of or inability to use this code or any code linked to it, or from your reliance on the information and material on this code, even if I have been advised of the possibility of such damages in advance.\n\n**So use it at your own risk!**\n","# 币安交易机器人\n\n[![支持乌克兰](https:\u002F\u002Fraw.githubusercontent.com\u002Fvshymanskyy\u002FStandWithUkraine\u002Fmain\u002Fbanner2-direct.svg)](https:\u002F\u002Fwar.ukraine.ua)\n\n\n[![GitHub版本](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fpackage-json\u002Fv\u002Fchrisleekr\u002Fbinance-trading-bot)](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Freleases)\n[![构建](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fworkflows\u002FPush\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Factions?query=workflow%3APush)\n[![CodeCov](https:\u002F\u002Fcodecov.io\u002Fgh\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fbranch\u002Fmaster\u002Fgraph\u002Fbadge.svg)](https:\u002F\u002Fcodecov.io\u002Fgh\u002Fchrisleekr\u002Fbinance-trading-bot)\n[![Docker镜像拉取次数](https:\u002F\u002Fimg.shields.io\u002Fdocker\u002Fpulls\u002Fchrisleekr\u002Fbinance-trading-bot)](https:\u002F\u002Fhub.docker.com\u002Fr\u002Fchrisleekr\u002Fbinance-trading-bot)\n[![GitHub贡献者](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fcontributors\u002Fchrisleekr\u002Fbinance-trading-bot)](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fgraphs\u002Fcontributors)\n[![MIT许可证](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002Fchrisleekr\u002Fbinance-trading-bot)](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fblob\u002Fmaster\u002FLICENSE)\n\n> 自动化币安交易机器人，采用追踪式买入\u002F卖出策略\n\n---\n\n[![韩语](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flang-한국어-brightgreen.svg)](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fblob\u002Fmaster\u002FREADME.ko.md)\n[![中文](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flang-中文-blue.svg)](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fblob\u002Fmaster\u002FREADME.zh-cn.md)\n\n这是一个测试项目。我只是在测试我的代码。\n\n## 警告\n\n**我无法保证您是否能盈利。**\n\n**因此，请自行承担风险使用！对于因使用本代码而直接或间接造成的任何损失或困难，我概不负责。请在使用本代码前阅读\n[免责声明](#disclaimer)。**\n\n**在更新机器人之前，请务必记录下上次的买入价格。否则可能会丢失配置或上次买入价格的记录。**\n\n## 工作原理\n\n### 追踪网格交易买入\u002F卖出机器人\n\n该机器人采用追踪式买入\u002F卖出订单的概念，能够跟随价格的下跌或上涨。\n\n> 追踪止损单\n> 关于追踪止损单的概念，您可以参考 [Binance官方文档](https:\u002F\u002Fwww.binance.com\u002Fen\u002Fsupport\u002Ffaq\u002F360042299292)\n>\n> 简而言之：\n> 当价格发生变化时，按照固定值或百分比下单。利用此功能，在下跌时可以以尽可能低的价格买入，而在上涨时则可以以尽可能高的价格卖出。\n\n- 该机器人支持基于配置的多个买入\u002F卖出订单。\n- 机器人可以监控多个交易品种。所有品种将每秒进行一次监控。\n- 机器人使用MongoDB作为持久化数据库。然而，为了兼容树莓派32位系统，未使用最新版本的MongoDB。所使用的MongoDB版本为3.2.20，由[apcheamitru](https:\u002F\u002Fhub.docker.com\u002Fr\u002Fapcheamitru\u002Farm32v7-mongo)提供。\n- 该机器人已在Linux和树莓派4 32位上进行了测试并正常运行。其他平台尚未经过测试。\n\n#### 买入信号\n\n机器人会根据网格交易配置持续监控指定的币种。\n\n对于网格交易#1，当当前价格达到最低价时，机器人将下达一个止损限价单进行买入。如果当前价格持续下跌，则机器人会取消之前的订单，并以新的价格重新下达止损限价单。\n\n完成网格交易#1后，机器人将根据最后一次买入的价格继续监控该币种。\n\n- 如果持有的币量足够（通常价值超过10美元），并且达到卖出触发价格时，机器人将不会执行网格交易#1的买入订单。\n- 如果预计的价值低于最后一次买入价格的移除阈值，则机器人会移除最后一次买入价格。\n\n##### 买入场景\n\n假设买入网格交易的配置如下：\n\n- 网格数量：2\n- 网格\n  | 序号 | 触发百分比 | 止损百分比 | 限价百分比 | USDT |\n  | --- | ---------- | ---------- | ---------- | ---- |\n  | 1   | 1          | 1.05       | 1.051      | 50   |\n  | 2   | 0.8        | 1.03       | 1.031      | 100  |\n\n为了便于理解，我将用“$”来表示USDT符号。为了简化计算，我没有考虑手续费。在实际交易中，数量可能会有所不同。\n\n您的第一个买入网格交易配置如下：\n\n- 网格序号：1\n- 触发百分比：1\n- 止损百分比：1.05（5.00%）\n- 限价百分比：1.051（5.10%）\n- 最大购买金额：50美元\n\n市场情况如下：\n\n- 当前价格：105美元\n- 最低价：100美元\n- 刺激价格：100美元\n\n当当前价格跌至最低价（100美元）且低于ATH（历史最高价）限制价格时（如果已启用），机器人将下达一个新的止损限价单进行买入。\n\n- 止损价格：100美元 × 1.05 = 105美元\n- 限价价格：100美元 × 1.051 = 105.1美元\n- 数量：0.47573\n\n假设市场变化如下：\n\n- 当前价格：95美元\n\n那么机器人将跟随价格下跌，并下达新的止损限价单：\n\n- 止损价格：95美元 × 1.05 = 99.75美元\n- 限价价格：95美元 × 1.051 = 99.845美元\n- 数量：0.5\n\n假设市场变化如下：\n\n- 当前价格：100美元\n\n此时机器人将执行第一次买入操作。最后的买入价格将被记录为99.845美元。买入的数量为0.5个单位。\n\n一旦买入完成，机器人将开始监控卖出信号，同时继续监控下一个买入网格交易。\n\n您的第二个买入网格交易配置如下：\n\n- 网格序号：2\n- 上次买入价格：99.845美元\n- 触发百分比：0.8（20%）\n- 止损百分比：1.03（3.00%）\n- 限价百分比：1.031（3.10%）\n- 最大购买金额：100美元\n\n如果当前价格持续下跌至79.876美元（比上次买入价格低20%），机器人将为第二次买入下达新的止损限价单。\n\n假设市场变化如下：\n\n- 当前价格：75美元\n\n那么机器人将跟随价格下跌，并下达新的止损限价单：\n\n- 止损价格：75美元 × 1.03 = 77.25美元\n- 限价价格：75美元 × 1.031 = 77.325美元\n- 数量：1.29\n\n假设市场变化如下：\n\n- 当前价格：78美元\n\n此时机器人将执行第二次买入操作。最后的买入价格将自动重新计算如下：\n\n- 最终买入价格：（50美元 + 100美元）\u002F（0.5个币 + 1.29个币）= 83.80美元\n\n##### 买入配置详解\n\n关于买入配置的详细说明，请参阅以下链接：\n\n[https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fwiki\u002FBuy-Scenario](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fwiki\u002FBuy-Scenario)\n\n### 卖出信号\n\n如果账户余额充足且机器人已记录上次买入价格，则机器人将开始监控网格交易#1的卖出信号。一旦当前价格达到网格交易#1的触发价格，机器人将下达一个止损限价单进行卖出。若当前价格持续上涨，机器人将取消之前的订单，并以新的价格重新下达止损限价单。\n\n- 如果机器人没有记录上次买入价格，则不会卖出该币种。\n- 如果该币种的价值低于上次买入价格的移除阈值，机器人将移除上次买入价格。\n- 如果该币种的价值低于最小名义价值，机器人将不会下达任何订单。\n\n#### 卖出场景\n\n假设卖出网格交易的配置如下：\n\n- 网格数量：2\n- 网格配置：\n  | 序号 | 触发百分比 | 止损百分比 | 限价百分比 | 卖出数量百分比 |\n  | --- | ---------- | ---------- | ---------- | -------------- |\n  | 1   | 1.05       | 0.97       | 0.969      | 0.5            |\n  | 2   | 1.08       | 0.95       | 0.949      | 1              |\n\n与买入不同，卖出配置使用数量的百分比。如果你想卖出全部持仓，只需将其配置为`1`（即100%）。\n\n根据最近的买入操作，你现在拥有以下余额：\n\n- 当前数量：1.79\n- 当前最后一次买入价格：83.80美元\n\n你的第一个卖出网格交易配置如下：\n\n- 网格序号#1\n- 触发百分比：1.05\n- 止损百分比：0.97\n- 限价百分比：0.969\n- 卖出数量百分比：0.5\n\n假设市场行情变化如下：\n\n- 当前价格：88美元\n\n由于当前价格高于卖出触发价格（87.99美元），机器人将下达新的止损限价单进行卖出。\n\n- 止损价格：88美元 × 0.97 = 85.36美元\n- 限价价格：88美元 × 0.969 = 85.272美元\n- 卖出数量：0.895\n\n假设市场行情再次变化如下：\n\n- 当前价格：90美元\n\n此时机器人会跟随价格上涨，重新下达止损限价单：\n\n- 止损价格：90美元 × 0.97 = 87.30美元\n- 限价价格：90美元 × 0.969 = 87.21美元\n- 卖出数量：0.895\n\n假设市场行情进一步变化如下：\n\n- 当前价格：87美元\n\n此时机器人将执行第一次卖出操作。随后，机器人将等待第二次卖出触发价格（83.80美元 × 1.08 = 90.504美元）。\n\n- 当前数量：0.895\n- 当前最后一次买入价格：83.80美元\n\n假设市场行情再次变化如下：\n\n- 当前价格：91美元\n\n由于当前价格（91美元）高于第二次卖出触发价格（90.504美元），机器人将下达新的止损限价单：\n\n- 止损价格：91美元 × 0.95 = 86.45美元\n- 限价价格：91美元 × 0.949 = 86.359美元\n- 卖出数量：0.895\n\n假设市场行情继续变化如下：\n\n- 当前价格：100美元\n\n此时机器人将再次跟随价格上涨，重新下达止损限价单：\n\n- 止损价格：100美元 × 0.95 = 95美元\n- 限价价格：100美元 × 0.949 = 94.9美元\n- 卖出数量：0.895\n\n假设市场行情最终变化如下：\n\n- 当前价格：94美元\n\n此时机器人将执行第二次卖出操作。\n\n最终收益计算如下：\n\n- 第一次卖出：84.9美元 × 0.895 = 84.9355美元\n- 第二次卖出：78.05美元 × 0.895 = 78.05295美元\n- 总收益：162美元（8%利润）\n\n##### 卖出配置详解\n\n关于买入配置的详细说明，请参阅此处文档：\n\n[https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fwiki\u002FSell-Scenario](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fwiki\u002FSell-Scenario)\n\n### [功能特性](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fwiki\u002FFeatures)\n\n- 手动交易\n- 将小额余额转换为BNB\n- 交易所有币种\n- 同时监控多只币种\n- 止损功能\n- 限制在历史最高价上方买入\n- 网格交易（买入\u002F卖出）\n- 集成TradingView技术分析\n\n### 前端 + WebSocket\n\n基于React.js的前端通过WebSocket进行通信：\n\n- 列出正在监控的币种及其买卖信号、未成交订单\n- 查看账户余额\n- 查看已开\u002F已平仓的交易记录\n- 管理全局及特定币种的设置\n- 清除未监控的缓存数据\n- 提供公共访问链接\n- 支持添加到主屏幕\n- 前端安全性保障\n\n## 环境参数\n\n可通过环境参数调整各项配置。请查看`\u002Fconfig\u002Fcustom-environment-variables.json`文件，了解可用的环境参数列表。\n\n此外，您也可以在应用启动后通过前端界面调整相关配置。\n\n## 使用方法\n\n1. 根据 `.env.dist` 文件创建 `.env` 文件。\n\n   | 环境变量键                | 描述                                                               | 示例值                                                                                        |\n   | -------------------------- | ------------------------------------------------------------------ | --------------------------------------------------------------------------------------------- |\n   | BINANCE_LIVE_API_KEY       | 生产环境下的币安 API 密钥                                          | （来自 [币安](https:\u002F\u002Fbinance.zendesk.com\u002Fhc\u002Fen-us\u002Farticles\u002F360002502072-How-to-create-API)）      |\n   | BINANCE_LIVE_SECRET_KEY    | 生产环境下的币安 API 秘钥                                          | （来自 [币安](https:\u002F\u002Fbinance.zendesk.com\u002Fhc\u002Fen-us\u002Farticles\u002F360002502072-How-to-create-API)）      |\n   | BINANCE_TEST_API_KEY       | 测试环境下的币安 API 密钥                                          | （来自 [币安现货测试网](https:\u002F\u002Ftestnet.binance.vision\u002F)）                                 |\n   | BINANCE_TEST_SECRET_KEY    | 测试环境下的币安 API 秘钥                                          | （来自 [币安现货测试网](https:\u002F\u002Ftestnet.binance.vision\u002F)）                                 |\n   | BINANCE_SLACK_ENABLED      | 是否启用 Slack 通知                                                 | true                                                                                          |\n   | BINANCE_SLACK_WEBHOOK_URL  | Slack Webhook URL                                                  | （来自 [Slack](https:\u002F\u002Fslack.com\u002Fintl\u002Fen-au\u002Fhelp\u002Farticles\u002F115005265063-Incoming-webhooks-for-Slack)） |\n   | BINANCE_SLACK_CHANNEL      | Slack 频道                                                         | \"#binance\"                                                                                    |\n   | BINANCE_SLACK_USERNAME     | Slack 用户名                                                       | Chris                                                                                         |\n   | BINANCE_LOCAL_TUNNEL_ENABLED | 是否启用本地隧道 [localtunnel](https:\u002F\u002Fgithub.com\u002Flocaltunnel\u002Flocaltunnel) | true                                                                                          |\n   | BINANCE_LOCAL_TUNNEL_SUBDOMAIN | 本地隧道的公共 URL 子域名                                          | binance                                                                                       |\n   | BINANCE_AUTHENTICATION_ENABLED | 是否启用前端身份验证                                               | true                                                                                          |\n   | BINANCE_AUTHENTICATION_PASSWORD | 前端登录密码                                                       | 123456                                                                                        |\n   | BINANCE_LOG_LEVEL           | 日志级别。[可能值参见 bunyan 文档。](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fbunyan#levels) | ERROR                                                                                         |\n\n   *本地隧道使机器人可以从外部访问。请将本地隧道的子域名设置为只有你自己能记住的子域名。*\n   *必须更改身份验证密码；否则，它将被配置为默认密码。*\n\n2. 使用 docker-compose 启动或更新机器人\n\n   首先拉取最新代码：\n\n   ```bash\n   git pull\n   ```\n\n   如果需要生产\u002F上线模式，则使用 DockerHub 上的最新构建镜像：\n\n   ```bash\n   docker-compose -f docker-compose.server.yml pull\n   docker-compose -f docker-compose.server.yml up -d\n   ```\n\n   或者，如果需要开发\u002F测试模式，则运行以下命令：\n\n   ```bash\n   docker-compose up -d --build\n   ```\n\n3. 打开浏览器 `http:\u002F\u002F0.0.0.0:8080` 查看前端界面\n\n   - 应用启动时，会将公开 URL 通知到 Slack。\n   - 如果机器人出现任何问题，可以查看日志以了解具体原因。请参阅 [故障排除](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fwiki\u002FTroubleshooting)\n\n### 通过 Stackfile 安装\n\n1. 在 [Portainer](https:\u002F\u002Fwww.portainer.io\u002F) 中创建新的 Stack\n\n2. 复制 `docker-stack.yml` 的内容或上传该文件\n\n3. 在 `docker-stack.yml` 中设置 `binance-bot` 的环境变量\n\n4. 启动并打开浏览器 `http:\u002F\u002F0.0.0.0:8080` 查看前端界面\n\n## 截图\n\n| 密码保护 | 前端移动端 |\n| ---------- | ---------- |\n| ![密码保护](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fchrisleekr_binance-trading-bot_readme_acc8c871a913.png) | ![前端移动端](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fchrisleekr_binance-trading-bot_readme_6589e73cf475.png) |\n\n| 设置 | 手动交易 |\n| ---- | -------- |\n| ![设置](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fchrisleekr_binance-trading-bot_readme_f1ccbf48bc7b.png) | ![手动交易](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fchrisleekr_binance-trading-bot_readme_03a6fab984ff.png) |\n\n| 前端桌面版  | 已平仓交易 |\n| ------------- | ---------- |\n| ![前端桌面版](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fchrisleekr_binance-trading-bot_readme_58609b92904f.png) | ![已平仓交易](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fchrisleekr_binance-trading-bot_readme_bd07c6de95b3.png) |\n\n### 样例交易\n\n| 图表                                                                                                          | 买入订单                                                                                                          | 卖出订单                                                                                                          |\n| -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |\n| ![图表](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fchrisleekr_binance-trading-bot_readme_d1801024ce81.png) | ![买入订单](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fchrisleekr_binance-trading-bot_readme_f6390026ef31.png) | ![卖出订单](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fchrisleekr_binance-trading-bot_readme_3332ac275cbf.png) |\n\n## 变更与待办事项\n\n请参阅\n[CHANGELOG.md](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fblob\u002Fmaster\u002FCHANGELOG.md)\n以查看过往的变更记录。\n\n- [ ] 开发用于管理密钥的简易设置界面\n- [ ] 允许在买入操作之前执行止损 - [#299](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fissues\u002F299)\n- [ ] 根据盈利百分比调整卖出策略中的条件止损价格百分比 - [#94](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fissues\u002F94)\n- [ ] 添加突发下跌买入策略 - [#67](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fissues\u002F67)\n- [ ] 管理设置配置文件（保存\u002F更改\u002F加载？\u002F导出？）- [#151](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fissues\u002F151)\n- [ ] 通过支持 Apprise 改进通知功能 - [#106](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fissues\u002F106)\n- [ ] 支持在触及最低价后设置冷却时间再进行买入 - [#105](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fissues\u002F105)\n- [ ] 将全局配置重置为初始配置 - [#97](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fissues\u002F97)\n- [ ] 支持多语言前端界面 - [#56](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fissues\u002F56)\n- [ ] 非线性止损价格及追涨功能 - [#246](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fissues\u002F246)\n- [ ] 支持针对网格交易的逐笔卖出止损配置 - [#261](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fissues\u002F261)\n\n## 捐赠\n\n如果您觉得本项目对您有所帮助，请随时向开发者进行小额\n[捐赠](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fblob\u002Fmaster\u002FDONATIONS.md)。\n\n## 致谢\n\n- [@d0x2f](https:\u002F\u002Fgithub.com\u002Fd0x2f)\n- 以及众多其他贡献者！感谢大家！\n\n## 贡献者\n\n感谢所有贡献者 :heart: [点击查看我们的英雄们](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fgraphs\u002Fcontributors)\n\n## 免责声明\n\n我对此项目中所包含的信息和资料的准确性或完整性不作任何保证，也不承担任何责任。在任何情况下，对于因您使用或无法使用本代码及其相关代码，或依赖于本代码上的信息和资料而直接或间接导致的任何索赔、损害、损失、费用、成本或其他责任（包括但不限于利润损失、业务中断或信息丢失等直接或间接损害），即使我事先已被告知可能发生此类损害，我也概不负责或承担任何责任。\n\n**因此，请您自行承担使用风险！**","# Binance Trading Bot 快速上手指南\n\nBinance Trading Bot 是一个基于网格交易和追踪止损（Trailing Stop）策略的自动化币安交易机器人。它支持多币种监控、自动买入\u002F卖出，并提供 React 前端界面进行实时管理。\n\n> **⚠️ 风险提示**：本项目仅供测试和学习使用。作者不保证盈利，使用本代码产生的任何资金损失或风险由用户自行承担。使用前请务必阅读免责声明。\n\n## 环境准备\n\n### 系统要求\n- **操作系统**：Linux 或 Raspberry Pi OS (已在 Linux 和 Raspberry Pi 4 32bit 上测试通过)\n- **架构支持**：支持 x86_64 及 ARM (arm32v7) 架构\n- **内存**：建议至少 512MB RAM\n\n### 前置依赖\n本项目推荐使用 **Docker** 部署，无需手动安装 Node.js 或 MongoDB。\n- Docker Engine\n- Docker Compose\n\n## 安装步骤\n\n### 1. 获取项目代码\n克隆仓库到本地：\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot.git\ncd binance-trading-bot\n```\n\n### 2. 配置环境变量\n复制示例配置文件并编辑：\n```bash\ncp .env.dist .env\nnano .env\n```\n\n在 `.env` 文件中填入你的币安 API 密钥（**重要**：请在币安后台创建 API Key 时，仅勾选\"Spot & Margin Trading\"权限，**切勿**开启提现权限）：\n\n```ini\n# 币安实盘 API Key\nBINANCE_LIVE_API_KEY=你的 API_KEY\n# 币安实盘 Secret Key\nBINANCE_LIVE_SECRET_KEY=你的 SECRET_KEY\n\n# 其他可选配置（如需要修改默认端口或数据库设置）\n# PORT=8080\n# MONGODB_URL=mongodb:\u002F\u002Fmongo:27017\u002Fbinance-bot\n```\n\n### 3. 启动服务\n使用 Docker Compose 一键启动机器人后端、数据库及前端界面：\n\n```bash\ndocker-compose up -d\n```\n\n启动完成后，可通过 `docker-compose logs -f` 查看运行日志。\n\n## 基本使用\n\n### 访问管理界面\n打开浏览器访问机器人前端界面（默认端口为 8080，若修改请在 URL 中调整）：\n```text\nhttp:\u002F\u002F\u003C你的服务器 IP>:8080\n```\n\n### 配置交易策略\n登录前端界面后，按以下步骤开始交易：\n\n1. **全局设置**：\n   - 在 \"Settings\" 页面确认 API 连接状态。\n   - 设置全局参数，如是否启用 ATH（历史最高价）限制买入、最小交易额阈值等。\n\n2. **添加交易对**：\n   - 在 \"Symbols\" 页面添加你想监控的币种（如 `BTCUSDT`, `ETHUSDT`）。\n   - 每个币种可独立配置网格交易参数。\n\n3. **配置网格策略 (Grid Trade)**：\n   - **买入策略 (Buy Grids)**：设置网格数量、触发百分比、止损\u002F限价百分比及每格购买金额。\n     - *示例*：当价格下跌触发设定比例时，自动下追踪买单。\n   - **卖出策略 (Sell Grids)**：设置卖出触发比例、止损\u002F限价百分比及卖出数量比例。\n     - *示例*：当价格上涨触发设定比例时，自动下追踪卖单获利。\n\n4. **监控运行**：\n   - 在 \"Dashboard\" 查看实时余额、挂单状态及已成交记录。\n   - 机器人将每秒监控市场价格，并根据配置自动调整或执行订单。\n\n### 手动干预\n- **手动交易**：支持在前端界面手动执行买入或卖出操作。\n- **清理缓存**：若移除某个币种监控，可在设置中删除相关缓存数据。\n- **小额兑换**：可启用功能将账户中的小额资产自动兑换为 BNB。\n\n> **注意**：更新机器人版本前，请务必备份当前的“最后买入价格”记录，以免配置丢失导致策略异常。","一位兼职加密货币投资者希望利用市场波动在比特币和以太坊上执行“低买高卖”策略，但受限于白天全职工作，无法时刻盯盘。\n\n### 没有 binance-trading-bot 时\n- **错失最佳交易点**：市场价格瞬间暴跌或暴涨时，因无法实时响应，常常错过理想的挂单价格，导致买入成本偏高或卖出利润缩水。\n- **情绪化决策干扰**：需要人工判断何时取消旧订单并重新下单，容易受恐惧或贪婪影响，难以严格执行预设的网格交易纪律。\n- **多币种监控乏力**：想要同时交易多个代币，但人力有限，无法每秒监控所有标的行情，顾此失彼，管理效率极低。\n- **夜间睡眠风险**：担心睡觉时市场剧烈波动导致资产大幅缩水，不得不熬夜盯盘或设置过于保守的静态止盈止损，牺牲潜在收益。\n\n### 使用 binance-trading-bot 后\n- **自动追踪极值**：binance-trading-bot 利用“追踪买入\u002F卖出”机制，当价格持续下跌时自动撤销旧买单并以更低价格重下，确保在局部最低点成交。\n- **纪律性执行策略**：完全按照预设的网格参数（如触发比例、止损限价百分比）自动运行，排除人为情绪干扰，精准执行多次分批买卖。\n- **并发监控多标的**：系统每秒自动轮询监控配置中的所有加密货币符号，轻松实现多币种并行自动化交易，无需人工值守。\n- **7x24 小时无忧运行**：部署在树莓派或服务器上全天候运行，即使投资者在睡眠或工作中，也能自动捕捉夜间行情波动并获利。\n\nbinance-trading-bot 将繁琐且高压的人工盯盘转化为全自动化的网格套利机器，让投资者在控制风险的同时最大化捕捉市场波动收益。","https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fchrisleekr_binance-trading-bot_6589e73c.png","chrisleekr","Chris Lee","https:\u002F\u002Foss.gittoolsai.com\u002Favatars\u002Fchrisleekr_8bdce0d3.png",null,"Luxury Escapes","Melbourne, Australia","https:\u002F\u002Fchrislee.kr","https:\u002F\u002Fgithub.com\u002Fchrisleekr",[85,89,93,97,101,105,108],{"name":86,"color":87,"percentage":88},"JavaScript","#f1e05a",97.2,{"name":90,"color":91,"percentage":92},"Python","#3572A5",1.5,{"name":94,"color":95,"percentage":96},"CSS","#663399",0.7,{"name":98,"color":99,"percentage":100},"HTML","#e34c26",0.5,{"name":102,"color":103,"percentage":104},"Shell","#89e051",0.1,{"name":106,"color":107,"percentage":104},"Dockerfile","#384d54",{"name":109,"color":110,"percentage":111},"PowerShell","#012456",0,5484,1187,"2026-04-06T20:29:05","MIT","Linux, Raspberry Pi (32-bit)","未说明",{"notes":119,"python":117,"dependencies":120},"该工具是一个基于 Node.js 的币安交易机器人，非 AI 模型，因此无 GPU 需求。核心依赖是 MongoDB 数据库（特指 3.2.20 版本以支持树莓派 32 位系统）。官方明确测试通过的平台为 Linux 和树莓派 4 (32 位)，其他平台未测试。强烈建议使用 Docker 部署。使用前需配置币安 API 密钥，并注意更新机器人前备份最后买入价格以防配置丢失。",[121,122,123],"MongoDB 3.2.20","Docker","React.js",[15,25,62],[126,127,128,67,129,130,131,132,133,134,135],"binance","binance-api","trading-bot","binance-api-node","cryptocurrency","cryptotrading","bot","grid-trading","traidingview","technical-analysis-indicators","2026-03-27T02:49:30.150509","2026-04-11T16:59:57.226108",[139,144,148,153,158,163],{"id":140,"question_zh":141,"answer_zh":142,"source_url":143},22542,"为什么会出现卖出订单重复记录或丢失，导致利润计算错误？","这是一个已知的随机性 Bug，通常表现为单个卖出订单被计为两次交易（导致利润翻倍），或者在币安执行卖出后未正确更新最后买入价格（导致显示 100% 亏损）。这通常与 WebSocket 实现后的订单状态同步有关。如果遇到此问题，建议检查日志中是否有订单数量突然翻倍的记录，并关注官方后续的版本修复。","https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fissues\u002F451",{"id":145,"question_zh":146,"answer_zh":147,"source_url":143},22543,"为什么我的止损限价单（Stop Loss Limit）被币安拒绝？","这是来自币安的有效错误提示。当你的订单设置的“触发价格”（stop price）高于当前的最新市场价格时，订单会被拒绝，因为这意味着该订单会立即成交，不符合止损单的逻辑。请检查配置，确保止损触发价格低于当前市场价（对于卖出订单）。",{"id":149,"question_zh":150,"answer_zh":151,"source_url":152},22544,"买单在币安执行后，为什么机器人界面上没有清除该订单状态？","这通常是由于本地隧道（local tunnel）连接问题或状态同步延迟导致的。维护者已在相关 PR（#77）中修复了此问题。如果遇到此情况，请尝试更新到最新版本的代码或 Docker 镜像。如果问题持续，重启容器通常能重新建立正确的状态同步。","https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fissues\u002F144",{"id":154,"question_zh":155,"answer_zh":156,"source_url":157},22545,"如何测试同时监控多个币种的功能？","你可以通过构建本地 Docker 镜像来测试该功能。使用命令构建新镜像后，启动 `docker-compose.server.yml` 时会使用你本地的最新镜像。注意，新版本可能在下单后禁用操作 20 秒以防止误删最后买入价格，请在测试时留意这些行为变化。","https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fissues\u002F86",{"id":159,"question_zh":160,"answer_zh":161,"source_url":162},22546,"配置了多个网格买入和一个网格卖出，为什么达到盈利目标后不自动卖出？","在某些配置下，如果未触发所有买入网格步骤，卖出逻辑可能不会按预期激活。临时解决方法是：进入该交易对的设置页面，点击“重置网格交易”（Reset grid trade）中的“删除并重置”按钮，这会立即触发卖出止损限价单。卖出完成后，网格交易将完全重置并开始使用新的配置。","https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fissues\u002F335",{"id":164,"question_zh":165,"answer_zh":166,"source_url":167},22547,"Docker 容器 CPU 占用率过高（30-40%）是否正常？","这通常不是正常现象，往往是由 Redis 数据库引起的。Redis 正在尝试将数据更改保存到磁盘（称为 AOF，Append Only File），如果磁盘繁忙或异步 fsync 耗时过长，会导致 CPU 升高。日志中通常会出现类似 \"Asynchronous AOF fsync is taking too long\" 的警告。建议检查宿主机的磁盘 I\u002FO 性能或调整 Redis 的持久化配置。","https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fissues\u002F262",[169,174,179,184,189,194,199,204,209,214,219,224,229,234,239,244,249,254,259,264],{"id":170,"version":171,"summary_zh":172,"released_at":173},136257,"v0.0.101","## 变更内容\n* 修复：由 @chrisleekr 在 https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F696 中移植的 python-tradingview-ta\n\n\n**完整变更日志**：https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fcompare\u002Fv0.0.100...v0.0.101","2025-06-10T14:29:07",{"id":175,"version":176,"summary_zh":177,"released_at":178},136258,"v0.0.100","## 变更内容\n* ci: 由 @chrisleekr 在 https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F669 中修复了 .gitlab-ci.yml 文件\n* feat: 由 @chrisleekr 在 https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F670 中支持前端端口配置\n* fix: 由 @chrisleekr 在 https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F683 中恢复了端点漏洞补丁\n\n\n**完整变更日志**: https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fcompare\u002Fv0.0.99...v0.0.100","2025-02-21T13:44:09",{"id":180,"version":181,"summary_zh":182,"released_at":183},136259,"v0.0.99","## 变更内容\n* 功能(SettingIcon)：由 @TheSmuks 在 https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F626 中添加清除符号按钮\n* 功能：自定义设置详情，由 @rando128 在 https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F625 中实现\n* 功能：可折叠的盈亏表头，由 @rando128 在 https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F624 中实现\n* 更新 README.zh-cn.md，由 @aiwenlg007 在 https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F642 中完成\n* 修复：修复 TradingView 构建问题，由 @chrisleekr 在 https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F650 中解决\n* 功能：添加多个 TradingView 指标，由 @chrisleekr 在 https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F539 中实现\n* 功能：添加用于日志查看器的 docker-compose.log.yml 文件，由 @chrisleekr 在 https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F654 中完成\n* 功能：为 TradingView 添加状态端点，由 @chrisleekr 在 https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F668 中实现\n\n## 新贡献者\n* @TheSmuks 在 https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F626 中完成了首次贡献\n* @aiwenlg007 在 https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F642 中完成了首次贡献\n\n**完整变更日志**：https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fcompare\u002Fv0.0.98...","2025-02-21T13:43:56",{"id":185,"version":186,"summary_zh":187,"released_at":188},136260,"v0.0.98","## 变更内容\n\n- 为 `TRADINGVIEW` 相关的环境参数添加了前缀 - [#616](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F616)\n- 修复了 `minNotional` 的问题 - [#623](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F623)\n\n\n**完整变更日志**: https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fcompare\u002Fv0.0.97...v0.0.98","2023-04-12T15:59:34",{"id":190,"version":191,"summary_zh":192,"released_at":193},136261,"v0.0.97","## 变更内容\r\n\r\n\r\n\r\n- 修复了按未平仓交易优先排序的问题，由 [@uhliksk](https:\u002F\u002Fgithub.com\u002Fuhliksk) 完成 - [#564](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F564)\r\n- 修复了无法导出超大日志文件的问题 - [#561](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F561)、[#567](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F567)\r\n- 修复了余额计算逻辑，使其包含小额余额，由 [@uhliksk](https:\u002F\u002Fgithub.com\u002Fuhliksk) 完成 - [#571](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F571)\r\n- 修复了当当前价格高于或低于订单价格时自动取消未成交订单的问题，由 [@uhliksk](https:\u002F\u002Fgithub.com\u002Fuhliksk) 完成 - [#569](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F569)\r\n- 改进了队列处理机制，将 Bull 队列替换为自定义队列系统，由 [@uhliksk](https:\u002F\u002Fgithub.com\u002Fuhliksk) 完成 - [#562](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F562)、[#581](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F581)、[#588](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F588)\r\n- 新增保守型卖出策略，该策略会随着网格层数加深而逐步降低卖出触发价格，由 [@rando128](https:\u002F\u002Fgithub.com\u002Frando128) 完成 - [#585](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F585)\r\n- 修复了止损单的优先级高于新买入订单的问题，由 [@uhliksk](https:\u002F\u002Fgithub.com\u002Fuhliksk) 完成 - [#589](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F589)\r\n- 改进了搜索和筛选的用户体验，由 [@rando128](https:\u002F\u002Fgithub.com\u002Frando128) 完成 - [#591](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F591)\r\n- 增强了盈亏平衡计算器的功能，由 [@rando128](https:\u002F\u002Fgithub.com\u002Frando128) 完成 - [#597](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F597)、[#601](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F601)\r\n- 更新了 TradingView 主机\u002F端口的可配置项，由 [@rando128](https:\u002F\u002Fgithub.com\u002Frando128) 完成 - [#608](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F608)\r\n\r\n感谢 [@uhliksk](https:\u002F\u002Fgithub.com\u002Fuhliksk) 和 [@rando128](https:\u002F\u002Fgithub.com\u002Frando128) 的精彩贡献。💯 :heart:\r\n\r\n\r\n**完整变更日志**: https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fcompare\u002Fv0.0.96...v0.0.97","2023-03-20T21:43:30",{"id":195,"version":196,"summary_zh":197,"released_at":198},136262,"v0.0.96","## 变更内容\n\n- 由 [@rando128](https:\u002F\u002Fgithub.com\u002Frando128) 增强了网格交易计算器中的建议盈亏平衡金额 - [#555](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F555), [#557](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F557)\n- 由 [@habibalkhabbaz](https:\u002F\u002Fgithub.com\u002Fhabibalkhabbaz) 修复了 API 错误页面的优先级问题 - [#556](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F556)\n\n感谢 [@rando128](https:\u002F\u002Fgithub.com\u002Frando128) 和 [@habibalkhabbaz](https:\u002F\u002Fgithub.com\u002Fhabibalkhabbaz) 的精彩贡献。💯 :heart:\n\n**完整变更日志**: https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fcompare\u002Fv0.0.95...v0.0.96","2022-12-28T00:41:21",{"id":200,"version":201,"summary_zh":202,"released_at":203},136263,"v0.0.95","## 变更内容\n- 在使用错误的 API 密钥或密钥时，添加了 API 错误提示信息 - [#544](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F544)\n- 由 [@rando128](https:\u002F\u002Fgithub.com\u002Frando128) 实现，当浏览器自动填充密码时自动登录 - [#550](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F550)\n- 修复了队列并发问题 - [#551](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F551)\n- 由 [@rando128](https:\u002F\u002Fgithub.com\u002Frando128) 添加了在仪表板中隐藏临时禁用交易币种的功能 - [#552](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F552)\n- 由 [@rando128](https:\u002F\u002Fgithub.com\u002Frando128) 增强了基于网格计算器的建议盈亏平衡金额功能 - [#554](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F554)\n\n感谢 [@rando128](https:\u002F\u002Fgithub.com\u002Frando128) 的精彩贡献。💯 :heart:\n\n**完整变更日志**: https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fcompare\u002Fv0.0.94...v0.0.95","2022-12-19T12:54:34",{"id":205,"version":206,"summary_zh":207,"released_at":208},136264,"v0.0.94","## 变更内容\n- 由 [@rando128](https:\u002F\u002Fgithub.com\u002Frando128) 在 Tradingview 部分添加了高级图表链接 - [#525](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F525)\n- 由 [@habibalkhabbaz](https:\u002F\u002Fgithub.com\u002Fhabibalkhabbaz) 修复了前端分页问题 - [#526](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F526)\n- 由 [@rando128](https:\u002F\u002Fgithub.com\u002Frando128) 在网格交易部分添加了买入\u002F卖出订单详情 - [#527](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F527)\n- 由 [@rando128](https:\u002F\u002Fgithub.com\u002Frando128) 添加了显示建议盈亏平衡金额的功能 - [#540](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F540)\n\n感谢 [@habibalkhabbaz](https:\u002F\u002Fgithub.com\u002Fhabibalkhabbaz) 和 [@rando128](https:\u002F\u002Fgithub.com\u002Frando128) 的精彩贡献。💯 :heart:\n\n**完整变更日志**: https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fcompare\u002Fv0.0.93...v0.0.94","2022-11-24T09:50:47",{"id":210,"version":211,"summary_zh":212,"released_at":213},136265,"v0.0.93","## 变更内容\n- 由 [@habibalkhabbaz](https:\u002F\u002Fgithub.com\u002Fhabibalkhabbaz) 更新了 Redlock 锁定时间 - [#522](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F522)\n- 由 [@rando128](https:\u002F\u002Fgithub.com\u002Frando128) 更新了上次买入更新及买入确认的 Slack 通知 - [#518](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F518)\n\n## 新贡献者\n* @rando128 在 https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F518 中完成了首次贡献\n\n**完整变更日志**: https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fcompare\u002Fv0.0.92...v0.0.93","2022-10-07T07:37:03",{"id":215,"version":216,"summary_zh":217,"released_at":218},136266,"v0.0.92","## 变更内容\n- 由 [@habibalkhabbaz](https:\u002F\u002Fgithub.com\u002Fhabibalkhabbaz) 修复了 Axios 版本问题 - [#512](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F512)\n\n\n**完整变更日志**: https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fcompare\u002Fv0.0.91...v0.0.92","2022-10-07T06:20:10",{"id":220,"version":221,"summary_zh":222,"released_at":223},136267,"v0.0.91","## What's Changed\r\n- Fixed sorting symbols when the field is null by [@habibalkhabbaz](https:\u002F\u002Fgithub.com\u002Fhabibalkhabbaz) - https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F496\r\n- Added backup\u002Frestore functions - https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F501\r\n- Added demo mode - https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F509\r\n- Fixed account balance calculation by [@habibalkhabbaz](https:\u002F\u002Fgithub.com\u002Fhabibalkhabbaz) - #514\r\n\r\nThanks [@habibalkhabbaz](https:\u002F\u002Fgithub.com\u002Fhabibalkhabbaz) for your great contributions. 100 heart\r\n\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fcompare\u002Fv0.0.90...v0.0.91","2022-09-28T20:45:25",{"id":225,"version":226,"summary_zh":227,"released_at":228},136268,"v0.0.90","## What's Changed\r\n- Fixed handling execution report - [#495](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F495)\r\n- Fixed archiving grid order if all sell orders are executed - [#490](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F490)\r\n- Update symbol delete action to remove override data - [#489](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F489)\r\n- Improved performance with bulk write candles to DB by [@habibalkhabbaz](https:\u002F\u002Fgithub.com\u002Fhabibalkhabbaz) - [#481](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F481)\r\n- Fixed non-active exchange symbols by [@habibalkhabbaz](https:\u002F\u002Fgithub.com\u002Fhabibalkhabbaz) - [#478](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F478)\r\n- Fixed incorrect symbol in reset-symbol-websockets by [@habibalkhabbaz](https:\u002F\u002Fgithub.com\u002Fhabibalkhabbaz) - [#477](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F477)\r\n- Improved UI by [@uhliksk](https:\u002F\u002Fgithub.com\u002Fuhliksk) - [#479](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F479)\r\n\r\nThanks [@habibalkhabbaz](https:\u002F\u002Fgithub.com\u002Fhabibalkhabbaz) and [@uhliksk](https:\u002F\u002Fgithub.com\u002Fuhliksk) for your great contributions. 💯 :heart:\r\n\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fcompare\u002Fv0.0.89...v0.0.90","2022-08-27T13:52:52",{"id":230,"version":231,"summary_zh":232,"released_at":233},136269,"v0.0.89","## What's Changed\r\n\r\n- Fixed incorrect behaviour of exceeding max open orders by [@uhliksk](https:\u002F\u002Fgithub.com\u002Fuhliksk) - [#462](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F462)\r\n- Bumped vulnerable package versions - [#472](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F472)\r\n- Refactored the slack hander to avoid message flooding to Slack - [#471](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F471)\r\n- Implemented queue to stabilise the trade by [@habibalkhabbaz](https:\u002F\u002Fgithub.com\u002Fhabibalkhabbaz) - [#464](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F464)\r\n- Fixed to handle order status update correctly - [#461](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F461)\r\n- Fixed timezone inconsistency by [@uhliksk](https:\u002F\u002Fgithub.com\u002Fuhliksk) - [#454](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F454)\r\n- Improved UI by [@uhliksk](https:\u002F\u002Fgithub.com\u002Fuhliksk) - [#452](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F452)\r\n- Improved error handler and stability by [@habibalkhabbaz](https:\u002F\u002Fgithub.com\u002Fhabibalkhabbaz) - [#448](https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F448)\r\n\r\nThanks [@habibalkhabbaz](https:\u002F\u002Fgithub.com\u002Fhabibalkhabbaz) and [@uhliksk](https:\u002F\u002Fgithub.com\u002Fuhliksk) for your great contributions.\r\n\r\n## New Contributors\r\n* @uhliksk made their first contribution in https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F452\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fcompare\u002Fv0.0.88...v0.0.89","2022-08-16T10:39:19",{"id":235,"version":236,"summary_zh":237,"released_at":238},136270,"v0.0.88","## What's Changed\r\n* feat: tradingview logging level configuration by @azorpax in https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F436\r\n\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fcompare\u002Fv0.0.87...v0.0.88","2022-07-24T07:57:24",{"id":240,"version":241,"summary_zh":242,"released_at":243},136271,"v0.0.87","## What's Changed\r\n- Refactored error handling. Thanks [@habibalkhabbaz](https:\u002F\u002Fgithub.com\u002Fhabibalkhabbaz) - https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fpull\u002F434\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fcompare\u002Fv0.0.86...v0.0.87","2022-07-23T04:01:07",{"id":245,"version":246,"summary_zh":247,"released_at":248},136272,"v0.0.86","## What's Changed\r\n- Upgraded TradingView TA to 3.2.10 - #426 \r\n- Added override trading view with auto trigger buy - #429 \r\n- Enhanced to use WebSocket for monitoring candles\u002Forders\u002Faccount information. It's faster! - #431 \r\n- Updated the frontend with pagination - #431 \r\n- Updated account balance layout in the frontend - #431 \r\n\r\nThanks [@habibalkhabbaz](https:\u002F\u002Fgithub.com\u002Fhabibalkhabbaz) for all these updates!\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fcompare\u002Fv0.0.85...v0.0.86","2022-07-22T13:27:02",{"id":250,"version":251,"summary_zh":252,"released_at":253},136273,"v0.0.85","## What's Changed\r\n* Refactored TradingView python server - #383\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fcompare\u002Fv0.0.84...v0.0.85","2021-11-02T09:39:00",{"id":255,"version":256,"summary_zh":257,"released_at":258},136274,"v0.0.84","## What's Changed\r\n- Enhanced TradingView using get_multiple_analysis - #375\r\n- Fixed the last buy removal threshold. Thanks @Rayn0r - #379\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fcompare\u002Fv0.0.83...v0.0.84","2021-10-30T13:27:07",{"id":260,"version":261,"summary_zh":262,"released_at":263},136275,"v0.0.83","## What's Changed\r\n* Fixed Redis\u002FTradingView docker images for Raspberry Pi - #366\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002Fchrisleekr\u002Fbinance-trading-bot\u002Fcompare\u002Fv0.0.82...v0.0.83\r\n\r\n\r\n## Attention to Raspberry Pi traders\r\n\r\nIf you are having an issue with the previous broken image, please follow the below steps to fix it.\r\n\r\n1. Check docker version\r\n\r\n    ```\r\n    $ docker -v\r\n    Docker version 20.10.9, build c2ea9bc\r\n    ```\r\n\r\n    1-1. If the docker version is not `20.10.9`, upgrade the system and reboot\r\n\r\n        ```\r\n        $ sudo apt-get update\r\n        $ sudo apt-get upgrade\r\n        $ sudo reboot\r\n        ```\r\n\r\n    1-2. Check docker version\r\n\r\n        ```\r\n        $ docker -v\r\n        Docker version 20.10.9, build c2ea9bc\r\n        ```\r\n\r\n2. Pull the latest code \r\n\r\n    ```\r\n    $ git pull\r\n    ```\r\n\r\n3. Pull latest docker images\r\n\r\n    ```\r\n    $ docker-compose -f docker-compose.rpi.yml pull\r\n    ```\r\n\r\n4. Up docker images\r\n\r\n    ```\r\n    $ docker-compose -f docker-compose.rpi.yml up -d\r\n    ```\r\n\r\n5. Access to Redis and flush\r\n\r\n    ```\r\n    $ docker exec -it binance-redis \r\n    > AUTH \u003Credis password>\r\n    OK\r\n    > FLUSHALL\r\n    OK \r\n    ```\r\n    - Redis password can be found in `docker-compose.rpi.yml`\r\n\r\n6. Restart binance bot\r\n\r\n    ```\r\n    $ docker restart binance-bot\r\n    ```\r\n\r\n7. Access frontend to check all working.\r\n\r\n","2021-10-22T14:05:12",{"id":265,"version":266,"summary_zh":267,"released_at":268},136276,"v0.0.82","- Quick fix with Github actions\r\n","2021-10-22T12:26:54"]