基础数据

调用说明

  • 每个数据表都是通过api.query函数调用,第一个参数view需填入对应的接口名,如:view="lb.instrumentInfo"
  • 每个数据表的输入参数指的是filter参数里面的内容,通过’&’符号拼接,如:filter="inst_type=&status=1&symbol="

证券基础信息表

调用示例

df, msg = api.query(
                view="lb.instrumentInfo",
                fields="status,list_date, fullname_en, market",
                filter="inst_type=&status=1&symbol=",
                data_format='pandas')

输入参数

字段 类型 说明
symbol string 证券代码
inst_type string 证券类别
start_delistdate int或者string 开始日期, int时为YYYYMMDD格式(如20170809);string时为’YYYY-MM-DD’格式,如‘2017-08-09’
end_delistdate int或者string 结束日期,int时为YYYYMMDD格式(如20170809);string时为’YYYY-MM-DD’格式,如‘2017-08-09’
fields string 需要返回字段,多字段以’,’隔开;为”“时返回所有字段

输出参数

字段 类型 说明
inst_type string 证券类别
market string 交易所代码
symbol string 证券代码
name string 证券名称
list_date string 上市日期
delist_date string 退市日期
cnspell string 拼音简写
currency string 交易货币
status string 上市状态
buylot INT 最小买入单位
selllot INT 最大买入单位
pricetick double 最小变动单位
product string 合约品种
underlying string 对应标的
multiplier int 合约乘数

交易日历表

调用示例

df, msg = api.query(
                view="jz.secTradeCal",
                fields="date,istradeday,isweekday,isholiday",
                filter="start_date=20170101&end_date=20170801",
                data_format='pandas')

输入参数

字段 类型 说明
symbol string 证券代码
start_date int或者string 开始日期, int时为YYYYMMDD格式(如20170809);string时为’YYYY-MM-DD’格式,如‘2017-08-09’
end_date int或者string 结束日期,int时为YYYYMMDD格式(如20170809);string时为’YYYY-MM-DD’格式,如‘2017-08-09’
fields string 需要返回字段,多字段以’,’隔开;为”“时返回所有字段

输出参数

字段 类型 说明
trade_date string 日历日期
istradeday string 是否交易日
isweekday string 是否工作日
isweekend string 是否周末
isholiday string 是否节假日

分配除权信息表

调用示例

df, msg = api.query(
                view="lb.secDividend",
                fields="",
                filter="start_date=20170101&end_date=20170801",
                data_format='pandas')

输入参数

字段 类型 说明
symbol string 证券代码
start_date int或者string 开始日期, int时为YYYYMMDD格式(如20170809);string时为’YYYY-MM-DD’格式,如‘2017-08-09’
end_date int或者string 结束日期,int时为YYYYMMDD格式(如20170809);string时为’YYYY-MM-DD’格式,如‘2017-08-09’
fields string 需要返回字段,多字段以’,’隔开;为”“时返回所有字段

输出参数

字段 类型 说明
symbol string 证券代码
ann_date string 公告日期
end_date string 分红年度截至日
process_stauts string 事件进程
publish_date string 分红实施公告日
record_date string 股权登记日
exdiv_date string 除权除息日
cash double 每股分红(税前)
cash_tax double 每股分红(税后)
share_ratio double 送股比例
share_trans_ratio double 转赠比例
cashpay_date string 派现日
bonus_list_date string 送股上市日

复权因子表

调用示例

df, msg = api.query(
                view="lb.secAdjFactor",
                fields="",
                filter="symbol=002059.SZ&start_date=20170101&end_date=20170801",
                data_format='pandas')

输入参数

字段 类型 说明
symbol string 证券代码
start_date int或者string 开始日期, int时为YYYYMMDD格式(如20170809);string时为’YYYY-MM-DD’格式,如‘2017-08-09’
end_date int或者string 结束日期,int时为YYYYMMDD格式(如20170809);string时为’YYYY-MM-DD’格式,如‘2017-08-09’
fields string 需要返回字段,多字段以’,’隔开;为”“时返回所有字段

输出参数

字段 类型 说明
symbol string 证券代码
trade_date string 除权除息日
adjust_factor double 复权因子

停复牌信息表

调用示例

df, msg = api.query(
                view="lb.secSusp",
                fields="susp_time",
                filter="symbol=002059",
                data_format='pandas')

输入参数

字段 类型 说明
symbol string 证券代码
start_date int或者string 开始日期, int时为YYYYMMDD格式(如20170809);string时为’YYYY-MM-DD’格式,如‘2017-08-09’
end_date int或者string 结束日期,int时为YYYYMMDD格式(如20170809);string时为’YYYY-MM-DD’格式,如‘2017-08-09’
fields string 需要返回字段,多字段以’,’隔开;为”“时返回所有字段

输出参数

字段 类型 说明
symbol string 证券代码
ann_date string 停牌公告日期
susp_date string 停牌开始日期
susp_time string 停牌开始时间
resu_date string 复牌日期
resu_time string 复牌时间
susp_reason string 停牌原因

行业分类表

调用示例

df, msg = api.query(
                view="lb.secIndustry",
                fields="",
                filter="industry1_name=金融&industry2_name=金融&industry_src=中证",
                data_format='pandas')

输入参数

字段 类型 说明
symbol string 证券代码
industry1_name string 一级行业名称 例如:钢铁
industry2_name string 二级行业名称
industry3_name string 三级行业名称
industry4_name string 四级行业名称
fields string 需要返回字段,多字段以’,’隔开;为”“时返回所有字段
! data_format string 格式

输出参数

字段 类型 说明
symbol string 证券代码
industry_src string 行业分类来源
in_date string 纳入日期
out_date string 剔除日期
is_new string 是否最新
industry1_code string 一级行业代码
industry1_name string 一级行业名称
industry2_code string 二级行业代码
industry2_name string 二级行业名称
industry3_code string 三级行业代码
industry3_name string 三级行业名称
industry4_code string 四级行业代码
industry4_name string 四级行业名称

常量参数表

调用示例

df, msg = api.query(
                view="jz.sysConstants",
                fields="",
                filter="code_type=inst_type",
                data_format='pandas'
                )

输入参数

字段 类型 说明
code_type string 参数类型
fields string 需要返回字段,多字段以’,’隔开;为”“时返回所有字段

输出参数

字段 类型 说明
code_type string 参数类型
type_name string 参数名称
code string 参数代码
value string 参数值

日行情估值表

调用示例

df, msg = api.query(
                view="lb.secDailyIndicator",
                fields='pb,net_assets,ncf,price_level',
                filter='symbol=000063.SZ&start_date=20170605&end_date=20170701'
                )

输入参数

字段 类型 说明
symbol string 证券代码
start_date int或者string 开始日期, int时为YYYYMMDD格式(如20170809);string时为’YYYY-MM-DD’格式,如‘2017-08-09’
end_date int或者string 结束日期,int时为YYYYMMDD格式(如20170809);string时为’YYYY-MM-DD’格式,如‘2017-08-09’

输出参数

字段 类型 说明
symbol string 证券代码
trade_date string 交易日期
total_mv double 当日总市值
float_mv double 当日流通市值
pe double 市盈率
pb_new double 市净率
pe_ttm double 市盈率TTM
pcf_ocf double 市现率(PCF,经营现金流)
pcf_ocfttm double 市现率(PCF,经营现金流TTM)
pcf_ncf double 市现率(PCF,现金净流量)
pcf_ncfttm double 市现率(PCF,现金净流量TTM)
ps double 市销率(PS)
ps_ttm double 市销率(PS,TTM)
turnoverratio double 换手率
freeturnover double 换手率(自由流通股本)
total_share double 当日总股本
float_share double 当日流通股本
close double 当日收盘价
price_div_dps double 股价/每股派息
free_share double 当日自由流通股本
profit_ttm double 归属母公司净利润(TTM)
profit_lyr double 归属母公司净利润(LYR)
net_assets double 当日净资产
cash_flows_oper_act_ttm double 经营活动产生的现金流量净额(TTM)
cash_flows_oper_act_lyr double 经营活动产生的现金流量净额(LYR)
operrev_ttm double 营业收入(TTM)
operrev_lyr double 营业收入(LYR)
limit_status Int 涨跌停状态

资产负债表

调用示例

df, msg = api.query(
                view="lb.balanceSheet",
                fields="",
                filter="symbol=002636.SZ",
                data_format='pandas')

输入参数

字段 类型 说明
symbol string 证券代码
start_date string 公告开始日期
end_date string 公告结束日期
comp_type_code string 公司类型代码
start_actdate string 实际公告开始日期
end_actdate string 实际公告结束日期
start_reportdate string 报告期开始日期
start_reportdate string 报告期结束日期
report_type string 报表类型
update_flag int 数据更新标记

输出参数

