Commit Graph

587 Commits

Author SHA1 Message Date
dekun 5fdfc67438 fix: use isolated margin for OKX option buys (error 51019)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 10:24:33 +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 e82fd15bb7 feat: options UI scroll layout, stats card, funding balance, and cross-account transfer
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 09:57:13 +08:00
dekun 090b9c6215 feat: restructure OKX options UI with header funds, settings card, and dual-column layout
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 09:36:00 +08:00
dekun 38f6bc240e fix: inline options order panel below selected row with clear active states
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 09:16:04 +08:00
dekun c1647822fb feat: options sheet sizing, ITM/OTM labels, and 14-day chain view
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 09:06:45 +08:00
dekun d6d1ac5818 fix: import _safe_float at module level for options close route
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 09:00:26 +08:00
dekun e1c14977e6 fix: OKX option quote requires instFamily with instId
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 08:58:31 +08:00
dekun 05586242f0 fix: OKX options buy/close orders with tick alignment and reduceOnly
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 08:52:18 +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 659c0969fe fix: show header realtime PnL from exchange positions and order metrics
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 02:04:40 +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 d7fa596e68 feat: auto sick tag in archive from journal mood issues
内照明心同步时匹配实例复盘情绪标签,自动标注犯病并锁定标签;中控不再手动选犯病。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 01:12:47 +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 6745262412 fix: intraday journal entry type limited to four options
日内复盘开仓类型仅保留假破、结构突破、回调触价、突破触价;移除旧趋势长句与策略项。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 00:55:35 +08:00
dekun 5a0d18cf99 feat: add force-close exit trigger and round journal real RR to 2dp
复盘离场触发增加强制清仓;填入复盘与自动计算实际盈亏比保留两位小数。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 00:40:55 +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 f580e4542d feat: show entry type as category/subtype (反转/启动A)
Format持仓与交易记录开仓类型为两级展示;新平仓写入与旧短标签自动展开。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 00:27:53 +08:00
dekun 99eb16dbd8 fix: Gate force-close badge and classify midnight closes correctly
Narrow executing window to 15 minutes after the hour, show countdown when flat, run force_close before reconcile, and map 00:00 synced closes to 强制清仓 instead of 手动平仓.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 00:23:40 +08:00
dekun d520ba6904 fix: OKX manual orders save entry_model for trade record 开仓类型
OKX add_order omitted entry_model on insert; align with Binance/Gate and add trade_style fallback when resolving entry_reason for close and display.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 00:15:22 +08:00
dekun d3753f1aee Fix Gate price_snapshot 500: define FUNDS_DECIMALS
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 22:27:58 +08:00
dekun 8e1492e4f0 Fix mark/PnL display fallback and intraday entry labels
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 22:19:42 +08:00
dekun d4a76f05d2 Fix Gate mark/PnL/TP-SL snapshot and intraday order UI
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 22:04:19 +08:00
dekun 5e4f885f80 fix: loosen divergence scan list layout with card-style rows
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 20:08:51 +08:00
dekun e62a3f3351 feat: market divergence scan tabs (4h/1d/1w) with Top20 MACD confluence colors
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 19:58:30 +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 eb6788091d docs: OKX reversal launch A/B strategy v0.4 with short mirror
Align OKX strategy MD and checklist with binance v0.4; document long reversal and mirrored short rules.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 18:50:04 +08:00
dekun 96ab7e997c docs: binance reversal launch A/B strategy v0.4 draft
Document MACD divergence, reference-high two-touch rules, launch A (A1/A2) and B; update hub checklist. UI implementation still pending.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 18:44:17 +08:00
dekun 43cd98f2d5 feat: add EMA144 as separate market chart indicator
Optional EMA144 line on hub K-line main chart, independent from EMA 21/55 cross.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 03:32:26 +08:00
dekun 22b2db34fc feat: MD-style popup print for strategy doc and checklist
Open clean white document in new tab with auto print dialog instead of printing the dark hub page.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 03:28:44 +08:00
dekun 0d5b20c0db feat: strategy page scroll layout, OKX standalone docs, split print
Right checklist drives card height with left doc scroll; rewrite OKX strategy MD and checklist as standalone; add per-column print buttons.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 03:25:56 +08:00
dekun a4cd966370 fix: align strategy page card heights and inner padding
Equal-height two-column cards with flex layout; add card padding and spacing so content is not flush to edges.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 03:17:12 +08:00
dekun 7223b54ec4 feat: add hub strategy docs page with MD and checklists
Central /strategy page shows per-exchange strategy markdown and read-only entry checklists; nav toggle in settings, print and HTML export per tab.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 03:12:09 +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 df99eb5fb5 chore: gate-only force-close policy and deploy pull script
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 02:32:35 +08:00
dekun 3c0c62997f chore: align binance/okx env examples with gate and add sync script
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 02:31:06 +08:00
dekun 4904a86e03 fix: hide hub close/entrust controls for intraday discipline profile
Expose intraday_discipline via hub meta and block manual close/tpsl APIs; Gate instance card no longer shows 全平/平仓/委托.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 02:26:22 +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 fa9e6be36d feat: show entry type in trade records, remove journal custom entry reason
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 00:49:21 +08:00
dekun 5137d5ed17 fix: remove inline estimated TP preview from fixed RR order form
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 00:40:16 +08:00