From 22fa85178315f90101fc89a8b8944233449c2643 Mon Sep 17 00:00:00 2001 From: szmcdull Date: Mon, 5 Apr 2021 12:24:00 +0800 Subject: [PATCH] add user-agent header --- hummingbot/connector/exchange/digifinex/digifinex_rest_api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hummingbot/connector/exchange/digifinex/digifinex_rest_api.py b/hummingbot/connector/exchange/digifinex/digifinex_rest_api.py index 1a7f89469a..34ca77afb5 100644 --- a/hummingbot/connector/exchange/digifinex/digifinex_rest_api.py +++ b/hummingbot/connector/exchange/digifinex/digifinex_rest_api.py @@ -33,6 +33,7 @@ async def request(self, headers = self._auth.get_private_headers(path_url, request_id, params) else: headers = {} + headers['User-Agent'] = 'hummingbot' if method == "get": url = f'{url}?{urllib.parse.urlencode(params)}'