finnhub-python icon indicating copy to clipboard operation
finnhub-python copied to clipboard

Incorrect limitation for call transcripts

Open aboutali opened this issue 3 years ago • 0 comments

I have a premium plan that should limit me to 150 requests per minute for the call transcripts endpoint. The response headers send back the correct amount of requests, but using the transcripts() method results in a 429 response:

Here is my code:

for k in call_ids: r = finnhub_client.transcripts(k) all_spx_call_transcripts.append(r) time.sleep(0.5)

I get the following response after 60 requests:

`C:\Anaconda\envs\leap\lib\site-packages\finnhub\client.py in _handle_response(response) 42 def _handle_response(response): 43 if not response.ok: ---> 44 raise FinnhubAPIException(response) 45 46 try:

FinnhubAPIException: FinnhubAPIException(status_code: 429): JSON error message from Finnhub: API limit reached. Please try again later.`

aboutali avatar Oct 26 '20 20:10 aboutali