Go to file
kroutony c473a581b0 Add realized P&L reporting, stop-loss fill detection, and balance margin
- Show realized P&L (USDT + %) in Slack for all SELL trades (TP, LLM, stop-loss)
- Detect filled stop-loss orders via stop_orders.json persistence and report as [止損觸發]
- Deduct 1 USDT margin from available balance to prevent exchange insufficient balance errors

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-14 02:44:46 +00:00
memory Backup Claude memory files to project repo 2026-03-13 11:23:22 +00:00
.env.example Initial commit: LLM-driven crypto trading bot 2026-03-13 03:25:18 +00:00
.gitignore Initial commit: LLM-driven crypto trading bot 2026-03-13 03:25:18 +00:00
config.py Add cost basis sync, fix stop-loss reliability, improve reporting 2026-03-13 11:18:49 +00:00
cost_tracking.json Add realized P&L reporting, stop-loss fill detection, and balance margin 2026-03-14 02:44:46 +00:00
data_fetcher.py Add cost basis sync, fix stop-loss reliability, improve reporting 2026-03-13 11:18:49 +00:00
indicators.py Initial commit: LLM-driven crypto trading bot 2026-03-13 03:25:18 +00:00
llm_analyzer.py Initial commit: LLM-driven crypto trading bot 2026-03-13 03:25:18 +00:00
main.py Add realized P&L reporting, stop-loss fill detection, and balance margin 2026-03-14 02:44:46 +00:00
portfolio.py Initial commit: LLM-driven crypto trading bot 2026-03-13 03:25:18 +00:00
requirements.txt Initial commit: LLM-driven crypto trading bot 2026-03-13 03:25:18 +00:00
risk_manager.py Add realized P&L reporting, stop-loss fill detection, and balance margin 2026-03-14 02:44:46 +00:00
slack_notifier.py Add realized P&L reporting, stop-loss fill detection, and balance margin 2026-03-14 02:44:46 +00:00
sync_cost_basis.py Add cost basis sync, fix stop-loss reliability, improve reporting 2026-03-13 11:18:49 +00:00
trade_logger.py Initial commit: LLM-driven crypto trading bot 2026-03-13 03:25:18 +00:00
trader.py Add cost basis sync, fix stop-loss reliability, improve reporting 2026-03-13 11:18:49 +00:00