alvarobartt / investpy

Financial Data Extraction from Investing.com with Python
https://investpy.readthedocs.io/
MIT License
1.59k stars 375 forks source link

Premarket Data #383

Open FriendlyUser opened 3 years ago

FriendlyUser commented 3 years ago

is there any way to use this library to grab premarket data?

Such as blackberry price before market opens and after hours.

If not I will probably just use selenium and python.

alvarobartt commented 3 years ago

Hi @FriendlyUser as long as that information is available at Investing.com, I think so! Anyway, if Investing.com does not provide that information I don't think that will be possible... 😩

In case that Investing.com contains that information, can you share a screenshot of e.g. Blackberry Stock Price before the market opens and the hour/time-region whenever you take the screenshot?

As long as Investing.com provides that data, it should be accessible via either the recent data or historical data retrieval functions! :+1:

FriendlyUser commented 3 years ago

The data is a little inconsistent

https://www.investing.com/indices/nq-premarket

But the main link that I would be interested in https://www.investing.com/equities/pre-market

image

alvarobartt commented 3 years ago

@FriendlyUser, so... I'm assuming that you are looking for a function that retrieves the pre-market most active stocks, top gainers, and top losers, right?

Is the pre-market data available for every stock in a country, or just for the top ones as shown in the screenshot you sent me? I think I could include it as an Investing.com function, even though I don't really know how useful that information is if it's only displayed for the top-something stocks in a country... LMK!

Thanks again! :hugs:

FriendlyUser commented 3 years ago

I think it would only be available for america, I know that the canadian exchanges lacks premarket and after hours trading

GS-LATAM commented 2 years ago

Hey @alvarobartt awesome job at investpy! Since my anxiety does not allow me to wait for v1.0.8 I'll leave a question in here: the premarket will be available as the last (or first) row of retrieve_recent_data()? Thank you, and, again, AWESOME JOB!