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

Limit for API calls

Open mbabatunde opened this issue 4 years ago • 3 comments

Hi,

Within the documentation and the billing information, it says that the max number of API calls for the free tier is 60 API calls/minute. I've been testing out the API using finnhubClient.quote and I'm getting undefined and null back.

I haven't been hitting the API that much, so was wondering if the limit changed or maybe there's something on my end.

Thanks

mbabatunde avatar Nov 28 '20 20:11 mbabatunde

Was getting the same issue as OP. Initially it worked for maybe the first 10 calls and then I started getting null responses with the body saying I needed to sign up for a free account in order to gain access. I was using the generated code from within FinnHub from my free account so I don't see what's wrong on our end here.

19qiana avatar Dec 29 '20 23:12 19qiana

@19qiana I didn't dig into the specifics of the library after this issue, so I started using IEX Cloud and basically use fetch with promise chaining to get the appropriate the data I need. This simple solution has been working as a simple turnaround. I could try to make an API for it at some point

mbabatunde avatar Dec 30 '20 11:12 mbabatunde

I ended up just writing wrapper code around the endpoint calls / made my own client. It's not as pretty but it works

19qiana avatar Dec 30 '20 15:12 19qiana