dekun
f5c553844f
币本位盈亏双显ETH/U(按指数换算);平仓卖币改为卖光交易户可用余额
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-20 17:45:32 +08:00
dekun
b763937ec2
币本位实时盈亏/期权浮盈按ETH展示,避免两位小数抹成0.00U
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-20 16:31:02 +08:00
dekun
b0c331aa26
修复币本位顶栏改动导致 Gate/Binance 顶栏 UndefinedError 500
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-20 14:56:30 +08:00
dekun
4fb3be35ef
单笔期权默认改为币本位;未配置时按coin处理
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-20 14:05:44 +08:00
dekun
15694e8ea8
隐藏粉尘级ETH/BTC余额,避免顶栏显示0币
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-20 13:19:35 +08:00
dekun
f3de3763bb
修复币本位报价误走USDC,中控补资金账户并隐藏零币余额
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-20 13:08:28 +08:00
dekun
73efad6fa5
币本位顶栏去掉期权资金/交易列,交易账户显示USDT/ETH/BTC
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-20 12:58:43 +08:00
dekun
a84554e613
币本位顶栏资金显示USDT+ETH,单笔期权本位改为下拉选择
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-20 12:38:39 +08:00
dekun
7f22bffbc6
Shorten force-close window to 5m and grey-out open during blocks.
...
Unify Gate/OKX/Binance: disable the open button with a side note during force-close, cooloff, and daily freeze, and enforce the same gate server-side.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-06 08:38:00 +08:00
dekun
09a763e47d
Merge OKX dual APIs into one OKX_API_* account for perp and options.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-05 21:28:33 +08:00
dekun
22e6b68e6d
Add OKX env toggle to show or hide perpetual funds in the header.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-05 17:55:15 +08:00
dekun
55e94fe059
Restore Gate intraday close/TP-SL controls and document force-close rules.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-05 08:16:02 +08:00
dekun
28a329cb63
Restructure live order form into labeled rows for clearer hierarchy.
...
Group policy selects, SL/RR fields, options, and submit so the unlabeled RR input and scrambled checkbox/price row no longer fight for space.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 09:24:17 +08:00
dekun
8f4ae8ad31
Speed up journal save with AJAX and async K-line charts.
...
Defer exchange chart generation to a background thread and save via XHR so fill-from-trade no longer blocks on full page reload.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-18 15:15:24 +08:00
dekun
af7fb44650
Raise Nginx proxy timeouts so AI daily/weekly review is not cut at 60s.
...
POST /ai_daily_review was returning 504 while the model was still running; patch BT reverse-proxy read/send timeouts to 360s on deploy.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-17 13:12:32 +08:00
dekun
f27b4bc1ec
Fix OKX header trade stats stuck at zero after settings shell load.
...
Always SSR records summary on embed shell (including settings/risk/env), and refresh total/win-rate/PL ratio via account_snapshot so soft-nav cannot leave the strip blank.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-17 13:03:04 +08:00
dekun
f7ba7c2f7d
Auto-fill journal direction from trade records.
...
Add a required direction field on the review form, persist it, and set long/short when clicking 填入复盘.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-17 12:00:09 +08:00
dekun
d9b8069906
Add shared records review pagination for all three exchanges.
...
Paginate trade records, journals, and AI history at 5 per page with soft in-card flips; hide the journal form until 填入复盘.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-17 11:52:02 +08:00
dekun
5eb9b9f5c5
Force-refresh header balances after transfers and balance SSE events.
...
Invalidate balance caches on mutation, push SSE balance tick, and bypass 60s cache when refreshing funds.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-12 09:03:15 +08:00
dekun
bb53beb22d
Hide zero USDT in options balance labels and add swap/transfer all buttons.
...
Skip 0 balances in header display; fill max funding/trading amount on 全部兑换/全部划转.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-12 08:55:30 +08:00
dekun
551c86264a
Fix OKX spot swap tgtCcy and show options trading USDT in header.
...
OKX requires quote_ccy/base_ccy for market orders; include trading_usdt in balance display and total funds.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-12 08:42:33 +08:00
dekun
02472f19cb
Fix breakeven badge still showing after roll lowers stop loss.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-10 16:52:29 +08:00
dekun
6aaa328a24
Add tabbed period stats with lightweight charts on instance pages.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-10 13:27:02 +08:00
dekun
f99900ac40
Fix intermittent loss of options positions and realtime PnL on refresh.
...
Use stale-while-revalidate for positions API and UI, throttle sync calls, and avoid overwriting displayed PnL with null on transient failures.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-09 18:09:58 +08:00
dekun
23ba725c89
Fix intraday profit amount and hide TP/SL cancel for day trades.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-09 09:55:09 +08:00
dekun
d3a44b23db
Split journal order type from entry reason and fix review edit toggle in embed shell.
...
Adds order_type to journal uploads, removes legacy swing/trend labels from entry reason options, and ensures review-edit buttons sync when the records tab loads dynamically.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-09 09:27:03 +08:00
dekun
b733e551a0
Normalize fullwidth punctuation to ASCII across codebase.
...
Add scripts/normalize_ambiguous_unicode.py; fix corrupted patch_instance_theme_templates.py. Preserves curly quotes in string literals; removes Git homoglyph warnings on .env.example.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 23:42:26 +08:00
dekun
fd6391b734
Remove manual refresh funds button from header.
...
Account snapshot already refreshes automatically on load, interval, and tab switch.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 19:18:44 +08:00
dekun
0d27e13275
Fix header funds flicker and unify settings page top bar.
...
Preserve SSR fund values when account_snapshot returns null, retry on failure, and show the same instance header panel on system settings.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 19:08:08 +08:00
dekun
279648de56
Add hub TP profit field, 2-decimal options PnL, and exchange mark price display.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 17:22:26 +08:00
dekun
e3e53ff7f5
Fix roll position display: live contracts, TP profit, and 2-decimal qty precision.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 17:06:33 +08:00
dekun
f5f302b97e
Add month/quarter/half-year/all list window presets with this month as default.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 11:22:29 +08:00
dekun
f68197b775
Include options unrealized PnL in OKX instance header realtime PnL total.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 11:05:52 +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
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
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
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
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
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
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
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
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
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
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
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