Skip to main content

Module analysis

Module analysis 

Source
Expand description

行情分析 / 关联参考域 handler。

v1.4.25 3 个简单实用的:capital_flow / capital_distribution / market_state v1.4.26 补 4 个核心参考类:history_kline / owner_plate / reference / option_chain v1.4.27 计划:stock_filter / warrant / ipo_list / future_info / user_security (这些 proto 嵌套深或 futu-qot 还没 helper,留下版做)

命名映射到 Futu 官方 Python SDK(py-futu-api):

  • get_capital_flowOpenQuoteContext.get_capital_flow
  • get_capital_distributionOpenQuoteContext.get_capital_distribution
  • get_market_stateOpenQuoteContext.get_market_state
  • get_history_klineOpenQuoteContext.request_history_kline
  • get_owner_plateOpenQuoteContext.get_owner_plate
  • get_referenceOpenQuoteContext.get_referencestock_list
  • get_option_chainOpenQuoteContext.get_option_chain

Structs§

CapitalDistributionOut 🔒
HistoryKLineOut 🔒
MarketStateOut 🔒
OptionChainEntry 🔒
OptionChainInput
期权链(看涨/看跌合约列表)。
OptionRow 🔒
v1.4.98 T1-3 (mobile-source-audit): 单条期权 (call+put 配对, 同 strike). 之前 OptionChainEntry 只返 strike_time + Vec symbol 字符串 → 期权 trader 必须额外调 N 次 get_snapshot 拿 strike_price / IV / Greeks. 现透传 OptionStaticExData (proto/Qot_Common.proto:711-723) 全 6 静态字段 (strike_price 是 trader 第一关心), 让单次 chain query 拿全静态数据.
OwnerPlateOut 🔒
PlateInfo 🔒
ReferenceOut 🔒

Functions§

get_capital_distribution
get_capital_flow
get_history_kline
历史 K 线(对齐 py-futu-api OpenQuoteContext.request_history_kline)。
get_market_state
get_option_chain
get_owner_plate
股票所属板块(一只票可能属于多个板块,如行业/概念/地域)。
get_reference
获取关联证券(正股↔涡轮/期货/期权)。
market_prefix 🔒
parse_kl_type_local 🔒
parse_reference_type 🔒
parse_rehab_type 🔒