fintie.stock.fundamentals_xq¶
提供股本信息查询
信息获取通道包括:
加载已保存的数据:
# 主要财务指标/单季财务指标/综合损益表/资产负债表/现金流量表
import pandas as pd
from pathlib import Path
df = pd.read_json(Path('xxx.json')
# optional, set index
if "reportdate" if df:
df.set_index("reportdate", inplace=True)
else:
df.set_index("enddate", inplace=True)
or
df.set_index("begindate", inplace=True)
# 当日财务指标/股票收益率指标
import json
from pathlib import Path
with Path("xxx.json").open(encoding="utf-8") as f:
data = json.load(f)
-
async
fintie.stock.fundamentals_xq.
async_get_funda
(session, symbol, table, data_path=None, return_df=True)[源代码]¶ 从雪球获取财务数据
- 参数
session –
aiohttp.ClientSession
对象,同步接口不需要传symbol – 股票代码
table –
财务数据类型
MRCWZB # 当日财务指标 GPSYLZB # 股票收益率指标 ZYCWZB # 主要财务指标 DJCWZB # 单季财务指标 GSLRB # 综合损益表 ZCFZB # 资产负债表 XJLLB # 现金流量表
data_path – 数据保存路径
return_df – 是否返回
pandas.DataFrame
对象,False 返回原始数据
- 返回
原始数据或
pandas.DataFrame
对象,见 return_df 参数, 如果是 MRCWZB/GPSYLZB table,直接返回字典,reture_df 参数无效 失败则返回None
-
fintie.stock.fundamentals_xq.
get_funda
(*args, **kwargs)[源代码]¶ 从雪球获取财务数据
- 参数
session –
aiohttp.ClientSession
对象,同步接口不需要传symbol – 股票代码
table –
财务数据类型
MRCWZB # 当日财务指标 GPSYLZB # 股票收益率指标 ZYCWZB # 主要财务指标 DJCWZB # 单季财务指标 GSLRB # 综合损益表 ZCFZB # 资产负债表 XJLLB # 现金流量表
data_path – 数据保存路径
return_df – 是否返回
pandas.DataFrame
对象,False 返回原始数据
- 返回
原始数据或
pandas.DataFrame
对象,见 return_df 参数, 如果是 MRCWZB/GPSYLZB table,直接返回字典,reture_df 参数无效 失败则返回None