mirror of
https://ghfast.top/https://github.com/aeroxw/easy-tdx.git
synced 2026-09-12 19:14:16 +08:00
- Add EventBus for async publish/subscribe market events - Add MarketEvent dataclass with tick/bar/signal/error types - Add RealtimeStrategy base class with on_tick/on_bar callbacks - Add emit_signal() for strategy-to-engine signal publishing - Support per-symbol and global subscriptions - API skeleton: transport-level subscription TBD - Add 10 tests covering events, bus, and strategy
11 lines
318 B
Python
11 lines
318 B
Python
"""实时数据推送模块。
|
|
|
|
提供事件驱动的行情推送框架,基于 asyncio 实现。
|
|
这是 API 骨架设计,实际协议层订阅功能待实现。
|
|
|
|
核心组件:
|
|
- EventBus: 事件总线,发布/订阅行情事件
|
|
- RealtimeStrategy: 实时策略基类
|
|
- MarketEvent: 行情事件数据结构
|
|
"""
|