2026-09-03 11:33:43 +08:00
|
|
|
from __future__ import annotations
|
2026-08-28 18:52:27 +08:00
|
|
|
|
2026-09-03 11:33:43 +08:00
|
|
|
from .models import Tick
|
2026-08-28 18:52:27 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class DataMixin:
|
2026-09-03 11:33:43 +08:00
|
|
|
def full_tick(self, stocks: list[str]) -> dict[str, Tick]:
|
|
|
|
|
data = self._post_json("/api/data/full_tick", {"stocks": stocks}) or {}
|
|
|
|
|
return {code: Tick.from_dict(value) for code, value in data.items()}
|