常用问题¶
这一页按使用问题组织。每个问题链接到单独文档,里面包含调用方法、参数、返回字段和示例。
股票和行情¶
- 板块行情
- 板块成分股行情
- 想拿一个或一批证券的完整行情和五档盘口怎么办?
- A 股常用封装总览
- 最新股票列表 · 最新 ST 列表 · 最新停牌列表
- 每日股本(盘前) · 每日涨跌停价 · 实时榜单
- 买卖力道 · 成交对比 · 连板天梯 · 题材强度排行
- 想拿某个或某些股票的表头信息怎么办?
- 想拿流通市值Z、开盘量比、普通流通股本、封单和几天几板怎么办?
题材和概念板块¶
竞价¶
快速示例¶
from eltdx import TdxClient
with TdxClient(timeout=3) as client:
table = client.helpers.stock_profile_table(["sz000001", "sh600000"])
shortline = client.helpers.shortline_indicators(["sz000001", "sh600000"])
topics = client.helpers.stock_topics("000034")
stocks = client.helpers.topic_stocks("000034", topic_name="存储芯片")
auction = client.helpers.auction_data("sz000001", "2026-05-20")
print(table.rows[0])
print(shortline.rows[0])
print(topics.topics[:3])
print(stocks.rows[:10])
print(auction.open_price, auction.open_change_pct, auction.open_amount)
返回模型¶
返回模型是 dataclass,可以直接访问字段,也可以用 to_jsonable() / to_json() 转成字典或 JSON。