下面的我的代码,希望9:26获取当天的开盘价。
def open_auction(context, bar_dict):
log.info(f"bar_dict:{bar_dict['601601.SH'].symbol}-{bar_dict['601601.SH'].datetime}-{bar_dict['601601.SH'].open}-{bar_dict['601601.SH'].high}-{bar_dict['601601.SH'].low}-{bar_dict['601601.SH'].close}")
得到的结果是前一天的收盘价,日志如下:
2026-03-02 09:26:00 - INFO
bar_dict:601601.SH-2026-02-27 15:00:00-40.81-40.81-40.81-40.81
请各位高手大能指教。

