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
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
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
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
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
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
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
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
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