(feat) add templates contant

This commit is contained in:
cardosofede
2023-08-23 00:54:56 +02:00
parent dc6453dd1b
commit 23064bafde
2 changed files with 2 additions and 1 deletions

View File

@@ -3,3 +3,4 @@ DOWNLOAD_CANDLES_CONFIG_YML = "hummingbot_files/scripts_configs/data_downloader_
BOTS_FOLDER = "hummingbot_files/bot_configs"
DIRECTIONAL_STRATEGIES_PATH = "quants_lab/strategy/experiments"
OPTIMIZATIONS_PATH = "quants_lab/optimizations"
HUMMINGBOT_TEMPLATES = "hummingbot_files/templates"

View File

@@ -50,7 +50,7 @@ def manage_broker_container():
def launch_new_bot():
bot_name = f"hummingbot-{st.session_state.new_bot_name.target.value}"
docker_manager.create_hummingbot_instance(instance_name=bot_name,
base_conf_folder=f"{constants.BOTS_FOLDER}/master_bot_conf/.",
base_conf_folder=f"{constants.HUMMINGBOT_TEMPLATES}/master_bot_conf/.",
target_conf_folder=f"{constants.BOTS_FOLDER}/{bot_name}/.")