I am a algorithmic trader, I want to get historical data from tradingview by using tvsdatafeed module, this is an open source module.
But when I run the code, it give me an timeout error, even I try to use VPN, switch to different country node, but it does not work
Can anyone help me how to fix such issue? I am living in China, I guess due to someone reason: like block google, without VPN I can not load google website
I am not graduate from Computer Science, but as I know if I use VPN like Singapor or US node, the Ip will changed, and it will unlock google, youtube and so on.
Here is my code:
from tvDatafeed import TvDatafeed, Interval
tv=TvDatafeed()
index
nifty_index_data = tv.get_hist(symbol=’NIFTY’,exchange=’NSE’,interval=Interval.in_1_hour,n_bars=1000)
print(nifty_index_data)
TimeoutError: timed out
I try to switch different VPN nodes, but it does not work
X.AI is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.