From a06439c13650cbbe03d19fef792e0fc3d099e618 Mon Sep 17 00:00:00 2001 From: "didierlopes.eth" Date: Tue, 15 Mar 2022 09:45:57 +0000 Subject: [PATCH 01/26] add links to get API keys when no args provided and fix bugs (#1486) --- gamestonk_terminal/keys_controller.py | 120 ++++++++++++++++++++++---- 1 file changed, 103 insertions(+), 17 deletions(-) diff --git a/gamestonk_terminal/keys_controller.py b/gamestonk_terminal/keys_controller.py index b28633e0845..7750d9979cb 100644 --- a/gamestonk_terminal/keys_controller.py +++ b/gamestonk_terminal/keys_controller.py @@ -332,19 +332,20 @@ class KeysController(BaseController): logger.info("Reddit key not defined") self.key_dict["REDDIT"] = "not defined" else: - praw_api = praw.Reddit( - client_id=cfg.API_REDDIT_CLIENT_ID, - client_secret=cfg.API_REDDIT_CLIENT_SECRET, - username=cfg.API_REDDIT_USERNAME, - user_agent=cfg.API_REDDIT_USER_AGENT, - password=cfg.API_REDDIT_PASSWORD, - ) try: + praw_api = praw.Reddit( + client_id=cfg.API_REDDIT_CLIENT_ID, + client_secret=cfg.API_REDDIT_CLIENT_SECRET, + username=cfg.API_REDDIT_USERNAME, + user_agent=cfg.API_REDDIT_USER_AGENT, + password=cfg.API_REDDIT_PASSWORD, + ) + praw_api.user.me() logger.info("Reddit key defined, test passed") self.key_dict["REDDIT"] = "defined, test passed" - except ResponseException: + except (Exception, ResponseException): logger.warning("Reddit key defined, test passed") self.key_dict["REDDIT"] = "defined, test failed" @@ -737,6 +738,12 @@ class KeysController(BaseController): dest="key", help="key", ) + if not other_args: + console.print( + "For your API Key, visit: https://www.alphavantage.co/support/#api-key\n" + ) + return + if other_args and "-" not in other_args[0][0]: other_args.insert(0, "-k") ns_parser = parse_known_args_and_warn(parser, other_args) @@ -762,6 +769,12 @@ class KeysController(BaseController): dest="key", help="key", ) + if not other_args: + console.print( + "For your API Key, visit: https://financialmodelingprep.com\n" + ) + return + if other_args and "-" not in other_args[0][0]: other_args.insert(0, "-k") ns_parser = parse_known_args_and_warn(parser, other_args) @@ -789,6 +802,10 @@ class KeysController(BaseController): dest="key", help="key", ) + if not other_args: + console.print("For your API Key, visit: https://www.quandl.com\n") + return + if other_args and "-" not in other_args[0][0]: other_args.insert(0, "-k") ns_parser = parse_known_args_and_warn(parser, other_args) @@ -814,6 +831,10 @@ class KeysController(BaseController): dest="key", help="key", ) + if not other_args: + console.print("For your API Key, visit: https://polygon.io\n") + return + if other_args and "-" not in other_args[0][0]: other_args.insert(0, "-k") ns_parser = parse_known_args_and_warn(parser, other_args) @@ -839,6 +860,10 @@ class KeysController(BaseController): dest="key", help="key", ) + if not other_args: + console.print("For your API Key, visit: https://fred.stlouisfed.org\n") + return + if other_args and "-" not in other_args[0][0]: other_args.insert(0, "-k") ns_parser = parse_known_args_and_warn(parser, other_args) @@ -864,6 +889,10 @@ class KeysController(BaseController): dest="key", help="key", ) + if not other_args: + console.print("For your API Key, visit: https://newsapi.org\n") + return + if other_args and "-" not in other_args[0][0]: other_args.insert(0, "-k") ns_parser = parse_known_args_and_warn(parser, other_args) @@ -889,6 +918,10 @@ class KeysController(BaseController): dest="key", help="key", ) + if not other_args: + console.print("For your API Key, visit: https://developer.tradier.com\n") + return + if other_args and "-" not in other_args[0][0]: other_args.insert(0, "-k") ns_parser = parse_known_args_and_warn(parser, other_args) @@ -914,6 +947,9 @@ class KeysController(BaseController): dest="key", help="key", ) + if not other_args: + console.print("For your API Key, visit: https://coinmarketcap.com\n") + return if other_args and "-" not in other_args[0][0]: other_args.insert(0, "-k") ns_parser = parse_known_args_and_warn(parser, other_args) @@ -939,6 +975,9 @@ class KeysController(BaseController): dest="key", help="key", ) + if not other_args: + console.print("For your API Key, visit: https://finnhub.io\n") + return if other_args and "-" not in other_args[0][0]: other_args.insert(0, "-k") ns_parser = parse_known_args_and_warn(parser, other_args) @@ -964,6 +1003,9 @@ class KeysController(BaseController): dest="key", help="key", ) + if not other_args: + console.print("For your API Key, visit: https://iexcloud.io\n") + return if other_args and "-" not in other_args[0][0]: other_args.insert(0, "-k") ns_parser = parse_known_args_and_warn(parser, other_args) @@ -1017,6 +1059,9 @@ class KeysController(BaseController): dest="user_agent", help="User agent", ) + if not other_args: + console.print("For your API Key, visit: https://www.reddit.com\n") + return ns_parser = parse_known_args_and_warn(parser, other_args) if ns_parser: os.environ["GT_API_REDDIT_CLIENT_ID"] = ns_parser.client_id @@ -1077,6 +1122,9 @@ class KeysController(BaseController): dest="bearer_token", help="Bearer token", ) + if not other_args: + console.print("For your API Key, visit: https://developer.twitter.com\n") + return ns_parser = parse_known_args_and_warn(parser, other_args) if ns_parser: os.environ["GT_API_TWITTER_KEY"] = ns_parser.key @@ -1120,6 +1168,9 @@ class KeysController(BaseController): dest="password", help="password", ) + if not other_args: + console.print("For your API Key, visit: https://robinhood.com/us/en/\n") + return ns_parser = parse_known_args_and_warn(parser, other_args) if ns_parser: os.environ["GT_RH_USERNAME"] = ns_parser.username @@ -1162,6 +1213,9 @@ class KeysController(BaseController): dest="secret", help="TOPT Secret", ) + if not other_args: + console.print("For your API Key, visit: https://www.degiro.fr\n") + return ns_parser = parse_known_args_and_warn(parser, other_args) if ns_parser: os.environ["GT_DG_USERNAME"] = ns_parser.username @@ -1208,6 +1262,9 @@ class KeysController(BaseController): dest="account_type", help="account type", ) + if not other_args: + console.print("For your API Key, visit: https://developer.oanda.com\n") + return ns_parser = parse_known_args_and_warn(parser, other_args) if ns_parser: os.environ["GT_OANDA_ACCOUNT"] = ns_parser.account @@ -1249,6 +1306,9 @@ class KeysController(BaseController): dest="secret_key", help="Secret key", ) + if not other_args: + console.print("For your API Key, visit: https://binance.com\n") + return ns_parser = parse_known_args_and_warn(parser, other_args) if ns_parser: os.environ["GT_API_BINANCE_KEY"] = ns_parser.key @@ -1277,6 +1337,9 @@ class KeysController(BaseController): dest="key", help="key", ) + if not other_args: + console.print("For your API Key, visit: https://bitquery.io/\n") + return if other_args and "-" not in other_args[0][0]: other_args.insert(0, "-k") ns_parser = parse_known_args_and_warn(parser, other_args) @@ -1303,6 +1366,9 @@ class KeysController(BaseController): dest="key", help="key", ) + if not other_args: + console.print("For your API Key, visit: https://sentimentinvestor.com\n") + return if other_args and "-" not in other_args[0][0]: other_args.insert(0, "-k") ns_parser = parse_known_args_and_warn(parser, other_args) @@ -1345,6 +1411,9 @@ class KeysController(BaseController): dest="passphrase", help="Passphrase", ) + if not other_args: + console.print("For your API Key, visit: https://docs.pro.coinbase.com/\n") + return ns_parser = parse_known_args_and_warn(parser, other_args) if ns_parser: os.environ["GT_API_COINBASE_KEY"] = ns_parser.key @@ -1381,6 +1450,9 @@ class KeysController(BaseController): dest="key", help="key", ) + if not other_args: + console.print("For your API Key, visit: https://docs.whale-alert.io/\n") + return if other_args and "-" not in other_args[0][0]: other_args.insert(0, "-k") ns_parser = parse_known_args_and_warn(parser, other_args) @@ -1407,6 +1479,11 @@ class KeysController(BaseController): dest="key", help="key", ) + if not other_args: + console.print( + "For your API Key, visit: https://docs.glassnode.com/basic-api/api-key#how-to-get-an-api-key/\n" + ) + return if other_args and "-" not in other_args[0][0]: other_args.insert(0, "-k") ns_parser = parse_known_args_and_warn(parser, other_args) @@ -1433,6 +1510,11 @@ class KeysController(BaseController): dest="key", help="key", ) + if not other_args: + console.print( + "For your API Key, visit: https://coinglass.github.io/API-Reference/#api-key\n" + ) + return if other_args and "-" not in other_args[0][0]: other_args.insert(0, "-k") ns_parser = parse_known_args_and_warn(parser, other_args) @@ -1459,6 +1541,11 @@ class KeysController(BaseController): dest="key", help="key", ) + if not other_args: + console.print( + "For your API Key, visit: https://cryptopanic.com/developers/api/\n" + ) + return if other_args and "-" not in other_args[0][0]: other_args.insert(0, "-k") ns_parser = parse_known_args_and_warn(parser, other_args) @@ -1485,6 +1572,11 @@ class KeysController(BaseController): dest="key", help="key", ) + if not other_args: + console.print( + "For your API Key, visit: https://github.com/EverexIO/Ethplorer/wiki/Ethplorer-API\n" + ) + return if other_args and "-" not in other_args[0][0]: other_args.insert(0, "-k") ns_parser = parse_known_args_and_warn(parser, other_args) @@ -1517,7 +1609,9 @@ class KeysController(BaseController): dest="token", help="Token", ) - + if not other_args: + console.print("For your API Key, visit: https://www.smartstake.io\n") + return ns_parser = parse_known_args_and_warn(parser, other_args) if ns_parser: @@ -1530,11 +1624,3 @@ class KeysController(BaseController): cfg.API_SMARTSTAKE_KEY = ns_parser.key self.check_smartstake_key(show_output=True) - - ns_parser = parse_known_args_and_warn(parser, other_args) - if ns_parser: - os.environ["GT_API_ETHPLORER_KEY"] = ns_parser.key - dotenv.set_key(self.env_file, "GT_API_ETHPLORER_KEY", ns_parser.key) - cfg.API_ETHPLORER_KEY = ns_parser.key - - self.check_ethplorer_key(show_output=True) From e9ddb8c6e9ce8a3049bdaf7979bddcf882c831af Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 11:58:06 +0100 Subject: [PATCH 02/26] Update _index.md --- .../content/terminal/economy/bigmac/_index.md | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/website/content/terminal/economy/bigmac/_index.md b/website/content/terminal/economy/bigmac/_index.md index ce626f6d998..c039abbe63a 100644 --- a/website/content/terminal/economy/bigmac/_index.md +++ b/website/content/terminal/economy/bigmac/_index.md @@ -1,5 +1,5 @@ ``` -usage: bigmac [-c COUNTRIES] [--raw] [-h] [--export {png,jpg,pdf,svg}] +usage: bigmac [--codes] [-c COUNTRIES] [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] [--raw] ``` The notion that in the long run exchange rates should move towards the rate that would equalise the prices of an identical basket of goods and services (in this case, a burger) in any two countries. Burgernomics was never intended as a precise gauge of currency misalignment, merely a tool to make exchange-rate theory more digestible. Yet the Big Mac index has become a global standard, included in several economic textbooks and the subject of dozens of academic studies. @@ -7,24 +7,24 @@ Big Mac prices are from McDonald’s directly and from reporting around the worl The Big Mac PPP exchange rate between two countries is obtained by dividing the price of a Big Mac in one country (in its currency) by the price of a Big Mac in another country (in its currency). -Source: https://data.nasdaq.com/data/ECONOMIST-the-economist-big-mac-index - -List of country codes for this feature: https://static.quandl.com/ECONOMIST_Descriptions/economist_country_codes.csv +Source of the data can be found [here](https://data.nasdaq.com/data/ECONOMIST-the-economist-big-mac-index) and a list of country codes for this feature can be found [here](https://static.quandl.com/ECONOMIST_Descriptions/economist_country_codes.csv). ``` optional arguments: + --codes Flag to show all country codes (default: False) -c COUNTRIES, --countries COUNTRIES Country codes to get data for. (default: USA) - --raw Show raw data (default: False) -h, --help show this help message (default: False) - --export {png,jpg,pdf,svg} - Export or figure into png, jpg, pdf, svg (default: ) + --export {csv,json,xlsx,png,jpg,pdf,svg} + Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) + --raw Flag to display raw data (default: False) ``` -Sample usage, which gets the index for 7 different countries: +Sample usage, which gets the index for 5 different countries: ``` -bigmac -c USA,EUR,MEX,CAN,UAE,RUS +bigmac -c USA,EUR,MEX,CAN,RUS ``` -Big Mac Index +![bigmac](https://user-images.githubusercontent.com/46355364/158362967-8353fa50-2eb1-43b0-9cbb-bc3c3aec2e2a.png) + From 379da2b1ca01ee5c4f465fae518a4bb914ab617c Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 11:58:23 +0100 Subject: [PATCH 03/26] Delete website/content/terminal/economy/cpi directory --- .../content/terminal/economy/cpi/_index.md | 21 ------------------- 1 file changed, 21 deletions(-) delete mode 100644 website/content/terminal/economy/cpi/_index.md diff --git a/website/content/terminal/economy/cpi/_index.md b/website/content/terminal/economy/cpi/_index.md deleted file mode 100644 index bcb0e6c58df..00000000000 --- a/website/content/terminal/economy/cpi/_index.md +++ /dev/null @@ -1,21 +0,0 @@ -``` -usage: cpi [-i {semiannual,monthly}] [-s START] [--raw] [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] -``` - -Get historical inflation numbers for the United States. Source: https://www.alphavantage.co/documentation/ - -``` -optional arguments: - -i {semiannual,monthly}, --interval {semiannual,monthly} - Interval for GDP data (default: semiannual) - -s START, --start START - Start year. (default: 2010) - --raw Display raw data (default: False) - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) -``` - -Example - -![cpi semi annually](https://user-images.githubusercontent.com/46355364/154036181-e3f51b7b-a90a-4c1e-ada3-a225b0e82a1f.png) From 9ee6235e1b1748751ec7e28f2891bc3fd5fe8168 Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 12:01:23 +0100 Subject: [PATCH 04/26] Update _index.md --- .../terminal/economy/overview/_index.md | 130 +++++++++++++++--- 1 file changed, 114 insertions(+), 16 deletions(-) diff --git a/website/content/terminal/economy/overview/_index.md b/website/content/terminal/economy/overview/_index.md index d596f180055..2cd1da73704 100644 --- a/website/content/terminal/economy/overview/_index.md +++ b/website/content/terminal/economy/overview/_index.md @@ -1,11 +1,13 @@ ``` -usage: overview [-h] [--export {csv,json,xlsx}] +usage: overview [-t {indices,usbonds,glbonds,currencies}] [-h] [--export {csv,json,xlsx}] ``` -Market overview. [Source: Wall St. Journal] +Provide a market overview of a variety of options. This can be a general overview, indices, bonds and currencies. [Source: Wall St. Journal] ``` optional arguments: + -t {indices,usbonds,glbonds,currencies}, --type {indices,usbonds,glbonds,currencies} + Obtain either US indices, US Bonds, Global Bonds or Currencies (default: ) -h, --help show this help message (default: False) --export {csv,json,xlsx} Export raw data into csv, json, xlsx (default: ) @@ -13,27 +15,123 @@ optional arguments: Example: ``` -2022 Feb 15, 05:25 (✨) /economy/ $ overview - Market Overview -┌───────────────────┬──────────┬─────────┬───────┐ -│ │ Price │ Chg │ %Chg │ +2022 Mar 15, 06:59 (✨) /economy/ $ overview + Market Overview +┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━┓ +┃ ┃ Price ┃ Chg ┃ %Chg ┃ +┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━┩ +│ DJIA │ 32945.24 │ 1.05 │ 0.00 │ ├───────────────────┼──────────┼─────────┼───────┤ -│ DJIA │ 34566.17 │ -171.89 │ -0.49 │ +│ S&P 500 │ 4173.11 │ -31.20 │ -0.74 │ ├───────────────────┼──────────┼─────────┼───────┤ -│ S&P 500 │ 4401.67 │ -16.97 │ -0.38 │ +│ Nasdaq Composite │ 12581.22 │ -262.59 │ -2.04 │ ├───────────────────┼──────────┼─────────┼───────┤ -│ Nasdaq Composite │ 13790.92 │ -0.24 │ 0.00 │ +│ Japan: Nikkei 225 │ 25346.48 │ 38.63 │ 0.15 │ ├───────────────────┼──────────┼─────────┼───────┤ -│ Japan: Nikkei 225 │ 26865.19 │ -214.40 │ -0.79 │ +│ UK: FTSE 100 │ 7117.67 │ -75.80 │ -1.05 │ ├───────────────────┼──────────┼─────────┼───────┤ -│ UK: FTSE 100 │ 7574.76 │ 43.17 │ 0.57 │ +│ Crude Oil Futures │ 97.12 │ -5.89 │ -5.72 │ ├───────────────────┼──────────┼─────────┼───────┤ -│ Crude Oil Futures │ 92.64 │ -2.82 │ -2.95 │ +│ Gold Futures │ 1932.30 │ -28.50 │ -1.45 │ ├───────────────────┼──────────┼─────────┼───────┤ -│ Gold Futures │ 1856.50 │ -12.90 │ -0.69 │ +│ Yen │ 118.01 │ -0.18 │ -0.15 │ ├───────────────────┼──────────┼─────────┼───────┤ -│ Yen │ 115.55 │ 0.01 │ 0.01 │ -├───────────────────┼──────────┼─────────┼───────┤ -│ Euro │ 1.1342 │ 0.0035 │ 0.31 │ +│ Euro │ 1.0996 │ 0.0055 │ 0.50 │ └───────────────────┴──────────┴─────────┴───────┘ + +2022 Mar 15, 07:00 (✨) /economy/ $ overview indices + US Indices +┏━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━┓ +┃ ┃ Price ┃ Chg ┃ %Chg ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━┩ +│ DJIA │ 32945.24 │ 1.05 │ 0.00 │ +├───────────────────────┼──────────┼─────────┼───────┤ +│ Nasdaq Composite │ 12581.22 │ -262.59 │ -2.04 │ +├───────────────────────┼──────────┼─────────┼───────┤ +│ S&P 500 │ 4173.11 │ -31.20 │ -0.74 │ +├───────────────────────┼──────────┼─────────┼───────┤ +│ DJ Total Stock Market │ 42169.18 │ -412.17 │ -0.97 │ +├───────────────────────┼──────────┼─────────┼───────┤ +│ Russell 2000 │ 1941.72 │ -37.95 │ -1.92 │ +├───────────────────────┼──────────┼─────────┼───────┤ +│ NYSE Composite │ 15694.35 │ -59.35 │ -0.38 │ +├───────────────────────┼──────────┼─────────┼───────┤ +│ Barron's 400 │ 968.62 │ -6.27 │ -0.64 │ +├───────────────────────┼──────────┼─────────┼───────┤ +│ CBOE Volatility │ 32.57 │ 0.80 │ 2.52 │ +├───────────────────────┼──────────┼─────────┼───────┤ +│ DJIA Futures │ 32786 │ -52 │ -0.16 │ +├───────────────────────┼──────────┼─────────┼───────┤ +│ S&P 500 Futures │ 4160.25 │ -3.25 │ -0.08 │ +└───────────────────────┴──────────┴─────────┴───────┘ + +2022 Mar 15, 07:00 (✨) /economy/ $ overview usbonds +ov US Bonds +┏━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━┓ +┃ ┃ Rate (%) ┃ Yld (%) ┃ Yld Chg (%) ┃ +┡━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━┩ +│ 30-Year Bond │ 2.25 │ 2.462 │ -0.016 │ +├──────────────┼──────────┼─────────┼─────────────┤ +│ 10-Year Note │ 1.88 │ 2.119 │ -0.025 │ +├──────────────┼──────────┼─────────┼─────────────┤ +│ 7-Year Note │ 1.88 │ 2.131 │ -0.023 │ +├──────────────┼──────────┼─────────┼─────────────┤ +│ 5-Year Note │ 1.88 │ 2.070 │ -0.023 │ +├──────────────┼──────────┼─────────┼─────────────┤ +│ 3-Year Note │ 1.75 │ 2.020 │ -0.035 │ +├──────────────┼──────────┼─────────┼─────────────┤ +│ 2-Year Note │ 1.50 │ 1.835 │ -0.032 │ +├──────────────┼──────────┼─────────┼─────────────┤ +│ 1-Year Bill │ 0.00 │ 1.202 │ -0.003 │ +├──────────────┼──────────┼─────────┼─────────────┤ +│ 6-Month Bill │ 0.00 │ 0.830 │ 0.087 │ +├──────────────┼──────────┼─────────┼─────────────┤ +│ 3-Month Bill │ 0.00 │ 0.442 │ -0.019 │ +├──────────────┼──────────┼─────────┼─────────────┤ +│ 1-Month Bill │ 0.00 │ 0.200 │ -0.007 │ +└──────────────┴──────────┴─────────┴─────────────┘ + +2022 Mar 15, 07:00 (✨) /economy/ $ overview glbonds + Global Bonds +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━┓ +┃ ┃ Rate (%) ┃ Yld (%) ┃ Yld Chg (%) ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━┩ +│ U.S. 10 Year Treasury Note │ 1.875 │ 2.118 │ -0.026 │ +├───────────────────────────────────┼──────────┼─────────┼─────────────┤ +│ Germany 10 Year Government Bond │ 0.000 │ 0.359 │ -0.009 │ +├───────────────────────────────────┼──────────┼─────────┼─────────────┤ +│ U.K. 10 Year Gilt │ 4.250 │ 1.591 │ -0.006 │ +├───────────────────────────────────┼──────────┼─────────┼─────────────┤ +│ Japan 10 Year Government Bond │ 0.100 │ 0.210 │ 0.015 │ +├───────────────────────────────────┼──────────┼─────────┼─────────────┤ +│ Australia 10 Year Government Bond │ 1.000 │ 2.505 │ 0.061 │ +├───────────────────────────────────┼──────────┼─────────┼─────────────┤ +│ China 10 Year Government Bond │ 2.890 │ 2.846 │ 0.055 │ +└───────────────────────────────────┴──────────┴─────────┴─────────────┘ + +2022 Mar 15, 07:00 (✨) /economy/ $ overview currencies + Currencies +┏━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━┓ +┃ ┃ Last ┃ Chng ┃ %Chng ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━┩ +│ Euro (EUR/USD) │ 1.0996 │ 0.0055 │ 0.50 │ +├────────────────────────┼─────────┼─────────┼───────┤ +│ Japanese Yen (USD/JPY) │ 118.03 │ -0.16 │ -0.14 │ +├────────────────────────┼─────────┼─────────┼───────┤ +│ U.K. Pound (GBP/USD) │ 1.3036 │ 0.0035 │ 0.27 │ +├────────────────────────┼─────────┼─────────┼───────┤ +│ Swiss Franc (USD/CHF) │ 0.9388 │ 0.0002 │ 0.02 │ +├────────────────────────┼─────────┼─────────┼───────┤ +│ Chinese Yuan (USD/CNY) │ 6.3740 │ 0.0086 │ 0.14 │ +├────────────────────────┼─────────┼─────────┼───────┤ +│ Canadian $ (USD/CAD) │ 1.2846 │ 0.0020 │ 0.16 │ +├────────────────────────┼─────────┼─────────┼───────┤ +│ Mexican Peso (USD/MXN) │ 20.8658 │ -0.0495 │ -0.24 │ +├────────────────────────┼─────────┼─────────┼───────┤ +│ Bitcoin (BTC/USD) │ 38691 │ -46 │ -0.12 │ +├────────────────────────┼─────────┼─────────┼───────┤ +│ WSJ Dollar Index │ 91.76 │ -0.21 │ -0.23 │ +├────────────────────────┼─────────┼─────────┼───────┤ +│ U.S. Dollar Index │ 98.78 │ -0.22 │ -0.22 │ +└────────────────────────┴─────────┴─────────┴───────┘ ``` From 8c92e29c35fcfd723660cabf1c500b90343008ca Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 12:01:43 +0100 Subject: [PATCH 05/26] Delete website/content/terminal/economy/currencies directory --- .../terminal/economy/currencies/_index.md | 41 ------------------- 1 file changed, 41 deletions(-) delete mode 100644 website/content/terminal/economy/currencies/_index.md diff --git a/website/content/terminal/economy/currencies/_index.md b/website/content/terminal/economy/currencies/_index.md deleted file mode 100644 index e4482023364..00000000000 --- a/website/content/terminal/economy/currencies/_index.md +++ /dev/null @@ -1,41 +0,0 @@ -``` -usage: currencies [--export {csv,json,xlsx}] [-h] -``` - -Shows a basket of global currencies from the Wall Street Journal. (https://www.wsj.com/market-data/currencies) - -``` -optional arguments: - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: -``` -2022 Feb 15, 04:48 (✨) /economy/ $ currencies - Currencies -┌────────────────────────┬─────────┬─────────┬───────┐ -│ │ Last │ Chng │ %Chng │ -├────────────────────────┼─────────┼─────────┼───────┤ -│ Euro (EUR/USD) │ 1.1340 │ 0.0033 │ 0.29 │ -├────────────────────────┼─────────┼─────────┼───────┤ -│ Japanese Yen (USD/JPY) │ 115.61 │ 0.07 │ 0.06 │ -├────────────────────────┼─────────┼─────────┼───────┤ -│ U.K. Pound (GBP/USD) │ 1.3548 │ 0.0020 │ 0.15 │ -├────────────────────────┼─────────┼─────────┼───────┤ -│ Swiss Franc (USD/CHF) │ 0.9261 │ 0.0015 │ 0.16 │ -├────────────────────────┼─────────┼─────────┼───────┤ -│ Chinese Yuan (USD/CNY) │ 6.3508 │ -0.0068 │ -0.11 │ -├────────────────────────┼─────────┼─────────┼───────┤ -│ Canadian $ (USD/CAD) │ 1.2712 │ -0.0017 │ -0.13 │ -├────────────────────────┼─────────┼─────────┼───────┤ -│ Mexican Peso (USD/MXN) │ 20.3832 │ -0.0323 │ -0.16 │ -├────────────────────────┼─────────┼─────────┼───────┤ -│ Bitcoin (BTC/USD) │ 44066 │ 1809 │ 4.28 │ -├────────────────────────┼─────────┼─────────┼───────┤ -│ WSJ Dollar Index │ 89.89 │ -0.14 │ -0.15 │ -├────────────────────────┼─────────┼─────────┼───────┤ -│ U.S. Dollar Index │ 96.08 │ -0.29 │ -0.30 │ -└────────────────────────┴─────────┴─────────┴───────┘ -``` From 68aa3ba0bed1bcfe048645653c540c1141d28797 Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 12:01:55 +0100 Subject: [PATCH 06/26] Delete website/content/terminal/economy/glbonds directory --- .../terminal/economy/glbonds/_index.md | 33 ------------------- 1 file changed, 33 deletions(-) delete mode 100644 website/content/terminal/economy/glbonds/_index.md diff --git a/website/content/terminal/economy/glbonds/_index.md b/website/content/terminal/economy/glbonds/_index.md deleted file mode 100644 index 146a812b298..00000000000 --- a/website/content/terminal/economy/glbonds/_index.md +++ /dev/null @@ -1,33 +0,0 @@ -``` -usage: glbonds [--export {csv,json,xlsx}] [-h] -``` - -An overview of global bonds. [Source: Wall St. Journal] - -``` -optional arguments: - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: -``` -2022 Feb 15, 04:58 (✨) /economy/ $ glbonds - Global Bonds -┌───────────────────────────────────┬──────────┬─────────┬─────────────┐ -│ │ Rate (%) │ Yld (%) │ Yld Chg (%) │ -├───────────────────────────────────┼──────────┼─────────┼─────────────┤ -│ U.S. 10 Year Treasury Note │ 1.875 │ 2.028 │ 0.039 │ -├───────────────────────────────────┼──────────┼─────────┼─────────────┤ -│ Germany 10 Year Government Bond │ 0.000 │ 0.284 │ 0.002 │ -├───────────────────────────────────┼──────────┼─────────┼─────────────┤ -│ U.K. 10 Year Gilt │ 4.750 │ 1.558 │ -0.033 │ -├───────────────────────────────────┼──────────┼─────────┼─────────────┤ -│ Japan 10 Year Government Bond │ 0.100 │ 0.216 │ -0.002 │ -├───────────────────────────────────┼──────────┼─────────┼─────────────┤ -│ Australia 10 Year Government Bond │ 1.000 │ 2.185 │ 0.049 │ -├───────────────────────────────────┼──────────┼─────────┼─────────────┤ -│ China 10 Year Government Bond │ 2.890 │ 2.816 │ -0.007 │ -└───────────────────────────────────┴──────────┴─────────┴─────────────┘ -``` From a04e42eb80dfb2a0e33c22dec21f95e5f8e89324 Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 12:02:09 +0100 Subject: [PATCH 07/26] Delete website/content/terminal/economy/usbonds directory --- .../terminal/economy/usbonds/_index.md | 41 ------------------- 1 file changed, 41 deletions(-) delete mode 100644 website/content/terminal/economy/usbonds/_index.md diff --git a/website/content/terminal/economy/usbonds/_index.md b/website/content/terminal/economy/usbonds/_index.md deleted file mode 100644 index 81470ce2488..00000000000 --- a/website/content/terminal/economy/usbonds/_index.md +++ /dev/null @@ -1,41 +0,0 @@ -``` -usage: usbonds [-h] [--export {csv,json,xlsx}] -``` - -An overview of the US bond rates. [Source: Wall St. Journal] - -``` -optional arguments: - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: -``` -2022 Feb 15, 05:42 (✨) /economy/ $ usbonds - US Bonds -┌──────────────┬──────────┬─────────┬─────────────┐ -│ │ Rate (%) │ Yld (%) │ Yld Chg (%) │ -├──────────────┼──────────┼─────────┼─────────────┤ -│ 30-Year Bond │ 2.25 │ 2.330 │ 0.043 │ -├──────────────┼──────────┼─────────┼─────────────┤ -│ 10-Year Note │ 1.88 │ 2.033 │ 0.045 │ -├──────────────┼──────────┼─────────┼─────────────┤ -│ 7-Year Note │ 1.75 │ 2.032 │ 0.044 │ -├──────────────┼──────────┼─────────┼─────────────┤ -│ 5-Year Note │ 1.50 │ 1.944 │ 0.032 │ -├──────────────┼──────────┼─────────┼─────────────┤ -│ 3-Year Note │ 1.50 │ 1.810 │ 0.014 │ -├──────────────┼──────────┼─────────┼─────────────┤ -│ 2-Year Note │ 0.88 │ 1.592 │ 0.009 │ -├──────────────┼──────────┼─────────┼─────────────┤ -│ 1-Year Bill │ 0.00 │ 1.091 │ 0.026 │ -├──────────────┼──────────┼─────────┼─────────────┤ -│ 6-Month Bill │ 0.00 │ 0.774 │ -0.005 │ -├──────────────┼──────────┼─────────┼─────────────┤ -│ 3-Month Bill │ 0.00 │ 0.416 │ 0.006 │ -├──────────────┼──────────┼─────────┼─────────────┤ -│ 1-Month Bill │ 0.00 │ 0.025 │ -0.010 │ -└──────────────┴──────────┴─────────┴─────────────┘ -``` From bc1f652df60c021e01adeccf4cc085e1f16375e5 Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 12:02:27 +0100 Subject: [PATCH 08/26] Delete website/content/terminal/economy/indices directory --- .../terminal/economy/indices/_index.md | 41 ------------------- 1 file changed, 41 deletions(-) delete mode 100644 website/content/terminal/economy/indices/_index.md diff --git a/website/content/terminal/economy/indices/_index.md b/website/content/terminal/economy/indices/_index.md deleted file mode 100644 index 2a9ef26aebd..00000000000 --- a/website/content/terminal/economy/indices/_index.md +++ /dev/null @@ -1,41 +0,0 @@ -``` -usage: indices [--export {csv,json,xlsx}] [-h] -``` - -US indices. [Source: Wall St. Journal] - -``` -optional arguments: - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: -``` -2022 Feb 15, 05:06 (✨) /economy/ $ indices - US Indices -┌───────────────────────┬──────────┬─────────┬───────┐ -│ │ Price │ Chg │ %Chg │ -├───────────────────────┼──────────┼─────────┼───────┤ -│ DJIA │ 34566.17 │ -171.89 │ -0.49 │ -├───────────────────────┼──────────┼─────────┼───────┤ -│ Nasdaq Composite │ 13790.92 │ -0.24 │ 0.00 │ -├───────────────────────┼──────────┼─────────┼───────┤ -│ S&P 500 │ 4401.67 │ -16.97 │ -0.38 │ -├───────────────────────┼──────────┼─────────┼───────┤ -│ DJ Total Stock Market │ 44670.32 │ -181.98 │ -0.41 │ -├───────────────────────┼──────────┼─────────┼───────┤ -│ Russell 2000 │ 2020.79 │ -9.36 │ -0.46 │ -├───────────────────────┼──────────┼─────────┼───────┤ -│ NYSE Composite │ 16531.31 │ -133.68 │ -0.80 │ -├───────────────────────┼──────────┼─────────┼───────┤ -│ Barron's 400 │ 1008.20 │ -5.07 │ -0.50 │ -├───────────────────────┼──────────┼─────────┼───────┤ -│ CBOE Volatility │ 26.49 │ -1.84 │ -6.49 │ -├───────────────────────┼──────────┼─────────┼───────┤ -│ DJIA Futures │ 34766 │ 295 │ 0.86 │ -├───────────────────────┼──────────┼─────────┼───────┤ -│ S&P 500 Futures │ 4446.00 │ 52.00 │ 1.18 │ -└───────────────────────┴──────────┴─────────┴───────┘ -``` From 30942c049c21f77fc3351efdd7452d7bec4aad38 Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 12:05:01 +0100 Subject: [PATCH 09/26] Update _index.md --- .../terminal/economy/futures/_index.md | 128 +++++++++++++++--- 1 file changed, 109 insertions(+), 19 deletions(-) diff --git a/website/content/terminal/economy/futures/_index.md b/website/content/terminal/economy/futures/_index.md index 7255bbf36f3..5230e3525b6 100644 --- a/website/content/terminal/economy/futures/_index.md +++ b/website/content/terminal/economy/futures/_index.md @@ -1,41 +1,131 @@ ``` -usage: futures [--export {csv,json,xlsx}] [-h] +usage: futures [-c {energy,metals,meats,grains,softs}] [-s {ticker,last,change,prevClose}] [-a] [-h] [--export {csv,json,xlsx}] ``` -Commodities futures overview. [Source: https://www.wsj.com/market-data/commodities] +Futures/Commodities frrom Wall St. Journal and FinViz. ``` optional arguments: - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) + -c {energy,metals,meats,grains,softs}, --commodity {energy,metals,meats,grains,softs} + Obtain commodity futures from FinViz (default: ) + -s {ticker,last,change,prevClose}, --sortby {ticker,last,change,prevClose} + -a, -ascend Flag to sort in ascending order (default: False) -h, --help show this help message (default: False) + --export {csv,json,xlsx} + Export raw data into csv, json, xlsx (default: ) ``` Example: ``` -2022 Feb 15, 04:54 (✨) /economy/ $ futures - Futures/Commodities -┌───────────────────────────┬─────────┬─────────┬───────┐ -│ │ Price │ Chg │ %Chg │ +2022 Mar 15, 07:02 (✨) /economy/ $ futures + Futures/Commodities [Source: Wall St. Journal] +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━┓ +┃ ┃ Price ┃ Chg ┃ %Chg ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━┩ +│ Crude Oil Futures │ 97.11 │ -5.90 │ -5.73 │ ├───────────────────────────┼─────────┼─────────┼───────┤ -│ Crude Oil Futures │ 92.80 │ -2.66 │ -2.79 │ +│ Brent Crude Futures │ 101.01 │ -5.89 │ -5.51 │ ├───────────────────────────┼─────────┼─────────┼───────┤ -│ Brent Crude Futures │ 94.10 │ -2.38 │ -2.47 │ +│ Gold Futures │ 1930.50 │ -30.30 │ -1.55 │ ├───────────────────────────┼─────────┼─────────┼───────┤ -│ Gold Futures │ 1857.80 │ -11.60 │ -0.62 │ +│ Silver Futures │ 24.875 │ -0.423 │ -1.67 │ ├───────────────────────────┼─────────┼─────────┼───────┤ -│ Silver Futures │ 23.460 │ -0.388 │ -1.63 │ +│ Natural Gas Futures │ 4.601 │ -0.101 │ -2.15 │ ├───────────────────────────┼─────────┼─────────┼───────┤ -│ Natural Gas Futures │ 4.422 │ 0.227 │ 5.41 │ +│ Unleaded Gasoline Futures │ 3.0197 │ -0.1492 │ -4.71 │ ├───────────────────────────┼─────────┼─────────┼───────┤ -│ Unleaded Gasoline Futures │ 2.7159 │ -0.0635 │ -2.28 │ +│ Copper Futures │ 4.5005 │ -0.0225 │ -0.50 │ ├───────────────────────────┼─────────┼─────────┼───────┤ -│ Copper Futures │ 4.5300 │ 0.0225 │ 0.50 │ +│ Corn Futures │ 739.00 │ -9.25 │ -1.24 │ ├───────────────────────────┼─────────┼─────────┼───────┤ -│ Corn Futures │ 647.75 │ -8.00 │ -1.22 │ +│ Wheat Futures │ 1126.50 │ 30.25 │ 2.76 │ ├───────────────────────────┼─────────┼─────────┼───────┤ -│ Wheat Futures │ 783.75 │ -15.50 │ -1.94 │ -├───────────────────────────┼─────────┼─────────┼───────┤ -│ Bloomberg Commodity Index │ 110.49 │ -0.61 │ -0.55 │ +│ Bloomberg Commodity Index │ 121.16 │ -2.64 │ -2.13 │ └───────────────────────────┴─────────┴─────────┴───────┘ + +2022 Mar 15, 07:03 (✨) /economy/ $ futures energy + Future Table [Source: FinViz] +┏━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━┓ +┃ ┃ prevClose ┃ last ┃ change (%) ┃ +┡━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━┩ +│ Ethanol │ 2.16 │ 2.22 │ 2.78 │ +├─────────────────┼───────────┼────────┼────────────┤ +│ Gasoline RBOB │ 3.17 │ 3.02 │ -4.82 │ +├─────────────────┼───────────┼────────┼────────────┤ +│ Crude Oil Brent │ 106.90 │ 101.01 │ -5.51 │ +├─────────────────┼───────────┼────────┼────────────┤ +│ Natural Gas │ 4.66 │ 4.56 │ -2.10 │ +├─────────────────┼───────────┼────────┼────────────┤ +│ Heating Oil │ 3.28 │ 3.07 │ -6.44 │ +├─────────────────┼───────────┼────────┼────────────┤ +│ Crude Oil WTI │ 103.01 │ 97.14 │ -5.70 │ +└─────────────────┴───────────┴────────┴────────────┘ + +2022 Mar 15, 07:04 (✨) /economy/ $ futures metals + Future Table [Source: FinViz] +┏━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━┓ +┃ ┃ prevClose ┃ last ┃ change (%) ┃ +┡━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━┩ +│ Silver │ 25.30 │ 24.88 │ -1.65 │ +├───────────┼───────────┼─────────┼────────────┤ +│ Platinum │ 1052.30 │ 1021.50 │ -2.93 │ +├───────────┼───────────┼─────────┼────────────┤ +│ Palladium │ 2417.60 │ 2450.50 │ 1.36 │ +├───────────┼───────────┼─────────┼────────────┤ +│ Copper │ 4.52 │ 4.49 │ -0.64 │ +├───────────┼───────────┼─────────┼────────────┤ +│ Gold │ 1960.80 │ 1930.30 │ -1.56 │ +└───────────┴───────────┴─────────┴────────────┘ + +2022 Mar 15, 07:04 (✨) /economy/ $ futures meats + Future Table [Source: FinViz] +┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━┓ +┃ ┃ prevClose ┃ last ┃ change (%) ┃ +┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━┩ +│ Lean Hogs │ 102.72 │ 102.17 │ -0.54 │ +├───────────────┼───────────┼────────┼────────────┤ +│ Live Cattle │ 137.30 │ 140.35 │ 2.22 │ +├───────────────┼───────────┼────────┼────────────┤ +│ Feeder Cattle │ 157.97 │ 162.43 │ 2.82 │ +└───────────────┴───────────┴────────┴────────────┘ + +2022 Mar 15, 07:04 (✨) /economy/ $ futures grains + Future Table [Source: FinViz] +┏━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━┓ +┃ ┃ prevClose ┃ last ┃ change (%) ┃ +┡━━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━┩ +│ Wheat │ 1096.25 │ 1127.50 │ 2.85 │ +├──────────────┼───────────┼─────────┼────────────┤ +│ Soybeans │ 1670.50 │ 1646.00 │ -1.47 │ +├──────────────┼───────────┼─────────┼────────────┤ +│ Rough Rice │ 16.10 │ 16.14 │ 0.25 │ +├──────────────┼───────────┼─────────┼────────────┤ +│ Oats │ 662.00 │ 653.75 │ -1.25 │ +├──────────────┼───────────┼─────────┼────────────┤ +│ Soybean Meal │ 484.30 │ 476.40 │ -1.63 │ +├──────────────┼───────────┼─────────┼────────────┤ +│ Soybean oil │ 73.95 │ 72.90 │ -1.42 │ +├──────────────┼───────────┼─────────┼────────────┤ +│ Corn │ 748.25 │ 739.75 │ -1.14 │ +├──────────────┼───────────┼─────────┼────────────┤ +│ Canola │ 1139.10 │ 1113.40 │ -2.26 │ +└──────────────┴───────────┴─────────┴────────────┘ + +2022 Mar 15, 07:04 (✨) /economy/ $ futures softs + Future Table [Source: FinViz] +┏━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━┓ +┃ ┃ prevClose ┃ last ┃ change (%) ┃ +┡━━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━┩ +│ Sugar │ 19.13 │ 18.74 │ -2.04 │ +├──────────────┼───────────┼─────────┼────────────┤ +│ Lumber │ 1159.20 │ 1104.00 │ -4.76 │ +├──────────────┼───────────┼─────────┼────────────┤ +│ Coffee │ 218.80 │ 215.05 │ -1.71 │ +├──────────────┼───────────┼─────────┼────────────┤ +│ Orange Juice │ 138.70 │ 142.00 │ 2.38 │ +├──────────────┼───────────┼─────────┼────────────┤ +│ Cotton │ 118.77 │ 118.06 │ -0.60 │ +├──────────────┼───────────┼─────────┼────────────┤ +│ Cocoa │ 2611.00 │ 2556.00 │ -2.11 │ +└──────────────┴───────────┴─────────┴────────────┘ ``` From d0f211d7fdc06b7d04aab5ccddd192a2a4799d3b Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 12:05:22 +0100 Subject: [PATCH 10/26] Delete website/content/terminal/economy/gdp directory --- .../content/terminal/economy/gdp/_index.md | 20 ------------------- 1 file changed, 20 deletions(-) delete mode 100644 website/content/terminal/economy/gdp/_index.md diff --git a/website/content/terminal/economy/gdp/_index.md b/website/content/terminal/economy/gdp/_index.md deleted file mode 100644 index 3f920e64b9c..00000000000 --- a/website/content/terminal/economy/gdp/_index.md +++ /dev/null @@ -1,20 +0,0 @@ -``` -usage: gdp [-i {annual,quarter}] [-s START] [--raw] [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] -``` - -US Real GDP, on either annual or quarterly intervals. [Source: Alpha Vantage] - -``` -optional arguments: - -i {annual,quarter}, --interval {annual,quarter} - Interval for GDP data (default: annual) - -s START, --start START - Start year. Quarterly only goes back to 2002. (default: 2010) - --raw Display raw data (default: False) - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) -``` - -Example: -![gdp](https://user-images.githubusercontent.com/46355364/154037947-b2464523-9dd3-497d-abd5-5ac403f92788.png) From 994ba2912e4bee8d6030dc3e7906c7f103ab14a6 Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 12:05:30 +0100 Subject: [PATCH 11/26] Delete website/content/terminal/economy/gdpc directory --- website/content/terminal/economy/gdpc/_index.md | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 website/content/terminal/economy/gdpc/_index.md diff --git a/website/content/terminal/economy/gdpc/_index.md b/website/content/terminal/economy/gdpc/_index.md deleted file mode 100644 index b53cbe65460..00000000000 --- a/website/content/terminal/economy/gdpc/_index.md +++ /dev/null @@ -1,17 +0,0 @@ -``` -usage: gdpc [-s START] [--raw] [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] -``` - -Get real GDP per capita for United States. [Source: Alpha Vantage] - -``` -optional arguments: - -s START, --start START - Start year. (default: 2010) - --raw Display raw data (default: False) - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) -``` - -![gdpc](https://user-images.githubusercontent.com/46355364/154038200-5b3891db-4f36-4d92-9f02-8e494b79f4c7.png) From f5984966f81f5bbd735d88686eb2f787c88cf29c Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 12:05:38 +0100 Subject: [PATCH 12/26] Delete website/content/terminal/economy/grains directory --- .../content/terminal/economy/grains/_index.md | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 website/content/terminal/economy/grains/_index.md diff --git a/website/content/terminal/economy/grains/_index.md b/website/content/terminal/economy/grains/_index.md deleted file mode 100644 index dca63f02f1f..00000000000 --- a/website/content/terminal/economy/grains/_index.md +++ /dev/null @@ -1,39 +0,0 @@ -``` -usage: grains [-s {ticker,last,change,prevClose}] [-a] [-h] [--export {csv,json,xlsx}] -``` - -Grains future overview. [Source: Finviz] - -``` -optional arguments: - -s {ticker,last,change,prevClose}, --sortby {ticker,last,change,prevClose} - -a, -ascend Flag to sort in ascending order (default: False) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: -``` -2022 Feb 15, 04:59 (✨) /economy/ $ grains - Future Table -┌──────────────┬───────────┬─────────┬────────────┐ -│ │ prevClose │ last │ change (%) │ -├──────────────┼───────────┼─────────┼────────────┤ -│ Wheat │ 799.25 │ 782.50 │ -2.10 │ -├──────────────┼───────────┼─────────┼────────────┤ -│ Soybeans │ 1570.00 │ 1560.75 │ -0.59 │ -├──────────────┼───────────┼─────────┼────────────┤ -│ Rough Rice │ 15.05 │ 14.99 │ -0.40 │ -├──────────────┼───────────┼─────────┼────────────┤ -│ Oats │ 745.50 │ 737.25 │ -1.11 │ -├──────────────┼───────────┼─────────┼────────────┤ -│ Soybean Meal │ 448.40 │ 446.80 │ -0.36 │ -├──────────────┼───────────┼─────────┼────────────┤ -│ Soybean oil │ 65.81 │ 65.24 │ -0.87 │ -├──────────────┼───────────┼─────────┼────────────┤ -│ Corn │ 655.75 │ 647.50 │ -1.26 │ -├──────────────┼───────────┼─────────┼────────────┤ -│ Canola │ 1009.50 │ 1009.20 │ -0.03 │ -└──────────────┴───────────┴─────────┴────────────┘ -``` From 2b2a4f4eb576b0ef8851c6a350bc3d9755d63cf5 Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 12:05:48 +0100 Subject: [PATCH 13/26] Delete website/content/terminal/economy/inf directory --- website/content/terminal/economy/inf/_index.md | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 website/content/terminal/economy/inf/_index.md diff --git a/website/content/terminal/economy/inf/_index.md b/website/content/terminal/economy/inf/_index.md deleted file mode 100644 index 75a4d8f7abf..00000000000 --- a/website/content/terminal/economy/inf/_index.md +++ /dev/null @@ -1,16 +0,0 @@ -``` -usage: inf [-s START] [--raw] [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] -``` - -Get historical Inflation for United States [Source: Alpha Vantage] -``` -optional arguments: - -s START, --start START - Start year. (default: 2010) - --raw Display raw data (default: False) - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) -``` - -![inf](https://user-images.githubusercontent.com/46355364/154041865-150b4f11-6113-4563-a239-8a023ef6c6c7.png) From 498cb257f4ffd76ef4df19a07ce1621371b3879a Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 12:05:57 +0100 Subject: [PATCH 14/26] Delete website/content/terminal/economy/meats directory --- .../content/terminal/economy/meats/_index.md | 29 ------------------- 1 file changed, 29 deletions(-) delete mode 100644 website/content/terminal/economy/meats/_index.md diff --git a/website/content/terminal/economy/meats/_index.md b/website/content/terminal/economy/meats/_index.md deleted file mode 100644 index af0be91f875..00000000000 --- a/website/content/terminal/economy/meats/_index.md +++ /dev/null @@ -1,29 +0,0 @@ -``` -usage: meats [-s {ticker,last,change,prevClose}] [-a] [-h] [--export {csv,json,xlsx}] -``` - -Meats future overview. [Source: Finviz] - -``` -optional arguments: - -s {ticker,last,change,prevClose}, --sortby {ticker,last,change,prevClose} - -a, -ascend Flag to sort in ascending order (default: False) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: -``` -2022 Feb 15, 05:24 (✨) /economy/ $ meats - Future Table -┌───────────────┬───────────┬────────┬────────────┐ -│ │ prevClose │ last │ change (%) │ -├───────────────┼───────────┼────────┼────────────┤ -│ Lean Hogs │ 102.22 │ 102.22 │ 0.00 │ -├───────────────┼───────────┼────────┼────────────┤ -│ Live Cattle │ 146.18 │ 146.38 │ 0.14 │ -├───────────────┼───────────┼────────┼────────────┤ -│ Feeder Cattle │ 166.22 │ 166.97 │ 0.45 │ -└───────────────┴───────────┴────────┴────────────┘ -``` From 49324fe9216d0743ca6ab08b29e179e9e00d3a84 Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 12:06:06 +0100 Subject: [PATCH 15/26] Delete website/content/terminal/economy/metals directory --- .../content/terminal/economy/metals/_index.md | 33 ------------------- 1 file changed, 33 deletions(-) delete mode 100644 website/content/terminal/economy/metals/_index.md diff --git a/website/content/terminal/economy/metals/_index.md b/website/content/terminal/economy/metals/_index.md deleted file mode 100644 index a26daebdb39..00000000000 --- a/website/content/terminal/economy/metals/_index.md +++ /dev/null @@ -1,33 +0,0 @@ -``` -usage: metals [-s {ticker,last,change,prevClose}] [-a] [-h] [--export {csv,json,xlsx}] -``` - -Metals future overview. [Source: Finviz] - -``` -optional arguments: - -s {ticker,last,change,prevClose}, --sortby {ticker,last,change,prevClose} - -a, -ascend Flag to sort in ascending order (default: False) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: -``` -2022 Feb 15, 05:24 (✨) /economy/ $ metals - Future Table -┌───────────┬───────────┬─────────┬────────────┐ -│ │ prevClose │ last │ change (%) │ -├───────────┼───────────┼─────────┼────────────┤ -│ Silver │ 23.85 │ 23.43 │ -1.77 │ -├───────────┼───────────┼─────────┼────────────┤ -│ Platinum │ 1028.00 │ 1020.60 │ -0.72 │ -├───────────┼───────────┼─────────┼────────────┤ -│ Palladium │ 2346.00 │ 2284.00 │ -2.64 │ -├───────────┼───────────┼─────────┼────────────┤ -│ Copper │ 4.51 │ 4.53 │ 0.53 │ -├───────────┼───────────┼─────────┼────────────┤ -│ Gold │ 1869.40 │ 1855.30 │ -0.75 │ -└───────────┴───────────┴─────────┴────────────┘ -``` From 6d4b3c61394cfb9e5c935834bc3df91459daba84 Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 12:06:17 +0100 Subject: [PATCH 16/26] Delete website/content/terminal/economy/softs directory --- .../content/terminal/economy/softs/_index.md | 35 ------------------- 1 file changed, 35 deletions(-) delete mode 100644 website/content/terminal/economy/softs/_index.md diff --git a/website/content/terminal/economy/softs/_index.md b/website/content/terminal/economy/softs/_index.md deleted file mode 100644 index 3df550fa652..00000000000 --- a/website/content/terminal/economy/softs/_index.md +++ /dev/null @@ -1,35 +0,0 @@ -``` -usage: softs [-s {ticker,last,change,prevClose}] [-a] [-h] [--export {csv,json,xlsx}] -``` - -Softs future overview. [Source: Finviz] - -``` -optional arguments: - -s {ticker,last,change,prevClose}, --sortby {ticker,last,change,prevClose} - -a, -ascend Flag to sort in ascending order (default: False) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: -``` -2022 Feb 15, 05:29 (✨) /economy/ $ softs - Future Table -┌──────────────┬───────────┬─────────┬────────────┐ -│ │ prevClose │ last │ change (%) │ -├──────────────┼───────────┼─────────┼────────────┤ -│ Sugar │ 18.12 │ 17.58 │ -2.98 │ -├──────────────┼───────────┼─────────┼────────────┤ -│ Lumber │ 1216.00 │ 1246.00 │ 2.47 │ -├──────────────┼───────────┼─────────┼────────────┤ -│ Coffee │ 247.90 │ 249.60 │ 0.69 │ -├──────────────┼───────────┼─────────┼────────────┤ -│ Orange Juice │ 136.55 │ 135.40 │ -0.84 │ -├──────────────┼───────────┼─────────┼────────────┤ -│ Cotton │ 120.61 │ 120.85 │ 0.20 │ -├──────────────┼───────────┼─────────┼────────────┤ -│ Cocoa │ 2731.00 │ 2739.00 │ 0.29 │ -└──────────────┴───────────┴─────────┴────────────┘ -``` From 0c21780efa2730d7301a45101b4fcd47007ef86c Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 12:06:29 +0100 Subject: [PATCH 17/26] Delete website/content/terminal/economy/unemp directory --- .../content/terminal/economy/unemp/_index.md | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 website/content/terminal/economy/unemp/_index.md diff --git a/website/content/terminal/economy/unemp/_index.md b/website/content/terminal/economy/unemp/_index.md deleted file mode 100644 index 5780d66176e..00000000000 --- a/website/content/terminal/economy/unemp/_index.md +++ /dev/null @@ -1,17 +0,0 @@ -``` -usage: unemp [-s START] [--raw] [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] -``` - -Get United States Unemployment data [Source: Alpha Vantage] - -``` -optional arguments: - -s START, --start START - Start year. (default: 2015) - --raw Display raw data (default: False) - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) -``` - -![unemp](https://user-images.githubusercontent.com/46355364/154045855-f8342f3e-d9c5-4b77-9a76-862cd45a4e59.png) From 35ad3e868ca9bb932975233c3fbd29ac1433618a Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 12:06:39 +0100 Subject: [PATCH 18/26] Delete website/content/terminal/economy/tyld directory --- .../content/terminal/economy/tyld/_index.md | 21 ------------------- 1 file changed, 21 deletions(-) delete mode 100644 website/content/terminal/economy/tyld/_index.md diff --git a/website/content/terminal/economy/tyld/_index.md b/website/content/terminal/economy/tyld/_index.md deleted file mode 100644 index b1099c938e6..00000000000 --- a/website/content/terminal/economy/tyld/_index.md +++ /dev/null @@ -1,21 +0,0 @@ -``` -usage: tyld [-i {daily,weekly,monthly}] [-m {3m,5y,10y,30y}] [-s START] [--raw] [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] -``` - -Get historical Treasury Yield [Source: Alpha Vantage] - -``` -optional arguments: - -i {daily,weekly,monthly}, --interval {daily,weekly,monthly} - Interval for treasury data (default: weekly) - -m {3m,5y,10y,30y}, --maturity {3m,5y,10y,30y} - Maturity timeline for treasury (default: 5y) - -s START, --start START - Start date. (default: 2021-02-14 11:38:01.977328) - --raw Display raw data (default: False) - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) -``` - -![tyld](https://user-images.githubusercontent.com/46355364/154045710-b46d9989-9c5b-4095-8387-6a77b6d4004a.png) From 8efd2c5d84829cfd064707f55a779ae02dc8ad82 Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 12:07:40 +0100 Subject: [PATCH 19/26] Delete website/content/terminal/economy/fred directory --- .../content/terminal/economy/fred/_index.md | 7 -- .../terminal/economy/fred/add/_index.md | 18 ---- .../terminal/economy/fred/plot/_index.md | 18 ---- .../terminal/economy/fred/rmv/_index.md | 12 --- .../terminal/economy/fred/search/_index.md | 89 ------------------- 5 files changed, 144 deletions(-) delete mode 100644 website/content/terminal/economy/fred/_index.md delete mode 100644 website/content/terminal/economy/fred/add/_index.md delete mode 100644 website/content/terminal/economy/fred/plot/_index.md delete mode 100644 website/content/terminal/economy/fred/rmv/_index.md delete mode 100644 website/content/terminal/economy/fred/search/_index.md diff --git a/website/content/terminal/economy/fred/_index.md b/website/content/terminal/economy/fred/_index.md deleted file mode 100644 index 2742174cf29..00000000000 --- a/website/content/terminal/economy/fred/_index.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -geekdocCollapseSection: true ---- - -{{< toc-tree >}} - -Menu for accessing Federal Reserve Economic Data (FRED) \ No newline at end of file diff --git a/website/content/terminal/economy/fred/add/_index.md b/website/content/terminal/economy/fred/add/_index.md deleted file mode 100644 index b7b3123406f..00000000000 --- a/website/content/terminal/economy/fred/add/_index.md +++ /dev/null @@ -1,18 +0,0 @@ -``` -usage: add [-i SERIES_ID] [-h] -``` - -Add a FRED series to current selection. - -``` -optional arguments: - -i SERIES_ID, --id SERIES_ID - FRED Series from https://fred.stlouisfed.org. For multiple series use: series1,series2,series3 - -h, --help show this help message -``` - -Example: -``` -2022 Feb 16, 03:38 (✨) /economy/fred/ $ add T10YIE -Current Series: T10YIE -``` diff --git a/website/content/terminal/economy/fred/plot/_index.md b/website/content/terminal/economy/fred/plot/_index.md deleted file mode 100644 index 8240a194f68..00000000000 --- a/website/content/terminal/economy/fred/plot/_index.md +++ /dev/null @@ -1,18 +0,0 @@ -``` -usage: plot [-s START_DATE] [--raw] [-l LIMIT] [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] -``` - -Plot selected FRED Series - -``` -optional arguments: - -s START_DATE Starting date (YYYY-MM-DD) of data - --raw Flag to show raw data - -l LIMIT, --lim LIMIT - Number of rows to show for limit - -h, --help show this help message - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg -``` - -![plot](https://user-images.githubusercontent.com/46355364/154227424-b6054205-b0b6-40f3-9589-a0625cb8154a.png) diff --git a/website/content/terminal/economy/fred/rmv/_index.md b/website/content/terminal/economy/fred/rmv/_index.md deleted file mode 100644 index 0c2c5130f25..00000000000 --- a/website/content/terminal/economy/fred/rmv/_index.md +++ /dev/null @@ -1,12 +0,0 @@ -``` -usage: rmv [-a] [-i {}] [-h] -``` - -Remove a FRED series from current selection - -``` -optional arguments: - -a, --all Flag to remove all selections - -i {}, --id {} Specific id's to remove - -h, --help show this help message -``` \ No newline at end of file diff --git a/website/content/terminal/economy/fred/search/_index.md b/website/content/terminal/economy/fred/search/_index.md deleted file mode 100644 index e3e64b4377b..00000000000 --- a/website/content/terminal/economy/fred/search/_index.md +++ /dev/null @@ -1,89 +0,0 @@ -``` -usage: search [-s SERIES_TERM] [-n NUM] [-h] -``` - -Print series notes when searching for series. [Source: FRED] - -``` -optional arguments: - -s SERIES_TERM, --series SERIES_TERM - Search for this series term. (default: None) - -n NUM, --num NUM Maximum number of series notes to display. (default: 5) - -h, --help show this help message (default: False) -``` - -Example: -``` -2022 Feb 16, 03:36 (✨) /economy/fred/ $ search inflation -n 10 - Search results for inflation -┏━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ -┃ Series ID ┃ Title ┃ Description ┃ -┡━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ -│ DFII10 │ Market Yield on U.S. Treasury Securities at │ For further information regarding treasury constant maturity data, please refer to the Board of │ -│ │ 10-Year Constant Maturity, Inflation-Indexed │ Governors ( http://www.federalreserve.gov/releases/h15/current/h15.pdf) and the Treasury │ -│ │ │ (http://www.treasury.gov/resource-center/data-chart-center/interest-rates/Pages/yieldmethod.aspx). │ -├────────────────┼───────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────┤ -│ T10YIE │ 10-Year Breakeven Inflation Rate │ The breakeven inflation rate represents a measure of expected inflation derived from 10-Year │ -│ │ │ Treasury Constant Maturity Securities (BC_10YEAR) and 10-Year Treasury Inflation-Indexed Constant │ -│ │ │ Maturity Securities (TC_10YEAR). The latest value implies what market participants expect inflation │ -│ │ │ to be in the next 10 years, on average. Starting with the update on June 21, 2019, the Treasury bond │ -│ │ │ data used in calculating interest rate spreads is obtained directly from the U.S. Treasury │ -│ │ │ Department (https://www.treasury.gov/resource-center/data-chart-center/interest- │ -│ │ │ rates/Pages/TextView.aspx?data=yield). │ -├────────────────┼───────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────┤ -│ FII10 │ Market Yield on U.S. Treasury Securities at │ For further information regarding treasury constant maturity data, please refer to │ -│ │ 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. │ -├────────────────┼───────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────┤ -│ WFII10 │ Market Yield on U.S. Treasury Securities at │ For further information regarding treasury constant maturity data, please refer to │ -│ │ 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. │ -├────────────────┼───────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────┤ -│ T10YIEM │ 10-Year Breakeven Inflation Rate │ The breakeven inflation rate represents a measure of expected inflation derived from 10-Year │ -│ │ │ Treasury Constant Maturity Securities (BC_10YEARM) and 10-Year Treasury Inflation-Indexed Constant │ -│ │ │ Maturity Securities (TC_10YEARM). The latest value implies what market participants expect inflation │ -│ │ │ to be in the next 10 years, on average. Starting with the update on June 21, 2019, the Treasury bond │ -│ │ │ data used in calculating interest rate spreads is obtained directly from the U.S. Treasury │ -│ │ │ Department (https://www.treasury.gov/resource-center/data-chart-center/interest- │ -│ │ │ rates/Pages/TextView.aspx?data=yield). │ -├────────────────┼───────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────┤ -│ T5YIE │ 5-Year Breakeven Inflation Rate │ The breakeven inflation rate represents a measure of expected inflation derived from 5-Year Treasury │ -│ │ │ Constant Maturity Securities (BC_5YEAR) and 5-Year Treasury Inflation-Indexed Constant Maturity │ -│ │ │ Securities (TC_5YEAR). The latest value implies what market participants expect inflation to be in │ -│ │ │ the next 5 years, on average. Starting with the update on June 21, 2019, the Treasury bond data used │ -│ │ │ in calculating interest rate spreads is obtained directly from the U.S. Treasury Department │ -│ │ │ (https://www.treasury.gov/resource-center/data-chart-center/interest- │ -│ │ │ rates/Pages/TextView.aspx?data=yield). │ -├────────────────┼───────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────┤ -│ T5YIFR │ 5-Year, 5-Year Forward Inflation Expectation Rate │ This series is a measure of expected inflation (on average) over the five-year period that begins │ -│ │ │ five years from today. This series is constructed as: (((((1+((BC_10YEAR- │ -│ │ │ TC_10YEAR)/100))^10)/((1+((BC_5YEAR-TC_5YEAR)/100))^5))^0.2)-1)*100 where BC10_YEAR, TC_10YEAR, │ -│ │ │ BC_5YEAR, and TC_5YEAR are the 10 year and 5 year nominal and inflation adjusted Treasury │ -│ │ │ securities. All of those are the actual series IDs in FRED. Starting with the update on June 21, │ -│ │ │ 2019, the Treasury bond data used in calculating interest rate spreads is obtained directly from the │ -│ │ │ U.S. Treasury Department (https://www.treasury.gov/resource-center/data-chart-center/interest- │ -│ │ │ rates/Pages/TextView.aspx?data=yield). │ -├────────────────┼───────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────┤ -│ FPCPITOTLZGUSA │ Inflation, consumer prices for the United States │ Inflation as measured by the consumer price index reflects the annual percentage change in the cost │ -│ │ │ to the average consumer of acquiring a basket of goods and services that may be fixed or changed at │ -│ │ │ specified intervals, such as yearly. The Laspeyres formula is generally used. International │ -│ │ │ Monetary Fund, International Financial Statistics and data files. │ -├────────────────┼───────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────┤ -│ T5YIEM │ 5-Year Breakeven Inflation Rate │ The breakeven inflation rate represents a measure of expected inflation derived from 5-Year Treasury │ -│ │ │ Constant Maturity Securities (BC_5YEAR) and 5-Year Treasury Inflation-Indexed Constant Maturity │ -│ │ │ Securities (TC_5YEAR). The latest value implies what market participants expect inflation to be in │ -│ │ │ the next 5 years, on average. Starting with the update on June 21, 2019, the Treasury bond data used │ -│ │ │ in calculating interest rate spreads is obtained directly from the U.S. Treasury Department │ -│ │ │ (https://www.treasury.gov/resource-center/data-chart-center/interest- │ -│ │ │ rates/Pages/TextView.aspx?data=yield). │ -├────────────────┼───────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────┤ -│ T5YIFRM │ 5-Year, 5-Year Forward Inflation Expectation Rate │ This series is a measure of expected inflation (on average) over the five-year period that begins │ -│ │ │ five years from today. This series is constructed as: (((((1+((BC_10YEAR- │ -│ │ │ TC_10YEAR)/100))^10)/((1+((BC_5YEAR-TC_5YEAR)/100))^5))^0.2)-1)*100 where BC10_YEAR, TC_10YEAR, │ -│ │ │ BC_5YEAR, and TC_5YEAR are the 10 year and 5 year nominal and inflation adjusted Treasury │ -│ │ │ securities. All of those are the actual series IDs in FRED. Starting with the update on June 21, │ -│ │ │ 2019, the Treasury bond data used in calculating interest rate spreads is obtained directly from the │ -│ │ │ U.S. Treasury Department (https://www.treasury.gov/resource-center/data-chart-center/interest- │ -│ │ │ rates/Pages/TextView.aspx?data=yield). │ -└────────────────┴───────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────┘ -``` From 14a6986d98c1c529abdc8cec11bb01553fef81ff Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 12:11:20 +0100 Subject: [PATCH 20/26] Create _index.md --- .../content/terminal/economy/fred/_index.md | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 website/content/terminal/economy/fred/_index.md diff --git a/website/content/terminal/economy/fred/_index.md b/website/content/terminal/economy/fred/_index.md new file mode 100644 index 00000000000..560f5160681 --- /dev/null +++ b/website/content/terminal/economy/fred/_index.md @@ -0,0 +1,65 @@ +``` +usage: fred [-p PARAMETER [PARAMETER ...]] [-s START_DATE] [-e END_DATE] [-q QUERY [QUERY ...]] [-st] [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] [--raw] [-l LIMIT] +``` + +Query the FRED database and plot data based on the Series ID. [Source: FRED] + +``` +optional arguments: + -p PARAMETER [PARAMETER ...], --parameter PARAMETER [PARAMETER ...] + Series ID of the Macro Economic data from FRED (default: None) + -s START_DATE, --start_date START_DATE + Starting date (YYYY-MM-DD) of data (default: None) + -e END_DATE, --end_date END_DATE + Ending date (YYYY-MM-DD) of data (default: None) + -q QUERY [QUERY ...], --query QUERY [QUERY ...] + Query the FRED database to obtain Series IDs given the query seaarch term. (default: None) + -st, --store Store the data to be used for plotting with the 'plot' command. (default: False) + -h, --help show this help message (default: False) + --export {csv,json,xlsx,png,jpg,pdf,svg} + Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) + --raw Flag to display raw data (default: False) + -l LIMIT, --limit LIMIT + Number of entries to show in data. (default: 5) +``` + +Example: +``` +2022 Mar 15, 07:08 (✨) /economy/ $ fred -q treasuries + Search results for treasuries +┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Series ID ┃ Title ┃ Description ┃ +┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ T10Y2Y │ 10-Year Treasury Constant Maturity Minus 2-Year │ Starting with the update on June 21, 2019, the Treasury bond data used in calculating interest rate │ +│ │ Treasury Constant Maturity │ spreads is obtained directly from the U.S. Treasury Department (https://www.treasury.gov/resource- │ +│ │ │ center/data-chart-center/interest-rates/Pages/TextView.aspx?data=yield). Series is calculated as │ +│ │ │ the spread between 10-Year Treasury Constant Maturity (BC_10YEAR) and 2-Year Treasury Constant │ +│ │ │ Maturity (BC_2YEAR). Both underlying series are published at the U.S. Treasury Department │ +│ │ │ (https://www.treasury.gov/resource-center/data-chart-center/interest- │ +│ │ │ rates/Pages/TextView.aspx?data=yield). │ +├───────────┼─────────────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ T10Y2YM │ 10-Year Treasury Constant Maturity Minus 2-Year │ Series is calculated as the spread between 10-Year Treasury Constant Maturity (BC_10YEARM) and │ +│ │ Treasury Constant Maturity │ 2-Year Treasury Constant Maturity (BC_2YEARM). Starting with the update on June 21, 2019, the │ +│ │ │ Treasury bond data used in calculating interest rate spreads is obtained directly from the U.S. │ +│ │ │ Treasury Department (https://www.treasury.gov/resource-center/data-chart-center/interest- │ +│ │ │ rates/Pages/TextView.aspx?data=yield). │ +├───────────┼─────────────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ DFII10 │ Market Yield on U.S. Treasury Securities at │ For further information regarding treasury constant maturity data, please refer to the Board of │ +│ │ 10-Year Constant Maturity, Inflation-Indexed │ Governors ( http://www.federalreserve.gov/releases/h15/current/h15.pdf) and the Treasury │ +│ │ │ (http://www.treasury.gov/resource-center/data-chart-center/interest-rates/Pages/yieldmethod.aspx). │ +├───────────┼─────────────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ FII10 │ Market Yield on U.S. Treasury Securities at │ For further information regarding treasury constant maturity data, please refer to │ +│ │ 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. │ +├───────────┼─────────────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ WFII10 │ Market Yield on U.S. Treasury Securities at │ For further information regarding treasury constant maturity data, please refer to │ +│ │ 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) + + From 969d1feddb0e087fe74a76cc4c6ad1927d6bd4fc Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 12:25:32 +0100 Subject: [PATCH 21/26] Create _index.md --- website/content/terminal/macro/_index.md | 289 +++++++++++++++++++++++ 1 file changed, 289 insertions(+) create mode 100644 website/content/terminal/macro/_index.md diff --git a/website/content/terminal/macro/_index.md b/website/content/terminal/macro/_index.md new file mode 100644 index 00000000000..847940022f4 --- /dev/null +++ b/website/content/terminal/macro/_index.md @@ -0,0 +1,289 @@ +``` +usage: macro [-p PARAMETERS [PARAMETERS ...]] [-c COUNTRIES [COUNTRIES ...]] [-sp] [-sc] [-s START_DATE] [-e END_DATE] [-cc CONVERT_CURRENCY] [-st] [-h] [--export {csv,json,xlsx}] [--raw] +``` + +Get a broad selection of macro data from one or multiple countries. This includes Gross Domestic Product (RGDP & GDP) and the underlying components, Treasury Yields (Y10YD & M3YD), Employment figures (URATE, EMP, AC0I0 and EMRATIO), +Government components (e.g. GBAL & GREV), Consumer and Producer Indices (CPI & PPI) and a variety of other indicators. [Source: EconDB] + +``` +optional arguments: + -p PARAMETERS [PARAMETERS ...], --parameters PARAMETERS [PARAMETERS ...] + Abbreviation(s) of the Macro Economic data (default: ['CPI']) + -c COUNTRIES [COUNTRIES ...], --countries COUNTRIES [COUNTRIES ...] + The country or countries you wish to show data for (default: ['United_States']) + -sp, --show_parameters + Show all parameters and what they represent (default: False) + -sc, --show_countries + Show all countries and their currencies (default: False) + -s START_DATE, --start_date START_DATE + The start date of the data (format: YEAR-MONTH-DAY, i.e. 2010-12-31) (default: None) + -e END_DATE, --end_date END_DATE + The end date of the data (format: YEAR-MONTH-DAY, i.e. 2021-06-20) (default: None) + -cc CONVERT_CURRENCY, --convert_currency CONVERT_CURRENCY + Convert the currency of the chosen country to a specified currency. To find the currency symbols use the argument -sc (default: False) + -st, --store Store the data to be used for plotting with the 'plot' command. (default: False) + -h, --help show this help message (default: False) + --export {csv,json,xlsx} + Export raw data into csv, json, xlsx (default: ) + --raw Flag to display raw data (default: False) +``` + +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) + +``` +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) + +``` +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 15, 07:12 (✨) /economy/ $ macro -sc +┏━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓ +┃ Country ┃ Currency ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩ +│ Albania │ ALL │ +├────────────────────────┼──────────┤ +│ Argentina │ ARS │ +├────────────────────────┼──────────┤ +│ Australia │ AUD │ +├────────────────────────┼──────────┤ +│ Austria │ EUR │ +├────────────────────────┼──────────┤ +│ Azerbaijan │ AZN │ +├────────────────────────┼──────────┤ +│ Bangladesh │ BDT │ +├────────────────────────┼──────────┤ +│ Belarus │ BYR │ +├────────────────────────┼──────────┤ +│ Belgium │ EUR │ +├────────────────────────┼──────────┤ +│ Bhutan │ BTN │ +├────────────────────────┼──────────┤ +│ Bosnia_and_Herzegovina │ BAM │ +├────────────────────────┼──────────┤ +│ Botswana │ BWP │ +├────────────────────────┼──────────┤ +│ Brazil │ BRL │ +├────────────────────────┼──────────┤ +│ Bulgaria │ BGN │ +├────────────────────────┼──────────┤ +│ Cambodia │ KHR │ +├────────────────────────┼──────────┤ +│ Cameroon │ XAF │ +├────────────────────────┼──────────┤ +│ Canada │ CAD │ +├────────────────────────┼──────────┤ +│ Chile │ CLP │ +├────────────────────────┼──────────┤ +│ China │ CNY │ +├────────────────────────┼──────────┤ +│ Colombia │ COP │ +├────────────────────────┼──────────┤ +│ Croatia │ HRK │ +├────────────────────────┼──────────┤ +│ Cyprus │ EUR │ +├────────────────────────┼──────────┤ +│ Czech_Republic │ CZK │ +├────────────────────────┼──────────┤ +│ Denmark │ DKK │ +├────────────────────────┼──────────┤ +│ Dominican_Republic │ DOP │ +├────────────────────────┼──────────┤ +│ Egypt │ EGP │ +├────────────────────────┼──────────┤ +│ Estonia │ EUR │ +├────────────────────────┼──────────┤ +│ Finland │ EUR │ +├────────────────────────┼──────────┤ +│ France │ EUR │ +├────────────────────────┼──────────┤ +│ Germany │ EUR │ +├────────────────────────┼──────────┤ +│ Greece │ EUR │ +├────────────────────────┼──────────┤ +│ Honduras │ HNL │ +├────────────────────────┼──────────┤ +│ Hong Kong │ HKD │ +├────────────────────────┼──────────┤ +│ Hungary │ HUF │ +├────────────────────────┼──────────┤ +│ India │ INR │ +├────────────────────────┼──────────┤ +│ Indonesia │ IDR │ +├────────────────────────┼──────────┤ +│ Iran │ IRR │ +├────────────────────────┼──────────┤ +│ Ireland │ EUR │ +├────────────────────────┼──────────┤ +│ Israel │ ILS │ +├────────────────────────┼──────────┤ +│ Italy │ EUR │ +├────────────────────────┼──────────┤ +│ Japan │ JPY │ +├────────────────────────┼──────────┤ +│ Kazakhstan │ KZT │ +├────────────────────────┼──────────┤ +│ Laos │ LAK │ +├────────────────────────┼──────────┤ +│ Latvia │ EUR │ +├────────────────────────┼──────────┤ +│ Lebanon │ LBP │ +├────────────────────────┼──────────┤ +│ Lithuania │ EUR │ +├────────────────────────┼──────────┤ +│ Luxembourg │ EUR │ +├────────────────────────┼──────────┤ +│ Macedonia │ MKD │ +├────────────────────────┼──────────┤ +│ Malaysia │ MYR │ +├────────────────────────┼──────────┤ +│ Malta │ EUR │ +├────────────────────────┼──────────┤ +│ Mexico │ MXN │ +├────────────────────────┼──────────┤ +│ Mongolia │ MNT │ +├────────────────────────┼──────────┤ +│ Netherlands │ EUR │ +├────────────────────────┼──────────┤ +│ New_Zealand │ NZD │ +├────────────────────────┼──────────┤ +│ Nigeria │ NGN │ +├────────────────────────┼──────────┤ +│ Norway │ NOK │ +├────────────────────────┼──────────┤ +│ Oman │ OMR │ +├────────────────────────┼──────────┤ +│ Pakistan │ PKR │ +├────────────────────────┼──────────┤ +│ Panama │ PAB │ +├────────────────────────┼──────────┤ +│ Peru │ PEN │ +├────────────────────────┼──────────┤ +│ Philippines │ PHP │ +├────────────────────────┼──────────┤ +│ Poland │ PLN │ +├────────────────────────┼──────────┤ +│ Portugal │ EUR │ +├────────────────────────┼──────────┤ +│ Qatar │ QAR │ +├────────────────────────┼──────────┤ +│ Romania │ RON │ +├────────────────────────┼──────────┤ +│ Russia │ RUB │ +├────────────────────────┼──────────┤ +│ Saudi_Arabia │ SAR │ +├────────────────────────┼──────────┤ +│ Serbia │ RSD │ +├────────────────────────┼──────────┤ +│ Singapore │ SGD │ +├────────────────────────┼──────────┤ +│ Slovakia │ EUR │ +├────────────────────────┼──────────┤ +│ Slovenia │ EUR │ +├────────────────────────┼──────────┤ +│ South_Africa │ ZAR │ +├────────────────────────┼──────────┤ +│ South_Korea │ KRW │ +├────────────────────────┼──────────┤ +│ Spain │ EUR │ +├────────────────────────┼──────────┤ +│ Sweden │ SEK │ +├────────────────────────┼──────────┤ +│ Switzerland │ CHF │ +├────────────────────────┼──────────┤ +│ Taiwan │ TWD │ +├────────────────────────┼──────────┤ +│ Thailand │ THB │ +├────────────────────────┼──────────┤ +│ Tunisia │ TND │ +├────────────────────────┼──────────┤ +│ Turkey │ TRY │ +├────────────────────────┼──────────┤ +│ Ukraine │ UAH │ +├────────────────────────┼──────────┤ +│ United_Arab_Emirates │ AED │ +├────────────────────────┼──────────┤ +│ United_States │ USD │ +├────────────────────────┼──────────┤ +│ Uzbekistan │ UZS │ +├────────────────────────┼──────────┤ +│ Venezuela │ VEF │ +├────────────────────────┼──────────┤ +│ Vietnam │ VND │ +└────────────────────────┴──────────┘ +``` From 70db5362b89eb693c4b1dad4e8bd633b1a3f206f Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 12:26:02 +0100 Subject: [PATCH 22/26] Rename website/content/terminal/macro/_index.md to website/content/terminal/economy/macro/_index.md --- website/content/terminal/{ => economy}/macro/_index.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename website/content/terminal/{ => economy}/macro/_index.md (100%) diff --git a/website/content/terminal/macro/_index.md b/website/content/terminal/economy/macro/_index.md similarity index 100% rename from website/content/terminal/macro/_index.md rename to website/content/terminal/economy/macro/_index.md From 948ca2128675f73393018a69b3f4a2ac099495fd Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 12:31:43 +0100 Subject: [PATCH 23/26] Create _index.md --- .../content/terminal/economy/index/_index.md | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 website/content/terminal/economy/index/_index.md diff --git a/website/content/terminal/economy/index/_index.md b/website/content/terminal/economy/index/_index.md new file mode 100644 index 00000000000..8c113d7ee5e --- /dev/null +++ b/website/content/terminal/economy/index/_index.md @@ -0,0 +1,76 @@ +``` +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] + + +``` +optional arguments: + -i INDICES [INDICES ...], --indices INDICES [INDICES ...] + One or multiple indices (default: None) + -si, --show_indices Show the major indices, their arguments and ticker (default: False) + -iv {1m,2m,5m,15m,30m,60m,90m,1h,1d,5d,1wk,1mo,3mo}, --interval {1m,2m,5m,15m,30m,60m,90m,1h,1d,5d,1wk,1mo,3mo} + The preferred interval data is shown at. This can be 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo or 3mo (default: 1d) + -s START_DATE, --start_date START_DATE + The start date of the data (format: YEAR-MONTH-DAY, i.e. 2010-12-31) (default: 2000-01-01) + -e END_DATE, --end_date END_DATE + The end date of the data (format: YEAR-MONTH-DAY, i.e. 2021-06-20) (default: None) + -c COLUMN, --column COLUMN + The column you wish to load in, by default this is the Adjusted Close column (default: Adj Close) + -q QUERY [QUERY ...], --query QUERY [QUERY ...] + Search for indices with given keyword (default: None) + -st, --store Store the data to be used for plotting with the 'plot' command. (default: False) + -h, --help show this help message (default: False) + --export {csv,json,xlsx} + Export raw data into csv, json, xlsx (default: ) + --raw Flag to display raw data (default: False) + -l LIMIT, --limit LIMIT + Number of entries to show in data. (default: 10) +``` + +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) + +``` +2022 Mar 15, 07:29 (✨) /economy/ $ index vix +``` +![index vix](https://user-images.githubusercontent.com/46355364/158368642-71ef96af-6b41-4514-8683-593ea0984b56.png) + +``` +2022 Mar 15, 07:30 (✨) /economy/ $ index -si + Major Indices +┏━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓ +┃ Argument ┃ Name ┃ Ticker ┃ +┡━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩ +│ sp500 │ S&P 500 │ ^GSPC │ +├──────────┼──────────────────────────────┼───────────┤ +│ nasdaq │ Nasdaq Composite │ ^IXIC │ +├──────────┼──────────────────────────────┼───────────┤ +│ dowjones │ Dow Jones Industrial Average │ ^DJI │ +├──────────┼──────────────────────────────┼───────────┤ +│ vix │ CBOE Volatility Index │ ^VIX │ +├──────────┼──────────────────────────────┼───────────┤ +│ russel │ Russel 2000 Index │ ^RUT │ +├──────────┼──────────────────────────────┼───────────┤ +│ tsx │ TSX Composite │ ^GSPTSE │ +├──────────┼──────────────────────────────┼───────────┤ +│ nikkei │ Nikkei 255 Stock Average │ ^N225 │ +├──────────┼──────────────────────────────┼───────────┤ +│ shanghai │ Shanghai Composite Index │ 000001.SS │ +├──────────┼──────────────────────────────┼───────────┤ +│ ftse100 │ FTSE 100 Index ('footsie') │ ^FTSE │ +├──────────┼──────────────────────────────┼───────────┤ +│ stoxx50 │ Euro STOXX 50 │ ^STOXX50E │ +├──────────┼──────────────────────────────┼───────────┤ +│ dax │ DAX Performance Index │ ^GDAXI │ +├──────────┼──────────────────────────────┼───────────┤ +│ cac40 │ CAC 40 Index │ ^FCHI │ +└──────────┴──────────────────────────────┴───────────┘ +``` + + From f83dc3040765885e0c03266cc191310e74bacf90 Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 12:36:59 +0100 Subject: [PATCH 24/26] Create _index.md --- .../terminal/economy/treasury/_index.md | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 website/content/terminal/economy/treasury/_index.md diff --git a/website/content/terminal/economy/treasury/_index.md b/website/content/terminal/economy/treasury/_index.md new file mode 100644 index 00000000000..bafeb712a5a --- /dev/null +++ b/website/content/terminal/economy/treasury/_index.md @@ -0,0 +1,56 @@ +``` +usage: treasury [-m MATURITY [MATURITY ...]] [-sm] [-f {annually,monthly,weekly,daily}] [-t {nominal,inflation,average,secondary} [{nominal,inflation,average,secondary} ...]] [-s START_DATE] [-e END_DATE] [-st] [-h] + [--export {csv,json,xlsx}] [--raw] [-l LIMIT] +``` + +Obtain any set of U.S. treasuries and plot them together. These can be a range of maturities for nominal, inflation-adjusted (on long term average of inflation adjusted) and secondary markets over a lengthy period. Note: 3-month and +10-year treasury yields for other countries are available via the command 'macro' and parameter 'M3YD' and 'Y10YD'. [Source: EconDB / FED] + +``` +optional arguments: + -m MATURITY [MATURITY ...], --maturity MATURITY [MATURITY ...] + The preferred maturity which is dependent on the type of the treasury (default: ['1y']) + -sm, --show_maturities + Show the maturities available for every instrument. (default: False) + -f {annually,monthly,weekly,daily}, --frequency {annually,monthly,weekly,daily} + The frequency, this can be annually, monthly, weekly or daily (default: monthly) + -t {nominal,inflation,average,secondary} [{nominal,inflation,average,secondary} ...], --type {nominal,inflation,average,secondary} [{nominal,inflation,average,secondary} ...] + Whether to select nominal, inflation indexed, average inflation indexed or secondary market treasury rates (default: ['nominal']) + -s START_DATE, --start_date START_DATE + The start date of the data (format: YEAR-MONTH-DAY, i.e. 2010-12-31) (default: 1934-01-31) + -e END_DATE, --end_date END_DATE + The end date of the data (format: YEAR-DAY-MONTH, i.e. 2021-06-02) (default: 2022-03-15) + -st, --store Store the data to be used for plotting with the 'plot' command. (default: False) + -h, --help show this help message (default: False) + --export {csv,json,xlsx} + Export raw data into csv, json, xlsx (default: ) + --raw Flag to display raw data (default: False) + -l LIMIT, --limit LIMIT + Number of entries to show in data. (default: 10) +``` + +Example: +``` +2022 Mar 15, 07:33 (✨) /economy/ $ treasury -sm + Maturity options per instrument +┏━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Instrument ┃ Maturities ┃ +┡━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ nominal │ 1m, 3m, 6m, 1y, 2y, 3y, 5y, 7y, 10y, 20y, 30y │ +├────────────┼───────────────────────────────────────────────┤ +│ inflation │ 5y, 7y, 10y, 20y, 30y │ +├────────────┼───────────────────────────────────────────────┤ +│ average │ Defined by function │ +├────────────┼───────────────────────────────────────────────┤ +│ secondary │ 4w, 3m, 6m, 1y │ +└────────────┴───────────────────────────────────────────────┘ +``` +``` +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) + +``` +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) From 9211800cfdcfcfff2991c1c3b431dceefb36b2f7 Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 12:37:29 +0100 Subject: [PATCH 25/26] Delete website/content/terminal/economy/energy directory --- .../content/terminal/economy/energy/_index.md | 33 ------------------- 1 file changed, 33 deletions(-) delete mode 100644 website/content/terminal/economy/energy/_index.md diff --git a/website/content/terminal/economy/energy/_index.md b/website/content/terminal/economy/energy/_index.md deleted file mode 100644 index 3e3e79496ad..00000000000 --- a/website/content/terminal/economy/energy/_index.md +++ /dev/null @@ -1,33 +0,0 @@ -``` -usage: energy [--export {csv,json,xlsx}] [-h] -``` - -Today's energy futures overview. Source: (https://finviz.com) - -``` -optional arguments: - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: -``` -2022 Feb 15, 04:49 (✨) /economy/ $ energy - Future Table -┌─────────────────┬───────────┬───────┬────────────┐ -│ │ prevClose │ last │ change (%) │ -├─────────────────┼───────────┼───────┼────────────┤ -│ Ethanol │ 2.16 │ 2.22 │ 2.78 │ -├─────────────────┼───────────┼───────┼────────────┤ -│ Gasoline RBOB │ 2.78 │ 2.72 │ -2.23 │ -├─────────────────┼───────────┼───────┼────────────┤ -│ Crude Oil Brent │ 96.48 │ 94.15 │ -2.42 │ -├─────────────────┼───────────┼───────┼────────────┤ -│ Natural Gas │ 4.20 │ 4.42 │ 5.29 │ -├─────────────────┼───────────┼───────┼────────────┤ -│ Heating Oil │ 2.96 │ 2.89 │ -2.46 │ -├─────────────────┼───────────┼───────┼────────────┤ -│ Crude Oil WTI │ 95.46 │ 92.84 │ -2.74 │ -└─────────────────┴───────────┴───────┴────────────┘ -``` From d5fea179dbd9bc388d4b7d284672b43920ea54ed Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Tue, 15 Mar 2022 12:47:28 +0100 Subject: [PATCH 26/26] Create _index.md --- .../content/terminal/economy/plot/_index.md | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 website/content/terminal/economy/plot/_index.md diff --git a/website/content/terminal/economy/plot/_index.md b/website/content/terminal/economy/plot/_index.md new file mode 100644 index 00000000000..93ce50b7490 --- /dev/null +++ b/website/content/terminal/economy/plot/_index.md @@ -0,0 +1,45 @@ +``` +usage: plot [-y1 YAXIS1 [YAXIS1 ...]] [-y2 YAXIS2 [YAXIS2 ...]] [-s] [-h] [--export {csv,json,xlsx}] [--raw] [-l LIMIT] +``` + +This command can plot any data on two y-axes obtained from the macro, fred, index and treasury commands. To be able to use this data, use the -st argument available within these commands. For example 'macro -p GDP -c Germany +Netherlands -st' will store the data for usage in this command. Therefore, it allows you to plot different time series in one graph. + +``` +optional arguments: + -y1 YAXIS1 [YAXIS1 ...], --yaxis1 YAXIS1 [YAXIS1 ...] + Select the data you wish to plot on the first y-axis. You can select multiple variables here. (default: ) + -y2 YAXIS2 [YAXIS2 ...], --yaxis2 YAXIS2 [YAXIS2 ...] + Select the data you wish to plot on the second y-axis. You can select multiple variables here. (default: ) + -s, --show Show all available options currently collected from the macro data commands. To save data, use the command -st on 'macro', 'fred', 'index' and 'treasury'. (default: False) + -h, --help show this help message (default: False) + --export {csv,json,xlsx} + Export raw data into csv, json, xlsx (default: ) + --raw Flag to display raw data (default: False) + -l LIMIT, --limit LIMIT + Number of entries to show in data. (default: 10) +``` + +Comparing Unemployment Rates and Consumer Confidence of France and Italy +``` +2022 Mar 15, 07:43 (✨) /economy/ $ macro -p URATE CONF -c France Italy -s 2005-01-01 -st +2022 Mar 15, 07:45 (✨) /economy/ $ plot -s + Options available to plot +┏━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Command ┃ Options ┃ +┡━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ macro │ France_URATE, France_CONF, Italy_URATE, Italy_CONF │ +└─────────┴────────────────────────────────────────────────────┘ + +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/158371180-54fd0bfe-6231-4d4a-bb6a-0c895fa32c4d.png) + +Comparing U.S. treasury rate movements to the S&P 500 +``` +2022 Mar 15, 07:39 (✨) /economy/ $ treasury -m 1y 10y -s 2005-01-01 -st +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/158370452-57e08a71-9568-4662-87fb-a55be50aecf8.png) +