{"description":"实验创建于7/5/2021","graph":{"edges":[{"to_node_id":"-374:input","from_node_id":"-824:data"},{"to_node_id":"-1639:options_data","from_node_id":"-824:data"},{"to_node_id":"-1639:instruments","from_node_id":"-374:instrument_list"}],"nodes":[{"node_id":"-824","module_id":"BigQuantSpace.use_datasource.use_datasource-v2","parameters":[{"name":"datasource_id","value":"market_performance_CN_CONBOND","type":"Literal","bound_global_parameter":null},{"name":"start_date","value":"2018-01-01","type":"Literal","bound_global_parameter":null},{"name":"end_date","value":"2022-11-30","type":"Literal","bound_global_parameter":null},{"name":"before_start_days","value":"0","type":"Literal","bound_global_parameter":null}],"input_ports":[{"name":"instruments","node_id":"-824"},{"name":"features","node_id":"-824"}],"output_ports":[{"name":"data","node_id":"-824"}],"cacheable":true,"seq_num":13,"comment":"","comment_collapsed":true},{"node_id":"-1639","module_id":"BigQuantSpace.hftrade.hftrade-v2","parameters":[{"name":"start_date","value":"2018-01-01","type":"Literal","bound_global_parameter":null},{"name":"end_date","value":"2022-11-30","type":"Literal","bound_global_parameter":null},{"name":"initialize","value":"# 交易引擎:初始化函数,只执行一次\ndef bigquant_run(context):\n # 加载预测数据\n pass\n","type":"Literal","bound_global_parameter":null},{"name":"before_trading_start","value":"# 交易引擎:每个单位时间开盘前调用一次。\ndef bigquant_run(context, data):\n # 盘前处理,订阅行情等\n pass\n","type":"Literal","bound_global_parameter":null},{"name":"handle_tick","value":"# 交易引擎:tick数据处理函数,每个tick执行一次\ndef bigquant_run(context, tick):\n pass\n","type":"Literal","bound_global_parameter":null},{"name":"handle_data","value":"# 交易引擎:bar数据处理函数,每个时间单位执行一次\ndef bigquant_run(context, data):\n pass\n","type":"Literal","bound_global_parameter":null},{"name":"handle_trade","value":"# 交易引擎:成交回报处理函数,每个成交发生时执行一次\ndef bigquant_run(context, trade):\n pass\n","type":"Literal","bound_global_parameter":null},{"name":"handle_order","value":"# 交易引擎:委托回报处理函数,每个委托变化时执行一次\ndef bigquant_run(context, order):\n pass\n","type":"Literal","bound_global_parameter":null},{"name":"after_trading","value":"# 交易引擎:盘后处理函数,每日盘后执行一次\ndef bigquant_run(context, data):\n pass\n","type":"Literal","bound_global_parameter":null},{"name":"capital_base","value":1000000,"type":"Literal","bound_global_parameter":null},{"name":"frequency","value":"daily","type":"Literal","bound_global_parameter":null},{"name":"price_type","value":"真实价格","type":"Literal","bound_global_parameter":null},{"name":"product_type","value":"可转债","type":"Literal","bound_global_parameter":null},{"name":"before_start_days","value":"180","type":"Literal","bound_global_parameter":null},{"name":"volume_limit","value":1,"type":"Literal","bound_global_parameter":null},{"name":"order_price_field_buy","value":"open","type":"Literal","bound_global_parameter":null},{"name":"order_price_field_sell","value":"close","type":"Literal","bound_global_parameter":null},{"name":"benchmark","value":"000300.HIX","type":"Literal","bound_global_parameter":null},{"name":"plot_charts","value":"True","type":"Literal","bound_global_parameter":null},{"name":"disable_cache","value":"False","type":"Literal","bound_global_parameter":null},{"name":"replay_bdb","value":"False","type":"Literal","bound_global_parameter":null},{"name":"show_debug_info","value":"False","type":"Literal","bound_global_parameter":null},{"name":"backtest_only","value":"False","type":"Literal","bound_global_parameter":null}],"input_ports":[{"name":"instruments","node_id":"-1639"},{"name":"options_data","node_id":"-1639"},{"name":"history_ds","node_id":"-1639"},{"name":"benchmark_ds","node_id":"-1639"}],"output_ports":[{"name":"raw_perf","node_id":"-1639"}],"cacheable":false,"seq_num":1,"comment":"","comment_collapsed":true},{"node_id":"-374","module_id":"BigQuantSpace.trade_data_generation.trade_data_generation-v1","parameters":[{"name":"category","value":"CN_STOCK","type":"Literal","bound_global_parameter":null}],"input_ports":[{"name":"input","node_id":"-374"}],"output_ports":[{"name":"history_data","node_id":"-374"},{"name":"instrument_list","node_id":"-374"},{"name":"calendar","node_id":"-374"}],"cacheable":true,"seq_num":6,"comment":"","comment_collapsed":true}],"node_layout":"<node_postions><node_position Node='-824' Position='46.99995422363281,-205,200,200'/><node_position Node='-1639' Position='317.384033203125,126.3934326171875,200,200'/><node_position Node='-374' Position='51,-42,200,200'/></node_postions>"},"nodes_readonly":false,"studio_version":"v2"}
[2022-12-13 15:43:07.762001] INFO: moduleinvoker: use_datasource.v2 开始运行..
[2022-12-13 15:43:07.770280] INFO: moduleinvoker: 命中缓存
[2022-12-13 15:43:07.772227] INFO: moduleinvoker: use_datasource.v2 运行完成[0.010243s].
[2022-12-13 15:43:07.793786] INFO: moduleinvoker: trade_data_generation.v1 开始运行..
[2022-12-13 15:43:07.852187] INFO: moduleinvoker: 命中缓存
[2022-12-13 15:43:07.855071] INFO: moduleinvoker: trade_data_generation.v1 运行完成[0.061267s].
[2022-12-13 15:43:07.884942] INFO: moduleinvoker: hfbacktest.v1 开始运行..
[2022-12-13 15:43:07.892241] INFO: hfbacktest: biglearning V1.4.19
[2022-12-13 15:43:07.894652] INFO: hfbacktest: bigtrader v1.9.10 2022-12-06
[2022-12-13 15:43:07.923802] INFO: moduleinvoker: cached.v2 开始运行..
[2022-12-13 15:43:07.931717] INFO: moduleinvoker: 命中缓存
[2022-12-13 15:43:07.934101] INFO: moduleinvoker: cached.v2 运行完成[0.010308s].
[2022-12-13 15:43:08.039042] INFO: moduleinvoker: cached.v2 开始运行..
[2022-12-13 15:43:08.047965] INFO: moduleinvoker: 命中缓存
[2022-12-13 15:43:08.050508] INFO: moduleinvoker: cached.v2 运行完成[0.011497s].
[2022-12-13 15:43:20.192679] INFO: hfbacktest: backtest done, raw_perf_ds:DataSource(835fa7d108984387ac3654e1a129c5d6T)
[2022-12-13 15:43:20.305596] ERROR: moduleinvoker: module name: hfbacktest, module version: v1, trackeback: AttributeError: 'BigQuantModule' object has no attribute '_basic_info_ds'
[2022-12-13 15:43:20.309054] ERROR: moduleinvoker: module name: hftrade, module version: v2, trackeback: AttributeError: 'BigQuantModule' object has no attribute '_basic_info_ds'
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-21-ff797519c5f7> in <module>
46 )
47
---> 48 m1 = M.hftrade.v2(
49 instruments=m6.instrument_list,
50 options_data=m13.data,
AttributeError: 'BigQuantModule' object has no attribute '_basic_info_ds'