info = DataSource('basic_info_index_CN_STOCK_A').read()
print(info[info['name'] == '中证1000'])
# 获取中证1000指数日线行情
bar1d_df = DataSource('bar1d_index_CN_STOCK_A').read(instruments=['000852.HIX'], start_date='2021-01-01')
bar1d_df.tail()
# 获取中证1000指数分钟行情
bar1m_df = DataSource('bar1m_index_CN_STOCK_A').read(['000852.HIX'], start_date='2022-01-01')
bar1m_df.tail()