Commit Graph

65 Commits

Author SHA1 Message Date
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 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 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 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 546bc7bcf1 fix(hub): two-column trend plan card; docs for records and hub layout
Left column shows plan metrics, right column DCA table, footer for breakeven and snapshot info; update strategy and exchange usage docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-04 10:59:47 +08:00
dekun 7037dc2334 fix(hub): align trend pullback card with instance layout
Match strategy page plan card: 3x3 metrics, DCA table, breakeven row, snapshot footer; PnL percent on plan margin.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-04 10:51:13 +08:00
dekun 3fb2023efb feat: strategy trade snapshots, DCA detail, and hub trend layout
Persist ended trend pullback and roll group snapshots to a unified records page; show replenishment tiers on instance and hub cards with horizontal single-position layout.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-04 10:45:27 +08:00
dekun ed669fab80 fix(hub): show trend plan leverage, base, ratio, mark and floating PnL
Position and trend plan cards read sizing from trend_pullback_plans; merge agent mark/PnL; compute position_ratio_pct in hub enrich.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-04 10:13:44 +08:00
dekun 98c904c2d1 feat(hub): align trend pullback display with instance in fullscreen
Position cards show trend plan source, risk%, program TP price and RR; trend section uses plan grid; hub API enriches floating PnL and planned_rr.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-04 10:09:04 +08:00
dekun 1b3f661bad fix: label trend breakeven handoff as 趋势回调 across four exchanges
Set order monitor and trade record source to trend pullback after handoff; unify hub and instance display; add migration script for legacy rows.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-04 06:30:14 +08:00
dekun 2c01d11fe1 style(hub): color-code monitor card strategy stat chips
Use shared cyan for breakout/fib keys, purple for watch keys, green for trends, and orange for roll groups.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-03 23:30:33 +08:00
dekun 98038b1945 feat(hub): show key/trend/roll counts on monitor cards
Add per-card strategy stats chips for breakout, fib, and watch key levels plus trend and roll plan counts when non-zero.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-03 23:25:43 +08:00
dekun 7957a62c65 fix(hub): use single position table header on desktop monitor cards
Render all exchange positions in one table row group instead of repeating column headers per symbol.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-03 23:20:34 +08:00
dekun 833c51e34a feat(hub): simplify desktop monitor cards to positions only
Move orders, key levels, entrust, trend plans, and roll groups to fullscreen detail view.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-03 23:15:55 +08:00
dekun ed3ff747f4 feat(hub): mobile 2x2 exchange alert dashboard tiles
Phone monitor list shows per-exchange tiles with offline, >10% float loss, and missing SL alerts; tap opens full desktop-style detail view.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-03 23:07:59 +08:00
dekun d07357b98e fix(hub): merge mark price from Flask snapshot and fix board refresh
Sync hub positions with instance price_snapshot (order_prices and position_marks).
Fix monitor board UI when hub restarts (version rewind) and queue snapshot fetches.
Expose board aggregate status on /api/ping for diagnostics.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-03 22:44:01 +08:00
dekun c1fda1e7d5 feat(hub): show exchange mark price on monitor positions
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-03 22:25:23 +08:00
dekun 5b6babd699 feat(hub): background board poll every 5s with SSE snapshot updates
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-03 22:17:23 +08:00
dekun 6a76993ca8 fix(hub): prevent monitor board stuck on slow aggregate polling
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-03 21:47:11 +08:00
dekun b5f66a0db2 feat(hub): show cached monitor board when returning from market area
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-03 21:40:29 +08:00
dekun f95118065d feat(hub): exchange price precision, entry price, and trend DCA display
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-03 21:25:24 +08:00
dekun d9b1b324f9 修复中控保本状态 2026-06-03 16:41:48 +08:00
dekun cf3e2ee1c9 feat: 持仓快照盈亏比与交易所止损已保本标识
盈亏比固定用开仓 initial_stop_loss 计算,人工改委托后不变化;轮询交易所止损触发价相对成交价判定已保本,四所实例与中控统一显示绿色标识。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-03 16:31:03 +08:00
dekun 01d26e9833 修复趋势回调止盈误显与行情区成交量被裁切的问题
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-02 13:45:19 +08:00
dekun 21ef97cbdb 监控跳转行情区:展示入场价、止盈止损与委托单并在K线标注
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-02 13:38:44 +08:00
dekun 1f13638732 监控区持仓合约点击跳转行情区
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-02 12:29:08 +08:00
dekun 2f1ca6fb5a 行情区:默认200根、增量刷新、振幅与TV式现价倒计时
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-02 11:30:43 +08:00
dekun d942e5b088 行情区:60s 刷新、横向 OHLCV、交易所标识、价格自动按钮
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-02 11:19:20 +08:00
dekun ba681c7a58 中控行情区与 K 线本地库(15 天滚动、按需拉取)
新增行情区单图与周期切换,K 线优先读 hub_kline.db,不足时经各实例 /api/hub/ohlcv 补齐;无后台定时更新。含回滚标签说明与单元测试。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-02 10:58:59 +08:00
dekun 9115523df7 修复中控 2026-05-30 12:33:20 +08:00
dekun a084c272b9 修复中控 2026-05-30 12:26:06 +08:00
dekun 26004fb0e7 修复中控 2026-05-30 12:19:05 +08:00
dekun c882a5e565 修复中控 2026-05-30 12:13:33 +08:00
dekun acbd9576bc 中控 2026-05-30 12:08:56 +08:00
dekun 0a1c38a9d6 更新中控 2026-05-27 09:50:03 +08:00
dekun 6bf7237ddb 更新中控 2026-05-27 09:30:31 +08:00
dekun 55f50a645b 更新中控 2026-05-27 09:23:56 +08:00
dekun 3ff17a4b60 修改前端 2026-05-25 17:42:53 +08:00
dekun 325f12c0a7 增加反代 2026-05-25 11:49:53 +08:00
dekun 1e36086465 修复okx止盈止损 2026-05-25 11:25:14 +08:00
dekun 436d2aef6c 修复okx止盈止损 2026-05-25 11:19:33 +08:00
dekun 5f4f33cc10 修复中控 2026-05-25 08:02:06 +08:00
dekun e89708726f 增加手机端自适应 2026-05-25 07:46:45 +08:00
dekun 5935b5449e 前端ui 2026-05-24 08:44:16 +08:00
dekun 8b0607d83f 前端ui 2026-05-24 08:41:31 +08:00
dekun eebb658dc5 前端ui 2026-05-24 08:35:15 +08:00
dekun 695a785832 前端ui 2026-05-24 08:27:40 +08:00
dekun 88f4166bb7 前端ui 2026-05-24 08:15:31 +08:00
dekun 3b97a59562 中控增加条件单委托 2026-05-24 08:09:08 +08:00