investpy icon indicating copy to clipboard operation
investpy copied to clipboard

Retrieving Economic Data

Open sobcza11 opened this issue 3 years ago • 3 comments

Hello world,

This is my first GitHub "issue comment" so my apologies if any mistake.

I am not reporting an issue, I am reporting a desire to be able to pull economic data from investing.com.

We can currently pull commodities, bonds, stock etc data but I would like to pull economic data as well; examples below:

https://www.investing.com/economic-calendar/m2-money-stock-366

https://www.investing.com/economic-calendar/ism-manufacturing-pmi-173

This data is useful to me as I can paint a macro view before getting involved with assets.

Again, this is my first post so my apologies if I did not do it properly.

Rand

sobcza11 avatar Feb 19 '21 20:02 sobcza11

Hi @sobcza11! As I already told you via LinkedIn, I'll be working on this for the next investpy release, and after some time thinking about how to tackle this I may create a new function so as to let the users search different economic events using Investing.com search engine, something similar to the functionality implemented in investpy.search_quotes().

So on, you should expect something similar to the following functionality implemented in the next investpy release:

import investpy

event = investpy.search_events(text="Japan M2 Money Stock YoY", n_results=1)
print(event)
>>> All the event information etc.

Anyway, make sure to watch this issue as I'll be giving you all the updates from here! 👍🏻

alvarobartt avatar Feb 22 '21 13:02 alvarobartt

Thanks! I look forward to the release! Cheers again!

sobcza11 avatar Feb 22 '21 14:02 sobcza11

I'd like this feature also. The raw data is available in JSON format here using the Economic Event ID (eg 1013 for Australian GDP growth)

https://au.investing.com/economic-calendar/gdp-1013 https://sbcharts.investing.com/events_charts/us/1013.json

knickr avatar Nov 21 '21 01:11 knickr