如题,
from xtquant import xtdata, xtconstant
xtdata.enable_hello = False
"""
table_list
'Balance' #资产负债表
'Income' #利润表
'CashFlow' #现金流量表
'Capital' #股本表
'Holdernum' #股东数
'Top10holder' #十大股东
'Top10flowholder' #十大流通股东
'Pershareindex' #每股指标
report_type
'report_time' #截止日期
'announce_time' #披露日期
"""
stock_list = ['300750.SZ']
table_list = ['Balance', 'Income', 'CashFlow', 'Capital', 'Holdernum' 'Pershareindex']
start_time = '20231231'
end_time = '20240930'
xtdata.download_financial_data(stock_list=stock_list, table_list=table_list,start_time=start_time,end_time=end_time) # 下载财务数据到本地
xtdata.get_financial_data(stock_list=stock_list, table_list=table_list, start_time=start_time,end_time=end_time, report_type='report_time')
获取不到财务数据,卡住不动。是国金证券 QMT 没有这个接口的权限吗? |