Comments (6)
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.
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.
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.
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.
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
:
When I look at ASML, this also works just fine:
And the Statistics Statement for both:
Unless you experience different results, this issue seems to be resolved.
from financetoolkit.
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)
- get_historical_data(fill_nan=False) still triggers forward fill HOT 5
- error while calling the functions HOT 3
- option chain data HOT 3
- Getting a lot of NaNs HOT 7
- Error in company.ratios Function HOT 1
- [HELP] - ValueError: source code string cannot contain null bytes HOT 4
- Missing Symbols in FinanceDatabase available in FinancialToolkit HOT 1
- Growth, value, quality stocks info ? HOT 1
- [IMPROVE] Proxy availability HOT 1
- [IMPROVE] Add TQDM/Progress bar on tickers fetched HOT 1
- ValueError: Value is too big! HOT 5
- Is it possible to get sector, industry group info of stock ? HOT 1
- Clarification on Calculating Excess Returns in Non-US Markets with Different Currencies HOT 3
- [BUG] IndexingError: Too many indexers HOT 1
- [IMPROVE] NaN values in PVGO HOT 7
- [FR] Adding calculation of resistance levels HOT 3
- [Bugs] small error in get_interest_debt_per_share(..) HOT 2
- [BUG]: serious bug, missing Estimates dates HOT 1
- [BUG]: income statement false if trailing for Weighted Average Shares HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from financetoolkit.