字段 类型 说明
symbol string 证券代码
ann_date string 公告日期
comp_type_code string 公司类型代码
act_ann_date string 实际公告日期
report_date string 报告期
report_type string 报表类型
currency string 货币代码
monetary_cap double 货币资金
tradable_assets double 交易性金融资产
notes_rcv double 应收票据
acct_rcv double 应收账款
other_rcv double 其他应收款
pre_pay double 预付款项
dvd_rcv double 应收股利
int_rcv double 应收利息
inventories double 存货
consumptive_assets double 消耗性生物资产
deferred_exp double 待摊费用
noncur_assets_due_1y double 一年内到期的非流动资产
settle_rsrv double 结算备付金
loans_to_banks double 拆出资金
prem_rcv double 应收保费
rcv_from_reinsurer double 应收分保账款
rcv_from_ceded_insur_cont_rsrv double 应收分保合同准备金
red_monetary_cap_for_sale double 买入返售金融资产
other_cur_assets double 其他流动资产
tot_cur_assets double 流动资产合计
fin_assets_avail_for_sale double 可供出售金融资产
held_to_mty_invest double 持有至到期投资
long_term_eqy_invest double 长期股权投资
invest_real_estate double 投资性房地产
time_deposits double 定期存款
other_assets double 其他资产
long_term_rec double 长期应收款
fix_assets double 固定资产
const_in_prog double 在建工程
proj_matl double 工程物资
fix_assets_disp double 固定资产清理
productive_bio_assets double 生产性生物资产
oil_and_natural_gas_assets double 油气资产
intang_assets double 无形资产
r_and_d_costs double 开发支出
goodwill double 商誉
long_term_deferred_exp double 长期待摊费用
deferred_tax_assets double 递延所得税资产
loans_and_adv_granted double 发放贷款及垫款
oth_non_cur_assets double 其他非流动资产
tot_non_cur_assets double 非流动资产合计
cash_deposits_central_bank double 现金及存放中央银行款项
asset_dep_oth_banks_fin_inst double 存放同业和其它金融机构款项
precious_metals double 贵金属
derivative_fin_assets double 衍生金融资产
agency_bus_assets double 代理业务资产
subr_rec double 应收代位追偿款
rcv_ceded_unearned_prem_rsrv double 应收分保未到期责任准备金
rcv_ceded_claim_rsrv double 应收分保未决赔款准备金
rcv_ceded_life_insur_rsrv double 应收分保寿险责任准备金
rcv_ceded_lt_health_insur_rsrv double 应收分保长期健康险责任准备金
mrgn_paid double 存出保证金
insured_pledge_loan double 保户质押贷款
cap_mrgn_paid double 存出资本保证金
independent_acct_assets double 独立账户资产
clients_cap_deposit double 客户资金存款
clients_rsrv_settle double 客户备付金
incl_seat_fees_exchange double 其中:交易席位费
rcv_invest double 应收款项类投资
tot_assets double 资产总计
st_borrow double 短期借款
borrow_central_bank double 向中央银行借款
deposit_received_ib_deposits double 吸收存款及同业存放
loans_oth_banks double 拆入资金
tradable_fin_liab double 交易性金融负债
notes_payable double 应付票据
acct_payable double 应付账款
adv_from_cust double 预收款项
fund_sales_fin_assets_rp double 卖出回购金融资产款
handling_charges_comm_payable double 应付手续费及佣金
empl_ben_payable double 应付职工薪酬
taxes_surcharges_payable double 应交税费
int_payable double 应付利息
dvd_payable double 应付股利
other_payable double 其他应付款
acc_exp double 预提费用
deferred_inc double 递延收益
st_bonds_payable double 应付短期债券
payable_to_reinsurer double 应付分保账款
rsrv_insur_cont double 保险合同准备金
acting_trading_sec double 代理买卖证券款
acting_uw_sec double 代理承销证券款
non_cur_liab_due_within_1y double 一年内到期的非流动负债
other_cur_liab double 其他流动负债
tot_cur_liab double 流动负债合计
lt_borrow double 长期借款
bonds_payable double 应付债券
lt_payable double 长期应付款
specific_item_payable double 专项应付款
provisions double 预计负债
deferred_tax_liab double 递延所得税负债
deferred_inc_non_cur_liab double 递延收益-非流动负债
other_non_cur_liab double 其他非流动负债
tot_non_cur_liab double 非流动负债合计
liab_dep_other_banks_inst double 同业和其它金融机构存放款项
derivative_fin_liab double 衍生金融负债
cust_bank_dep double 吸收存款
agency_bus_liab double 代理业务负债
other_liab double 其他负债
prem_received_adv double 预收保费
deposit_received double 存入保证金
insured_deposit_invest double 保户储金及投资款
unearned_prem_rsrv double 未到期责任准备金
out_loss_rsrv double 未决赔款准备金
life_insur_rsrv double 寿险责任准备金
lt_health_insur_v double 长期健康险责任准备金
independent_acct_liab double 独立账户负债
incl_pledge_loan double 其中:质押借款
claims_payable double 应付赔付款
dvd_payable_insured double 应付保单红利
total_liab double 负债合计
capital_stk double 股本
capital_reser double 资本公积金
special_rsrv double 专项储备
surplus_rsrv double 盈余公积金
undistributed_profit double 未分配利润
less_tsy_stk double 减:库存股
prov_nom_risks double 一般风险准备
cnvd_diff_foreign_curr_stat double 外币报表折算差额
unconfirmed_invest_loss double 未确认的投资损失
minority_int double 少数股东权益
tot_shrhldr_eqy_excl_min_int double 股东权益合计(不含少数股东权益)
tot_shrhldr_eqy_incl_min_int double 股东权益合计(含少数股东权益)
tot_liab_shrhldr_eqy double 负债及股东权益总计
spe_cur_assets_diff double 流动资产差额(特殊报表科目)
tot_cur_assets_diff double 流动资产差额(合计平衡项目)
spe_non_cur_assets_diff double 非流动资产差额(特殊报表科目)
tot_non_cur_assets_diff double 非流动资产差额(合计平衡项目)
spe_bal_assets_diff double 资产差额(特殊报表科目)
tot_bal_assets_diff double 资产差额(合计平衡项目)
spe_cur_liab_diff double 流动负债差额(特殊报表科目)
tot_cur_liab_diff double 流动负债差额(合计平衡项目)
spe_non_cur_liab_diff double 非流动负债差额(特殊报表科目)
tot_non_cur_liab_diff double 非流动负债差额(合计平衡项目)
spe_bal_liab_diff double 负债差额(特殊报表科目)
tot_bal_liab_diff double 负债差额(合计平衡项目)
spe_bal_shrhldr_eqy_diff double 股东权益差额(特殊报表科目)
tot_bal_shrhldr_eqy_diff double 股东权益差额(合计平衡项目)
spe_bal_liab_eqy_diff double 负债及股东权益差额(特殊报表项目)
tot_bal_liab_eqy_diff double 负债及股东权益差额(合计平衡项目)
lt_payroll_payable double 长期应付职工薪酬
other_comp_income double 其他综合收益
other_equity_tools double 其他权益工具
other_equity_tools_p_shr double 其他权益工具:优先股
lending_funds double 融出资金
accounts_receivable double 应收款项
st_financing_payable double 应付短期融资款
payables double 应付款项
update_flag int 数据更新标记

