求助:这个错误怎么回事?
由dreamquant创建,最终由small_q 被浏览 34 用户
2023-03-04 23:53:48.572177 strategy strategy exception:Traceback (most recent call last): File "bigtrader/strategy/engine.py", line 713, in bigtrader2.bigtrader.strategy.engine.StrategyEngine._call_strategy_func File "bigtrader/strategy/strategy_base.py", line 2281, in bigtrader2.bigtrader.strategy.strategy_base.StrategyBase.call_handle_data File "<ipython-input-25-53deef9cd102>", line 24, in m3_handle_data_bigquant_run rt=data.current(code, "close") File "/var/app/enabled/bigtrader2/bigtrader/protocol.py", line 285, in current return self.__data_engine.get_current_value(asset, curr_dt, fields) File "bigtrader/mdata/engine.py", line 702, in bigtrader2.bigtrader.mdata.engine.DataEngine._get_minute_value_from_df AttributeError: 'NoneType' object has no attribute 'get_value'
AttributeError Traceback (most recent call last) <ipython-input-25-53deef9cd102> in <module> 47 ) 48 ---> 49 m3 = M.hftrade.v2( 50 instruments=m1.data, 51 start_date='',
<ipython-input-25-53deef9cd102> in m3_handle_data_bigquant_run(context, data) 22 for code in context.instruments: 23 print(code) ---> 24 rt=data.current(code, "close") 25 r.append(rt) 26 print(r)
AttributeError: 'NoneType' object has no attribute 'get_value'