-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get_hist in TvDatafeedLive Error #39
Comments
i get the same for indexes, Symbol "DE30EUR" exchange, "OANDA". I have tried a few different symbols and exchanges, and all give the same error. I am using the get_hist() in other functions that are called quiet frequently, and the last few days/week ive just been getting connection error, check symbol and exchange. It might be the frequency hat you are calling get_hist(), i changed my frequency that i call the function, now its more or less 50 50 weather i get the connection error or not. So your problem is wide felt, not jsut your exchange/symbol |
Having the same issue. It appears to happen randomly. I remember increasing the series of calls when I first started using this about a year ago. |
Even I am facing similar issue... Sometimes it works and sometimes it doesn't work and throws below error. I tried to induce sleep(2) seconds as well. Looks like TvDataFeed is not a reliable solution. ERROR:tvDatafeed.main:Connection to remote host was lost. |
Hi, unfortuantely I am also facing this problem. Very annoying. |
I sure is. Lets see if we have somebody that will help us fix this. |
Okay , well we should be able to figure this out?.. Okay and you guys have also tried the get_hist() seis? for tvDatafeedLive I get the same error. I was thinking using the TradingView- ta that has live data but no historical data and just adding it to a data frame . Like get hist from this and update history by appending new data at real-time intervals . Though this is a bit slower and not the best solution. You guys have any other ideas? I was also thinking if one can change the websockets in this tvDatafeed , right now it runs on websocket-client. But if one could change it to use websockets v12( latest version) maybe that would be a better connection. |
I have the same problem and it is random and it is so annoying. ERROR:tvDatafeed.main:Connection to remote host was lost. |
I encountered the same issue, but in my case, it doesn't occur randomly. I need to fetch commodity data from different exchanges, but the timeout error only occurs when I'm fetching ES, NQ (from CME), and BTC. I've tried several times, and the timeout error has never occurred with other commodity data. However, it always happens with ES, NQ, and BTC. Has anyone had a successful case of fetching data for these commodities?
|
You guys can write a wrapper around the get_hist function. That's it. It works easy. And then you do retries based on your requirement. Max 10 retries are enough in general.
|
I am using a while loop instead of for loop. While the exception is triggered keep submitting the same query, up to 10 attempts. Usually the query does not exceed 3 or 4 attempts. In case of 10 attempts, then most likely something wrong with the symbol/stock itself. For example, the symbol is incorrect or the stock has been delisted. |
Sometimes when i try to execute get_hist in TvDatafeedLive instance or seis I get an Error. Other time it works good (with no Error). What can cause this behaviour?
symbols: BTCUSD, ETHUSD
exchange: COINBASE
Error output:
ERROR:tvDatafeed.main:Connection to remote host was lost.
ERROR:tvDatafeed.main:no data, please check the exchange and symbol
The text was updated successfully, but these errors were encountered: