Fundamental_Analysis/services/data-persistence-service/assets/style.css
Lv, Qi 21155bc4f8 feat(realtime): 接入前端实时报价并完善后端缓存
前端: 新增 RealTimeQuoteResponse 类型;新增 useRealtimeQuote Hook 并在报告页图表旁展示价格与时间戳(严格 TTL,无兜底)

FastAPI: 新增 GET /financials/{market}/{symbol}/realtime?max_age_seconds=.. 只读端点;通过 DataPersistenceClient 读取 Rust 缓存

Rust: 新增 realtime_quotes hypertable 迁移;新增 POST /api/v1/market-data/quotes 与 GET /api/v1/market-data/quotes/{symbol}?market=..;新增 DTO/Model/DB 函数;修正 #[api] 宏与路径参数;生成 SQLx 离线缓存 (.sqlx) 以支持离线构建

Python: DataPersistenceClient 新增 upsert/get 实时报价,并调整 GET 路径与参数

说明: TradingView 图表是第三方 websocket,不受我们缓存控制;页面数值展示走自有缓存通路,统一且可控。
2025-11-09 05:12:14 +08:00

29 lines
565 B
CSS

body, html {
margin: 0;
padding: 0;
height: 100%;
background-color: #1e1e1e;
color: #d4d4d4;
font-family: Menlo, Monaco, 'Courier New', monospace;
}
h1 {
padding: 10px 20px;
margin: 0;
font-size: 1.2em;
border-bottom: 1px solid #333;
}
#terminal {
width: calc(100% - 40px);
height: calc(100vh - 80px); /* Adjust based on h1 height */
padding: 20px;
font-size: 14px; /* Ensure consistent font size */
line-height: 1.4; /* Better line spacing */
}
.xterm .xterm-viewport {
width: 100% !important;
}