bifitnex-trading/memory/feedback_trading.md
kroutony 84093929d1 Backup Claude memory files to project repo
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 11:23:22 +00:00

18 lines
899 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
name: feedback_trading
description: User feedback on trading bot behavior — stop-loss real-time, no exposure cap, cost-basis sizing
type: feedback
---
1. 止損單不要靠本地記憶,靠 real-time 交易所資料。
**Why:** 本地狀態容易不同步,用戶可能手動刪單或加倉後狀態過時。
**How to apply:** 每次 cron 週期都從交易所拉 active orders 比對。
2. 帳戶餘額可以扣到 0不設總曝險上限。
**Why:** 總曝險限制在持倉有未實現利潤時會誤擋正常買單。
**How to apply:** 不加 `check_total_exposure` 檢查。
3. 下單量基準用「USDT 餘額 + 持倉總成本」,不是交易所 USDT 錢包餘額。
**Why:** USDT 錢包餘額不含其他幣種持倉,基數太小導致訂單低於最低門檻。
**How to apply:** `risk_manager.py``total_balance` 改用 available + positions cost。