用于获取和分析中国公募基金数据的工具集,支持从天天基金网获取Wind API无法提供的基金持仓明细数据。
import sys
sys.path.insert(0, 'fund-evaluation/scripts')
from fund_evaluator import FundEvaluator
evaluator = FundEvaluator()
result = evaluator.get_holdings("519702")
evaluator.print_holdings(result)
# 对比最近两个季度
evaluator.compare_quarters("519702")
# 对比指定季度
evaluator.compare_quarters("519702", "2025年4季度", "2025年3季度")
evaluator.export_to_csv(result, "output.csv")
# 获取基金持仓
python fund-evaluation/scripts/fund_evaluator.py 519702
# 对比季度变化
python fund-evaluation/scripts/fund_evaluator.py 519702 --compare
# 导出CSV
python fund-evaluation/scripts/fund_evaluator.py 519702 --export output.csv
持仓数据表格包含:
季度对比显示:
共 1 个版本