51 Commits

Author SHA1 Message Date
dienakdz 87f2845483 Refactor code for improved readability and consistency
- Cleaned up whitespace and formatting in various files including http.py, language.py, logger.py, safe_exec.py, and SQL migration scripts.
- Consolidated import statements and removed unnecessary blank lines.
- Updated logging configuration for better clarity.
- Enhanced the safe execution code with improved error handling and logging.
- Removed commented-out code and unnecessary variables in backfill_zero_trades.py and other scripts.
- Added a pyproject.toml for Ruff and Vulture configuration.
- Introduced requirements-dev.txt for development dependencies.
- Removed commented-out stock entries in init.sql for cleaner migration scripts.
2026-04-09 14:30:51 +07:00
Dinger 3ca291a346 v3.0.1
Signed-off-by: Dinger <quantdinger@gmail.com>
2026-04-06 01:39:25 +08:00
Dinger 2e9c7cd69e feat: AI analysis engine refactor, dark theme polish & virtual position management
Core changes:
- Refactor FastAnalysisService: single LLM multi-factor analysis replaces
  7-agent pipeline; add multi-timeframe consensus, threshold calibration,
  confidence calibration, multi-model ensemble voting
- Add RAG memory injection and reflection validation (analysis_memory +
  reflection worker)
- Simplify billing config: remove unused strategy_run/backtest/portfolio_monitor,
  add ai_code_gen separate billing (different token consumption scale)
- Settings hot-reload after save, no backend restart needed

Frontend:
- Global dark theme overhaul: pure black palette replacing blue-tinted colors
  across sidebar/header/dashboard/analysis/K-line/user-manage/profile/settings/billing
- Fix USDT payment modal dark theme (portal rendering broke CSS selectors)
- Refactor position modal: direction + quantity + entry price, remove add/reduce
  logic, show raw DB values on re-open, save exactly what user inputs
- Fix Polymarket prediction market dark text
- i18n for position modal title

Backend:
- Position management: one record per symbol (DELETE+INSERT replacing
  ON CONFLICT with side), fixes PnL showing 0 when switching long/short
- MarketDataCollector data fetching optimization
- portfolio_monitor scheduled monitoring improvements
- env.example reorganized: common config first, advanced config last

Documentation:
- README architecture diagram updated to FastAnalysisService flow
- Add virtual position, AI tuning config, billing items documentation
- Add INDICATOR_DEFINITIONS_CN.md, FRONTEND_FAST_ANALYSIS.md

Made-with: Cursor
2026-03-23 23:01:04 +08:00
Dinger 05f07ee544 refactor deployment config and exchange integrations
Simplify runtime configuration and remove legacy database and settings surface so new installs are easier to operate.
Refresh deployment assets, docs, and order execution behavior to keep the packaged app aligned with the current backend.

Made-with: Cursor
2026-03-21 18:32:04 +08:00
Jinyu Xu b91cfcc7fa chore(release): update social links and v2.2.3
- Update X/Discord links in docs and frontend dist
- Dashboard: report all-time total trades
- Notifications: add unread-count endpoint for badge

