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
10128d18bc
Add OKX options review module with hedge plan entries.
...
Import closed OKX option history and closed hedge plans into one list for journaling, images, and stats without mixing contract reviews.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-17 09:35:19 +08:00
dekun
95e46ab803
Restyle options target-monitor banner for light mode.
...
Use a light panel with dark text instead of keeping the dark-theme black bar.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-16 12:06:01 +08:00
dekun
b50eebe37c
Boost light-mode contrast on options position cards.
...
Darken labels, hints, and badges so call/put chips and metric text stay readable on white.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-16 12:00:30 +08:00
dekun
4c7197ad99
Fix options chain headers mixing list and T-view columns.
...
Thead rows used a .hidden class with no CSS rule on instance pages, so both header sets stayed visible.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-16 11:57:07 +08:00
dekun
4a0b0def1d
Center instance login form by fixing broken theme-bar layout.
...
Move the theme toggle inside body and stack it above the form so flex no longer pushes the card to the right.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-16 08:49:23 +08:00
dekun
19a4a5194d
Use per-exchange PWA names and logos for instance app installs.
...
Show Binance/OKX/Gate 交易系统 with distinct exchange icons in manifests, apple titles, and login branding.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-16 08:44:07 +08:00
dekun
cbb7f954f5
Auto-cancel stale option close limits after pending TTL.
...
Default 10m via OKX_OPTIONS_PENDING_TTL_SECONDS; show age/countdown in pending panel; monitor loop cancels sell closes.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-15 22:06:24 +08:00
dekun
ee7be3e7f3
Align options realtime PnL with bid-net and show totals in stats.
...
Header float PnL now uses bid recycle minus premium like position cards. Stats adds realized/open/total net PnL.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-15 22:00:45 +08:00
dekun
8ecc70a61c
Support dual breakout targets for options-options hedges.
...
Replace single S* with up/down targets across UI, preview, persist, monitor, and alerts so ranging breakouts can close the winner either way.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-14 14:32:06 +08:00
dekun
f6ef06f659
Add hedge history delete/detail modal and typed stats cards.
...
History shows contract names with clickable fill details; stats split perp vs options plans for win rate, profit factor, max win/loss, and drawdown.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-14 14:04:48 +08:00
dekun
5fcf649c79
Move hedge-plan calc actions to second card and add spacing above preview.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-14 13:05:56 +08:00
dekun
8afaea1ea6
Allow entering sheet counts for each options-options hedge leg.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-14 12:59:24 +08:00
dekun
9e0d89bd01
Align hedge-plan perp contract precision with exchange and show TP/SL USDT PnL.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-14 12:49:03 +08:00
dekun
036501b70c
Fix hedge-plan option list to 5-row scroll viewport and add auto-deploy rule.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-14 12:43:23 +08:00
dekun
27f4f5e2ee
Make hedge-plan dual cards equal width and height.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-14 12:38:19 +08:00
dekun
8d37b2cba3
Compact hedge-plan option list to 5 rows with overflow select.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-14 12:33:30 +08:00
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
9e17814e37
Prevent env autofill from overwriting OKX API keys when saving hedge settings.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-14 11:22:28 +08:00
dekun
1fa98425e7
Add OKX hedge-plan P0: env group, preview page, and PnL scenario math.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-14 11:00:15 +08:00
dekun
1bda78ceb2
Fix env save-and-restart by deferring PM2 restart until after HTTP response.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-13 10:54:48 +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
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
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
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
edfe935fb4
Register instance_stats.js static route so period tabs work on all exchanges.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-10 14:02:24 +08:00
dekun
c97cc2823c
Fix corrupted embed stats fragment causing 500 and broken period tabs.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-10 13:57:09 +08:00
dekun
40dbafe851
Fix instance stats week/month tabs not responding after embed preload.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-10 13:50:25 +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
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
4abe8a6ca9
Fix instance settings prefs JS 404 on static route.
...
Register instance_settings_prefs.js (and options_panel.js) in install_instance_theme_static; add delegated click handlers for embed lazy tabs.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-09 00:07:30 +08:00
dekun
f5bdaee886
Fix instance nav display prefs save in embed shell.
...
Re-bind save button when settings tab loads lazily; scope form lookup to settings pane.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 23:58:06 +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
823aeda42a
Add hub AI config tab with sync to instances and deploy secret bootstrap.
...
Wire bootstrap_deploy_secrets into setup_env.sh (one-time HUB_BRIDGE_TOKEN, FLASK_SECRET_KEY, HUB_SESSION_SECRET). Remove AI section from instance env UI; hub saves OPENAI settings to all four .env files. SSO unchanged.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 22:50:58 +08:00
dekun
2e0bde9cc2
Fix settings 500: pop display before building instance settings view.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 21:50:31 +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
4b3373a68d
Fix env config tab clicks via document event delegation
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 21:14:42 +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
0d2ce9c126
Add curated env config UI with Chinese labels and deploy secret bootstrap
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 21:03:00 +08:00
dekun
0b91d26f71
Fix Jinja conflict: rename display meta items to entries
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 20:38:52 +08:00
dekun
68e03ccd97
Fix settings tab 500 and env config grouping in UI
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 20:33:31 +08:00
dekun
aa966114b1
Fix settings and env config stuck on loading via SSR form render
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 20:24:15 +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