Commit Graph

187 Commits

Author SHA1 Message Date
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 cbe5d8dece docs: Update Chinese README with SECRET_KEY configuration instructions
- Add SECRET_KEY generation steps in quick start section
- Add dedicated SECRET_KEY generation section with helper scripts
- Add security warning about container not starting with default SECRET_KEY
- Sync with English README format
2026-03-12 01:18:51 +08:00
TIANHE ecc44ade59 fix: Fix max drawdown calculation and pandas fillna compatibility
- Fix max drawdown calculation in dashboard to use equity curve instead of cumulative profit
- Add pandas fillna(method=...) compatibility fix for older indicator code
- Cap drawdown percentage at 10000% to avoid display issues
2026-03-12 00:56:29 +08:00
TIANHE efae3480bf feat: Remove test connection button from strategy creation page and fix dark theme styles in profile page
- Remove test connection button and related code from strategy creation page
- Fix text colors in profile page dark theme (credits log, notification settings, exchange config, referral list)
- Update frontend build files
2026-03-12 00:37:11 +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 2f0885e5dc v2.2.2
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-03-01 17:26:16 +08:00
TIANHE db91fa4580 v2.2.2
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-03-01 17:20:37 +08:00
TIANHE d60409f7f8 v2.2.2
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-03-01 03:59:55 +08:00
TIANHE a6ea4d967c v2.2.2
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-03-01 03:42:10 +08:00
TIANHE 7c067fe61c v2.2.1
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-02-28 20:34:33 +08:00
TIANHE 3db3bb2a9a v2.2.1
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-02-28 00:15:58 +08:00
TIANHE cf58ff40fa v2.2.1
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-02-27 23:34:13 +08:00
TIANHE d92d4c53dc v2.2.1
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-02-27 22:28:01 +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 ae82cc0d4e fix: Improve System Overview tab UI - user name truncation and status column style 2026-02-13 02:54:46 +08:00
TIANHE 4c73439bd6 feat: Add System Overview tab to User Management page (admin only)
- Add backend API endpoint /api/users/system-strategies for system-wide strategy data
- Query all strategies across all users with positions, PnL, trade stats
- Add summary statistics (total strategies, running count, total capital, total PnL/ROI)
- Support filtering by status (running/stopped) and search by strategy/symbol/user
- Add System Overview tab with summary cards and detailed strategy table
- Display user, strategy name, status, symbol, capital, PnL/ROI, positions, trades, indicator, exchange, timeframe, leverage
- Add i18n translations for zh-CN and en-US
- Lazy-load strategy data when tab is first accessed
2026-02-13 02:46:59 +08:00
TIANHE f0a5af595d fix: Fix indicator parameter configuration and Docker build issues
- Fix indicator parameter values being reset after modification in indicator-analysis page
- Fix Docker build nginx image pull failure (use specific version tag)
- Add Docker build scripts (PowerShell and Bash versions)
- Revert call_indicator feature (temporarily removed to avoid affecting existing indicator execution)
2026-02-13 02:33:00 +08:00
TIANHE e5bb37bcbb fix: Improve decimal precision handling across all exchange clients
- Add strict_precision parameter to _dec_str methods
- Modify quantity normalization methods to return (Decimal, precision) tuple
- Infer precision from stepSize/lotSz/qtyStep for accurate formatting
- Update all order placement methods to use precision information
- Fix LOT_SIZE filter errors by strictly limiting decimal places

Affected exchanges:
- Binance Spot & Futures
- OKX
- Bybit
- Bitget Spot & Futures
- Deepcoin

This ensures order quantities are formatted with correct precision matching exchange requirements.
2026-02-11 18:28:06 +08:00
TIANHE d875acd522 new
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-02-10 15:25:21 +08:00
TIANHE a51184497d feat: Add cross-sectional strategy support
- Add cross-sectional strategy type (single vs cross-sectional)
- Support multi-symbol portfolio management with automatic ranking
- Add portfolio size, long ratio, and rebalance frequency configuration
- Implement parallel order execution for cross-sectional strategies
- Add frontend UI for strategy type selection and configuration
- Add i18n support (Chinese and English) for cross-sectional features
- Fix decimal precision issues in exchange order quantities
- Add last_rebalance_at field to database schema
- Add comprehensive documentation and examples

