Skip to main content

Module qot

Module qot 

Source
Expand description

行情 REST API 路由

所有行情相关接口通过 proto_request 适配到现有 handler。

Constants§

REST_SHARED_CONN
v1.4.90 P0-B: REST 全 endpoint 共享 conn_id(替代之前每次请求 next_conn_id() 自增 → 永久泄漏 sub-quota 直到耗尽 4000 上限)。

Functions§

get_basic_qot
get_broker
POST /api/broker — 获取经纪队列
get_capital_distribution
POST /api/capital-distribution — 获取资金分布
get_capital_flow
POST /api/capital-flow — 获取资金流向
get_code_change
POST /api/code-change — 代码变更
get_future_info
POST /api/future-info — 获取期货信息
get_holding_change
POST /api/holding-change — 持股变动
get_ipo_list
POST /api/ipo-list — 获取IPO列表
get_kl
POST /api/kline — 获取K线数据
get_market_state
POST /api/market-state — 获取市场状态
get_option_chain
POST /api/option-chain — 获取期权链
get_option_expiration_date
POST /api/option-expiration-date — 期权到期日
get_order_book
POST /api/orderbook — 获取摆盘
get_owner_plate
POST /api/owner-plate — 获取所属板块
get_plate_security
POST /api/plate-security — 获取板块内股票
get_plate_set
get_price_reminder
POST /api/price-reminder — 查询到价提醒
get_reference
POST /api/reference — 获取关联数据
get_risk_free_rate
v1.4.98 T2-2: 无风险利率 (期权定价).
get_rt
POST /api/rt — 获取分时数据
get_snapshot
get_spread_table
v1.4.98 T2-1: 摆盘步长 SpreadTable (cmd 6503).
get_static_info
POST /api/static-info — 获取静态信息
get_sub_info
GET /api/sub-info — 查询订阅
get_suspend
POST /api/suspend — 获取停牌日(对齐 py-futu-api get_suspend
get_ticker
POST /api/ticker — 获取逐笔
get_ticker_statistic
v1.4.98 T2-3: 逐笔统计 TickerStatistic (cmd 6365).
get_ticker_statistic_detail
v1.4.106 codex 0500 ζ23-redo: 逐笔统计 Detail (cmd 6366).
get_used_quota
POST /api/used-quota — 当前 daemon 已用订阅额度与历史 K 线额度
get_user_security
POST /api/user-security — 获取自选股
get_warrant
POST /api/warrant — 获取窝轮
list_plates
v1.4.74 A2 BUG-013 fix: POST /api/list-plates — 列板块
modify_user_security
POST /api/modify-user-security — 修改自选
query_subscription
v1.4.74 A2 BUG-013 fix: POST /api/query-subscription — 查订阅状态
request_history_kl
POST /api/history-kline — 请求历史K线
request_history_kl_quota
POST /api/history-kl-quota — 历史 K 线配额
request_rehab
POST /api/rehab — 请求复权因子(对齐 py-futu-api get_rehab
request_trading_days
POST /api/trading-days — 查询交易日(对齐 py-futu-api request_trading_days
set_price_reminder
POST /api/set-price-reminder — 设置到价提醒
stock_filter
POST /api/stock-filter — 条件选股
subscribe
unsubscribe
POST /api/unsubscribe-all — 反订阅(或 unsub_all)