Skip to content

7月15日,下午无法得到数据 #4

Description

@lmf-zr

client = TdxHqClient()

自动选择可用服务器 (推荐)!!!important

client.connect_to_any()
markets = MARKET_SH if market == "sh" else MARKET_SZ
df = client.get_security_bars_dataframe(KLINE_DAILY, markets, code, 0, 200, FQ_QFQ)
print(df)
client.disconnect() # Important to disconnect

输入如下:
Empty DataFrame
Columns: [datetime, year, month, day, hour, minute, open, high, low, close, vol, amount]
Index: []

上午还在用。这会封IP么?

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