Merge branch 'economics_menu_upgrade' of https://github.com/JerBouma/GamestonkTerminal into economics_menu_upgrade

This commit is contained in:
Jeroen Bouma
2022-03-16 12:05:58 +01:00
5 changed files with 94 additions and 88 deletions

View File

@@ -56,10 +56,10 @@ Example:
│ │ 10-Year Constant Maturity, Inflation-Indexed │ http://www.federalreserve.gov/releases/h15/current/h15.pdf and http://www.treasury.gov/resource- │
│ │ │ center/data-chart-center/interest-rates/Pages/yieldmethod.aspx. │
└───────────┴─────────────────────────────────────────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────┘
```
```
2022 Mar 15, 07:09 (✨) /economy/ $ fred T10Y2Y DFII10 -s 2019-01-01 -e 2022-01-01
```
![fred](https://user-images.githubusercontent.com/46355364/158365396-7ca6d6ae-5145-479f-86bd-81f8e46c7b9d.png)
![fred](https://user-images.githubusercontent.com/46355364/158575129-1d4b26de-8bd8-49b3-b1b9-e349afaf8a50.png)

View File

@@ -2,9 +2,7 @@
usage: index [-i INDICES [INDICES ...]] [-si] [-iv {1m,2m,5m,15m,30m,60m,90m,1h,1d,5d,1wk,1mo,3mo}] [-s START_DATE] [-e END_DATE] [-c COLUMN] [-q QUERY [QUERY ...]] [-st] [-h] [--export {csv,json,xlsx}] [--raw] [-l LIMIT]
```
Obtain any set of indices and plot them together. With the -si argument the major indices are shown. By using the arguments (for example 'nasdaq' and 'sp500') you can collect data and plot the graphs together. [Source: Yahoo finance /
FinanceDatabase]
Obtain any set of indices and plot them together. With the -si argument the major indices are shown. By using the arguments (for example 'nasdaq' and 'sp500') you can collect data and plot the graphs together. [Source: Yahoo finance / FinanceDatabase]
```
optional arguments:
@@ -34,12 +32,12 @@ Example:
```
2022 Mar 15, 07:29 (✨) /economy/ $ index nasdaq dowjones
```
![index nasdaq dowjones](https://user-images.githubusercontent.com/46355364/158368540-27da2fa8-b2fd-42af-bacb-ec9c40c4986e.png)
![index nasdaq dowjones](https://user-images.githubusercontent.com/46355364/158573612-f2e4b04c-b833-4899-9817-62e40b9fe1d2.png)
```
2022 Mar 15, 07:29 (✨) /economy/ $ index vix
```
![index vix](https://user-images.githubusercontent.com/46355364/158368642-71ef96af-6b41-4514-8683-593ea0984b56.png)
![index vix](https://user-images.githubusercontent.com/46355364/158573676-9871c58e-3ffd-44d5-888a-c1d76ec98251.png)
```
2022 Mar 15, 07:30 (✨) /economy/ $ index -si
@@ -72,5 +70,3 @@ Example:
│ cac40 │ CAC 40 Index │ ^FCHI │
└──────────┴──────────────────────────────┴───────────┘
```

View File

@@ -32,86 +32,95 @@ Example:
```
2022 Mar 15, 07:20 (✨) /economy/ $ macro -p CONF -c Netherlands Germany France -s 2005-01-01 -e 2022-01-01
```
![consumer confidence macro](https://user-images.githubusercontent.com/46355364/158367249-4b001139-1231-4140-9dba-70afd53a78e6.png)
![macro conf netherlands germany france](https://user-images.githubusercontent.com/46355364/158573827-e517ead4-f304-4807-963d-cd884f76f132.png)
```
2022 Mar 15, 07:22 (✨) /economy/ $ macro -p OILPROD -c Canada United_States -cc USD -s 2004-01-01
```
![oil production macro](https://user-images.githubusercontent.com/46355364/158367787-4e7536c2-9d35-4bf6-9eba-cd1298d925e1.png)
![oil production macro](https://user-images.githubusercontent.com/46355364/158573994-a75efcfc-ccda-484e-80a8-b7df4ab96d57.png)
```
2022 Mar 15, 07:11 (✨) /economy/ $ macro -sp
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Parameter ┃ Description ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ RGDP │ Real gross domestic product │
├───────────┼───────────────────────────────────────┤
│ RPRC │ Real private consumption │
├───────────┼───────────────────────────────────────┤
│ RPUC │ Real public consumption │
├───────────┼───────────────────────────────────────┤
│ RGFCF │ Real gross fixed capital formation │
├───────────┼───────────────────────────────────────┤
│ REXP │ Real exports of goods and services │
├───────────┼───────────────────────────────────────┤
│ RIMP │ Real imports of goods and services │
├───────────┼───────────────────────────────────────┤
│ GDP │ Gross domestic product │
├───────────┼───────────────────────────────────────┤
│ PRC │ Private consumption │
├───────────┼───────────────────────────────────────┤
│ PUC │ Public consumption │
├───────────┼───────────────────────────────────────┤
│ GFCF │ Gross fixed capital formation │
├───────────┼───────────────────────────────────────┤
│ EXP │ Exports of goods and services │
├───────────┼───────────────────────────────────────┤
│ IMP │ Imports of goods and services │
├───────────┼───────────────────────────────────────┤
│ CPI │ Consumer price index │
├───────────┼───────────────────────────────────────┤
│ PPI │ Producer price index │
├───────────┼───────────────────────────────────────┤
│ CORE │ Core consumer price index │
├───────────┼───────────────────────────────────────┤
│ URATE │ Unemployment │
├───────────┼───────────────────────────────────────┤
│ EMP │ Employment │
├───────────┼───────────────────────────────────────┤
│ ACOIO │ Active population │
├───────────┼───────────────────────────────────────┤
│ EMRATIO │ Employment to working age population │
├───────────┼───────────────────────────────────────┤
│ RETA │ Retail trade │
├───────────┼───────────────────────────────────────┤
│ CONF │ Consumer confidence index │
├───────────┼───────────────────────────────────────┤
│ IP │ Industrial production │
├───────────┼───────────────────────────────────────┤
│ CP │ Construction production │
├───────────┼───────────────────────────────────────┤
│ GBAL │ Government balance │
├───────────┼───────────────────────────────────────┤
│ GREV │ General government total revenue │
├───────────┼───────────────────────────────────────┤
│ GSPE │ General government total expenditure │
├───────────┼───────────────────────────────────────┤
│ GDEBT │ Government debt │
├───────────┼───────────────────────────────────────┤
│ CA │ Current account balance │
├───────────┼───────────────────────────────────────┤
│ NIIP │ Net international investment position │
├───────────┼───────────────────────────────────────┤
│ Y10YD │ Long term yield (10-year) │
├───────────┼───────────────────────────────────────┤
│ M3YD │ 3 month yield │
├───────────┼───────────────────────────────────────┤
│ HOU │ House price index │
├───────────┼───────────────────────────────────────┤
│ OILPROD │ Oil production │
├───────────┼───────────────────────────────────────┤
│ POP │ Population │
└───────────┴───────────────────────────────────────┘
2022 Mar 16, 06:52 (✨) /economy/ $ macro -sp
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Parameter ┃ Name ┃ Scale ┃ Period ┃ Description ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ RGDP │ Real gross domestic product │ Millions │ Quarterly │ Inflation-adjusted measure that reflects the value of all goods and services produced by an economy in a given year (chain-linked series). │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ RPRC │ Real private consumption │ Millions │ Quarterly │ All purchases made by consumers adjusted by inflation (chain-linked series). │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ RPUC │ Real public consumption │ Millions │ Quarterly │ All purchases made by the government adjusted by inflation (chain-linked series). │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ RGFCF │ Real gross fixed capital formation │ Millions │ Quarterly │ The acquisition of produced assets adjusted by inflation (chain-linked series). │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ REXP │ Real exports of goods and services │ Millions │ Quarterly │ Transactions in goods and services from residents to non-residents adjusted for inflation (chain-linked series) │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ RIMP │ Real imports of goods and services │ Millions │ Quarterly │ Transactions in goods and services to residents from non-residents adjusted for inflation (chain-linked series) │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ GDP │ Gross domestic product │ Millions │ Quarterly │ Measure that reflects the value of all goods and services produced by an economy in a given year (chain-linked series). │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ PRC │ Private consumption │ Millions │ Quarterly │ All purchases made by consumers (chain-linked series). │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ PUC │ Public consumption │ Millions │ Quarterly │ All purchases made by the government (chain-linked series) │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ GFCF │ Gross fixed capital formation │ Millions │ Quarterly │ The acquisition of produced assets (chain-linked series). │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ EXP │ Exports of goods and services │ Millions │ Quarterly │ Transactions in goods and services from residents to non-residents (chain-linked series) │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ IMP │ Imports of goods and services │ Millions │ Quarterly │ Transactions in goods and services to residents from non-residents (chain-linked series) │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ CPI │ Consumer price index │ Index │ Monthly │ Purchasing power defined with base 2015 for Europe with varying bases for others. See: https://www.econdb.com/main-indicators │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ PPI │ Producer price index │ Index │ Monthly │ Change in selling prices with base 2015 for Europe with varying bases for others. See: https://www.econdb.com/main-indicators │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ CORE │ Core consumer price index │ Index │ Monthly │ Purchasing power excluding food and energy defined with base 2015 for Europe with varying bases for others. See: │
│ │ │ │ │ https://www.econdb.com/main-indicators │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ URATE │ Unemployment │ Percentage │ Monthly │ Monthly average % of the working-age population that is unemployed. │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ EMP │ Employment │ Thousands │ Quarterly │ The employed population within a country (in thousands). │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ ACOIO │ Active population │ Thousands │ Quarterly │ The active population, unemployed and employed, in thousands. │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ EMRATIO │ Employment to working age population │ Percentage │ Quarterly │ Unlike the unemployment rate, the employment-to-population ratio includes unemployed people not looking for jobs. │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ RETA │ Retail trade │ Index │ Monthly │ Turnover of sales in wholesale and retail trade │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ CONF │ Consumer confidence index │ Index │ Monthly │ Measures how optimistic or pessimistic consumers are regarding their expected financial situation. │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ IP │ Industrial production │ Index │ Monthly │ Measures monthly changes in the price-adjusted output of industry. │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ CP │ Construction production │ Index │ Monthly │ Measures monthly changes in the price-adjusted output of construction. │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ GBAL │ Government balance │ Millions │ Quarterly │ The government balance (or EMU balance) is the overall difference between government revenues and spending. │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ GREV │ General government total revenue │ Millions │ Quarterly │ The total amount of revenues collected by governments is determined by past and current political decisions. │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ GSPE │ General government total expenditure │ Millions │ Quarterly │ Total expenditure consists of total expense and the net acquisition of non-financial assets. │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ GDEBT │ Government debt │ Millions │ Quarterly │ The financial liabilities of the government. │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ CA │ Current account balance │ Millions │ Monthly │ A record of a country's international transactions with the rest of the world │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ TBFR │ Trade balance │ Millions │ Monthly │ The difference between the monetary value of a nation's exports and imports over a certain time period. │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ NIIP │ Net international investment position │ Millions │ Quarterly │ Measures the gap between a nation's stock of foreign assets and a foreigner's stock of that nation's assets │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ IIPA │ Net international investment position (Assets) │ Millions │ Quarterly │ A nation's stock of foreign assets. │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ IIPL │ Net international investment position (Liabilities) │ Millions │ Quarterly │ A foreigner's stock of the nation's assets. │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Y10YD │ Long term yield (10-year) │ Percentage │ Monthly │ The 10-year yield is used as a proxy for mortgage rates. It's also seen as a sign of investor sentiment about the country's economy. │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ M3YD │ 3 month yield │ Percentage │ Monthly │ The yield received for investing in a government issued treasury security that has a maturity of 3 months │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ HOU │ House price index │ Index │ Monthly │ House price index defined with base 2015 for Europe with varying bases for others. See: https://www.econdb.com/main-indicators │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ OILPROD │ Oil production │ Thousands │ Monthly │ The amount of oil barrels produced per day in a month within a country. │
├───────────┼─────────────────────────────────────────────────────┼────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ POP │ Population │ Thousands │ Monthly │ The population of a country. This can be in thousands or, when relatively small, in actual units. │
└───────────┴─────────────────────────────────────────────────────┴────────────┴───────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
```
```
2022 Mar 15, 07:12 (✨) /economy/ $ macro -sc
┏━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Country ┃ Currency ┃