Made-with: Cursor
2026-03-17 20:30:04 +08:00
TIANHE b7451c63fb fix: Fix trading precision issues and improve error handling
- Fix quantity precision calculation for Binance, OKX, Bybit, Bitget, Deepcoin exchanges
- Improve OpenRouter API error handling with detailed error messages
- Add SECRET_KEY validation in Docker deployment entrypoint
- Fix K-line chart measurement tool click issue
- Adapt billing page text colors for dark theme
- Update frontend build files
2026-03-12 00:02:53 +08:00
TIANHE b21777e3a0 v2.2.2
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-03-01 17:36:09 +08:00
TIANHE 355059491d v2.2.2
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-03-01 17:32:59 +08:00
TIANHE fbc6358e13 v2.2.2 2026-03-01 17:31:48 +08:00
TIANHE 3eb1d9ff69 v2.2.2
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-03-01 17:28:50 +08:00
TIANHE db91fa4580 v2.2.2
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-03-01 17:20:37 +08:00
TIANHE a90f336b93 fix: remove frontend source CI (moved to private repo), update README with Vibe Coding positioning 2026-02-27 20:29:59 +08:00
TIANHE b1e940ba12 V2.2.1
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-02-27 20:07:06 +08:00
TIANHE abbad97bdd v2.2.1: frontend closed-source + Docker one-click deploy
- Remove frontend source code (now in private repo)
- Add pre-built frontend/dist/ with Nginx serving
- Simplify docker-compose.yml (no Node.js build needed)
- Update README with docs index and Docker deploy guide
- Add admin order list and AI analysis stats tabs
- Add quick trade API routes
- Clean up redundant files (package-lock.json, yarn.lock, .iml)
- Add GitHub Actions workflow for frontend update automation
2026-02-27 19:57:23 +08:00
TIANHE ffdd2ffbae V2.2.1: Membership & Billing, USDT TRC20 payment, VIP free indicators, AI Trading Radar, simplified strategy creation, system settings simplification, bug fixes and UI improvements 2026-02-27 01:57:04 +08:00
TIANHE 0b37aa4a67 V2.1.1
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-01-31 02:59:49 +08:00
TIANHE 0bf4bb5bd9 new
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-01-26 20:34:29 +08:00
TIANHE 53cadb5ab5 add deepcoin
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-01-26 20:32:34 +08:00
TIANHE 32a426d647 new
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-01-24 23:57:39 +08:00
Quantdinger 460b9a5de7 Update README.md 2026-01-15 20:37:39 +07:00
Quantdinger ae3253a764 Update README.md 2026-01-15 20:36:10 +07:00
TIANHE 0fbee21c57 new
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-01-14 21:49:45 +08:00
TIANHE 0b810adb10 new
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-01-14 21:41:40 +08:00
TIANHE 61a5e5e6aa feat: Multi-user system with PostgreSQL - WIP temporary save 2026-01-14 05:29:55 +08:00
TIANHE 3f795f78a2 new
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-01-13 04:27:34 +08:00
TIANHE e095f9be7e Supports MT5 and forex trading.
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-01-13 04:01:42 +08:00
TIANHE 7527d73f25 Supports Interactive Brokers, US and Hong Kong stocks.
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-01-13 02:35:48 +08:00
TIANHE 63f0b118a1 new
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-01-12 23:10:47 +08:00
TIANHE eea7d75615 new
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-01-06 19:30:16 +08:00
TIANHE 355f5c5ef1 new
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-01-06 01:34:37 +08:00
TIANHE 6754d0cf37 new
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-01-06 00:55:29 +08:00
TIANHE dafa0013cf new 2026-01-06 00:47:54 +08:00
TIANHE 635a6bb709 鏇存柊README锛氬皢瀹樼綉鏀逛负瀹樻柟绀惧尯锛屽垹闄ug鎶ュ憡鍜岃璁哄尯閾炬帴 2026-01-05 18:24:31 +08:00
TIANHE ce063e53b5 new
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-01-04 02:41:38 +08:00
TIANHE a1d4dff427 new
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-01-04 02:22:12 +08:00
TIANHE fc2a30deed update .env.example 2026-01-03 20:25:58 +08:00
TIANHE 8610a55e7e new
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-01-03 01:53:16 +08:00
TIANHE 7ccf53a461 new
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-01-03 00:33:13 +08:00
TIANHE 965efbb49b new
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-01-03 00:16:30 +08:00
TIANHE 8ac7248799 new
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2025-12-31 17:14:11 +08:00
TIANHE c451e16caa new
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2025-12-30 21:14:30 +08:00
TIANHE 50939212be new
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2025-12-30 21:02:50 +08:00
TIANHE 9d4ffb9931 new
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2025-12-30 18:36:07 +08:00
TIANHE ff13fcce37 new
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2025-12-30 18:02:32 +08:00
TIANHE 23d731ea17 new
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2025-12-30 17:38:47 +08:00
TIANHE 6ce128f576 new
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2025-12-30 17:03:22 +08:00
TIANHE c6044242c5 new
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2025-12-30 16:28:13 +08:00
TIANHE 6aae7938a3 new
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2025-12-29 19:18:42 +08:00
TIANHE 2045782b59 creat
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2025-12-29 19:09:23 +08:00
TIANHE 3337bcfc14 creat
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2025-12-29 19:05:17 +08:00