28 Commits
Author SHA1 Message Date
TIANHE 88e19267eb release: finalize v5.0.1 backend 2026-07-18 14:59:18 +08:00
TIANHE a87ee6192f feat: harden backend contracts observability and delivery 2026-07-13 15:42:50 +08:00
TIANHE 90e60ffdea feat: split backend runtimes and add durable task workers 2026-07-13 03:47:59 +08:00
TIANHE 860b5848bd v4.0.1
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-06-17 02:38:29 +08:00
Dinger c435e1eeb6 v3.0.31
Signed-off-by: Dinger <quantdinger@gmail.com>
2026-06-06 20:17:54 +08:00
Dinger a1a51e9afc v3.0.22
Signed-off-by: Dinger <quantdinger@gmail.com>
2026-05-31 23:39:35 +08:00
Dinger 9a35adec2b v3.0.21
Signed-off-by: Dinger <quantdinger@gmail.com>
2026-05-31 00:08:25 +08:00
Dinger 049db126f6 v3.0.9
Signed-off-by: Dinger <quantdinger@gmail.com>
2026-05-16 21:49:37 +08:00
Dinger 0bc58d04ea v3.0.6
Signed-off-by: Dinger <quantdinger@gmail.com>
2026-05-14 17:06:50 +08:00
Dinger d4f94fd0e5 v3.0.5
Signed-off-by: Dinger <quantdinger@gmail.com>
2026-05-14 00:40:14 +08:00
Dinger 7d029a5789 v3.0.5
Signed-off-by: Dinger <quantdinger@gmail.com>
2026-05-13 22:44:49 +08:00
Dinger 9cbec4f096 v3.0.4
Signed-off-by: Dinger <quantdinger@gmail.com>
2026-05-12 17:03:36 +08:00
Quantdinger 84d56f27a8 Merge pull request #96 from smc1263/security-and-agent-fix
Security: gate broker routes + CORS allow-list; fix agent token crash
2026-05-09 19:46:41 +08:00
Sean Cunningham 6942b8f2b3 security: gate broker routes with auth + pin CORS allow-list
- Add @login_required to all 9 IBKR + 11 MT5 routes (status, connect,
  disconnect, account, positions, orders, order POST/DELETE, quote,
  symbols, close). Unauthenticated requests now return 401.
- Replace CORS(app) wildcard with origins read from FRONTEND_URL env
  (defaults to localhost dev origins). Live response confirmed:
  Access-Control-Allow-Origin: <specific origin>, never '*'.

Verified end-to-end: broker routes return 401 without a Bearer token
and 200 / business response with one.

Note: privacy fixes for the USDT QR fetch and affiliate redirect URLs
are NOT included here. Those require a Vue rebuild from working
source, but the upstream Vue 2 -> Vue 3 migration is incomplete and
the rebuilt bundle has runtime errors (ant-design-vue 1.x is Vue 2
only and doesn't render cleanly under @vue/compat). The privacy fixes
are preserved on the migration-wip branch in QuantDinger-Vue and can
land once the migration is buildable.
2026-05-08 12:36:32 -04:00
Dinger f81d576c6c safe
Signed-off-by: Dinger <quantdinger@gmail.com>
2026-05-08 20:32:10 +08:00
Dinger 12d7fbfc9e v3.0.3
Signed-off-by: Dinger <quantdinger@gmail.com>
2026-05-07 17:01:53 +08:00
Dinger f5c9a9b3b6 v3.0.1
Signed-off-by: Dinger <quantdinger@gmail.com>
2026-04-09 22:38:47 +08:00
Dinger 7626328c9c feat(backend): encrypt exchange credentials, remove IS_DEMO_MODE
- Fernet encrypt qd_exchange_credentials via SECRET_KEY (cryptography)

- Remove global read-only demo middleware; drop is_demo from auth payloads

- Egress whitelist: /api/credentials/egress-ip returns ipv4 + ipv6 (ipify)

- Exchange factory: demo/testnet URLs and OKX simulated-trading header

- Bitget spot connection test; misc route/service fixes

Made-with: Cursor
2026-03-24 19:10:18 +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 9473e50d59 feat: AI 即时分析计费/共识/校准与 Docker 前端构建
- 即时分析:先扣费、防重入(429)、失败退款;记忆库与离线校准 worker
- 多周期共识、客观分与设置项 AI_ANALYSIS_CONSENSUS_TIMEFRAMES
- Docker:前端多阶段构建(QuantDinger-Vue-src)、根目录 .dockerignore、compose 调整
- 同步 frontend/dist 静态资源

Made-with: Cursor
2026-03-20 21:08:26 +08:00
TIANHE db91fa4580 v2.2.2
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-03-01 17:20:37 +08:00
TIANHE a6ea4d967c v2.2.2
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-03-01 03:42:10 +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 0b37aa4a67 V2.1.1
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-01-31 02:59:49 +08:00
TIANHE 61a5e5e6aa feat: Multi-user system with PostgreSQL - WIP temporary save 2026-01-14 05:29:55 +08:00
TIANHE ec56b59530 feat: add Portfolio Management module with AI monitoring 2026-01-12 22:36:10 +08:00
TIANHE 50939212be new
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2025-12-30 21:02:50 +08:00
TIANHE f43312a858 creat
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2025-12-29 03:06:49 +08:00