get_finance_info.py get_history_minute_time_data.py get_history_transaction_data.py get_index_bars.py get_minute_time_data.py get_security_bars.py get_security_count.py get_security_list.py get_security_quotes.py get_transaction_data.py get_xdxr_info.py setup_commands.py pool reader util...
from pytdx.hq import TdxHq_API api = TdxHq_API() api.connect('119.147.212.81', 7709) bars = api.get_security_bars(5,0, '399001', 0, 50) #周K线 bars[0] 数据正确 OrderedDict([('open', 11401.87), ('close', 11238.88), ('high', 11422.93), ('low', 1...
多谢,用指数接口就可以了 pd.DataFrame(api.get_index_bars(9, 1, '880870', 0, 800)) open close high low vol amount year month 0 1001.07 996.66 1007.05 996.54 115117.0 2.990586e+10 2016 10 1 993.90 1000.08 1000.60 987.99 94245.0 2.655179e+10 2016 10 2 999.96 1014.37 1014.95 999.61 124615.0...