dekun
09cd680e4a
Improve hedge-plan option board: moneyness, px/sz, accounts, and denser UI.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-14 12:27:09 +08:00
dekun
4df2cb4253
Switch hedge-plan modes to high-contrast tabs with history/stats placeholders.
...
EOF
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-14 11:29:50 +08:00
dekun
44657e0484
Add confirm dialogs and busy states for swap/transfer all actions.
...
Use available (free) balances for full-amount ops, support sub-account scope, and show clear success/failure feedback.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-12 09:10:29 +08:00
dekun
04fd84757c
Improve light theme contrast on options positions panel.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-11 15:09:02 +08:00
dekun
6f6545ce52
Add T-shaped options chain view with straddle metrics (phase A).
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-11 15:00:50 +08:00
dekun
bf2d668d3c
Fix option history to full closes only, 2-decimal USDC, restore hide-delete.
...
Filter OKX positions-history to type 2/3/6, format premium and bid recovery to 2 decimals, and allow locally hiding rows via delete button.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-11 09:24:24 +08:00
dekun
fdea5bb610
Align option display precision with OKX and use exchange position history.
...
Format prices by tickSz, move bid depth/recovery to card end with plain styling, and load option history from OKX positions-history instead of local DB.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-11 09:14:43 +08:00
dekun
1b31c61aac
Simplify option close depth display.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-11 09:04:17 +08:00
dekun
e8a55a0f85
Polish option close depth display.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-11 08:57:19 +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
944673cac1
Improve hub and instance navigation contrast for light and dark themes.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-10 12:33:54 +08:00
dekun
d1ab2d5172
Add options stats holding time metrics and lightweight charts.
...
Show average hold duration for wins and losses, open positions, and CSS ring/bar visualizations in the stats tab.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-10 11:32:45 +08:00
dekun
9f255f13dd
Add ITM and OTM filter toggles to options chain.
...
Default to in-the-money view with at-the-money contracts included; update expiry counts and empty states for the active filter.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-10 11:25:24 +08:00
dekun
b70ce510ef
Add tabbed layout for options positions card.
...
Split current positions, stats, and history into tabs to save vertical space and improve readability.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-10 11:19:33 +08:00
dekun
5a97e14f3e
Fix false options close sync, restore bar layout, and show open premium in history.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-09 17:51:07 +08:00
dekun
08a61fd4ae
Tighten options position bar grouping and compact history table status layout.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-09 17:43:24 +08:00
dekun
af7a397816
Fix options position bar layout so Put badge and contract id display on one line.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-09 17:37:24 +08:00
dekun
3d11b91869
Expand options position card inline below the clicked bar.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-09 17:06:22 +08:00
dekun
ff83f6eebc
Refine options position accordion: default collapsed, 2dp PnL, card outside scroll.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-09 17:00:06 +08:00
dekun
f41af0bf1c
Improve OKX options sizing, expiry sync, and multi-position accordion UI.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-09 16:51:48 +08:00
dekun
9eb10ba771
Align risk policy cards per row with equal-height stretch in 2x2 grid.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-09 10:21:25 +08:00
dekun
db8a9296a7
Fix risk policy layout to 2x2 grid with content-based card heights.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-09 10:17:15 +08:00
dekun
f4361e3eeb
Make risk policy cards responsive with auto-fit grid layout.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-09 10:09:49 +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
1ee9eb02c3
Add settings page tabs and show env API keys with last four digits.
...
System settings now use the same CSS tab layout as env config; sensitive env fields display masked values from .env while keeping save-on-empty behavior.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 21:31:14 +08:00
dekun
12e44ab26d
Fix env config tabs with CSS radio labels, no JS required
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 21:19:23 +08:00
dekun
576f6fbcfc
Redesign env config UI: tabs, 2-col form, remove per-field badges
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 21:10:54 +08:00
dekun
6975da8575
Fix settings loading and use 2-column card layout.
...
Merge Flask GET/POST routes, refresh prefs on tab revisit after preload, and reorganize system settings into separate cards.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 20:12:22 +08:00
dekun
ef4b2f17ca
Add instance nav prefs, env config UI, and PM2 restart.
...
P1-P4: configurable nav/section visibility in system settings, full .env editor with restart badges, password change, runtime hot overrides, and single-instance pm2 restart. Works in hub embed iframe.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 20:07:06 +08:00
dekun
d84a265b67
Split risk policy into its own navigation tab.
...
Move read-only risk control docs to /risk_policy before settings; keep transfers and exports on the settings page.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 19:42:29 +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
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
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
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
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
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
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
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