利润表

调用示例

df, msg = api.query(
                view="lb.income",
                fields="",
                filter="symbol=600030.SH,000063.SZ,000001.SZ&report_type=408002000&start_date=20160601&end_date=20170601",
                data_format='pandas')

输入参数

字段 类型 说明
symbol string 证券代码
start_date string 公告开始日期
end_date string 公告结束日期
comp_type_code string 公司类型代码
start_actdate string 实际公告开始日期
end_actdate string 实际公告结束日期
start_reportdate string 报告期开始日期
start_reportdate string 报告期结束日期
report_type string 报表类型
update_flag int 数据更新标记

输出参数

字段 类型 说明
symbol string 证券代码
ann_date string 公告日期
comp_type_code string 公司类型代码
act_ann_date string 实际公告日期
report_date string 报告期
report_type string 报表类型
currency string 货币代码
total_oper_rev double 营业总收入
oper_rev double 营业收入
int_income double 利息收入
net_int_income double 利息净收入
insur_prem_unearned double 已赚保费
handling_chrg_income double 手续费及佣金收入
net_handling_chrg_income double 手续费及佣金净收入
net_inc_other_ops double 其他经营净收益
plus_net_inc_other_bus double 加:其他业务净收益
prem_income double 保费业务收入
less_ceded_out_prem double 减:分出保费
chg_unearned_prem_res double 提取未到期责任准备金
incl_reinsurance_prem_inc double 其中:分保费收入
net_inc_sec_trading_brok_bus double 代理买卖证券业务净收入
net_inc_sec_uw_bus double 证券承销业务净收入
net_inc_ec_asset_mgmt_bus double 受托客户资产管理业务净收入
other_bus_income double 其他业务收入
plus_net_gain_chg_fv double 加:公允价值变动净收益
plus_net_invest_inc double 加:投资净收益
incl_inc_invest_assoc_jv_entp double 其中:对联营企业和合营企业的投资收益
plus_net_gain_fx_trans double 加:汇兑净收益
tot_oper_cost double 营业总成本
less_oper_cost double 减:营业成本
less_int_exp double 减:利息支出
less_handling_chrg_comm_exp double 减:手续费及佣金支出
less_taxes_surcharges_ops double 减:营业税金及附加
less_selling_dist_exp double 减:销售费用
less_gerl_admin_exp double 减:管理费用
less_fin_exp double 减:财务费用
less_impair_loss_assets double 减:资产减值损失
prepay_surr double 退保金
tot_claim_exp double 赔付总支出
chg_insur_cont_rsrv double 提取保险责任准备金
dvd_exp_insured double 保户红利支出
reinsurance_exp double 分保费用
oper_exp double 营业支出
less_claim_recb_reinsurer double 减:摊回赔付支出
less_ins_rsrv_recb_reinsurer double 减:摊回保险责任准备金
less_exp_recb_reinsurer double 减:摊回分保费用
other_bus_cost double 其他业务成本
oper_profit double 营业利润
plus_non_oper_rev double 加:营业外收入
less_non_oper_exp double 减:营业外支出
il_net_loss_disp_noncur_asset double 其中:减:非流动资产处置净损失
tot_profit double 利润总额
inc_tax double 所得税
unconfirmed_invest_loss double 未确认投资损失
net_profit_incl_min_int_inc double 净利润(含少数股东损益)
net_profit_excl_min_int_inc double 净利润(不含少数股东损益)
minority_int_inc double 少数股东损益
other_compreh_inc double 其他综合收益
tot_compreh_inc double 综合收益总额
tot_compreh_inc_parent_comp double 综合收益总额(母公司)
tot_compreh_inc_min_shrhldr double 综合收益总额(少数股东)
ebit double 息税前利润
ebitda double 息税折旧摊销前利润
net_profit_after_ded_nr_lp double 扣除非经常性损益后净利润
net_profit_under_intl_acc_sta double 国际会计准则净利润
s_fa_eps_basic double 基本每股收益
s_fa_eps_diluted double 稀释每股收益
insurance_expense double 保险业务支出
spe_bal_oper_profit double 营业利润差额(特殊报表科目)
tot_bal_oper_profit double 营业利润差额(合计平衡项目)
spe_bal_tot_profit double 利润总额差额(特殊报表科目)
tot_bal_tot_profit double 利润总额差额(合计平衡项目)
spe_bal_net_profit double 净利润差额(特殊报表科目)
tot_bal_net_profit double 净利润差额(合计平衡项目)
undistributed_profit double 年初未分配利润
adjlossgain_prevyear double 调整以前年度损益
transfer_from_surplusreserve double 盈余公积转入
transfer_from_housingimprest double 住房周转金转入
transfer_from_others double 其他转入
distributable_profit double 可分配利润
withdr_legalsurplus double 提取法定盈余公积
withdr_legalpubwelfunds double 提取法定公益金
workers_welfare double 职工奖金福利
withdr_buzexpwelfare double 提取企业发展基金
withdr_reservefund double 提取储备基金
distributable_profit_shrhder double 可供股东分配的利润
prfshare_dvd_payable double 应付优先股股利
withdr_othersurpreserve double 提取任意盈余公积金
comshare_dvd_payable double 应付普通股股利
capitalized_comstock_div double 转作股本的普通股股利
update_flag double 数据更新标记

