def init(ContextInfo):
ContextInfo.g = ContextInfo.get_stock_list_in_sector('沪深A股')
ContextInfo.set_universe(ContextInfo.g)
def handlebar(ContextInfo):
df = ContextInfo.get_market_data_ex(fields=['amount'], stock_code=ContextInfo.g,
period='1m', start_time='20250606', end_time='20250606', count=5)
print(1)
这个代码运行要5分钟,正常吗,还是代码哪里错了 |