jackyu66git
|
c2489614a7
|
Phase 2: Web dashboard with SSE real-time push
- dashboard.go: SSE hub + HTTP server + price history ring buffer
- static.go: //go:embed for static files
- web/static/index.html: Full dashboard HTML (6 panels)
- web/static/app.js: SSE client, Chart.js price chart, live table updates
- web/static/style.css: GitHub-style dark theme
- main.go: Start dashboard on :8888 + wire price recording + scan results
Dashboard features:
- Real-time price table (6 coins × 4 exchanges)
- Arbitrage opportunities table
- Open positions view
- Historical trades table (from SQLite)
- Chart.js price chart with coin/exchange selector
- Stats summary (total/converged/diverged/flat)
- 🚫 Zero external Go dependencies (Chart.js loaded from CDN)
|
2026-05-03 17:38:26 +08:00 |
|
jackyu66git
|
0c1eaedcb6
|
Fix: remove DB from git tracking, add to gitignore
|
2026-05-03 17:28:30 +08:00 |
|
jackyu66git
|
b09314f317
|
Phase 1: SQLite persistence layer
- Add modernc.org/sqlite (pure Go, no CGO)
- db/ package: trades, orders, config_log tables + CRUD
- Trade persistence: every closed trade saved to SQLite
- Restart recovery: open positions restored from DB
- Automatic migration on startup
|
2026-05-03 17:28:08 +08:00 |
|
jackyu66git
|
189fc0d9b6
|
Add HOT/WARM/COLD data tier to design doc
|
2026-05-03 17:16:01 +08:00 |
|
jackyu66git
|
8861304390
|
Add complete dashboard design doc: SQLite schema, REST API, SSE, frontend layout
|
2026-05-03 17:13:24 +08:00 |
|
jackyu66git
|
128ed07aee
|
Add README with architecture, config, and trading logic documentation
|
2026-05-03 16:56:44 +08:00 |
|
jackyu66git
|
719f0a061d
|
Initial commit
|
2026-05-03 16:54:36 +08:00 |
|