Commit Graph

6 Commits

Author SHA1 Message Date
e6274d3a00 feat: polish exec cli ergonomics and output 2026-04-15 20:28:24 +08:00
f69facde0c refactor(smart_executor): split monolithic executor into clean service modules
- Extract 7 focused services from smart_executor.py:
  - trade_common: constants, timezone, logging, dry-run state
  - file_utils: file locking + atomic JSON helpers
  - smart_executor_parser: argparse + legacy argument compatibility
  - execution_state: decision deduplication (executions.json)
  - portfolio_service: positions.json + exchange reconciliation
  - exchange_service: ccxt wrapper, balances, order prep
  - trade_execution: buy/sell/rebalance/hold actions
- Turn smart_executor.py into a thin backward-compatible facade
- Fix critical dry-run bug: module-level DRY_RUN copy caused real orders
  in dry-run mode; replace with mutable dict + is_dry_run() function
- Fix dry-run polluting positions.json: skip save_positions() when dry-run
- Fix rebalance dry-run budget: use sell_order cost instead of real balance
- Add full legacy CLI compatibility for old --decision HOLD --dry-run style
v0.1.1
2026-04-15 18:39:08 +08:00
893f0fb077 refactor: split precheck state snapshot and analysis 2026-04-15 17:17:00 +08:00
965b53b598 refactor: split precheck and smart executor entrypoints 2026-04-15 17:03:16 +08:00
6eefabb9ff feat: add runtime diagnostics and path management 2026-04-15 16:55:45 +08:00
7586685d5f feat: bootstrap coinhunter cli package 2026-04-15 16:40:56 +08:00