From 2e1164ea3230dc393ef5d164be79a239fd4fee00 Mon Sep 17 00:00:00 2001 From: cardosofede Date: Thu, 1 Jun 2023 19:46:23 -0300 Subject: [PATCH] (feat) add compose file and yml to run hummingbot candles downlaoder --- .../compose_files/data-downloader-compose.yml | 22 +++++++++++++++++++ .../data_downloader_config.yml | 4 ++++ 2 files changed, 26 insertions(+) create mode 100644 hummingbot_files/compose_files/data-downloader-compose.yml create mode 100644 hummingbot_files/scripts_configs/data_downloader_config.yml diff --git a/hummingbot_files/compose_files/data-downloader-compose.yml b/hummingbot_files/compose_files/data-downloader-compose.yml new file mode 100644 index 0000000..2ce3372 --- /dev/null +++ b/hummingbot_files/compose_files/data-downloader-compose.yml @@ -0,0 +1,22 @@ +version: "3.9" +services: + bot: + container_name: data_downloader + image: dardonacci/hummingbot:dev + volumes: + - "../../data/candles:/home/hummingbot/data" + - "../conf:/home/hummingbot/conf" + - "../conf/connectors:/home/hummingbot/conf/connectors" + environment: + - CONFIG_PASSWORD=a + - CONFIG_FILE_NAME=download_candles.py + env_file: + - ../scripts_configs/data_downloader_config.yml + logging: + driver: "json-file" + options: + max-size: "10m" + max-file: 5 + tty: true + stdin_open: true + network_mode: host diff --git a/hummingbot_files/scripts_configs/data_downloader_config.yml b/hummingbot_files/scripts_configs/data_downloader_config.yml new file mode 100644 index 0000000..d774177 --- /dev/null +++ b/hummingbot_files/scripts_configs/data_downloader_config.yml @@ -0,0 +1,4 @@ +DAYS_TO_DOWNLOAD: 3 +EXCHANGE: binance_perpetual +INTERVALS: 1m,3m,1h +TRADING_PAIRS: BTC-USDT,ETH-USDT