Skip to content

Commit

Permalink
CoinZoom: Update user-agent for order book ws requests
Browse files Browse the repository at this point in the history
  • Loading branch information
TheHolyRoger committed Apr 6, 2021
1 parent dd9cc4a commit 2fa267a
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 2fa267a

Please sign in to comment.