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
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
72c84bb993
实现OKX单笔期权币本位与USDT桥复利(中控只读,不改Gate)
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-20 12:10:29 +08:00
dekun
8605efa2ed
翻倍出场监控中按钮改为取消;中控目标监控列显示倍数如1倍。
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-12 10:37:31 +08:00
dekun
c5d3d9d6c1
期期出场改盈亏比:达目标平盈利腿,亏损腿残值20%或到期平
...
将上/下破目标价替换为盈亏比(盈利金额/初始权利金,默认2);残值平需买一流动性且权利金≤初始20%。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-11 16:44:45 +08:00
dekun
e26a67176c
fix(hub): default HUB_ALLOW_PUBLIC on to avoid cloud 403 forbidden
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-11 15:31:59 +08:00
dekun
0b8e5a0914
Fix hub funds overview double-counting OKX USDT with options.
...
Only add options USDC/USDG onto perpetual USDT totals, repair historical double-counted snapshots, and label the options line as USDC.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-07 10:30:34 +08:00
dekun
4bc238b014
Fix hub options float summary blank when bid book is invalid.
...
Stop treating total_received=0 as a real bid recycle, fall back to exchange upl for display totals, and keep row/summary aligned.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-07 09:47:14 +08:00
dekun
7352d10254
Fix hub total floating PnL by excluding OKX options from swap agent.
...
Option legs were scored with linear swap math and then added again from the options snapshot, inflating 总浮盈亏 and 持有仓位.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-05 22:13:22 +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
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
644dcdf092
Rename points-mode label to absolute coin counts.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 22:57:50 +08:00
dekun
d89aff3ad6
Use absolute coin counts in perp-options points mode.
...
Treat 2:4 as 2 perp + 4 option coins instead of normalizing to 1:2, and disable embed page caching so hub iframe picks up trade UI updates.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 22:54:16 +08:00
dekun
9f3395de2f
Add sideways max-loss to perpetual-options calculator.
...
Show premium wipeout plus flat round-trip perp fees as case C for both size and points modes.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 22:38:20 +08:00
dekun
26bc19f047
Add two-day amplitude window to amp-stats.
...
For each settlement day, also compute H-L over start minus one day through 16:00 (e.g. 25 16:00 to 27 16:00).
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-28 15:05:38 +08:00
dekun
c81ba147cc
Replace amp-stats straddle/perp overlays with move-points amplitude ratio.
...
Input points now drives amplitude hit share; table keeps both-side moves and amp达标.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-28 14:56:48 +08:00
dekun
90be23e845
Fix amp-stats perp PnL to exit at daily profit target.
...
Hit A/B via open-to-high/low; day PnL equals target when touched, otherwise settle at close.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-28 14:41:29 +08:00
dekun
2ce67da8e8
Use daily open as perp-hedge entry and toggle buy-straddle vs perp overlays.
...
Amp-stats now prices premium from each day's open, and the form switches mutually between straddle and perpetual-options对照.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-28 14:31:17 +08:00
dekun
d049c5d317
Add perpetual-options hedge overlay to amp-stats with hit rates and daily PnL.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-28 14:20:42 +08:00
dekun
c73e36309e
Show perpetual-options calculator results with two decimal places.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-28 12:59:38 +08:00
dekun
21c80f2ac9
Clarify perp-options points mode: scenario B focuses on portfolio net target.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-28 12:57:09 +08:00
dekun
a908dccaba
Add ratio-to-move-points mode for hub perpetual-options calculator.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-28 12:47:17 +08:00
dekun
4bcf88b5cb
Add hub perpetual-options hedge calculator tab and sizing formula.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-28 12:37:51 +08:00
dekun
54f1857fa2
Sync OKX options closed trades into hub archive with a separate tab.
...
Mirror perpetual archive flow into archive_options_trade_cache for offline calendar and review.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-24 00:39:59 +08:00
dekun
6f1ae14b3d
Add display toggles to hide monitor cards and strategy tabs.
...
Keep unused exchanges/docs out of the UI without disabling accounts.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-24 00:24:00 +08:00
dekun
29d59d6a53
Add playbook v2 without hedge as the primary strategy guide.
...
Wire hub strategy tabs and coach brief to 1H→space→structure→risk/reward→options/perp only.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-24 00:09:40 +08:00
dekun
9e0591c676
Increase strategy compare card padding so content is not flush.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-23 14:59:37 +08:00
dekun
ed3033d793
Add hub strategy compare page for perp vs options vs 7:3 hedge.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-23 14:39:59 +08:00
dekun
b6156e0049
Apply account-PnL display pref to dashboard KPI and position tables.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-23 12:44:36 +08:00
dekun
8e3c00641f
Hide options PnL/ROI and daily float when account-PnL pref is off.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-23 12:39:43 +08:00
dekun
f11f89e760
Show options funding, trading, and float PnL in monitor account stats.
...
EOF
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-23 12:34:23 +08:00
dekun
8a9dee267f
Add open-trade three-check behavior guidelines.
...
Document signal/process/emotion firewall, expose it in hub strategy tabs, and brief the AI coach.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-23 09:15:47 +08:00
dekun
910c938d0a
Throttle OKX amp-stats candle pagination and retry on 429.
...
Add page pauses, exponential backoff, and cooldown before swap fallback to avoid rate limits.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-23 02:57:24 +08:00
dekun
0a9e3aa95c
Fix amp-stats long-range candles via OKX history endpoints.
...
Recent candles cap near 60d; continue with history-index/history candles and color profit green/red.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-23 02:53:36 +08:00
dekun
b64c742fc9
Add weekend filter, take-profit, and profit column to amp stats.
...
Long-straddle effective move uses TP on path hit (>=) else abs change; mark Sat/Sun on settlement days.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-23 02:47:20 +08:00
dekun
789ab43dbe
Add long-straddle premium overlay to hub amp stats.
...
Configurable bilateral premium with exceed counts/ratios and settlement PnL for buying volatility.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-23 02:33:23 +08:00
dekun
61e8da1e8b
Add hub-only OKX amp stats for ETH/BTC session windows.
...
Read-only 1H index candles, point amplitude metrics, history save and CSV export; no order-path changes.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-23 02:06:21 +08:00
dekun
58e9c8f85e
Feed options positions and playbook brief into trading coach.
...
Coach context previously omitted options_snapshot details; also inject a short 执行手册 summary each turn.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-22 23:28:16 +08:00
dekun
eb0eddbc9d
Tighten mobile monitor stats to two lines and hide ops fold.
...
Desktop refresh/emergency-close and expanded stats layout stay unchanged.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-22 22:17:14 +08:00
dekun
e7f8e9201e
Show trading playbook in hub strategy docs.
...
Add an 执行手册 tab that renders docs/交易执行手册-期权与Gate.md as the default strategy view.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-21 22:16:54 +08:00
dekun
6def61fae3
Fix option day splits to daily Beijing 16:00 lines.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-20 16:18:46 +08:00
dekun
10ee7614b5
Hub market: add option expiry Friday yellow dashed splits.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-20 16:16:38 +08:00
dekun
221e8c3cad
Desktop calculator: stretch left/right cards to equal height.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-20 12:56:59 +08:00
dekun
29c080f8e0
Desktop calculator: top tabs with input/result dual cards.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-20 12:54:13 +08:00
dekun
7a01535802
Enlarge dashboard KPI summary bar for readability.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-20 12:48:38 +08:00
dekun
f467f94fe9
Replace dashboard perp profit column with stop-loss and take-profit.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-20 12:47:16 +08:00