dekun
bee9539852
fix(hub): use cyan accent in AI chat markdown
...
Apply accent color to chat headings, bold text, and coach role label instead of purple.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-07 09:19:37 +08:00
dekun
b98efbd27d
fix(hub): use cyan accent for AI summary headings in dark theme
...
Keep wine-red emphasis in light theme; align dark mode with the hub color system.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-07 09:16:36 +08:00
dekun
b828026c23
fix(hub): refine AI summary heading style for light and dark themes
...
Replace red text with white stroke by theme-aware accent bar and soft background tint.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-07 09:12:29 +08:00
dekun
f8220762c0
fix(hub): align AI summary trades with records and restyle headings
...
- Query trade_records with trading-day window and reviewed fields instead of missing session_date column
- Style summary headings and account names as red text with white stroke
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-07 09:07:16 +08:00
dekun
62e48dab92
feat(hub): enrich AI coach with fund history, closed trades, and chat uploads
...
- Add 15-day fund snapshot store and /api/hub/account on all instances
- Summary includes yesterday/today trades, fund columns, and section 5 操作建议
- Chat context distinguishes empty positions from local monitors
- Support image/document attachments in AI chat
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-07 08:54:20 +08:00
dekun
51c59b073b
fix(hub): simplify AI coach header actions
...
Hide model name labels and style New Chat as a primary button matching Generate Summary.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-07 00:40:58 +08:00
dekun
dfcf0f88fb
fix(hub): add section icons and color PnL in AI summary table
...
Show emoji headings for overview, accounts, alerts, and data notes; apply green/red styling to table PnL columns.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-07 00:33:44 +08:00
dekun
a5f5239be9
feat(hub): render AI summary account breakdown as icon table
...
Replace pipe-separated account lines with a structured table from stats_snapshot, including exchange icons and position remarks.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-07 00:28:24 +08:00
dekun
8417784dd8
fix(hub): render AI coach summary and chat as Markdown
...
Reuse shared ai_review_render.js so summaries and coach replies display formatted lists and bold text instead of raw syntax.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-07 00:23:44 +08:00
dekun
821e260912
fix(hub): keep AI coach page within one viewport
...
Lock page height and scroll summary/chat inside equal panels instead of extending the document.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-07 00:15:40 +08:00
dekun
ebadcb1119
fix(hub): polish AI coach UI with PnL colors and chat roles
...
Equal-height summary/chat panels, colored closed/float PnL, owner/coach labels, and optimistic thinking state.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-07 00:10:50 +08:00
dekun
cee641ba5d
feat(hub): add AI coach page with daily summary and chat
...
Aggregate four-account trades via hub_ai module and /api/hub/trades/today; store sessions in JSON; default OpenAI config matches instances.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-06 23:51:36 +08:00
dekun
4fad5696df
fix(gate_bot): exclude active trend plans from orphan position warning
...
Trend pullback plans manage positions before order_monitors handoff; treat them as covered and add a pre-deploy DB backup script.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-06 09:40:14 +08:00
dekun
32f4eec1d3
fix: trend preview uses USDT profit, snapshot risk budget, and money RR across four exchanges
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-05 16:20:59 +08:00
dekun
31756e838d
feat: trend pullback preview TP per DCA leg with unified stop loss across exchanges
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-05 16:10:27 +08:00
dekun
674d721072
fix(ui): light-theme contrast for AI daily and weekly review markdown across four exchanges
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-05 14:05:02 +08:00
dekun
3f1bf9905d
fix: AI review list UTC filter, vision timeout, and stuck loading state
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-05 13:59:17 +08:00
dekun
4ac4c062e0
fix: AI review loading UX and Gate preview snapshot time filter SQL
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-05 13:51:16 +08:00
dekun
86a6081090
fix: AI daily review sqlite3.Row crash and error feedback across four exchanges
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-05 13:39:50 +08:00
dekun
995ee8d2e1
fix: prevent theme flash when navigating instance pages from hub iframe
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-05 13:23:51 +08:00
dekun
e30d24173f
fix(ui): light-theme badges, PnL colors, and journal detail across four exchanges
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-05 13:16:29 +08:00
dekun
1b51f73ecd
fix: journal detail contrast and unify AI review journal format across four exchanges
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-05 13:09:59 +08:00
dekun
934e48b9a8
fix: show risk amount only in full-margin mode across four exchanges
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-05 09:08:45 +08:00
dekun
673bcbdc70
fix: align unrealized PnL across four exchange instances via hub_position_metrics
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 20:25:06 +08:00
dekun
806350231e
fix(hub): show contract-based unrealized PnL in monitor and chart
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 20:20:36 +08:00
dekun
ef8656e95d
fix(hub): define mo in buildPositionMarketContext
...
Fixes monitor grid crash ReferenceError mo is not defined when opening market from position card.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 20:15:10 +08:00
dekun
fb20a12b02
fix(hub): show monitor page instead of overlapping market page
...
page-market id contained substring monitor so setActiveNav kept both pages visible and hid the grid.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 20:13:03 +08:00
dekun
c9ca106b81
fix(hub): recalc market floating PnL from live chart mark
...
Use plan margin x leverage x price change with latest K-line close instead of stale board snapshot floating_pnl.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 20:09:35 +08:00
dekun
e6361a7fcc
fix(hub): live market PnL and Gate drag SL place
...
Parse Gate unrealised_pnl in agent; refresh hub market floating PnL from board and trends; clamp Gate TP/SL triggers before place.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 20:02:23 +08:00
dekun
24270944e7
fix(hub,gate): cross-margin TP/SL and dedupe hub conditional orders
...
Gate hedge position triggers use close=false; stop silent ccxt fallback on cross margin. Hub merges agent and Flask TP/SL by trigger price and labels Gate orders correctly.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 19:48:04 +08:00
dekun
ed0805538f
fix(hub): sync TP/SL display after trend handoff to order monitor
...
Use order monitor plan prices on handoff cards and fill exchange TP/SL rows when Gate shows reduce-only orders without algo labels.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 19:39:11 +08:00
dekun
e39fac2c16
feat(hub): show floating PnL on market page and drag stop-loss to place TP/SL
...
Pass unrealized PnL from monitor jump context, refresh from board snapshot, and let users drag the SL price line to call the same place-tpsl API as the monitor entrust dialog.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 19:31:45 +08:00
dekun
93e148a3e7
fix: unify order/key focus K-line theme, PnL, RR and exchange price tick
...
Share focus_chart templates and APIs across four instances; align chart Y-axis, price lines and meta bar with exchange symbol precision and live unrealized PnL.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 16:45:51 +08:00
dekun
3d55aa0975
fix(gate-bot): format mark price with exchange symbol precision
...
Use price_to_precision in price_snapshot so live mark price matches entry/SL display instead of fixed 8 decimals.
2026-06-04 16:33:09 +08:00
dekun
88fc21e278
fix(gate-bot): allow profit-side stop loss on TP/SL entrust
...
Skip min planned RR when stop is on the winning side of entry; validate entrust against open price and fall back to plan take-profit when omitted.
2026-06-04 16:28:47 +08:00
dekun
1042f135ed
fix(gate-bot): PnL colors, sync exchange TP/SL to plan display
...
Color floating PnL on position cards, mirror exchange stop/take prices in the grid and DB, and purge false external-close records on monitor relink.
2026-06-04 16:23:52 +08:00
dekun
1618ef8668
fix(gate-bot): show orphan exchange positions and relink monitor
...
When the exchange still has a position but order_monitors is not active, surface it on the trade page and allow restoring the latest stopped record.
2026-06-04 16:17:34 +08:00
dekun
e327f1b1fb
feat(gate-bot): align order monitor with Gate main site
...
Dual-panel trade UI, exchange TP/SL entrust modal, and place/cancel_tpsl APIs so bot manual trading matches Gate.
2026-06-04 16:09:17 +08:00
dekun
f9301b92b9
feat(hub): trend plan breakeven and stop from monitor fullscreen
...
Proxy /api/hub/trend/stop and breakeven to instances; enable offset input and actions in hub UI. Add horizontal padding on strategy records page.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 14:46:24 +08:00
dekun
52d97482f2
feat(strategy): WeChat notify on trend and roll plan start/end
...
Add shared strategy_wechat_notify helpers; hook trend execute/finalize and roll group open/close across four exchanges and Gate bot.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 13:35:21 +08:00
dekun
3b4120a36e
fix(instance): light-theme journal AI buttons and mood checkboxes
...
Fix secondary button contrast, exclude checkboxes from dark input fill, style mood-grid; bump theme assets to v4.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 13:12:44 +08:00
dekun
21b3e97571
fix(instance): light-theme P/L colors, AI review panels, bot stats
...
Restore plan floating P/L and st-done greens; fix panel-item and stats-split-col in light mode; observe journal lists; bump theme assets to v3.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 13:07:00 +08:00
dekun
be3ce18665
style(instance): unify light theme across four exchanges
...
Extend instance_theme CSS/JS for trade, strategy, records, journal and stats tabs; remap inline dark colors; bump static assets to v2.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 12:59:42 +08:00
dekun
d14c629778
feat: add light/dark theme to exchange instances with hub SSO sync
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 12:52:27 +08:00
dekun
6f8f0968c8
feat(hub): background chart poll with SSE for positions and market watch
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 12:39:26 +08:00
dekun
9d12323ce6
style(hub): fix light-theme load button and market position panel colors
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 12:14:48 +08:00
dekun
e99c6cef08
style(hub): refine light theme contrast and theme-aware fullscreen UI
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 12:08:35 +08:00
dekun
d1914df46f
feat(hub): add dark/light theme toggle with moon and sun icons
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 12:03:48 +08:00
dekun
b394e495ca
chore: remove instance Windows scripts and screen/systemd helpers
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 11:56:32 +08:00
dekun
4569e070fd
chore: remove Windows deployment scripts and update hub usage examples
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 11:53:42 +08:00