@@ -171,7 +171,7 @@ def _configure_lean_config_interactively(lean_config: Dict[str, Any],
171171
172172    brokerage .build (lean_config , logger , properties , hide_input = not  show_secrets ).configure (lean_config , environment_name )
173173
174-     data_feeds  =  logger .prompt_list ("Select a data feed " , [
174+     data_feeds  =  logger .prompt_list ("Select a live  data provider " , [
175175        Option (id = data_feed , label = data_feed .get_name ()) for  data_feed  in  local_brokerage_data_feeds [brokerage ]
176176    ], multiple =  True )
177177    for  data_feed  in  data_feeds :
@@ -228,14 +228,14 @@ def _get_default_value(key: str) -> Optional[Any]:
228228@option ("--brokerage" , 
229229              type = Choice ([b .get_name () for  b  in  all_local_brokerages ], case_sensitive = False ), 
230230              help = "The brokerage to use" ) 
231- @option ("--data-feed " , 
231+ @option ("--data-provider-live " , 
232232              type = Choice ([d .get_name () for  d  in  all_local_data_feeds ], case_sensitive = False ), 
233233              multiple = True , 
234-               help = "The data feed  to use" ) 
235- @option ("--data-provider" , 
234+               help = "The live  data provider  to use" ) 
235+ @option ("--data-provider-historical " , 
236236              type = Choice ([dp .get_name () for  dp  in  all_data_providers  if  dp ._id  !=  "TerminalLinkBrokerage" ], case_sensitive = False ), 
237237              default = "Local" , 
238-               help = "Update the Lean configuration file to retrieve data from the given provider" ) 
238+               help = "Update the Lean configuration file to retrieve data from the given historical  provider" ) 
239239@options_from_json (get_configs_for_options ("live-local" )) 
240240@option ("--release" , 
241241              is_flag = True , 
@@ -282,8 +282,8 @@ def deploy(project: Path,
282282           output : Optional [Path ],
283283           detach : bool ,
284284           brokerage : Optional [str ],
285-            data_feed : Optional [str ],
286-            data_provider : Optional [str ],
285+            data_provider_live : Optional [str ],
286+            data_provider_historical : Optional [str ],
287287           release : bool ,
288288           image : Optional [str ],
289289           python_venv : Optional [str ],
@@ -302,14 +302,14 @@ def deploy(project: Path,
302302    If PROJECT is a directory, the algorithm in the main.py or Main.cs file inside it will be executed. 
303303    If PROJECT is a file, the algorithm in the specified file will be executed. 
304304
305-     By default an interactive wizard is shown letting you configure the brokerage and data feed  to use. 
306-     If --environment, --brokerage or --data-feed  are given the command runs in non-interactive mode. 
305+     By default an interactive wizard is shown letting you configure the brokerage and live  data provider  to use. 
306+     If --environment, --brokerage or --data-provider-live  are given the command runs in non-interactive mode. 
307307    In this mode the CLI does not prompt for input. 
308308
309309    If --environment is given it must be the name of a live environment in the Lean configuration. 
310310
311-     If --brokerage and --data-feed  are given, the options specific to the given brokerage/data feed  must also be given. 
312-     The Lean config is used as fallback when a brokerage/data feed -specific option hasn't been passed in. 
311+     If --brokerage and --data-provider-live  are given, the options specific to the given brokerage/live  data provider  must also be given. 
312+     The Lean config is used as fallback when a brokerage/live  data provider -specific option hasn't been passed in. 
313313    If a required option is not given and cannot be found in the Lean config the command aborts. 
314314
315315    By default the official LEAN engine image is used. 
@@ -333,8 +333,8 @@ def deploy(project: Path,
333333
334334    lean_config_manager  =  container .lean_config_manager 
335335
336-     if  environment  is  not None  and  (brokerage  is  not None  or  len (data_feed ) >  0 ):
337-         raise  RuntimeError ("--environment and --brokerage + --data-feed  are mutually exclusive" )
336+     if  environment  is  not None  and  (brokerage  is  not None  or  len (data_provider_live ) >  0 ):
337+         raise  RuntimeError ("--environment and --brokerage + --data-provider-live  are mutually exclusive" )
338338
339339    if  environment  is  not None :
340340        environment_name  =  environment 
@@ -385,7 +385,7 @@ def deploy(project: Path,
385385        [update_essential_properties_available ([brokerage_configurer ], kwargs )]
386386        [update_essential_properties_available (data_feed_configurers , kwargs )]
387387
388-     elif  brokerage  is  not None  or  len (data_feed ) >  0 :
388+     elif  brokerage  is  not None  or  len (data_provider_live ) >  0 :
389389        ensure_options (["brokerage" , "data_feed" ])
390390
391391        environment_name  =  "lean-cli" 
@@ -398,7 +398,7 @@ def deploy(project: Path,
398398        [brokerage_configurer ] =  [get_and_build_module (brokerage , all_local_brokerages , kwargs , logger )]
399399        brokerage_configurer .configure (lean_config , environment_name )
400400
401-         for  df  in  data_feed :
401+         for  df  in  data_provider_live :
402402            [data_feed_configurer ] =  [get_and_build_module (df , all_local_data_feeds , kwargs , logger )]
403403            data_feed_configurer .configure (lean_config , environment_name )
404404
@@ -407,8 +407,8 @@ def deploy(project: Path,
407407        lean_config  =  lean_config_manager .get_complete_lean_config (environment_name , algorithm_file , None )
408408        _configure_lean_config_interactively (lean_config , environment_name , kwargs , show_secrets = show_secrets )
409409
410-     if  data_provider  is  not None :
411-         [data_provider_configurer ] =  [get_and_build_module (data_provider , all_data_providers , kwargs , logger )]
410+     if  data_provider_historical  is  not None :
411+         [data_provider_configurer ] =  [get_and_build_module (data_provider_historical , all_data_providers , kwargs , logger )]
412412        data_provider_configurer .configure (lean_config , environment_name )
413413
414414    if  "environments"  not  in lean_config  or  environment_name  not  in lean_config ["environments" ]:
@@ -444,7 +444,7 @@ def deploy(project: Path,
444444    cash_balance_option , holdings_option , last_cash , last_holdings  =  get_last_portfolio_cash_holdings (container .api_client , env_brokerage ,
445445                                                                                                      project_config .get ("cloud-id" , None ), project )
446446
447-     if  environment  is  None  and  brokerage  is  None  and  len (data_feed ) ==  0 :   # condition for using interactive panel 
447+     if  environment  is  None  and  brokerage  is  None  and  len (data_provider_live ) ==  0 :   # condition for using interactive panel 
448448        if  cash_balance_option  !=  LiveInitialStateInput .NotSupported :
449449            live_cash_balance  =  _configure_initial_cash_interactively (logger , cash_balance_option , last_cash )
450450
0 commit comments