From e2c7c5236dd5da9063198fba2717fd2b495eb2b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dennis=20Oca=C3=B1a?= <50150287+dennisocana@users.noreply.github.com> Date: Tue, 9 Mar 2021 15:31:31 +0800 Subject: [PATCH 1/4] (release) update to dev-0.38.0 --- hummingbot/VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hummingbot/VERSION b/hummingbot/VERSION index 0f1a7dfc7c..9a859936a4 100644 --- a/hummingbot/VERSION +++ b/hummingbot/VERSION @@ -1 +1 @@ -0.37.0 +dev-0.38.0 From e6894425da2e5996aaf8118debef637cf1bfabf9 Mon Sep 17 00:00:00 2001 From: Nicolas Baum Date: Tue, 9 Mar 2021 21:03:29 -0300 Subject: [PATCH 2/4] (fix) Added check to replace timeout errors with empty lists when fetching trading pairs in slow connections --- hummingbot/core/utils/trading_pair_fetcher.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hummingbot/core/utils/trading_pair_fetcher.py b/hummingbot/core/utils/trading_pair_fetcher.py index 81078f8bb2..1da79fa514 100644 --- a/hummingbot/core/utils/trading_pair_fetcher.py +++ b/hummingbot/core/utils/trading_pair_fetcher.py @@ -53,4 +53,8 @@ async def fetch_all(self): results = await safe_gather(*tasks, return_exceptions=True) self.trading_pairs = dict(zip(fetched_connectors, results)) + # In case trading pair fetching returned timeout, using empty list + for connector, result in self.trading_pairs.items(): + if isinstance(result, asyncio.TimeoutError): + self.trading_pairs[connector] = [] self.ready = True From 0e0d75707604a18fa044dcff974d84e4e5d394d5 Mon Sep 17 00:00:00 2001 From: Nicolas Baum Date: Tue, 9 Mar 2021 23:29:22 -0300 Subject: [PATCH 3/4] Reduced timeout of synchronous call to requests.get to 1 second, so as to allow async calls to use the remaining time in the main wait_for loop of trading_fetchers --- hummingbot/client/config/config_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hummingbot/client/config/config_helpers.py b/hummingbot/client/config/config_helpers.py index 420123336b..3e4877a603 100644 --- a/hummingbot/client/config/config_helpers.py +++ b/hummingbot/client/config/config_helpers.py @@ -169,7 +169,7 @@ def get_erc20_token_addresses() -> Dict[str, List]: address_file_path = TOKEN_ADDRESSES_FILE_PATH token_list = {} - resp = requests.get(token_list_url, timeout=3) + resp = requests.get(token_list_url, timeout=1) decoded_resp = resp.json() for token in decoded_resp["tokens"]: From 11a33e4af31ce6dec639b55960c8c2bf8d1b0437 Mon Sep 17 00:00:00 2001 From: Nullably <37262506+Nullably@users.noreply.github.com> Date: Wed, 10 Mar 2021 12:05:39 +0800 Subject: [PATCH 4/4] (fix) update version number --- hummingbot/VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hummingbot/VERSION b/hummingbot/VERSION index 9a859936a4..9b1bb85123 100644 --- a/hummingbot/VERSION +++ b/hummingbot/VERSION @@ -1 +1 @@ -dev-0.38.0 +0.37.1