File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -318,6 +318,10 @@ def run_strategy_cycle(
318318 now = _utcnow ()
319319 settings = runtime_settings or load_platform_runtime_settings (project_id_resolver = get_project_id )
320320 translator = build_translator (settings .notify_lang )
321+
322+ def log_message (message : str ) -> None :
323+ print (message , flush = True )
324+
321325 strategy_plugin_signals , strategy_plugin_error = load_strategy_plugin_signals (
322326 settings .strategy_plugin_mounts_json ,
323327 strategy_profile = settings .strategy_profile ,
@@ -335,7 +339,7 @@ def run_strategy_cycle(
335339 strategy_runtime = load_strategy_runtime (
336340 settings .strategy_profile ,
337341 runtime_settings = settings ,
338- logger = lambda message : print ( message , flush = True ) ,
342+ logger = log_message ,
339343 )
340344 broker_adapters = build_runtime_broker_adapters (
341345 client = client ,
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ authors = [
1414]
1515dependencies = [
1616 " firstrade==0.0.39" ,
17- " quant-platform-kit @ git+https://github.com/QuantStrategyLab/QuantPlatformKit.git@6a273601b5213844168d4642a7f3c9c4ed3ce162 " ,
18- " us-equity-strategies @ git+https://github.com/QuantStrategyLab/UsEquityStrategies.git@3b557b349566caa14b5630aea614fd10a0310f1d " ,
17+ " quant-platform-kit @ git+https://github.com/QuantStrategyLab/QuantPlatformKit.git@46ca4ea3de8f98a58e2dd86158e7f2070d085cd1 " ,
18+ " us-equity-strategies @ git+https://github.com/QuantStrategyLab/UsEquityStrategies.git@31406abfb15507270992e62ead8d1068c03328d0 " ,
1919 " google-cloud-storage" ,
2020 " requests" ,
2121]
Original file line number Diff line number Diff line change 11flask
22gunicorn
33firstrade == 0.0.39
4- quant-platform-kit @ git+https://github.com/QuantStrategyLab/QuantPlatformKit.git@6a273601b5213844168d4642a7f3c9c4ed3ce162
5- us-equity-strategies @ git+https://github.com/QuantStrategyLab/UsEquityStrategies.git@3b557b349566caa14b5630aea614fd10a0310f1d
4+ quant-platform-kit @ git+https://github.com/QuantStrategyLab/QuantPlatformKit.git@46ca4ea3de8f98a58e2dd86158e7f2070d085cd1
5+ us-equity-strategies @ git+https://github.com/QuantStrategyLab/UsEquityStrategies.git@31406abfb15507270992e62ead8d1068c03328d0
66google-cloud-storage
77google-auth
88requests
You can’t perform that action at this time.
0 commit comments