Skip to main content

概念动态

latest()

获取最新概念列表。
# 获取最新概念(包含相关文档)
concepts = client.concepts.latest()
for concept in concepts:
    print(f"{concept['concept_name']}: 热度 {concept['trending_score']}")

# 获取最新概念(不包含文档)
concepts = client.concepts.latest(include_docs=False)
include_docs
bool
default:"True"
是否包含相关文档
返回值
list[dict]
概念列表,包含 concept_id, concept_name, concept_desc, trending_score, stocks, docs

today()

获取今日概念动态。
# 获取今日概念动态
feeds = client.concepts.today()
for feed in feeds:
    print(f"{feed['concept_name']}: {feed['gen_count']} 次")
返回值
list[dict]
今日概念动态列表,包含 concept_id, concept_name, gen_count, stocks

返回字段说明

概念对象 (latest)

字段类型描述
concept_idstring概念唯一标识
concept_namestring概念名称
concept_descstring概念描述
concept_keywordslist概念关键词列表
concept_scorefloat概念标准分
trending_scorefloat概念热度分
stockslist相关股票列表
docslist相关文档列表

概念动态对象 (today)

字段类型描述
concept_idstring概念唯一标识
concept_namestring概念名称
gen_countinteger今日生成次数
stockslist相关股票列表