回测正常,提交模拟就报错AttributeError:'NoneType' object has no attribute 'read' 是什麽原因?
由bquvzwe4创建,最终由bquvzwe4 被浏览 28 用户
M.hftrade.v2(
instruments=['300097.SZA'],
start_date='2023-11-03',
end_date='2023-11-05',
initialize=initialize,
before_trading_start=before_trading,
handle_data=handle_data,
after_trading=after_trading,
capital_base=120000,
frequency='minute',
price_type='真实价格',
product_type='股票',
before_start_days='150',
volume_limit=1,
order_price_field_buy='close',
order_price_field_sell='close',
benchmark='000300.SH',
plot_charts=True,
disable_cache=True,
replay_bdb=False,
show_debug_info=False,
backtest_only=False
)
[2023-11-12 21:28:44.310148] INFO hfpapertrading: init username:bquvzwe4, algo_id:175859, first_date:2023-11-10, frequency:1m, adjust_type:none, instruments:['300097.SZA']
[2023-11-12 21:28:44.313645] INFO hfpapertrading: init benchmark_symbol=000300.SH
[2023-11-12 21:28:44.317290] INFO hfpapertrading: biglearning hfpapertrading:V1.3.1
[2023-11-12 21:28:44.320548] INFO hfpapertrading: bigtrader v1.10.5 2023-11-03
[2023-11-12 21:28:44.483904] INFO hfpapertrading: hfpapertrading invoke_micro_service done True
[2023-11-12 21:28:44.983718] INFO hfpapertrading: run_date: 2023-11-10, notebook_id:bquvzwe4_3caaec2e-815f-11ee-920c-0a4cf61f4cc2, algo_name:王者归来-十年磨一剑, is_third_match:0
[2023-11-12 21:28:45.105534] INFO hfpapertrading: first_trading_date=2023-11-10, cash=120000.0
[2023-11-12 21:28:45.109567] INFO hfpapertrading: hfpapertrading init_equity_name_map...
[2023-11-12 21:28:45.260288] ERROR hfpapertrading: run hit Exception, e 'NoneType' object has no attribute 'read'
Traceback (most recent call last):
File "module2/modules/hfpapertrading/v1/__init__.py", line 532, in biglearning.module2.modules.hfpapertrading.v1.__init__.BigQuantModule.run
File "module2/modules/hfpapertrading/v1/__init__.py", line 206, in biglearning.module2.modules.hfpapertrading.v1.__init__.BigQuantModule.create_history_data
AttributeError: 'NoneType' object has no attribute 'read'
\