dekun
94c566fbe5
Allow scheduled CTP connect when auto-connect setting is off.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-29 20:38:30 +08:00
dekun
c5262a0a54
Add responsive mobile layout, records cards, and tablet settings fold fix.
...
Mobile gets compact trade/records UI with detail modals; static assets are cache-busted and settings cards fold correctly on tablet grid layout.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-29 16:42:38 +08:00
dekun
840e88daad
Add key-level auto trade, AI analysis, and trading UX improvements.
...
Key monitors use 5m close triggers with WeChat alerts and box/convergence auto orders; add pending-order worker, structured WeChat notify, AI settings/messages, session clock, CTP margin sizing, and dual-layer position limits.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-28 10:36:56 +08:00
dekun
9613fb0737
Fix turbo nav for settings and stats pages.
...
Extract settings.js, preserve inline scripts from raw HTML (DOMParser strips them), and load trade config via JSON script tag.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-26 21:26:15 +08:00
dekun
631aa2c0ab
Add CTP auto-connect toggle to stop off-hours reconnect attempts.
...
When disabled, disconnect immediately and skip auto-reconnect, premarket connect, and TCP probes that fail outside SimNow trading hours.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-26 18:53:49 +08:00
dekun
382a9a0e14
Use Sina-only market K-lines and editable admin login synced to .env.
...
Market page uses Sina for quotes and bars with an auto-follow toggle and incremental chart updates while panning. Settings lets users change username and password, persisting to the database and .env.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-26 13:53:12 +08:00
dekun
6905373401
Make settings cards collapsible and tighten backup layout.
...
All settings sections fold by default with persisted state; backup and password sit in one compact row.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-26 13:10:43 +08:00
dekun
98239d29c1
Add automatic database backup with download and restore docs.
...
Back up futures.db and uploads to /root/qihuo_backup on a daily schedule, expose backup downloads in settings, and document cross-server restore.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-26 13:04:48 +08:00
dekun
4eb5709d71
Rebrand product and enhance tradable symbols table with spec columns and K-line links.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-26 03:18:42 +08:00
dekun
ab9987e4c7
Add personal license agreement and rename product section to tradable symbols.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-26 02:52:45 +08:00
dekun
bdfa21def8
Rename positions nav to order monitor and set as default landing page.
...
Remove stats recalculate button; login and home now open /positions without affecting refresh on other routes.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-26 01:51:22 +08:00
dekun
a23f2c80ca
Track open orders as pending until CTP fill, with cancel and timeout.
...
Add configurable pending timeout in settings and clearer CTP password save feedback.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-26 00:05:45 +08:00
dekun
ca541d5fc3
Auto-reconnect CTP with new front-end addresses after saving settings
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-25 17:51:18 +08:00
dekun
aba67a3d16
Compact CTP settings form into 3-row grid per card
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-25 17:16:52 +08:00
dekun
47dd946d66
fix: CTP 设置 SimNow/实盘卡片改为左右并列显示
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-25 17:11:54 +08:00
dekun
480000e195
feat: 系统设置 CTP 连接拆分为 SimNow/实盘可折叠卡片
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-25 17:09:56 +08:00
dekun
5a6c89c662
feat: CTP/SimNow 配置迁入系统设置,登录失败即时报错
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-25 16:46:01 +08:00
dekun
de74ffe5b9
fix: 持仓卡片布局优化、闭盘禁用平仓、固定金额step修复
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-25 15:41:35 +08:00
dekun
9772f3d986
feat: 计仓改为固定手数/固定金额,推荐过滤与CTP保证金,下单与持仓UI优化
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-25 15:31:34 +08:00
dekun
f31164076f
feat: 非交易时段禁开仓、移动保本与交易结果分类。
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-25 13:33:17 +08:00
dekun
074551490f
fix: 品种推荐改为最大手数并补算旧缓存。
...
- 最大手数 = floor(权益×保证金上限%÷1手保证金)
- 加载与 SSE 推送时实时补算,旧缓存缺字段时自动刷新
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-25 12:24:10 +08:00
dekun
9875ee6d44
本地监控止盈止损、盘前自动连CTP,并完善保证金与推荐手数。
...
- 止盈止损改为程序本地监控,触发后市价平仓(含跳空)
- 交易前30分钟后台自动连接 CTP
- 保证金占用上限默认30%,可在系统设置修改
- K线标准蜡烛图红跌绿涨,费率表全宽固定表头
- 品种推荐按保证金比例×总资金计算推荐手数
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-25 12:18:18 +08:00
dekun
09f4649d79
ui: 系统设置卡片对齐,策略页说明与布局完善
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 13:10:21 +08:00
dekun
eaca3d43ec
ui: 手续费/设置布局优化,行情优先 CTP
...
手续费数据源与本地倍率并列双列;设置页去掉参考资金、缩小改密表单;CTP 连接时订阅柜台 tick 作为行情源。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 13:04:11 +08:00
dekun
67683f5562
ui: 顶栏透明、设置两列、下单与持仓监控优化
...
导航栏与页面背景一致;系统设置双列布局;下单三行表单与开仓状态反馈;持仓卡片增加平仓与止盈止损挂单展示。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 12:46:23 +08:00
dekun
528d9811e3
feat: 导航开关与 CTP 柜台手续费
...
系统设置可开关五类导航;手续费默认从 CTP 查询同步,本地/AKShare 作离线兜底;补充 FEES.md。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 12:19:56 +08:00
dekun
7b8a660309
合并期货下单与持仓监控为统一界面,移除手工录入。
...
策略与 CTP 自动同步持仓,新增 /api/trading/live 聚合展示与平仓接口。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 10:18:00 +08:00
dekun
6e423eebfb
接入 SimNow 模拟盘与期货下单、策略及品种推荐功能。
...
新增 vnpy CTP 桥接、以损定仓/固定张数、趋势回调与滚仓策略、按资金推荐品种及交易风控;模拟盘走 SimNow,实盘预留期货公司配置。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 10:04:37 +08:00
dekun
5aa9f11733
持仓监控平仓自动记入交易记录,新增交易记录页与实盘资金设置
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-15 14:56:21 +08:00
dekun
db2443273f
深色浅色主题切换;去掉新浪行情徽章;科技感卡片样式
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-15 13:04:48 +08:00
dekun
a35a08d2f6
复盘盈亏比自动计算与K线自动生成;居中页头导航
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-15 12:58:24 +08:00
dekun
314d3206c0
默认新浪行情,普通用户无需同花顺token
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-15 11:16:51 +08:00
dekun
fb61153a4d
部署改回/opt;接入同花顺iFinD HTTP行情,新浪作回退
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-15 11:14:10 +08:00
dekun
ae480cb3e7
重构期货监控系统:多页面导航、开单计划、Ubuntu PM2 部署
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-15 11:04:11 +08:00