Skip to main content

Crate futu_cache

Crate futu_cache 

Source
Expand description

FutuOpenD 内存缓存层

服务端主动推送 + 客户端按需查询混合时的共享内存层,避免重复走 backend 查询。 缓存所有数据 非持久化(进程重启丢失),依赖 backend 推送 / 定时查询刷新。

主要模块:

  • login_cache — 已登录账号列表、security_firm、会话元信息
  • qot_cache — 实时行情(BasicQot / OrderBook / Broker / Ticker / KLine)
  • qot_right — 行情权限映射(哪个 broker 能看哪些市场 level)
  • static_data — 证券静态信息(sec_type / exchange / 期权 strike_date 等)
  • trd_cache — 账户交易态(Funds / Positions / Orders / OrderFills)

Modules§

crypto_exchange_cache
v1.4.110 codex QOT Phase 4 Slice 7: Crypto LV2 多交易所缓存 (CMD18012). 跟 C++ INNData_Qot_CryptoExchange + QotRealTimeData 三 map 对齐. v1.4.110 codex QOT Phase 4 Slice 7: Crypto LV2 多交易所缓存.
login_cache
price_reminder_cooldown
v1.4.106 codex 0450 F3 (P2): PriceReminder 数量上限 cooldown cache.
qot_cache
qot_market
v1.4.106 codex 1148 F2 (P2): 公共 Qot_Common.QotMarket → symbol suffix 转换。
qot_right
security_resolver
v1.4.106 codex 1148 F5 (P2): 统一 stock_id ↔ Security 双向解析入口。
static_data
trd_cache
user_profile