Code Monkey home page Code Monkey logo

Comments (6)

JerBouma avatar JerBouma commented on May 25, 2024 1

I keep track of my releases in the "Releases" section, see: https://github.com/JerBouma/FinanceToolkit/releases/tag/v1.8.5

Regarding your comment. It matches the currency per year that is in the Statistics Statement. However, this tends to be the same currency most of the time and in some cases, the financial statements are already translated to USD (or EUR in the case of ASML).

from financetoolkit.

JerBouma avatar JerBouma commented on May 25, 2024

Hi! Thank you for reporting this.

Unfortunately it is quite complicated to track the individual currency changes of a company given that data sources tend to auto adjust for past prices based on the current currency.

For example ASML has been listed since 1995 and is reported in Euro even though the Euro itself came into existence in 1999. This means that if you would use a financial statement of 1995 denominated in Dutch's Gulden it wouldn't match up with the historical data and you couldn't convert it to Euro given there is no historical data available.

For the time being it would work to split up the collection of data before 2000 and after 2000 so that a subset has its currency converted and the other subset has not and pay extra attention to data before 2000. This will also remain a tricky area even in the financial industry itself.

from financetoolkit.

LucaColombi avatar LucaColombi commented on May 25, 2024

hello,

that workaround work just for EU financial statements, but for SONY or PBR or other doesnt work at all

the system break requesting older data with auto currency translation enabled

an important deatil I omitted, this happens requesting data from FMP

but, this also give a solution because FMP gives explicit data about currency of each single statement:

https://site.financialmodelingprep.com/developer/docs#balance-sheet-statements-financial-statements

[
	{
		"date": "2022-09-24",
		"symbol": "AAPL",
		"reportedCurrency": "USD",
		"cik": "0000320193",

could you just copy that column reportedCurrency in the dataframe as is? I can retrieve currency data apart and do all the other workaround

Users in my situation can disable the auto conversion and handle it manually with just this column added, also could be useful for users to know the original financial statement currency

from financetoolkit.

JerBouma avatar JerBouma commented on May 25, 2024

hello,

that workaround work just for EU financial statements, but for SONY or PBR or other doesnt work at all

the system break requesting older data with auto currency translation enabled

an important deatil I omitted, this happens requesting data from FMP

but, this also give a solution because FMP gives explicit data about currency of each single statement:

https://site.financialmodelingprep.com/developer/docs#balance-sheet-statements-financial-statements

[
	{
		"date": "2022-09-24",
		"symbol": "AAPL",
		"reportedCurrency": "USD",
		"cik": "0000320193",

could you just copy that column reportedCurrency in the dataframe as is? I can retrieve currency data apart and do all the other workaround

Users in my situation can disable the auto conversion and handle it manually with just this column added, also could be useful for users to know the original financial statement currency

Hi @LucaColombi,

I actually collect this information automatically through get_statistics_statement. You could have a look if this works for you. See: https://www.jeroenbouma.com/projects/financetoolkit/docs#get_statistics_statement

I'll most likely build in a warning when currency transformation fails given that it should work fine for most companies after 2000.

Please let me know if this helps and what you come up with.

from financetoolkit.

JerBouma avatar JerBouma commented on May 25, 2024

Hi @LucaColombi,

I wasn't able to grab my laptop for a while but I was looking into this and everything seems to work fine from my side. Are you on the latest release (v1.8.5) and are you on a Premium FMP plan?

For example this is SONY with convert_currency=True:

image

When I look at ASML, this also works just fine:

image

And the Statistics Statement for both:

image

Unless you experience different results, this issue seems to be resolved.

from financetoolkit.

LucaColombi avatar LucaColombi commented on May 25, 2024

hello,

upgraded from 1.8.4 to 1.8.5

seems to work, by curiosity what changed from .4 to .5? I installed it just one month ago and it downloaded the .4 automatically

also, could I ask for 1 detail? in FMP the statement currency is declared statement by statement, so when the library converts currency, do it uses the single statement currency, or always the same last anagraphical currency for the stock? because non US stock could have changed the currency in the time and using the last one could false older report, just want to be sure

from financetoolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.