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

is it possible to get regular trading time data only? #34

Closed FischLu closed 4 months ago

FischLu commented 4 months ago

Thanks for the great work, I noticed that the current default setting will return price information including extend trading time, or I am wrong, which includes regular trading time data only. Any way, do we have a way to switch it on and off? thanks again.

shner-elmo commented 4 months ago

Hey man, you are correct that it gets the current price (and if queried during pre or post market hours; it will return the current price. Not the price of the last active session).

Is it possible to change this in the settings? If there is a way to do it in the Web-screener, show me and I will add it here.

FischLu commented 4 months ago

Hi, thanks for the reply, I am not sure if I understand you correctly, in tradingview Web-screener, https://www.tradingview.com/screener/, there is a button to switch to Extended Hours, as shown in the following images, hence, is it possible to add to your libs?

Xnip2024-07-03_11-36-37

shner-elmo commented 4 months ago

The "settings" are the same, the only difference is that it selects different columns.

Have a look at the docs for the select() method: https://shner-elmo.github.io/TradingView-Screener/2.5.0/tradingview_screener/query.html#Query

And you might be interested in these columns:

image