看股功能更新
This commit is contained in:
@@ -18,6 +18,8 @@ class CandleOut(BaseModel):
|
||||
low: float
|
||||
close: float
|
||||
volume: float
|
||||
amount: float | None = None # 成交额(元);无数据为 null
|
||||
turnover: float | None = None # 换手率 %;无数据为 null
|
||||
|
||||
model_config = {"from_attributes": True}
|
||||
|
||||
@@ -264,6 +266,7 @@ class PreviewResponse(BaseModel):
|
||||
candles: list[CandleOut]
|
||||
indicators: dict[str, dict[str, list[float | None]]] = Field(default_factory=dict)
|
||||
# indicators 形如 {"ma": {"ma5": [...], ...}, "macd": {"dif": ...}, "kdj": {...}, "rsi": {...}, "boll": {...}}
|
||||
has_more: bool = False # 返回窗口之前是否还有更早历史(前端向左滚动翻页用)
|
||||
|
||||
|
||||
# ---------- Auth ----------
|
||||
|
||||
Reference in New Issue
Block a user