Comments (3)
Thanks for the remarks @northern-64bit but it's good to note that by default the risk free rate is set to the 10 year US Government Bond rate. Whether that makes sense for companies listed in e.g. Euro is up to you.
from financetoolkit.
Thanks for clarifying.
from financetoolkit.
Hello @kurucan !
I'm not the maintainer, but I have checked the code. Excess returns are defined as returns minus risk free rate. By default the package doesn't define a risk free rate, thus not defining the excess returns.
You should set the risk free rate to the one of the currency that you are denominating the returns/your portfolio in. So if you have your portfolio denominated in EUR and have the returns of a stock in EUR, then you should use the risk free rate "set" by the ECB, in order to calculate the excess returns. If you have a stock in EUR, but you measure your performance in USD (since this is the base currency for you), then you should convert the returns into USD returns and then use the risk free rate of the FED.
As for how currency differences are handled, all currencies must be the same to ensure accurate results, as noted in the models controller:
Automatic conversion is only done in the financial statements:
Line 290 in 5be9ddd
So for now you have to convert all the returns into one currency and then do the calculations.
I hope that this helps!
from financetoolkit.
Related Issues (20)
- 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
- [BUG] IndexingError: Too many indexers HOT 1
- [IMPROVE] NaN values in PVGO HOT 7
- [BUG] Error using convert_currency=True for old financial data HOT 6
- [FR] Adding calculation of resistance levels HOT 4
- [Bugs] small error in get_interest_debt_per_share(..) HOT 2
- [BUG]: serious bug, missing Estimates dates HOT 2
- [BUG]: income statement false if trailing for Weighted Average Shares HOT 2
- fixed_income is not working anymore 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.