When I try to get info for ticker with 'dot' I always get 403 error
f.e.
finnhub_client = finnhub.Client(api_key)
symbol = 'ORP.PA'
isin = 'FR0000184798'
res = finnhub_client.company_profile2(symbol=symbol)
print(res)
With ISIN I get the correct answer and ticker match, but if I use symbol with dot I get
12 # Stock candles
---> 13 res = finnhub_client.company_profile2(symbol=symbol)
14 print(res)
File /opt/homebrew/lib/python3.11/site-packages/finnhub/client.py:88, in Client.company_profile2(self, **params)
87 def company_profile2(self, **params):
---> 88 return self._get("/stock/profile2", params=params)
File /opt/homebrew/lib/python3.11/site-packages/finnhub/client.py:71, in Client._get(self, path, **kwargs)
70 def _get(self, path, **kwargs):
---> 71 return self._request("get", path, **kwargs)
File /opt/homebrew/lib/python3.11/site-packages/finnhub/client.py:41, in Client._request(self, method, path, **kwargs)
38 kwargs["params"] = self._format_params(kwargs.get("params", {}))
40 response = getattr(self._session, method)(uri, **kwargs)
---> 41 return self._handle_response(response)
File /opt/homebrew/lib/python3.11/site-packages/finnhub/client.py:46, in Client._handle_response(response)
43 @staticmethod
44 def _handle_response(response):
45 if not response.ok:
---> 46 raise FinnhubAPIException(response)
48 try:
49 content_type = response.headers.get('Content-Type', '')
FinnhubAPIException: FinnhubAPIException(status_code: 403): You don't have access to this resource.
this is the proper response using ISIN
{
"country": "FR",
"currency": "EUR",
"estimateCurrency": "EUR",
"exchange": "NYSE EURONEXT - EURONEXT PARIS",
"finnhubIndustry": "Health Care",
"ipo": "2002-04-16",
"logo": "https://static2.finnhub.io/file/publicdatany/finnhubimage/stock_logo/942958666376.svg",
"marketCapitalization": 38.789833,
"name": "Orpea SA",
"phone": "33147757807.0",
"shareOutstanding": 1005.5026964743798,
"ticker": "ORP.PA",
"weburl": "https://www.orpea.com/"
}
When I try to get info for ticker with 'dot' I always get 403 error
f.e.
With ISIN I get the correct answer and ticker match, but if I use symbol with dot I get
this is the proper response using ISIN