Stop auto-closing the print tab on afterprint (short checklist pages were especially fragile), load print HTML via fetch into a blank window, and use CSS checkboxes instead of Unicode ballot boxes.
Co-authored-by: Cursor <cursoragent@cursor.com>
API enriches entry/SL/TP with price_to_precision display strings; OKX formatter now uses the same path as Gate/Binance.
Co-authored-by: Cursor <cursoragent@cursor.com>
Expose KEY_AUTO_ORDER_ENABLED and KEY_AUTO_MIN_PLANNED_RR under 交易执行 so the frontend matches the settings readout.
Co-authored-by: Cursor <cursoragent@cursor.com>
Exclude journal-form from InstanceEmbed submit reload, stopImmediatePropagation on AJAX save, and force-reload trades when the table is stuck on loading.
Co-authored-by: Cursor <cursoragent@cursor.com>
Delegate submit handling for late-mounted #journal-form across OKX/Binance/Gate, avoid full reload fallback, and soft-refresh trade rows after save.
Co-authored-by: Cursor <cursoragent@cursor.com>
Defer exchange chart generation to a background thread and save via XHR so fill-from-trade no longer blocks on full page reload.
Co-authored-by: Cursor <cursoragent@cursor.com>
Monitor board only needs positions, balances, and targets; drop the OKX positions-history pull each poll, and surface timeout errors via msg.
Co-authored-by: Cursor <cursoragent@cursor.com>
Background poll builds a memory snapshot; the page reads snapshot and refreshes on SSE instead of hitting heavy exchange APIs on each load.
Co-authored-by: Cursor <cursoragent@cursor.com>
Manage menu 4/5/6 install OKX/Binance/Gate Flask only without hub or agents; reuse setup_env --only and narrowed PM2 verify.
Co-authored-by: Cursor <cursoragent@cursor.com>
Unify hub/instance TP profit, calc_pnl, and push/accounting to net of 0.05% per side; leave exchange floating PnL unchanged.
Co-authored-by: Cursor <cursoragent@cursor.com>
Match hedge/roll/trend/order/key monitors for source badges, show option target monitors in green, and refresh the dashboard with the board 5s cycle.
Co-authored-by: Cursor <cursoragent@cursor.com>
Drop per-exchange fund metrics and render open positions as labeled tables while keeping closed-trade details.
Co-authored-by: Cursor <cursoragent@cursor.com>
Show selected-day trades under the calendar without tab jumps, put trades first, and open the chart only via toolbar or row actions.
Co-authored-by: Cursor <cursoragent@cursor.com>
Switch hub 内照明心 to a single-column tab layout and auto-show that day's closed trades under the quote form for AI review context.
Co-authored-by: Cursor <cursoragent@cursor.com>
Parse alternate reasoning fields, retry with a larger max_tokens budget, cap review images, and fall back to text-only when vision returns empty.
Co-authored-by: Cursor <cursoragent@cursor.com>
POST /ai_daily_review was returning 504 while the model was still running; patch BT reverse-proxy read/send timeouts to 360s on deploy.
Co-authored-by: Cursor <cursoragent@cursor.com>
Always SSR records summary on embed shell (including settings/risk/env), and refresh total/win-rate/PL ratio via account_snapshot so soft-nav cannot leave the strip blank.
Co-authored-by: Cursor <cursoragent@cursor.com>
Show 进行中 in green for active hedges; options columns include source/target/expiry; merge live mark/contracts/pnl from price snapshot.
Co-authored-by: Cursor <cursoragent@cursor.com>
Read-only overview of live orders, key monitors, and strategy; show options/hedge only when present. Toggle via system settings nav prefs.
Co-authored-by: Cursor <cursoragent@cursor.com>
Desktop journal list now uses columns for coin, direction, PnL, times, and actions instead of stacked entry cards.
Co-authored-by: Cursor <cursoragent@cursor.com>
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>
Move funds scrolling to body, keep monitor/market on a full-width shell, and stretch other desktop shells so page scroll is never inset.
Co-authored-by: Cursor <cursoragent@cursor.com>
Make the funds stage scrollable, give the equity chart a fixed height so date labels fit, and stop truncating account cards without a scrollbar.
Co-authored-by: Cursor <cursoragent@cursor.com>
Drop the 42vh chart cap, let the curve fill remaining height, and scroll account cards so the curve is not clipped.
Co-authored-by: Cursor <cursoragent@cursor.com>
Restore app-shell to full-viewport height for flex charts, and stretch the shell full width so the scrollbar stays at the window edge.
Co-authored-by: Cursor <cursoragent@cursor.com>