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>
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>
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>
Show five pending trades per page, reveal the upload form only after clicking 复盘, and list saved reviews with image detail above stats.
Co-authored-by: Cursor <cursoragent@cursor.com>
Pure options and hedge plans use separate strategy/entry selects, with auto-filled direction and PnL result including breakeven.
Co-authored-by: Cursor <cursoragent@cursor.com>
Hide deleted rows by history key and contract/close fingerprint so local options_trades imports no longer resurrect them.
Co-authored-by: Cursor <cursoragent@cursor.com>
Drop exchange sync for the review page, auto-import closed local options and hedge plans, and match contract-style multi-timeframe upload styling with smaller fonts.
Co-authored-by: Cursor <cursoragent@cursor.com>
Keep the multi-timeframe journal card visible like contract review instead of hiding it until a row is selected.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add source-type tabs, open an inline journal form from list rows, and match contract-style 5m/15m/1h/4h screenshot slots.
Co-authored-by: Cursor <cursoragent@cursor.com>
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>
Block mark-as-ask opens, show reference mark when no depth, cap sheets to ask size; leave close paths unchanged. Document in docs/更新文档.md.
Co-authored-by: Cursor <cursoragent@cursor.com>