shner-elmo / TradingView-Screener

A package that lets you create TradingView screeners in Python
https://shner-elmo.github.io/TradingView-Screener/2.5.0/tradingview_screener.html
MIT License
282 stars 44 forks source link

Getting data directly from the Tradingview website/URL #29

Closed Stail7 closed 6 months ago

Stail7 commented 6 months ago

Coming from the Time lag issue here, is it possible (to get around a paid account "requirement") for non-delayed data to get it from the Tradingview website directly (screener or markets URL)? I know there are some scrappers exist, but for non-delayed data on the website we have to be signed in with a free account (and I haven't seen this function in them). So my questions are:

  1. How can we get the website data through requests (without having a browser window always open like with scrappers)?
  2. How can we sign in with a free account through requests to make sure the data would be non-delayed?
  3. (optional) Is it possible that free account cookies sent through API don't let us be/stay signed in to get non-delayed data from API? How to check this?

Thank you