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
5ef6affabf
Show initial and current roll position size plus rolling status on active roll groups table.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 16:45:32 +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
189b27e076
Add live expiry countdown for options positions on instance page and trading hub.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 11:14:30 +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
75a64c5d24
Show premium paid on options position card and parse strike/type from instId when OKX omits them.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 10:40:07 +08:00
dekun
43fa1ad1f3
Show OTM options in chain even when ticker has no quotes.
...
Stop skipping contracts with empty ask, bid, and mark so out-of-the-money strikes remain visible in the list.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 07:28:11 +08:00
dekun
7f225c7407
Estimate missing option ask from mark or intrinsic on chain list.
...
Deep ITM contracts often have no ask on the book; show mark-based estimates with a tilde and restore breakeven calculations.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-07 17:50:25 +08:00
dekun
25879dd007
Show equivalent contract leverage on options order panel.
...
Display notional-over-premium leverage at current index and at the user target price for quick sizing comparison.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-07 16:58:25 +08:00
dekun
27921213b0
Add expiry profit estimate and remove chain quick-buy button.
...
Let users enter a target index in the order panel for estimated expiry P&L, and remove the redundant buy button from the options chain row.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-07 16:46:21 +08:00
dekun
2cfc1a490f
Show bid/ask liquidity as price per sheet in options chain.
...
Display OKX askSz and bidSz beside top-of-book prices in the chain table and order panel using price/sheets format.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-07 16:28:08 +08:00
dekun
99f13817f8
Add pre-buy expiry breakeven columns to options chain table.
...
Show estimated expiry balance and distance from index in the chain list and order panel using ask price before opening a position.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-07 16:21:22 +08:00
dekun
3570a6900e
Add OKX options expiry and close breakeven to hub monitor and dashboard.
...
Expose bePx-based expiry balance and mark-to-close breakeven on positions so monitor and dashboard can show both labels per contract.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-07 16:10:03 +08:00
dekun
4a3afdfb48
Fix monitor board crash: avoid shadowing options_open_position_count helper.
...
Rename the imported counter function so aggregate_monitor_board_totals no longer overwrites it with an int accumulator.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-07 13:09:39 +08:00
dekun
3163912266
Hub funds and dashboard: include OKX options balances in USDT totals.
...
Merge options USDC/USDT at 1:1 into fund overview snapshots, dashboard aggregation, and monitor board totals while keeping a separate options breakdown in the UI.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-07 13:06:01 +08:00
dekun
6cc3382526
Hub monitor: read-only OKX options positions aggregation (Phase B).
...
Expose /api/hub/options/snapshot from OKX instance and render options summary on hub monitor cards when the options capability is enabled.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-07 12:55:35 +08:00
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
86188e6611
fix: import urlencode from urllib.parse in embed redirect
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-07 10:48:38 +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
2d52bfac80
feat: options stats profit/loss totals and history delete
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-07 10:31:09 +08:00
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