-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new functionality to measure country performance #4514
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #4514 +/- ##
==========================================
Coverage ? 54.69%
==========================================
Files ? 586
Lines ? 53233
Branches ? 0
==========================================
Hits ? 29115
Misses ? 24118
Partials ? 0 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
@JerBouma is there any free source that provides Country equity risk premium? This is one of the requirements in the Analyst requirements. I found that FMP has it but it's under paid tier now, so would be good to make it available to everyone. |
i broke it:
didnt realize that wasnt a choice, but found an edge case :P |
this should be one function with a -q flag like in stocks/fa |
debt default timestampe not in correct form:
|
ccpi takes forever, anything we can add a timer for? |
Issue is that a good bunch of countries don't have quarterly so then you need some smart functionality too. And more importantly, one is real other is nominal. I think I should just call it |
Most likely the date range is too big, will look into it. |
Fixed everything you mentioned:
EDIT: also saw that I could make things more efficient so the query now already reflects units, measurements etc. Now all should be pretty quick. |
Actually, yes? See: https://www.oecd.org/trade/topics/export-credits/arrangement-and-sector-understandings/financing-terms-and-conditions/country-risk-classification/ Can you check if this seems to be what you might need? Then, we do need to find a way to read this PDF and get the table out but I am confident in the Engineers to make that work. Note:
|
I don't know why it does this, made a new env too. Can you fix tests for me? Just needs a rewrite @jmaslek
|
None of these functionalities have been added to the economy integration test scripts (under miscellaneous) |
Under
Lets use the same standard we use in |
Looks like the sdk trail map is missing too. Looks like you edited economy_sdk_model.py, but if you look at the top:
That file gets generated from the trail map. |
So do I still need to update the csv? I thought that wasnt te way to go anymore. |
|
Fixed, actually ran into unrelated issues when running that script so fixed that too. Apparently not everyone runs that script on every change ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
anything on the website need to be changed?
* Add in new country parameters * Add in tests corresponding to the new commands * Update SDK and some more robustness * Update tests * Update tests * Revenue and spending didnt work, then saw spending has many more options * Small bug * Update tests and overall improvements * Forgot to add ccpi * Make more efficient * Update tests * Fix IDX issue within real gdp * Add quarterly flag to fgdp * Add integration tests * Update tests * Fix SDK and related bugs and fix CPI for SDK * Zzzz tests --------- Co-authored-by: James Maslek <[email protected]>
Added new menu image but that's it, examples are sound. |
thank you sir |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noice
* Add in new country parameters * Add in tests corresponding to the new commands * Update SDK and some more robustness * Update tests * Update tests * Revenue and spending didnt work, then saw spending has many more options * Small bug * Update tests and overall improvements * Forgot to add ccpi * Make more efficient * Update tests * Fix IDX issue within real gdp * Add quarterly flag to fgdp * Add integration tests * Update tests * Fix SDK and related bugs and fix CPI for SDK * Zzzz tests --------- Co-authored-by: James Maslek <[email protected]>
Description
This adds new functionality to measure country performance, this includes:
This makes it possible to look into cases like https://en.wikipedia.org/wiki/Greek_government-debt_crisis and https://economictimes.indiatimes.com/news/international/business/japans-debt-mountain-how-is-it-sustainable/articleshow/76298563.cms?from=mdr.
A good example is to look into the high Debt-to-GDP ratio that Greece has compared to the average OECD countries hinting at the large pressure of foreign debt.
I can also show how little my country cared about military compared to the United States 😛
How has this been tested?
Made new tests for
oecd_model.py
and also added them to thetest_economy_controller.py
.Checklist:
feature/feature-name
orhotfix/hotfix-name
.Others