FinanceToolkit v1.6.3 #83
JerBouma
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
These release features currency conversions. A user noticed that the financial statements are not always in the expected currency (different from the historical data):
This could lead to confusion when comparing numbers between companies and or when calculating ratios that require both data from the financial statement and the historical market data. This has now been resolved with an automatic converter that converts the financial statements accordingly. With this, the end of quarter or end of year exchange rate is used.
This is also saved in a seperate function called
get_exchange_rates
as shown below:This is quite a major change given that there are plenty of financial statements that report their financial statements in their local currency while the listed historical prices are in USD. This ensures that those numbers can be compared. This can be disabled by setting
convert_currency
toFalse
in theToolkit
initialisation. Note that by default it is automatically turned off when using the Free plan of FinancialModelingPrep as it could drain the API calls for that specific day.I've also added in a parameter that recognises if you are using a Free or Premium plan from FinancialModelingPrep. This is a dependency for the
sleep_timer
which will wait a maximum of 60 seconds before making a new request to FMP. This is only relevant for the Premium plans since there is a rate limit per minute. For the Free plan it doesn't matter given that you are limited to 250 requests per day. In any case, this should make the Free experience smoother since you are not waiting for no reason. This solves #80.Note: this consumes 1 API call so if you don't want that, just set sleep_timer to True or False.
This discussion was created from the release FinanceToolkit v1.6.3.
Beta Was this translation helpful? Give feedback.
All reactions