Commit Graph

42 Commits

Author SHA1 Message Date
dekun 11a50c02cd fix(theme): improve light mode contrast across instance and options pages
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 12:23:22 +08:00
dekun afb191f90a fix(theme): show toggle on standalone embed shell, not only hub iframe
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 12:18:18 +08:00
dekun b29c54f126 fix(settings): restore theme toggle on OKX settings page
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 12:14:46 +08:00
dekun 68d8a97db5 fix(settings): equal columns, form-style option transfers, compact export
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 12:09:12 +08:00
dekun 27a00f026a fix(settings): OKX side panel shell, compact option transfers without selects
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 11:43:56 +08:00
dekun 6c26d4739e fix(settings): horizontal export links and strict OKX side column height
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 11:35:36 +08:00
dekun 5680ab515e fix: stretch settings side cards to match left column height
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 11:29:14 +08:00
dekun 2ad9e049f3 fix(okx): cache options balances and stop SSE from hammering exchange API
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 11:15:06 +08:00
dekun 799a4d6b8b fix: enable threaded Flask for SSE and make embed tab switch instant
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 11:09:34 +08:00
dekun 3db84d07e3 feat: instance embed SSE live push and lighter tab revisit
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 11:01:10 +08:00
dekun 444088baf3 fix: reduce embed tab flash with persistent pane show/hide
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 10:53:42 +08:00
dekun 30e40dc34c perf: embed shell soft nav, tab cache, and lighter options page boot
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 10:42:01 +08:00
dekun 8913138dc3 style: tighten options page typography and spacing
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 10:35:00 +08:00
dekun 2a3f36d34f feat: split options settings into compact swap and transfer cards with aligned columns
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 10:18:41 +08:00
dekun 75aa4b1391 feat: single-row funds strip on header and system settings page
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 10:09:51 +08:00
dekun ae0c44e20d fix: always show OKX options nav tab and allow options page without redirect
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 08:33:23 +08:00
dekun 806bb074ab feat: add OKX options module with dual API, USDT/USDC convert, and docs
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 08:17:27 +08:00
dekun 814fe67a21 feat: expand header stats with total funds and profit-loss ratio
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 02:14:18 +08:00
dekun 3b494932c7 feat: settings risk sections as 2x2 nested subcards
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 01:58:06 +08:00
dekun fc6f85e76c fix: taller centered stats strip with larger exchange and trade count
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 01:52:50 +08:00
dekun 65594c28bd fix: move status badges to right with theme and add nav spacing
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 01:49:18 +08:00
dekun a1096155b8 fix: unify instance header panel layout for toolbar and stats
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 01:44:45 +08:00
dekun 6547029a89 feat: compact instance toolbar, stats strip and settings two-column layout
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 01:37:19 +08:00
dekun d87081205d feat: instance system settings page with risk docs, export and transfer
顶栏新增系统设置;风控说明读取 .env;数据导出与资金划转迁入三张卡片;顶栏移除导出条与手动划转。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 01:26:38 +08:00
dekun 2a3d264c8f fix: allow force-close in trade review and hide strategy nav for intraday
统计核对结果允许强制清仓;日内户顶栏隐藏策略交易与策略交易记录。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 01:01:57 +08:00
dekun 1092816359 feat: review entry reason picker uses dropdown instead of prompt
Add modal select for trade record review, expand options to two-level labels (反转/启动A), and accept legacy short labels on save.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 00:38:16 +08:00
dekun 81f7a7c451 fix: entry model sub-select linkage via DOM options and event delegation
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 19:08:11 +08:00
dekun ff1bcd69d2 feat: two-level entry model UI for trend accounts (reversal/trend/swing)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 19:02:18 +08:00
dekun 8b069294b7 refactor: unify three-exchange instance UI with shared templates
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 02:43:24 +08:00
dekun a268a93027 feat: show force-close badge and countdown when FORCE_CLOSE is enabled
Add shared lib/UI for midnight force-close indicator on instance and hub pages, and document Gate intraday 0-point exit alignment.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 02:17:47 +08:00
dekun 7fb87d6030 fix: improve journal form layout for tablet with proportional field widths
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 00:59:45 +08:00
dekun e526d6af76 fix: 注册 order_entry_model.js 静态路由,embed 内联联动逻辑
中控 iframe 下 JS 404 导致小分歧/杠杆不更新;boot 脚本内联兜底。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 00:34:26 +08:00
dekun e81343ae91 fix: 小分歧联动波段单显示,杠杆改为按币种默认只读
option 增加 data-trade-style;修复 JS 初始化顺序。杠杆隐藏输入,显示 BTC/ETH 10x 其它 5x。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 00:28:10 +08:00
dekun ea429b2694 feat: 趋势户开仓类型大分歧A/B/小分歧,自动联动趋势波段与复盘
下单监控增加 entry_model 下拉;平仓写入短标签并预填复盘。Binance/OKX 用趋势 profile,Gate 日内仍用手选 trade_style。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 00:18:38 +08:00
dekun f688a504e1 ui: 复盘表单紧凑布局、即时上传截图并移除占用时新开仓
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-05 22:46:05 +08:00
dekun 7bb6ee1154 remove: 全面移除「错过机会」功能与文案
删除手动记录表单与 /add_miss;停止自动生成错过类交易记录;列表/统计/顶栏不再展示;复盘卡片改为整行。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-05 22:21:30 +08:00
dekun 88fe4bbe56 feat: 复盘四周期手动上传,移除 AI 识别预填
固定 5m/15m/1h/4h 四槽截图上传与详情四宫格展示;自动 K 线默认关闭且与手动上传互斥。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-05 21:57:41 +08:00
dekun eec57610dc fix: 注册 symbol_live_price.js 静态路由(现价不显示)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-05 00:46:23 +08:00
dekun 3a740235ac feat: 币种输入旁实时显示交易所现价
Shared SymbolLivePrice polls /api/order_defaults on input with debounce; wired to trade, key monitor, trend, and key focus forms.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-05 00:42:44 +08:00
dekun c0ad50a7b5 feat: 账户方向与币种白名单 env 开关(三所)
Per-instance TRADE_DIRECTION / TRADE_SYMBOL_WHITELIST restricts UI and API for manual orders, key monitors, and strategies; includes sync script for deployment profiles.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-05 00:30:49 +08:00
dekun 9d9d0af31e fix: 市价加仓预览后无法执行滚仓
修复 embed 壳拦截 roll-form 提交,以及策略 tab 切换后未重新绑定顺势加仓脚本的问题。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 21:42:12 +08:00
dekun 5797d49d8a refactor: 将共用代码迁入 lib/ 模块化目录
统一 strategy、key_monitor、trade、hub 等共用库到 lib/ 子包,并补充 lib-structure 文档,便于四所与中控维护。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 16:23:09 +08:00