finnhubio / Finnhub-API

Finnhub API provides institutional-grade financial data to investors, fintech startups and investment firms. We support real-time stock price, global fundamentals and alternative data. https://finnhub.io/docs/api
98 stars 6 forks source link

Timeouts on requests for historical charts #17

Closed zkghost closed 4 years ago

zkghost commented 4 years ago

Just noticed this behavior this morning, seems like I am able to query the exchanges and the symbols for a given exchange, but when I try to query price history I get a timeout:

[12-Mar-20 09:56:52-INFO][_request] - method: GET
[12-Mar-20 09:56:52-INFO][_request] - url: https://finnhub.io/api/v1/stock/candle
[12-Mar-20 09:56:52-INFO][_request] - query_params: {'symbol': 'BECN', 'resolution': 1, 'from': 1160550000, 'to': 1162972800, 'token': '<TOKEN>'}
[12-Mar-20 09:56:52-INFO][_request] - rate limit: 1
[12-Mar-20 09:57:03-WARNING][urlopen] - Retrying (Retry(total=9, connect=10, read=9, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='finnhub.io', port=443): Read timed out. (read timeout=10)")': /api/v1/stock/candle?symbol=BECN&resolution=1&from=1160550000&to=1162972800&token=<TOKEN>

Are you guys aware of this issue? If this is maintenance or something, is there a place I can go to see scheduled/known outages of service?

zkghost commented 4 years ago

It seems like its possibly intermittent - I do see I am able to pull now. I will ping if it happens again.

Still, my question on where to go to learn about outages stands :).

Edit: Jinxed myself, got a timeout right as I posted.

zkghost commented 4 years ago

Now there's no data, can we get an update? Thanks!

finnhubio commented 4 years ago

This issue should be fixed now. Sorry for the late reply. Feel free to open a new issue if you still encounter issue with candle endpoint.