现金流量表

调用示例

df, msg = api.query(
                view="lb.cashFlow",
                fields="",
                filter="symbol=002548.SZ",
                data_format='pandas')

输入参数

字段 类型 说明
symbol string 证券代码
start_date string 公告开始日期
end_date string 公告结束日期
comp_type_code string 公司类型代码
start_actdate string 实际公告开始日期
end_actdate string 实际公告结束日期
start_reportdate string 报告期开始日期
start_reportdate string 报告期结束日期
report_type string 报表类型
update_flag int 数据更新标记

输出参数

字段 类型 说明
symbol string 证券代码
ann_date string 公告日期
comp_type_code string 公司类型代码
act_ann_date string 实际公告日期
report_date string 报告期
report_type string 报表类型
currency string 货币代码
cash_recp_sg_and_rs double 销售商品、提供劳务收到的现金
recp_tax_rends double 收到的税费返还
net_incr_dep_cob double 客户存款和同业存放款项净增加额
net_incr_loans_central_bank double 向中央银行借款净增加额
net_incr_fund_borr_ofi double 向其他金融机构拆入资金净增加额
cash_recp_prem_orig_inco double 收到原保险合同保费取得的现金
net_incr_insured_dep double 保户储金净增加额
net_cash_received_reinsu_bus double 收到再保业务现金净额
net_incr_disp_tfa double 处置交易性金融资产净增加额
net_incr_int_handling_chrg double 收取利息和手续费净增加额
net_incr_disp_faas double 处置可供出售金融资产净增加额
net_incr_loans_other_bank double 拆入资金净增加额
net_incr_repurch_bus_fund double 回购业务资金净增加额
other_cash_recp_ral_oper_act double 收到其他与经营活动有关的现金
stot_cash_inflows_oper_act double 经营活动现金流入小计
cash_pay_goods_purch_serv_rec double 购买商品、接受劳务支付的现金
cash_pay_beh_empl double 支付给职工以及为职工支付的现金
pay_all_typ_tax double 支付的各项税费
net_incr_clients_loan_adv double 客户贷款及垫款净增加额
net_incr_dep_cbob double 存放央行和同业款项净增加额
cash_pay_claims_orig_inco double 支付原保险合同赔付款项的现金
handling_chrg_paid double 支付手续费的现金
comm_insur_plcy_paid double 支付保单红利的现金
other_cash_pay_ral_oper_act double 支付其他与经营活动有关的现金
stot_cash_outflows_oper_act double 经营活动现金流出小计
net_cash_flows_oper_act double 经营活动产生的现金流量净额
cash_recp_disp_withdrwl_invest double 收回投资收到的现金
cash_recp_return_invest double 取得投资收益收到的现金
net_cash_recp_disp_fiolta double 处置固定资产、无形资产和其他长期资产收回的现金净额
net_cash_recp_disp_sobu double 处置子公司及其他营业单位收到的现金净额
other_cash_recp_ral_inv_act double 收到其他与投资活动有关的现金
stot_cash_inflows_inv_act double 投资活动现金流入小计
cash_pay_acq_const_fiolta double 购建固定资产、无形资产和其他长期资产支付的现金
cash_paid_invest double 投资支付的现金
net_cash_pay_aquis_sobu double 取得子公司及其他营业单位支付的现金净额
other_cash_pay_ral_inv_act double 支付其他与投资活动有关的现金
net_incr_pledge_loan double 质押贷款净增加额
stot_cash_outflows_inv_act double 投资活动现金流出小计
net_cash_flows_inv_act double 投资活动产生的现金流量净额
cash_recp_cap_contrib double 吸收投资收到的现金
incl_cash_rec_saims double 其中:子公司吸收少数股东投资收到的现金
cash_recp_borrow double 取得借款收到的现金
proc_issue_bonds double 发行债券收到的现金
other_cash_recp_ral_fnc_act double 收到其他与筹资活动有关的现金
stot_cash_inflows_fnc_act double 筹资活动现金流入小计
cash_prepay_amt_borr double 偿还债务支付的现金
cash_pay_dist_dpcp_int_exp double 分配股利、利润或偿付利息支付的现金
incl_dvd_profit_paid_sc_ms double 其中:子公司支付给少数股东的股利、利润
other_cash_pay_ral_fnc_act double 支付其他与筹资活动有关的现金
stot_cash_outflows_fnc_act double 筹资活动现金流出小计
net_cash_flows_fnc_act double 筹资活动产生的现金流量净额
eff_fx_flu_cash double 汇率变动对现金的影响
net_incr_cash_cash_equ double 现金及现金等价物净增加额
cash_cash_equ_beg_period double 期初现金及现金等价物余额
cash_cash_equ_end_period double 期末现金及现金等价物余额
net_profit double 净利润
unconfirmed_invest_loss double 未确认投资损失
plus_prov_depr_assets double 加:资产减值准备
depr_fa_coga_dpba double 固定资产折旧、油气资产折耗、生产性生物资产折旧
amort_intang_assets double 无形资产摊销
amort_lt_deferred_exp double 长期待摊费用摊销
decr_deferred_exp double 待摊费用减少
incr_acc_exp double 预提费用增加
loss_disp_fiolta double 处置固定、无形资产和其他长期资产的损失
loss_scr_fa double 固定资产报废损失
loss_fv_chg double 公允价值变动损失
fin_exp double 财务费用
invest_loss double 投资损失
decr_deferred_inc_tax_assets double 递延所得税资产减少
incr_deferred_inc_tax_liab double 递延所得税负债增加
decr_inventories double 存货的减少
decr_oper_payable double 经营性应收项目的减少
incr_oper_payable double 经营性应付项目的增加
others double 其他
im_net_cash_flows_oper_act double 间接法-经营活动产生的现金流量净额
conv_debt_into_cap double 债务转为资本
conv_corp_bonds_due_within_1y double 一年内到期的可转换公司债券
fa_fnc_leases double 融资租入固定资产
end_bal_cash double 现金的期末余额
less_beg_bal_cash double 减:现金的期初余额
plus_end_bal_cash_equ double 加:现金等价物的期末余额
less_beg_bal_cash_equ double 减:现金等价物的期初余额
im_net_incr_cash_cash_equ double 间接法-现金及现金等价物净增加额
free_cash_flow double 企业自由现金流量(FCFF)
spe_bal_cash_inflows_oper double 经营活动现金流入差额(特殊报表科目)
tot_bal_cash_inflows_oper double 经营活动现金流入差额(合计平衡项目)
spe_bal_cash_outflows_oper double 经营活动现金流出差额(特殊报表科目)
tot_bal_cash_outflows_oper double 经营活动现金流出差额(合计平衡项目)
tot_bal_netcash_outflows_oper double 经营活动产生的现金流量净额差额(合计平衡项目)
spe_bal_cash_inflows_inv double 投资活动现金流入差额(特殊报表科目)
tot_bal_cash_inflows_inv double 投资活动现金流入差额(合计平衡项目)
spe_bal_cash_outflows_inv double 投资活动现金流出差额(特殊报表科目)
tot_bal_cash_outflows_inv double 投资活动现金流出差额(合计平衡项目)
tot_bal_netcash_outflows_inv double 投资活动产生的现金流量净额差额(合计平衡项目)
spe_bal_cash_inflows_fnc double 筹资活动现金流入差额(特殊报表科目)
tot_bal_cash_inflows_fnc double 筹资活动现金流入差额(合计平衡项目)
spe_bal_cash_outflows_fnc double 筹资活动现金流出差额(特殊报表科目)
tot_bal_cash_outflows_fnc double 筹资活动现金流出差额(合计平衡项目)
tot_bal_netcash_outflows_fnc double 筹资活动产生的现金流量净额差额(合计平衡项目)
spe_bal_netcash_inc double 现金净增加额差额(特殊报表科目)
tot_bal_netcash_inc double 现金净增加额差额(合计平衡项目)
spe_bal_netcash_equ_undir double 间接法-经营活动现金流量净额差额(特殊报表科目)
tot_bal_netcash_equ_undir double 间接法-经营活动现金流量净额差额(合计平衡项目)
spe_bal_netcash_inc_undir double 间接法-现金净增加额差额(特殊报表科目)
spe_bal_netcash_inc_undir double 间接法-现金净增加额差额(合计平衡项目)
update_flag int 数据更新标记

