Skip to content

xa.get_daily("SH600036",) does not work ! #187

@evendata-git

Description

@evendata-git

{'data': {'items': [], 'items_size': 0},
'error_code': 0,
'error_description': ''}

File ~/opt/anaconda3/lib/python3.10/site-packages/xalpha/universal.py:171, in get_historical_fromxq(code, count, type_, full)
--> 171 df = pd.DataFrame(data=r["data"]["item"], columns=r["data"]["column"])
172 df["date"] = (df["timestamp"]).apply(ts2pdts) # reset hours to zero
173 return df

KeyError: 'item'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions