# 获取单个标的的多个字段历史数据

attribute_history(
    security,
    count,
    unit="1d",
    fields=None,
    skip_paused=True,
    df=True,
    fq="pre",
)
1
2
3
4
5
6
7
8
9

示例:

hist = attribute_history("000001.SZ", 5, "1d", ["open", "close", "volume"])
ma5 = hist["close"].mean()
1
2