-
658982d2b9
Speed up CTP account display: refresh equity on fast snapshot without waiting for full position sync.
main
dekun
2026-07-01 15:02:37 +08:00
-
a34bcb6bfc
Fix test_simnow.py imports for modules layout and config/.env.
dekun
2026-07-01 14:47:27 +08:00
-
e5a586f903
Restructure into modules/ with single-process CTP and config/ layout.
dekun
2026-07-01 14:42:16 +08:00
-
b354d6c701
Document Git-only deploy workflow and reduce positions page IPC blocking.
dekun
2026-07-01 14:05:37 +08:00
-
7748a88219
Fix positions page hang from blocking CTP IPC and SSE lock wait.
dekun
2026-07-01 13:33:59 +08:00
-
5aba31f530
Fix position SSE JSON serialization for datetime fields.
dekun
2026-07-01 13:27:46 +08:00
-
95156ca595
Update docs for CTP worker split and roll breakout off-session.
dekun
2026-07-01 12:56:27 +08:00
-
9cd81a3ea7
Isolate CTP in worker process and improve strategy roll UX.
dekun
2026-07-01 12:35:47 +08:00
-
08d55411aa
Simplify account_risk_state DDL for PostgreSQL compatibility.
dekun
2026-07-01 08:31:17 +08:00
-
cd636ff1c3
Fix account_risk_state missing on PostgreSQL: probe table before cache skip.
dekun
2026-07-01 08:29:46 +08:00
-
d7ea7b9e8a
Inline account_risk_state DDL in init_db; use autocommit for migration.
dekun
2026-07-01 08:26:13 +08:00
-
06fbff04a7
Ensure account_risk_state table exists even if schema flag was set.
dekun
2026-07-01 08:25:07 +08:00
-
ef790c8a80
Fix migration: per-table connections and skip non-serial setval.
dekun
2026-07-01 08:24:27 +08:00
-
6abe06d935
Ensure all PG tables on init; fix migration commits per table.
dekun
2026-07-01 08:22:54 +08:00
-
e418c2dcec
Fix SQLite migration: no app import, commit per table.
dekun
2026-07-01 08:22:21 +08:00
-
1bb0028402
Import rollback_if_postgres in strategy_db for PostgreSQL migrations.
dekun
2026-07-01 08:21:35 +08:00
-
8e1baf9a73
Commit each schema migration separately on PostgreSQL.
dekun
2026-07-01 08:20:49 +08:00
-
47ee9602d1
Use direct PostgreSQL connections instead of pool to fix init deploy.
dekun
2026-07-01 08:19:46 +08:00
-
843b68b412
Stop PM2 before PostgreSQL init to free connection pool.
dekun
2026-07-01 08:17:29 +08:00
-
2347276bf4
Fix PostgreSQL schema init: commit DDL before ALTER migrations.
dekun
2026-07-01 08:15:31 +08:00
-
008f042fcc
Fix init-only mode for PostgreSQL deploy script imports.
dekun
2026-07-01 08:14:43 +08:00
-
a1f22624de
Harden PostgreSQL deploy: auto-rollback on SQL errors, clean DB on migrate.
dekun
2026-07-01 08:13:51 +08:00
-
bc79ad308c
Fix PostgreSQL init_db: rollback after benign schema migration errors.
dekun
2026-07-01 08:13:14 +08:00
-
1b276b5897
Fix PostgreSQL DDL: use single-quoted DEFAULT literals.
dekun
2026-07-01 08:12:34 +08:00
-
52aca456e9
Add PostgreSQL production backend to eliminate SQLite lock contention.
dekun
2026-07-01 08:11:42 +08:00
-
39eac983ff
Fix positions and records pages hanging on load.
dekun
2026-06-30 23:31:13 +08:00
-
1b3a7f1bdc
Fix position flicker, drop futures cooloff, prioritize startup display.
dekun
2026-06-30 23:17:18 +08:00
-
2386eca324
Fix stats max profit/loss to use win/loss subsets only.
dekun
2026-06-30 22:28:46 +08:00
-
d324d30332
Schedule CTP disconnect 30 minutes after day and night session close.
dekun
2026-06-30 22:14:39 +08:00
-
32838daae0
Align trade record verify/edit UX with Binance instance single-row prompts.
dekun
2026-06-30 22:02:48 +08:00
-
b6b7bfb248
Add close price column to trade records for overnight position PnL review.
dekun
2026-06-30 21:51:53 +08:00
-
4552f4ef9c
Default equity chain baseline to 100k when live_capital unset.
dekun
2026-06-30 21:44:15 +08:00
-
0b924fca87
Fix trade log equity_after to chain from initial capital by close time.
dekun
2026-06-30 21:41:37 +08:00
-
8d2d09396b
Fix missing trade log after manual close when CTP is connected.
dekun
2026-06-30 21:23:44 +08:00
-
e5f264b774
Increase trade calendar cell font sizes for readability.
dekun
2026-06-30 12:11:57 +08:00
-
726ed7adef
Add standalone trade calendar page with solar and lunar dates.
dekun
2026-06-30 12:07:58 +08:00
-
8ebad6e8a2
Add stats trading calendar and fix CTP position avg/sync.
dekun
2026-06-30 11:59:25 +08:00
-
d07fc4b70d
Prefer CTP PnL-consistent entry when vnpy avg differs from SimNow.
dekun
2026-06-30 10:51:16 +08:00
-
e6208e403e
Fix roll average entry: CTP trade-weighted avg, sync after fill, live entry for preview.
dekun
2026-06-30 10:42:56 +08:00
-
6e954da4e1
Lock CTP entry price from position PnL snapshot; match SimNow avg and float PnL.
dekun
2026-06-30 10:36:06 +08:00
-
6c68808318
Stop entry price jumping: use fixed CTP position avg, not tick-derived.
dekun
2026-06-30 10:10:54 +08:00
-
fb23ee891c
Resolve position average entry from CTP trades and PnL instead of stale monitor cache.
dekun
2026-06-30 09:59:02 +08:00
-
2f58159372
Fix slow positions and DB lock on fast live refresh by skipping writes.
dekun
2026-06-30 09:29:42 +08:00
-
ec4199b82c
Restore stop-loss and take-profit monitors after restart and CTP reconnect.
dekun
2026-06-30 09:24:37 +08:00
-
963ed141e5
Persist CTP average entry price to monitor DB on every position sync.
dekun
2026-06-30 09:22:10 +08:00
-
f41276806e
Sync displayed entry price from CTP exchange position average.
dekun
2026-06-30 09:19:27 +08:00
-
c8fef65de7
Fix float PnL to match displayed entry price and contract multiplier.
dekun
2026-06-30 09:14:13 +08:00
-
92c222584e
Show tablet trade records as close-record table with action column.
dekun
2026-06-30 00:12:10 +08:00
-
a6b3c4a657
Align tablet trade records with close-record layout and row actions.
dekun
2026-06-30 00:05:33 +08:00
-
21d68f6269
Use compact single-row trade records on tablet with detail modal.
dekun
2026-06-29 23:59:02 +08:00
-
9dbf6b1f1e
Fix position cards, breakeven badge, and tablet equal-height layout.
dekun
2026-06-29 23:47:59 +08:00
-
c6c6c3fe83
Replace K-line SMA with configurable EMA periods.
dekun
2026-06-29 23:17:18 +08:00
-
2f5b5c4aae
Fix dashboard mobile load issues and simplify card layout.
dekun
2026-06-29 23:10:20 +08:00
-
d1ad0f9253
Improve dashboard responsive layout, collapsible risk section, and breakeven badge.
dekun
2026-06-29 22:50:48 +08:00
-
8b4b1a875c
Fix composite margin ratio cap at 50% and add risk guide page with nav toggle.
dekun
2026-06-29 22:29:13 +08:00
-
9a10ac8a51
Improve dashboard risk card styling, colors, and add risk control docs.
dekun
2026-06-29 22:14:11 +08:00
-
d8c6428eb5
Enhance dashboard with exchange labels, split SL/TP columns, and daily risk limits.
dekun
2026-06-29 22:04:44 +08:00
-
b460c6c4e5
Enhance dashboard with contract symbols and risk control overview.
dekun
2026-06-29 21:40:53 +08:00
-
28c54b1a3f
Add real-time data dashboard with account, positions, keys, and closes.
dekun
2026-06-29 21:30:33 +08:00
-
df79017b30
Stream real-time position quotes via tick-driven SSE with incremental UI updates.
dekun
2026-06-29 21:14:41 +08:00
-
94c566fbe5
Allow scheduled CTP connect when auto-connect setting is off.
dekun
2026-06-29 20:38:30 +08:00
-
c5262a0a54
Add responsive mobile layout, records cards, and tablet settings fold fix.
dekun
2026-06-29 16:42:38 +08:00
-
44bec23296
Add futures roll strategy with breakout monitoring and fixed-amount sizing.
dekun
2026-06-29 12:05:21 +08:00
-
7ce59d2d71
Detect 10:15-10:30 morning break in trading session clock.
dekun
2026-06-29 10:27:21 +08:00
-
19676943d0
Align margin display with CTP counter rates and position margin.
dekun
2026-06-29 10:21:44 +08:00
-
71c480a587
Deduct open position margin from recommend max lots.
dekun
2026-06-29 09:39:42 +08:00
-
fd2dba22fd
Add trailing BE to SL/TP dialog and speed up position refresh.
dekun
2026-06-29 09:32:56 +08:00
-
d366344b0f
Fix trailing break-even stop loss not linked to CTP positions.
dekun
2026-06-29 09:26:54 +08:00
-
45ae57ed43
Fix lot preview crash and improve key monitor WeChat alerts.
dekun
2026-06-29 09:21:27 +08:00
-
b02c9d6ca0
Fix empty recommend list and CTP premarket auto-connect.
dekun
2026-06-29 08:24:10 +08:00
-
f8ff97f93d
Add collapsible rule descriptions to trade, strategy, and key pages.
dekun
2026-06-29 07:46:58 +08:00
-
4d2463c9a9
Show Tonghuashun symbol meta inline after the variety label.
dekun
2026-06-29 07:34:05 +08:00
-
bfb1b95471
Improve key monitor form with bar period, box direction, and labeled fields.
dekun
2026-06-29 07:24:36 +08:00
-
169136dd4a
Add modular docs with index, WeChat templates, and AI guide.
dekun
2026-06-28 10:49:10 +08:00
-
840e88daad
Add key-level auto trade, AI analysis, and trading UX improvements.
dekun
2026-06-28 10:36:56 +08:00
-
0109b59f27
Use 100k equity for recommend list when CTP is offline.
dekun
2026-06-28 09:16:22 +08:00
-
e18d5feb72
Apply 200k scope when CTP offline; trailing breakeven order UX.
dekun
2026-06-27 23:57:11 +08:00
-
4f4c4bb9fc
Fix missing recommend_payload import; raise small-account cap to 200k.
dekun
2026-06-27 23:27:19 +08:00
-
7bb80ba538
Limit tradable products to four varieties for accounts at or below 100k.
dekun
2026-06-27 23:18:27 +08:00
-
24190bf679
Add period selector and crypto-style trend plan preview table.
dekun
2026-06-26 22:52:47 +08:00
-
d3b92de703
Fix trend strategy symbol input clearing on every keystroke.
dekun
2026-06-26 22:40:33 +08:00
-
69cf94d1df
Fix symbol dropdown broken by JS syntax error in symbol.js.
dekun
2026-06-26 22:31:46 +08:00
-
7f8b4cfefd
Label night-session products and hide day-only symbols at night.
dekun
2026-06-26 22:27:47 +08:00
-
f2940d41e9
Fix stale pending orders after CTP rejection or cancel.
dekun
2026-06-26 22:21:15 +08:00
-
fd49b08c08
Disable turbo client navigation to fix broken page layouts.
dekun
2026-06-26 22:05:04 +08:00
-
9613fb0737
Fix turbo nav for settings and stats pages.
dekun
2026-06-26 21:26:15 +08:00
-
6d55a54946
Fix turbo nav layout flash and stats page not loading.
dekun
2026-06-26 20:55:36 +08:00
-
c79bb2ea4b
Speed up top nav with turbo routing and external base CSS.
dekun
2026-06-26 20:47:22 +08:00
-
ddfe2a52aa
Merge orders and positions into one card and hide stale pending when CTP is off.
dekun
2026-06-26 19:24:24 +08:00
-
631aa2c0ab
Add CTP auto-connect toggle to stop off-hours reconnect attempts.
dekun
2026-06-26 18:53:49 +08:00
-
3a150dd3d6
Implement CTP-authoritative trading UI with event-driven state.
dekun
2026-06-26 18:12:11 +08:00
-
4ef33a367f
Fix CTP exchange routing for non-SHFE contracts and duplicate trade closes.
dekun
2026-06-26 14:06:49 +08:00
-
382a9a0e14
Use Sina-only market K-lines and editable admin login synced to .env.
dekun
2026-06-26 13:53:12 +08:00
-
6905373401
Make settings cards collapsible and tighten backup layout.
dekun
2026-06-26 13:10:43 +08:00
-
98239d29c1
Add automatic database backup with download and restore docs.
dekun
2026-06-26 13:04:48 +08:00
-
508d85a282
Fix SQLite lock errors on /api/stats under concurrent writes.
dekun
2026-06-26 12:23:33 +08:00
-
d3955309d9
Persist CTP margin, ratio, and fees to DB; use exchange commission in trade logs.
dekun
2026-06-26 11:36:56 +08:00
-
9a55c61678
Align position margin with account balance and show deducted open commission only.
dekun
2026-06-26 11:26:41 +08:00
-
038eb9a403
Use CTP contract margin rates for position margin and ratio display.
dekun
2026-06-26 11:14:01 +08:00
-
7a4a3f08e5
Fix slow CTP position sync after restart and link positions to 15m K-line.
dekun
2026-06-26 11:05:13 +08:00