dekun
d3753f1aee
Fix Gate price_snapshot 500: define FUNDS_DECIMALS
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 22:27:58 +08:00
dekun
8e1492e4f0
Fix mark/PnL display fallback and intraday entry labels
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 22:19:42 +08:00
dekun
d4a76f05d2
Fix Gate mark/PnL/TP-SL snapshot and intraday order UI
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 22:04:19 +08:00
dekun
4904a86e03
fix: hide hub close/entrust controls for intraday discipline profile
...
Expose intraday_discipline via hub meta and block manual close/tpsl APIs; Gate instance card no longer shows 全平/平仓/委托.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 02:26:22 +08:00
dekun
a268a93027
feat: show force-close badge and countdown when FORCE_CLOSE is enabled
...
Add shared lib/UI for midnight force-close indicator on instance and hub pages, and document Gate intraday 0-point exit alignment.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 02:17:47 +08:00
dekun
fa9e6be36d
feat: show entry type in trade records, remove journal custom entry reason
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 00:49:21 +08:00
dekun
ea429b2694
feat: 趋势户开仓类型大分歧A/B/小分歧,自动联动趋势波段与复盘
...
下单监控增加 entry_model 下拉;平仓写入短标签并预填复盘。Binance/OKX 用趋势 profile,Gate 日内仍用手选 trade_style。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 00:18:38 +08:00
dekun
21894334f8
feat: KEY_AUTO_ORDER_ENABLED 三所统一开关,联动关键位自动单与开仓类型
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-05 23:39:06 +08:00
dekun
f688a504e1
ui: 复盘表单紧凑布局、即时上传截图并移除占用时新开仓
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-05 22:46:05 +08:00
dekun
7bb6ee1154
remove: 全面移除「错过机会」功能与文案
...
删除手动记录表单与 /add_miss;停止自动生成错过类交易记录;列表/统计/顶栏不再展示;复盘卡片改为整行。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-05 22:21:30 +08:00
dekun
88fe4bbe56
feat: 复盘四周期手动上传,移除 AI 识别预填
...
固定 5m/15m/1h/4h 四槽截图上传与详情四宫格展示;自动 K 线默认关闭且与手动上传互斥。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-05 21:57:41 +08:00
dekun
c0ad50a7b5
feat: 账户方向与币种白名单 env 开关(三所)
...
Per-instance TRADE_DIRECTION / TRADE_SYMBOL_WHITELIST restricts UI and API for manual orders, key monitors, and strategies; includes sync script for deployment profiles.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-05 00:30:49 +08:00
dekun
eb975b0133
fix: 交易安全审计修复 — 补偿平仓、中控同步、滚仓/趋势防护
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-04 22:44:16 +08:00
dekun
df28e6dfb8
fix: ccxt Gate 类名 gateio 改为兼容 gate
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-04 22:21:33 +08:00
dekun
687a34474d
feat: 修改委托后展示最新风险,四所持仓卡增加张数
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-02 22:08:27 +08:00
dekun
5797d49d8a
refactor: 将共用代码迁入 lib/ 模块化目录
...
统一 strategy、key_monitor、trade、hub 等共用库到 lib/ 子包,并补充 lib-structure 文档,便于四所与中控维护。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-02 16:23:09 +08:00
dekun
4742a0bb9d
refactor: 移除四所统计分析页交易日历
...
删除日历 UI、bootstrap 与 /api/stats/calendar 注册;保留日/周/月统计表。内照明心档案日历不受影响。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-30 09:51:10 +08:00
dekun
32079bb4c2
fix: 修复统计日历 bootstrap 导致整站 500
...
日历数据改为安全 JSON 内嵌,仅统计页构建;构建失败时降级为空,避免拖垮其他页面。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-30 09:24:54 +08:00
dekun
3b687d17eb
fix: 统计日历服务端内嵌 bootstrap,首屏显示盈亏与笔数
...
与月统计同源 initial_calendar 写入页面,API 失败时仍渲染;四所日历路由独立注册并传入 get_db_fn。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-30 09:13:58 +08:00
dekun
14dbf25798
feat: 档案统计独立卡片、共用交易日历与四所统计页日历
...
内照明心统计表移至顶部卡片,右侧为日历/图表/交易记录;日历样式适配浅深主题,四所统计分析页同步展示按月盈亏日历。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-30 08:17:53 +08:00
dekun
6b872b1f43
feat: 内照明心交易日历与交易所口径成交额/手续费统计
...
新增按 08:00 切日的月历(盈亏、笔数、犯病日高亮与点击筛选);平仓时从交易所 fill 写入双边成交额与手续费,统计表与明细同步展示。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-30 08:05:46 +08:00
dekun
865567fbd3
fix: add_key 允许突破触价开仓类型通过白名单校验
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-29 20:55:51 +08:00
dekun
a0d57fc65e
fix: 箱体/收敛突破标记价反向越界时自动撤销监控
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-29 10:54:36 +08:00
dekun
5b3448b52b
feat: 关键位回调/突破触价开仓拆分与穿越触发
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-29 10:49:43 +08:00
dekun
d467760d5c
顺势加仓 v2:程序监控滚仓、文档页与平仓同步
...
重写滚仓计仓与四种加仓方式(市价/斐波/突破),程序盯 mark 触价成交;风险读监控单;pending 可删不可改;手动平仓同步结束滚仓。新增 /strategy/roll/docs 说明页与顺势加仓滚仓说明.md。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-26 22:03:23 +08:00
dekun
448e88ec55
Count instance win rate by positive PnL and show external closes as manual close.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-25 22:27:52 +08:00
dekun
2dadd93d91
Fix embed date filter reload and classify profitable stops as trailing TP.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-25 11:27:42 +08:00
dekun
6ffae02d30
Allow roll add-ons while position-limit freeze is active.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 02:08:44 +08:00
dekun
9d1986d771
Exclude trend and roll monitors from position-limit freeze count.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 02:04:09 +08:00
dekun
322060de31
Show position-limit freeze on hub and instance risk badges.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 01:58:24 +08:00
dekun
384d404bb3
Slim embed tab rendering to cut memory use and restore calculator.
...
Load only per-tab data for embed fragments, skip exchange capital fetches on tab switches, and harden calculator market imports/timeouts.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 01:33:42 +08:00
dekun
4ad335ca84
Add hub iframe embed shell with tab fragment API.
...
Replace full-page soft nav with a persistent shell and /api/embed/page loads so tab switches in the hub iframe avoid document.write flicker.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 01:13:34 +08:00
dekun
813ebf0e4e
Skip exchange PnL sync on hub iframe soft nav to fix slow records tab.
...
Remove hover prefetch and mark soft-nav fetches so Gate/OKX render pages from local DB without blocking on exchange history sync.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 00:39:54 +08:00
dekun
5e507d0b66
Use hub exchange instances for calculator contract precision.
...
Load enabled instances from settings, fetch market info via /api/hub/market, and apply exchange-specific amount and price precision in trend and roll calculators.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-23 18:13:02 +08:00
dekun
bd759c42d6
Use lightweight ticker APIs for liquidity rank to cut memory.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-21 09:24:27 +08:00
dekun
073a382d41
Unify key support/resistance monitor type and fix form parity.
...
Merge 关键阻力位/关键支撑位 into 关键支撑阻力, share key_monitor_form.js across hub and new-tab views, and add hub shortcut to /key_monitor.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-19 08:31:14 +08:00
dekun
97370926d6
feat(risk): show live countdown on freeze status badges
...
Expose freeze_until_ms from risk API and tick hub/instance badges with remaining 1h/4h/daily time.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-18 17:41:04 +08:00
dekun
0280b4f065
fix(risk): shorten cooloff on review save and when count was reset
...
Allow 1h reduction for any active 4h-tier cooloff, hook trade record review updates, and fix freeze label thresholds.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-18 16:35:51 +08:00
dekun
b6acbf4b2c
fix(risk): trigger cooldown only on user-initiated closes
...
Remove external-close risk hooks; register user_instance, user_hub, and user_trend_stop via hub API and trend stop; update docs and tests.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-17 19:14:05 +08:00
dekun
e307eef690
feat(risk): add account cooldown and daily freeze after manual/external close
...
Implements shared account_risk_lib with 4h/1h cooloff and daily freeze rules, wires hooks into all four exchange apps and hub monitor UI, with tests and docs.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-17 17:05:19 +08:00
dekun
b77741ee21
fix(order): hide RR preview in fixed-RR mode and serve shared JS
...
manual_order_rr_preview.js was not routed from repo static/, so hide logic never ran. Add Flask routes on four exchanges, default hidden in HTML, and toggleSltpMode visibility.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-17 10:59:45 +08:00
dekun
869728ce10
feat: archive trades by close time and show open time on live positions
...
Sort inner-archive daily trades by closed_at_ms; add open time and live hold duration to instance and hub position cards, with exchange margin on hub footer.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-15 06:20:18 +08:00
dekun
4573ccca9a
fix(key-monitor): repair trigger entry bugs in four exchange apps
...
Restore missing check_fib_key_monitors, fix gate preview and OKX add_key,
and unify trigger execution error handling to avoid duplicate history writes.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-14 01:06:53 +08:00
dekun
edf4bb835d
feat(key-monitor): add program trigger entry across four exchanges
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-14 00:42:21 +08:00
dekun
309eebc61d
feat: add time-close option to journal exit trigger dropdown
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-11 22:28:04 +08:00
dekun
44c3703f07
feat: include time-close result in hub sync and instance trade records
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-11 22:18:12 +08:00
dekun
959593cdab
feat: add timed position close (1h/2h/4h) for key levels and live orders
...
Program monitors open positions and market-closes at deadline; UI shows label and countdown on instance and hub boards.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-11 19:30:16 +08:00
dekun
324aa1c5c6
fix: include created_at in price_snapshot key monitor query
...
Avoid IndexError when rendering false breakout gate preview after the gate UI change.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-11 08:26:15 +08:00
dekun
fa59fc1273
fix: show limit-order gate for false breakout monitors
...
False breakout used box/convergence volume/break gates in the UI; now shows pending limit order status like fib monitors.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-11 08:22:41 +08:00
dekun
3bdf7cf384
fix: show box/convergence breakout labels in key level trade records
...
Persist 箱体突破/收敛突破 as key_signal_type and backfill historical records on startup.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-11 08:11:57 +08:00