Database migration required: Add last_rebalance_at column to qd_strategies_trading table
2026-02-10 15:19:20 +08:00
Quantdinger a89cc9bee9 Merge pull request #32 from p369349074/main
fix bug: phone webhook check
2026-02-09 19:38:05 +08:00
guopengfa 4dc05bbc26 fix bug: phone webhook check 2026-02-06 09:06:00 +08:00
TIANHE af8e46011e sss
Signed-off-by: TsssIANHE <TIANHE@GMAIL.COM>
2026-02-05 00:28:08 +08:00
Quantdinger c0738c09fe Merge pull request #27 from p369349074/main
enable webhook and phone notification settings
2026-02-01 20:05:31 +08:00
guopengfa b78d0abd38 Merge remote-tracking branch 'origin/main' 2026-02-01 19:16:05 +08:00
guopengfa e5c0854521 add webhook and phone checkout group 2026-02-01 19:14:46 +08:00
TIANHE 246dc29d6b chore: organize example strategies into docs/examples folder 2026-02-01 15:04:34 +08:00
TIANHE f1fe35a302 chore: move indicator example files to docs folder 2026-02-01 15:03:50 +08:00
TIANHE 8eb38bc6f8 feat: indicator parameterization support for kline chart 2026-02-01 15:02:14 +08:00
TIANHE 5818fbe725 fix: dashboard improvements - remove AI strategy count, fix pie chart, fix position user_id 2026-02-01 12:58:00 +08:00
TIANHE 8a8717a81f chore: merge user_id migration into init.sql 2026-01-31 22:40:41 +08:00
TIANHE 70269c40c9 fix: AI analysis history user isolation & password change Turnstile bypass 2026-01-31 22:34:36 +08:00
Quantdinger d5e023a774 Merge pull request #24 from p369349074/main
update indicator code to match new version
2026-01-31 21:23:10 +08:00
guopengfa fbd18851ef qd_indicator_codes add column. 2026-01-31 20:32:52 +08:00
guopengfa 15e5e380e9 qd_indicator_codes add column. 2026-01-31 20:31:43 +08:00
guopengfa 978e562009 qd_indicator_codes add column. 2026-01-31 20:13:24 +08:00
PengfaGuo 6b1158fb9b Merge branch 'brokermr810:main' into main 2026-01-31 10:26:27 +08:00
TIANHE afa653c3a7 v2.1.1
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-01-31 03:13:18 +08:00
TIANHE 0b37aa4a67 V2.1.1
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
2026-01-31 02:59:49 +08:00
PengfaGuo f04e4f697d Merge branch 'brokermr810:main' into main 2026-01-28 15:01:05 +08:00
Quantdinger 2853e83885 Merge pull request #23 from XSX-Milan/main
feat: 持仓同步优化 + Binance 平仓/减仓安全增强
2026-01-28 14:54:18 +08:00
XSX-Milan 2bfbb88d74 feat: 持仓同步优化 + Binance 平仓/减仓安全增强
## 核心功能
1. **持仓自动同步与插入**
   - 修复策略状态查询条件 (active -> running)
   - 移除阻塞空持仓同步的早期返回逻辑
   - 自动检测交易所存在但本地不存在的持仓并插入数据库
   - 修复 INSERT 语句列匹配 (移除 created_at,添加 user_id)

2. **Binance 平仓/减仓优化**
   - 订单执行前强制同步持仓 (Pre-execution Sync)
   - Close/Reduce 订单自动数量修正:防止超额平仓
   - 当请求平仓数量 > 实际持仓时,自动调整为实际持有量
   - 当数据库无持仓记录时,强制设置 amount=0 阻止错误订单

3. **日志增强**
   - 每10秒输出实际持仓详情 (symbol, size, entry_price)
   - 常规同步日志降级为 debug,保留关键操作为 info
   - 同步失败日志升级为 ERROR 并附带 traceback
2026-01-28 14:15:04 +08:00
PengfaGuo e1d52a10e5 Merge branch 'brokermr810:main' into main 2026-01-28 13:50:22 +08:00