业绩快报

调用示例

df, msg = api.query(
                view="lb.profitExpress",
                fields="",
                filter="start_anndate=20170101&end_anndate=20171010",
                data_format='pandas')

输入参数

字段 类型 说明
symbol string 证券代码
start_anndate string 公告开始日期
end_anndate string 公告结束日期
start_reportdate string 报告开始期
end_reportdate string 报告结束期

输出参数

字段 类型 说明
symbol string 证券代码
ann_date string 公告日期
report_date string 报告期
oper_rev double 营业收入(元)
oper_profit double 营业利润(元)
total_profit double 利润总额(元)
net_profit_int_inc double 净利润(元)
total_assets double 总资产(元)
tot_shrhldr_int double 股东权益合计
eps_diluted double 每股收益(摊薄)(元)
roe_diluted double 净资产收益率(摊薄)(%)
is_audit double 是否审计
yoy_int_inc double 去年同期修正后净利润

限售股解禁表

调用示例

df, msg = api.query(
                view="lb.secRestricted",
                fields="",
                filter="start_date=20170101&end_date=20171011",
                data_format='pandas')

输入参数

字段 类型 说明
symbol string 证券代码
start_date string 开始日期
end_date string 结束日期

输出参数

字段 类型 说明
symbol string 证券代码
list_date string 本期解禁流通日期
lifted_reason string 本期解禁原因(来源)
lifted_shares double 本期解禁数量
lifted_ratio double 可流通占A股总数比例

