From 168d8cbb08adf456484e14a17951e29e2b8729b6 Mon Sep 17 00:00:00 2001 From: discountry Date: Tue, 20 Jan 2026 00:51:15 +0800 Subject: [PATCH] Add Claude instructions and enhance stop-loss logic - Introduced a new `CLAUDE.md` file with instructions for using Bun as the package manager. - Adjusted stop-loss cooldown and check intervals in `MakerPointsEngine` for improved responsiveness. - Implemented a new method to compute real-time PnL using live depth data, enhancing stop-loss decision-making. - Added retry logic for stop-loss execution to ensure positions are closed effectively, with detailed logging for failures. --- CLAUDE.md | 12 +++ src/strategy/maker-points-engine.ts | 136 ++++++++++++++++++++++------ 2 files changed, 118 insertions(+), 30 deletions(-) create mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..60653ae --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,12 @@ +# RitMEX Bot - Claude Instructions + +## Package Manager + +**必须使用 Bun** - 这个项目使用 Bun 作为包管理器和运行时。所有能用 bun 执行的命令都必须使用 bun: + +- 安装依赖: `bun install` +- 运行脚本: `bun run