rongardF / tvdatafeed

A simple TradingView historical Data Downloader
MIT License
281 stars 153 forks source link

Search URL broken #45

Open mash420 opened 6 months ago

mash420 commented 6 months ago

the search URL seems to be broken. My code no longer works when using it. get_hist works only if you supply the correct exchange:symbol now.

dietmarb01 commented 6 months ago

Tradingview have changed their search API to "v3". The query now wraps the resulting 'symbols' list in a dict and also returns an integer 'symbols_remaining' (maybe for paging?). In addition, their Nginx frontend now blocks requests with Origin+Referer other than their own site.

A fix is available at dietmarb01/tvdatafeed NOTES:

A formal pull request is in the making, but I won't be able to provide it for the next few weeks due to absence. Volunteers welcome to take over...

dietmarb01 commented 6 months ago

@demonarch: Please Update the source attribute on PyPI to the repo that corresponds to the published version tradingview-datafeed-2.1.1. Currently it refers to this repo which is at 2.1.0; also your own (public) fork is at 2.1.0.

Thanks, Dietmar

demonarch commented 2 months ago

dear @TradingBias , Can you please explain your issue with more details?