指数基本信息表

调用示例

df, msg = api.query(
                view="lb.indexCons",
                fields="",
                filter="index_code=000001.SH&start_date=20170113&end_date=20171010", # this api must add start and end date both
                data_format='pandas')

输入参数

字段 类型 说明
symbol string 证券代码

输出参数

字段 类型 说明
symbol string 证券代码
name string 证券简称
compname string 指数名称
exchmarket string 交易所
index_baseper string 基期
index_basept double 基点
listdate string 发布日期
index_weightsrule string 加权方式
publisher string 发布方
indexcode int 指数类别代码
indexstyle string 指数风格
index_intro string 指数简介
weight_type int 权重类型
expire_date string 终止发布日期

指数成份股表

调用示例

df, msg = api.query(
                view="lb.indexCons",
                fields="",
                filter="index_code=399001&is_new=Y",
                data_format='pandas')

输入参数

字段 类型 说明
index_code string 指数代码

输出参数

字段 类型 说明
index_code string 指数代码
symbol string 证券代码
in_date string 纳入日期
out_date string 剔除日期
is_new int 最新标志

公募基金净值表

调用示例

df, msg = api.query(
                view="lb.mfNav",
                fields="",
                filter="",
                data_format='pandas')

输入参数

字段 类型 说明
symbol string 证券代码
start_date string 公告开始日期
end_date string 公告结束日期
start_pdate string 截止开始日期
end_pdate string 截止结束日期
update_flag Int 数据更新标记

输出参数

字段 类型 说明
symbol string 证券代码
ann_date string 公告日期
price_date string 截止日期
nav double 单位净值
nav_accumulated double 累计净值
div_accumulated double 累计分红
adj_factor double 复权因子
currency string 货币代码
netasset double 资产净值
if_mergedshare Int 是否合计数据
netasset_total double 合计资产净值
nav_adjusted double 复权单位净值
update_flag int 数据更新标记

基金分红表

调用示例

df, msg = api.query(
                view="lb.mfDividend",
                fields="",
                filter="",
                data_format='pandas')

输入参数

字段 类型 说明
symbol string 证券代码
start_date string 公告开始日期
end_date string 公告结束日期
update_flag int 数据更新标记

输出参数

字段 类型 说明
symbol string 证券代码
ann_date string 公告日期
ebch_date string 可分配收益基准日
div_progress string 方案进度
cash_dvd double 每股派息(元)
currency string 货币代码
record_date string 权益登记日
ex_date string 除息日
div_edexdate string 除息日(场外)
pay_date string 派息日
div_paydate string 派息日(场外)
div_impdate string 分红实施公告日
sh_bch_y string 份额基准年度
bch_unit double 基准基金份额(万份)
eapr double 可分配收益(元)
exdiv_date string 净值除权日
eapr_amount double 收益分配金额(元)
reinv_bch_date string 红利再投资份额净值基准日
reinv_toac_date string 红利再投资到账日
reinv_redeem_date string 红利再投资可赎回起始日
div_object string 分配对象
div_ipaydt string 收益支付日
update_flag int 数据更新标记

基金投资组合表

调用示例

df, msg = api.query(
                view="lb.mfPortfolio",
                fields="",
                filter="",
                data_format='pandas')

输入参数

字段 类型 说明
symbol string 证券代码
start_date string 公告开始日期
end_date string 公告结束日期
update_flag int 数据更新标记

输出参数

字段 类型 说明
symbol string 证券代码
ann_date string 公告日期
prt_enddate string 截止日期
currency string 货币代码
s_symbol string 股票代码
stk_value double 持有股票市值(元)
stk_quantity double 持有股票数量(股)
stk_valuetonav double 持有股票市值占基金净值比例(%)
posstk_value double 积极投资持有股票市值(元)
posstk_quantity double 积极投资持有股数(股)
posstkto_nav double 积极投资持有股票市值占净资产比例(%)
passtke_value double 指数投资持有股票市值(元)
passtk_quantity double 指数投资持有股数(股)
passtkto_nav double 指数投资持有股票市值占净资产比例(%)
stock_per double 占股票市值比
float_shr_per double 占流通股本比例
update_flag int 数据更新标记

基金持有债券组合

调用示例

df, msg = api.query(
                view="lb.mfBondPortfolio",
                fields="",
                filter="",
                data_format='pandas')

输入参数

字段 类型 说明
symbol string 证券代码
start_pdate string 截止开始日期
end_pdate string 截止结束日期
update_flag int 数据更新标记

输出参数

字段 类型 说明
symbol string 证券代码
prt_enddate string 截止日期
currency string 货币代码
bond_code string 持有债券代码
bond_value double 持有债券市值(元)
bond_quantity double 持有债券数量(张)
bond_valueto_nav double 持有债券市值占基金净值比例(%)
update_flag Int 数据更新标记