df = DataSource('bar1d_CN_STOCK_A').read(instruments=['600031.SHA'], start_date='2021-12-01', end_date='2021-12-31', adjust_type='pre')
df.tail()
general_feature_train = M.general_feature_extractor.v7(
instruments=['600031.SHA'],
features=['close_0','open_0'],
start_date='2021-12-01',
end_date='2021-12-31',
before_start_days=20
)
general_feature_train.data.read().sort_values('date', ascending=False)[['date','instrument','close_0','open_0']].head()
[2022-01-01 13:17:15.575470] INFO: moduleinvoker: general_feature_extractor.v7 开始运行..
[2022-01-01 13:17:15.595507] INFO: moduleinvoker: 命中缓存
[2022-01-01 13:17:15.597892] INFO: moduleinvoker: general_feature_extractor.v7 运行完成[0.022407s].