Skip to content

Commit

Permalink
Merge pull request hummingbot#3166 from TheHolyRoger/fix/coinzoom-use…
Browse files Browse the repository at this point in the history
…r-agent

[v0.38] CoinZoom: Update user-agent for order book WS requests
  • Loading branch information
dennisocana authored Apr 6, 2021
2 parents abe7e3c + a6bfafa commit 30e6d8b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def is_subscribed(self):
async def connect(self):
# if auth class was passed into websocket class
# we need to emit authenticated requests
extra_headers = self._auth.get_headers() if self._isPrivate else None
extra_headers = self._auth.get_headers() if self._isPrivate else {"User-Agent": "hummingbot"}
self._client = await websockets.connect(self._WS_URL, extra_headers=extra_headers)

return self._client
Expand Down

0 comments on commit 30e6d8b

Please sign in to comment.