diff --git a/polygon/rest/base.py b/polygon/rest/base.py index 18293c26..f719a8e9 100644 --- a/polygon/rest/base.py +++ b/polygon/rest/base.py @@ -31,7 +31,11 @@ def __init__( # https://urllib3.readthedocs.io/en/stable/reference/urllib3.poolmanager.html # https://urllib3.readthedocs.io/en/stable/reference/urllib3.connectionpool.html#urllib3.HTTPConnectionPool self.client = urllib3.PoolManager( - num_pools=num_pools, headers={"Authorization": "Bearer " + self.API_KEY} + num_pools=num_pools, + headers={ + "Authorization": "Bearer " + self.API_KEY, + "User-Agent": "Python client", + }, ) self.timeout = urllib3.Timeout(connect=connect_timeout, read=read_timeout) self.retries = retries