JerBouma / FinanceToolkit

Transparent and Efficient Financial Analysis
https://www.jeroenbouma.com/projects/financetoolkit
MIT License
2.96k stars 355 forks source link

getting macroeconomic data #151

Closed Nkhangwe closed 2 months ago

Nkhangwe commented 3 months ago

while running this " from financetoolkit import Toolkit

toolkit = Toolkit(["AMZN", "ASML"])

cpi = toolkit.economics.get_consumer_price_index(period='yearly')

cpi.loc['2015':, ['United States', 'Netherlands', 'Japan']]"

i keep on gettimg the following error "['Flag Codes'] not found in axis" what could be cause

JerBouma commented 3 months ago

It seems that OECD has changed their data structures which breaks a lot of the functionality from the Economy section. I don't have the capacity to work on this for the upcoming weeks unfortunately. Will let you know once I do have some time.

NicoNicoNico123 commented 2 months ago

can get it from fmp?

Nkhangwe commented 2 months ago

I explore the webpage i could find a way of obtain it? do you have a way maybe?

JerBouma commented 2 months ago

FMO unfortunately only has a small portion of the available options I offer. I need to re-evaluate this section of the Finance Toolkit.

I'll happily accept any PR that changes the code to FMP though!

JerBouma commented 2 months ago

Fixing everything as we speak! Expect new release today.

JerBouma commented 2 months ago

@Nkhangwe @NicoNicoNico123

Just informing that most of the functionality works again in the newest release (v1.9.6). Unfortunately some datasets were archived by OECD (including the example you are calling thus this won't be available anymore for now).

I've considered FMP but given that OECD gives data from 70+ countries and FMP only 1, it makes little sense to switch over for now. I did reach out to them though.

image
Nkhangwe commented 2 months ago

Thank you

On Sat, 7 Sept 2024 at 14:55, Jeroen Bouma @.***> wrote:

@Nkhangwe https://github.com/Nkhangwe @NicoNicoNico123 https://github.com/NicoNicoNico123

Just informing that most of the functionality works again in the newest release (v1.9.6). Unfortunately some datasets were archived by OECD (including the example you are calling thus this won't be available anymore for now).

I've considered FMP but given that OECD gives data from 70+ countries and FMP only 1, it makes little sense to switch over for now. I did reach out to them though. image.png (view on web) https://github.com/user-attachments/assets/f2f325a9-049b-4d6c-9ff5-0a0f907a891c

— Reply to this email directly, view it on GitHub https://github.com/JerBouma/FinanceToolkit/issues/151#issuecomment-2335178723, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFM72VZLF3O6PISQ6CBTT6DZVLZVPAVCNFSM6AAAAABMJV27A6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZVGE3TQNZSGM . You are receiving this because you were mentioned.Message ID: @.***>

NicoNicoNico123 commented 2 months ago

Thank for your contributions🙏🏻