View File

@@ -33,7 +33,7 @@ Comparing Unemployment Rates and Consumer Confidence of France and Italy
2022 Mar 15, 07:43 (✨) /economy/ $ plot -y1 France_URATE Italy_URATE -y2 France_CONF Italy_CONF
```
![unemployment versus confidence](https://user-images.githubusercontent.com/46355364/158410647-b2d2eeb0-122e-4e0e-8dae-bef90540e8a3.png)
![unemployment rate versus consumer confidence](https://user-images.githubusercontent.com/46355364/158575389-c90b49b5-5f74-4abf-93c7-160e513f8441.png)
Comparing U.S. treasury rate movements to the S&P 500
```
@@ -41,5 +41,5 @@ Comparing U.S. treasury rate movements to the S&P 500
2022 Mar 15, 07:40 (✨) /economy/ $ index sp500 -s 2005-01-01 -st
2022 Mar 15, 07:40 (✨) /economy/ $ plot -y1 sp500 -y2 Nominal_1-year Nominal_10-year
```
![treasuries vs sp500](https://user-images.githubusercontent.com/46355364/158410694-2c9b0676-0171-4da3-ac78-8dbada5bc0ed.png)
![treasures vs sp500](https://user-images.githubusercontent.com/46355364/158575319-a3e02169-943d-45d9-8da2-bc432dcb13ad.png)

View File

@@ -48,9 +48,10 @@ Example:
```
2022 Mar 15, 07:33 (✨) /economy/ $ treasury -m 1y 3y 5y 10y 30y
```
![3y 5y 10y 30y nominal](https://user-images.githubusercontent.com/46355364/158369352-c9832ed0-89f4-4f19-824b-a96387335a90.png)
![3y 5y 10y 30y nominal](https://user-images.githubusercontent.com/46355364/158575884-8ec4e1dc-fb5b-4440-be4b-5e1dcd6d2a5e.png)
```
2022 Mar 15, 07:35 (✨) /economy/ $ treasury -m 5y -t nominal inflation average -s 2005-01-01
```
![5y nominal inflation average](https://user-images.githubusercontent.com/46355364/158369661-8d34d7ef-3d91-4138-bc7b-7430bc71c9b2.png)
![5y nominal inflation average](https://user-images.githubusercontent.com/46355364/158575921-ff7c387c-8eb6-4716-80c4-f4c5121633f2.png)