qs.reports.html() 函数假设无风险利率是恒定的

作者: massiccio创建于 2026年6月5日更新于 2026年6月5日
python
def html(
    returns,
    benchmark=None,
    rf=0.0,
    grayscale=False,
    title="策略分析表",
    output=None,
    compounded=True,
    periods_per_year=252,
    download_filename="quantstats-tearsheet.html",
    figfmt="svg",
    template_path=None,
    match_dates=True,
    **kwargs,
):

内容来源: ranaroussi/quantstats