Add in Fixed Income Guide

This commit is contained in:
Jeroen Bouma
2023-02-23 18:00:56 +01:00
committed by GitHub
parent c4e606c5ea
commit e9c304356a

View File

@@ -38,441 +38,170 @@ optional arguments:
For more information and examples, use 'about treasury' to access the related guide.
```
The Fixed Income menu relies heavily on FRED to obtain the data, please refer to the [API keys guide](https://docs.openbb.co/terminal/guides/advanced/api-keys) for information on how to obtain and set a key for FRED.
The Fixed Income menu relies heavily on FRED to obtain the data as seen below, please refer to the [API keys guide](https://docs.openbb.co/terminal/guides/advanced/api-keys) for information on how to obtain and set a key for FRED.
ADD_MENU_IMAGE_HERE
<img width="800" alt="Fixed Income Menu" src="https://user-images.githubusercontent.com/46355364/220970904-d32a63b5-aa14-47b4-bfe6-b5efc1cf2cd4.png">
## Examples
Starting off by calling some reference rates, these can be either `estr`, `sofr`, `sonia` or `ameribor`. For example the 1 year term structure of Ameribor is plotted with ` ameribor --parameter 1_year_term_structure` as shown below.
The `load` function is a starting point for most functions, and parameters can be adjusted for intraday and resolution. It has many optional arguments which can be displayed for reference by attaching, `-h`, or, `--help`, to any function. Entering:
![Ameribor](https://user-images.githubusercontent.com/46355364/220971559-341f3144-b902-479d-998f-b68face9ba47.png)
```console
load -h
```
The two most prominent central bank rates, those of the Federal Reserve and the European Central Bank can be plotted with `fed` and `ecb` respectively. For instance `fed` plots the monthly Federal Funds Rate.
Prints the dialogue on the screen:
![FED](https://user-images.githubusercontent.com/46355364/220971850-3ce5db4c-810a-49ba-a0bc-9043aa2a6090.png)
```console
usage: load [-t TICKER] [-s START] [-e END] [-i {1,5,15,30,60}] [-p] [-f FILEPATH] [-m] [-w] [--exchange] [--performance] [-h] [--export EXPORT]
[--sheet-name SHEET_NAME [SHEET_NAME ...]] [--source {YahooFinance,AlphaVantage,Polygon,EODHD,Intrinio}]
This can be accompanied with the projections, officially published by the FOMC. Here the long run expectations are plotted which also backtrack several years wich `projection --long-run`:
Load stock ticker to perform analysis on. When the data source is yf, an Indian ticker can be loaded by using '.NS' at the end, e.g. 'SBIN.NS'. See available market
in https://help.yahoo.com/kb/exchanges-data-providers-yahoo-finance-sln2310.html.
![Projection](https://user-images.githubusercontent.com/46355364/220972251-688b12de-cf06-4907-9857-edda4aac64fb.png)
optional arguments:
-t TICKER, --ticker TICKER
Stock ticker (default: None)
-s START, --start START
The starting date (format YYYY-MM-DD) of the stock (default: 2020-02-11)
-e END, --end END The ending date (format YYYY-MM-DD) of the stock (default: 2023-02-15)
-i {1,5,15,30,60}, --interval {1,5,15,30,60}
Intraday stock minutes (default: 1440)
-p, --prepost Pre/After market hours. Only works for 'yf' source, and intraday data (default: False)
-f FILEPATH, --file FILEPATH
Path to load custom file. (default: None)
-m, --monthly Load monthly data (default: False)
-w, --weekly Load weekly data (default: False)
--exchange Show exchange information. (default: False)
--performance Show performance information. (default: False)
-h, --help show this help message (default: False)
--export EXPORT Export raw data into csv, json, xlsx (default: )
--sheet-name SHEET_NAME [SHEET_NAME ...]
Name of excel sheet to save data to. Only valid for .xlsx files. (default: None)
--source {YahooFinance,AlphaVantage,Polygon,EODHD,Intrinio}
Data source to select from (default: YahooFinance)
The European Central Bank rates can be shown with `ecb`. The ECB publishes three different rates that can be shown seperately with ` ecb --type deposit` for example or plotted together with `ecb` as shown below.
For more information and examples, use 'about load' to access the related guide.
```
![ECB](https://user-images.githubusercontent.com/46355364/220972670-0e5b11c6-7174-497a-ad18-36266e6a68c6.png)
By default, a daily period, with three-years of OHLC+V data, from YahooFinance, is loaded to memory. Use the default settings like this:
In terms of government bonds, any combination of short term (3 month) and long term (10 year) government bonds for any country can be plotted with `treasury` for example `treasury --short canada,united_states --long canada,united_states` as shown below.
```console
load MSFT
```
![Treasury Rates](https://user-images.githubusercontent.com/46355364/220973452-f7bdd468-e4fd-4c7a-aa45-3ce3c41f1f33.png)
A message will print indicating the starting date from which the data begins.
```console
Loading Daily data for MSFT with starting period 2019-11-27.
```
A simple way to get the entire history available from a source is to use an arbitrary starting date from a long time ago, like `1900-01-01`.
```console
load MSFT -s 1990-01-01
```
The console print indicates the first date of history, provided by this source, is January 29, 1993.
```console
Loading Daily data for MSFT with starting period 1993-01-29.
```
A range-bound window can also be loaded; for example, the dot-com era:
```console
load MSFT -s 1997-01-01 -e 2003-01-01
```
The interval of the data can also be set as weekly or monthly; `-w` for weekly, and `-m` for monthly candles. The data will now start on a Monday or at the beginning of a month.
```console
load MSFT -s 1997-01-01 -e 2003-01-01 -w
```
Intraday data is also requested this way, only using the `-i` or `--interval` argument. One-minute data can be loaded like this:
```console
load MSFT -i 1
```
The performance table will not be displayed with intraday data, and we can see that five-days of one-minute candles are available from YahooFinance.
```console
Loading Intraday 1min data for MSFT with starting period 2022-11-25.
```
This can be augmented further by adding pre/post market price candles. The `-p` flag is only applicable to YahooFinance, Polygon will automatically include the candles from 4AM-8PM US/Eastern when intraday is selected.
```console
load MSFT -i 1 -p
```
Data can also be exported directly from the `load` function as a CSV, JSON, or XLSX file. The file is created in the OpenBBUserData folder.
```console
load MSFT -s 1990-01-01 -m --export msft_monthly.csv
```
```console
Loading Daily data for MSFT with starting period 1993-02-01.
Saved file: /Users/{username}/OpenBBUserData/exports/msft_monthly.csv
```
Exported files can also be loaded by declaring the `--file` argument. Place the file to import in the folder: `OpenBBUserData/custom_imports/stocks`
### Candle
The `candle` command displays a chart of the loaded symbol. It needs no arguments to display, but modifiers can enhance the content of the chart. Commands can also be sequenced together with a `/` separating each individual command.
```console
(🦋) /stocks/ $ load MSFT
cLoading Daily data for MSFT with starting period 2020-02-11.
(🦋) /stocks/ $ candle
```
![candle](https://user-images.githubusercontent.com/46355364/218981911-90d38930-a621-43cc-873a-1c55db842e95.png)
The help dialogue for the `candle` command shows how this chart can be supplemented with additional data; specifically, `-t` for trend, `--ma` for moving averages, and `--log` for a log scale.
```console
candle -h
```
Which prints to screen:
```console
usage: candle [-t TICKER] [-p] [--sort {adjclose,open,close,high,low,volume,returns,logret}] [-r] [--raw] [--trend] [--ma MOV_AVG] [--log] [-h] [--export EXPORT] [--sheet-name SHEET_NAME [SHEET_NAME ...]] [-l LIMIT]
Shows historic data for a stock
optional arguments:
-t TICKER, --ticker TICKER
Ticker to analyze (default: None)
-p, --plotly Flag to show interactive plotly chart (default: True)
--sort {adjclose,open,close,high,low,volume,returns,logret}
Choose a column to sort by. Only works when raw data is displayed. (default: )
-r, --reverse Data is sorted in descending order by default. Reverse flag will sort it in an ascending way. Only works when raw data is displayed.
(default: False)
--raw Shows raw data instead of chart. (default: False)
--trend Flag to add high and low trends to candle (default: False)
--ma MOV_AVG Add moving average in number of days to plot and separate by a comma. Value for ma (moving average) keyword needs to be greater than 1.
(default: None)
--log Plot with y axis on log scale (default: False)
-h, --help show this help message (default: False)
--export EXPORT Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: )
--sheet-name SHEET_NAME [SHEET_NAME ...]
Name of excel sheet to save data to. Only valid for .xlsx files. (default: None)
-l LIMIT, --limit LIMIT
Number of entries to show in data. (default: 20)
For more information and examples, use 'about candle' to access the related guide.
```
Be sure to adjust the values for moving averages to correspond with the interval of the data loaded. Below adds movings averages for one and four year periods (because data loaded is monthly), and changes the y-axis to a log-scale.
```console
candle --ma 20,30 --log
```
![candle moving average log](https://user-images.githubusercontent.com/46355364/218982220-411e780a-aa8d-436e-b2db-3c95a981b6eb.png)
Get ticker-related news headlines by entering `news` after loading a ticker.
```console
news --source NewsApi
```
The output will look like:
```console
(🦋) /stocks/ $ news --source NewsApi
346 news articles for Tesla,+Inc. were found since 2023-02-08
Elon Musk says he may lead Twitter for almost another year
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Content ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ 2023-02-15 07:57:55 │
├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ The billionaire executive embarked on a search for a new CEO for Twitter in December, a person familiar with the search said at the time. │
├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ https://www.moneycontrol.com/news/world/elon-musk-says-he-may-lead-twitter-for-almost-another-year-10088481.html │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Elon Musk Gave $1.9 Billion of Tesla Shares to Charity Last Year
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Content ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ 2023-02-15 06:46:08 │
├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Tesla CEO Elon Musk now owns around 13% of the company. Elon Musk donated roughly $1.9 billion of Tesla Inc. stock to charity last year, according to a regulatory │
│ filing made Tuesday. Mr. Musk, Tesla’s chief executive, reported having donated roughly 11.6 mil… │
├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ https://biztoc.com/x/99aa746544171bae │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Elon Musk Aims to Find Twitter CEO Successor Toward End of 2023
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Content ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ 2023-02-15 06:14:49 │
├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Elon Musk is aiming to find his successor to lead Twitter Inc. as chief executive officer toward the end of 2023. │
├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ https://www.bloomberg.com/news/articles/2023-02-15/musk-aims-to-replace-himself-as-twitter-ceo-toward-end-of-2023 │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
```
The `tob` function is the "Top of Book", and it returns data during market hours.
```console
tob
```
Which displays an output like:
```console
SPY Top of Book
┏━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Bid Size ┃ Bid Price ┃ Ask Price ┃ Ask Size ┃
┡━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━┩
│ 223.00 │ 407.60 │ 407.62 │ 536.00 │
├──────────┼───────────┼───────────┼──────────┤
│ 823.00 │ 407.59 │ 407.63 │ 436.00 │
├──────────┼───────────┼───────────┼──────────┤
│ 923.00 │ 407.58 │ 407.64 │ 836.00 │
├──────────┼───────────┼───────────┼──────────┤
│ 316.00 │ 407.57 │ 407.65 │ 936.00 │
├──────────┼───────────┼───────────┼──────────┤
│ 823.00 │ 407.56 │ 407.66 │ 636.00 │
└──────────┴───────────┴───────────┴──────────┘
```
Get the current market price, during exchange hours.
```console
quote
```
Displays a table:
```console
(🦋) /stocks/ $ quote
TSLA Quote
┏━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┓
┃ ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━┩
│ Symbol │ TSLA │
├───────────────────────┼─────────────────────┤
│ Name │ Tesla, Inc. │
├───────────────────────┼─────────────────────┤
│ Price │ 209.25 │
├───────────────────────┼─────────────────────┤
│ Changes percentage │ 7.51 │
├───────────────────────┼─────────────────────┤
│ Change │ 14.61 │
├───────────────────────┼─────────────────────┤
│ Day low │ 189.45 │
├───────────────────────┼─────────────────────┤
│ Day high │ 209.82 │
├───────────────────────┼─────────────────────┤
│ Year high │ 384.29 │
├───────────────────────┼─────────────────────┤
│ Year low │ 101.81 │
├───────────────────────┼─────────────────────┤
│ Market cap │ 662.088 B │
├───────────────────────┼─────────────────────┤
│ Price avg50 │ 152.95 │
├───────────────────────┼─────────────────────┤
│ Price avg200 │ 225.47 │
├───────────────────────┼─────────────────────┤
│ Exchange │ NASDAQ │
├───────────────────────┼─────────────────────┤
│ Volume │ 214.769 M │
├───────────────────────┼─────────────────────┤
│ Avg volume │ 156755621 │
├───────────────────────┼─────────────────────┤
│ Open │ 191.94 │
├───────────────────────┼─────────────────────┤
│ Previous close │ 194.64 │
├───────────────────────┼─────────────────────┤
│ Eps │ 3.44 │
├───────────────────────┼─────────────────────┤
│ Pe │ 60.83 │
├───────────────────────┼─────────────────────┤
│ Earnings announcement │ 2023-04-18 10:59:00 │
├───────────────────────┼─────────────────────┤
│ Shares outstanding │ 3.164 B │
├───────────────────────┼─────────────────────┤
│ Timestamp │ 1676408405 │
└───────────────────────┴─────────────────────┘
```
`codes` prints the CIK, Composite FIGI, Share Class FIGI, and SIC codes - when available - for a US-listed stock. This function requires a free API key from Polygon.
```console
load aapl/codes
```
Prints the output:
```console
AAPL Codes
┏━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ ┃ ┃
┡━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
│ CIK │ 0000320193 │
├──────────────────┼──────────────┤
│ COMPOSITE FIGI │ BBG000B9XRY4 │
├──────────────────┼──────────────┤
│ SHARE CLASS FIGI │ BBG001S5N8V8 │
├──────────────────┼──────────────┤
│ SIC CODE │ 3571 │
└──────────────────┴──────────────┘
```
The `search` function provides a way to find stocks by name, region, sector, industry and exchange location. The results can be easily exported as a CSV, JSON, or XLSX file.
```console
search -h
```
Prints the help dialogue for the command:
```console
usage: search [-q QUERY [QUERY ...]] [-c country] [-s sector] [-i industry] [-e exchange] [-a] [-h] [--export EXPORT] [--sheet-name SHEET_NAME [SHEET_NAME ...]] [-l LIMIT]
Show companies matching the search query, country, sector, industry and/or exchange. Note that by default only the United States exchanges are searched which tend
to contain the most extensive data for each company. To search all exchanges use the --all-exchanges flag.
optional arguments:
-q QUERY [QUERY ...], --query QUERY [QUERY ...]
The search term used to find company tickers (default: )
-c country, --country country
Search by country to find stocks matching the criteria (default: )
-s sector, --sector sector
Search by sector to find stocks matching the criteria (default: )
-i industry, --industry industry
Search by industry to find stocks matching the criteria (default: )
-e exchange, --exchange exchange
Search by a specific exchange country to find stocks matching the criteria (default: )
-a, --all-exchanges Whether to search all exchanges, without this option only the United States market is searched. (default: False)
-h, --help show this help message (default: False)
--export EXPORT Export raw data into csv, json, xlsx (default: )
--sheet-name SHEET_NAME [SHEET_NAME ...]
Name of excel sheet to save data to. Only valid for .xlsx files. (default: None)
-l LIMIT, --limit LIMIT
Number of entries to show in data. (default: 10)
For more information and examples, use 'about search' to access the related guide.
```
As an example, if you wish to obtain the ticker for Apple, you can do so with the following:
With all of these functionalities, it is always possible to `--export` to Excel or show the raw data with `--raw` as shown below:
```
(🦋) /stocks/ $ search -q apple
(🦋) /fixedincome/ $ treasury --short canada,united_states --long canada,united_states --raw
Companies found on term apple
┏━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ ┃ Name ┃ Country ┃ Sector ┃ Industry ┃ Exchange ┃
┡━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ AAPL │ Apple Inc. │ United States │ Technology │ Consumer Electronics │ NMS │
├──────┼─────────────────────────────────────┼───────────────┼────────────────────┼───────────────────────────┼──────────┤
│ AGPL │ Apple Green Holding, Inc. │ Canada │ Technology │ Software - Application │ PNK │
├──────┼─────────────────────────────────────┼───────────────┼────────────────────┼───────────────────────────┼──────────┤
│ APLE │ Apple Hospitality REIT, Inc. │ United States │ Real Estate │ REIT - Hotel & Motel │ NYQ │
├──────┼─────────────────────────────────────┼───────────────┼────────────────────┼───────────────────────────┼──────────┤
│ APRU │ Apple Rush Company, Inc. │ United States │ Consumer Defensive │ Beverages - Non-Alcoholic │ PNK │
├──────┼─────────────────────────────────────┼───────────────┼────────────────────┼───────────────────────────┼──────────┤
│ GAPJ │ Golden Apple Oil & Gas Inc. │ United States │ │ │ PNK │
├──────┼─────────────────────────────────────┼───────────────┼────────────────────┼───────────────────────────┼──────────┤
│ MLP │ Maui Land & Pineapple Company, Inc. │ United States │ Real Estate │ Real Estate Services │ NYQ │
├──────┼─────────────────────────────────────┼───────────────┼────────────────────┼───────────────────────────┼──────────┤
│ PNPL │ Pineapple, Inc. │ United States │ Healthcare │ Pharmaceutical Retailers │ PNK │
└──────┴─────────────────────────────────────┴───────────────┴────────────────────┴───────────────────────────┴──────────┘
Short and Long Term Interest Rates
┏━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ ┃ canada (3 month) ┃ united_states (3 month) ┃ canada (10 year) ┃ united_states (10 year) ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ 2022-04-01 │ 2.704 │ 2.750 │ 1.347 │ 0.910 │
├────────────┼──────────────────┼─────────────────────────┼──────────────────┼─────────────────────────┤
│ 2022-05-01 │ 2.919 │ 2.900 │ 1.782 │ 1.330 │
├────────────┼──────────────────┼─────────────────────────┼──────────────────┼─────────────────────────┤
│ 2022-06-01 │ 3.315 │ 3.140 │ 2.247 │ 1.870 │
├────────────┼──────────────────┼─────────────────────────┼──────────────────┼─────────────────────────┤
│ 2022-07-01 │ 3.043 │ 2.900 │ 3.014 │ 2.500 │
├────────────┼──────────────────┼─────────────────────────┼──────────────────┼─────────────────────────┤
│ 2022-08-01 │ 2.859 │ 2.900 │ 3.382 │ 2.760 │
├────────────┼──────────────────┼─────────────────────────┼──────────────────┼─────────────────────────┤
│ 2022-09-01 │ 3.148 │ 3.520 │ 3.792 │ 3.210 │
├────────────┼──────────────────┼─────────────────────────┼──────────────────┼─────────────────────────┤
│ 2022-10-01 │ 3.381 │ 3.980 │ 4.231 │ 3.850 │
├────────────┼──────────────────┼─────────────────────────┼──────────────────┼─────────────────────────┤
│ 2022-11-01 │ 3.166 │ 3.890 │ 4.376 │ 4.460 │
├────────────┼──────────────────┼─────────────────────────┼──────────────────┼─────────────────────────┤
│ 2022-12-01 │ 2.942 │ 3.620 │ 4.553 │ 4.510 │
├────────────┼──────────────────┼─────────────────────────┼──────────────────┼─────────────────────────┤
│ 2023-01-01 │ 2.938 │ 3.530 │ 4.764 │ 4.610 │
└────────────┴──────────────────┴─────────────────────────┴──────────────────┴─────────────────────────┘
```
With a variety of options to also discover country-specific and sector-specific companies:
For both the United States and the Eurozone, it is possible to see the current government bond yield curve. For the Eurozone, it is an aggregation of countries that match a specific credit rating, by default AAA.
![Euro Area Yield Curve](https://user-images.githubusercontent.com/46355364/220974746-bd0fcf31-1108-458f-8f0f-893d3704ad7b.png)
When it comes to Corporate Bonds, the major indices are included. These are all the ICE BofA indices and the Moody's Aaa and Baa indices. Based on a query, specific benchmarks can be found. For example a collection of indices matching a variety of bond maturities.
![ICE BOFA](https://user-images.githubusercontent.com/46355364/220975450-c3940875-8f47-48ca-9e19-c736bbc3f733.png)
The Moody's Aaa is often referred to as a great alternative to the federal ten-year Treasury bill as an indicator for interest rates and can be plotted with `moody`:
![Moody](https://user-images.githubusercontent.com/46355364/220976111-419e0b42-3ae8-41d4-8e41-95774be42a64.png)
Next to that, there are spot rates available for the High Quality Market (HQM) ranging from 1 year to a 100 years through `spot`. With this, it is also possible to plot the yield curve with `hqm` for any date in the past. For example `hqm --date 2020-01-01` as shown below:
![HQM](https://user-images.githubusercontent.com/46355364/220976622-58bcab69-4901-4b00-99d4-7462082a088d.png)
Furthermore, it is possible to see spreads between a variety of assets. For example the Emerging Markets spread can be shown with `icespread --category all --area emea`. This is based on the spot treasury curve.
![Emerging Market Spread](https://user-images.githubusercontent.com/46355364/220977016-98bde6f5-7432-40c4-a07b-598199c7381d.png)
For both `icebofa` and `icespread` it is possible to see all the options with `--options`. Find an example for `icespread` below.
```
(🦋) /stocks/ $ search --sector technology --country united_kingdom -l 20
(🦋) /fixedincome/ $ icespread --options
Companies found in United Kingdom within Technology
┏━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ ┃ Name ┃ Country ┃ Sector ┃ Industry ┃ Exchange ┃
┡━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ ATC │ Atotech Limited │ United Kingdom │ Technology │ Electronic Components │ NYQ │
├───────┼───────────────────────────────┼────────────────┼────────────┼─────────────────────────────────────┼──────────┤
│ MIME │ Mimecast Limited │ United Kingdom │ Technology │ Software - Infrastructure │ NMS │
├───────┼───────────────────────────────┼────────────────┼────────────┼─────────────────────────────────────┼──────────┤
│ NNOCF │ Nanoco Group plc │ United Kingdom │ Technology │ Semiconductor Equipment & Materials │ PNK │
├───────┼───────────────────────────────┼────────────────┼────────────┼─────────────────────────────────────┼──────────┤
│ OXINF │ Oxford Instruments plc │ United Kingdom │ Technology │ Semiconductor Equipment & Materials │ PNK │
├───────┼───────────────────────────────┼────────────────┼────────────┼─────────────────────────────────────┼──────────┤
│ PSFE │ Paysafe Limited │ United Kingdom │ Technology │ Information Technology Services │ NYQ │
├───────┼───────────────────────────────┼────────────────┼────────────┼─────────────────────────────────────┼──────────┤
│ PXAMF │ Location Sciences Group PLC │ United Kingdom │ Technology │ Software - Application │ PNK │
├───────┼───────────────────────────────┼────────────────┼────────────┼─────────────────────────────────────┼──────────┤
│ RNSHF │ Renishaw plc │ United Kingdom │ Technology │ Scientific & Technical Instruments │ PNK │
├───────┼───────────────────────────────┼────────────────┼────────────┼─────────────────────────────────────┼──────────┤
│ MFGP │ Micro Focus International plc │ United Kingdom │ Technology │ Software - Infrastructure │ NYQ │
├───────┼───────────────────────────────┼────────────────┼────────────┼─────────────────────────────────────┼──────────┤
│ SEPJF │ Spectris plc │ United Kingdom │ Technology │ Scientific & Technical Instruments │ PNK │
├───────┼───────────────────────────────┼────────────────┼────────────┼─────────────────────────────────────┼──────────┤
│ SLLN │ Searchlight Solutions Ltd. │ United Kingdom │ Technology │ Information Technology Services │ PNK │
├───────┼───────────────────────────────┼────────────────┼────────────┼─────────────────────────────────────┼──────────┤
│ SPMYY │ Spirent Communications plc │ United Kingdom │ Technology │ Software - Infrastructure │ PNK │
├───────┼───────────────────────────────┼────────────────┼────────────┼─────────────────────────────────────┼──────────┤
│ SPNUF │ Spirent Communications plc │ United Kingdom │ Technology │ Software - Infrastructure │ PNK │
├───────┼───────────────────────────────┼────────────────┼────────────┼─────────────────────────────────────┼──────────┤
│ TEKCF │ Tekcapital plc │ United Kingdom │ Technology │ Software - Application │ PNK │
├───────┼───────────────────────────────┼────────────────┼────────────┼─────────────────────────────────────┼──────────┤
│ TTCNF │ Telit Communications PLC │ United Kingdom │ Technology │ Communication Equipment │ PNK │
├───────┼───────────────────────────────┼────────────────┼────────────┼─────────────────────────────────────┼──────────┤
│ TTGPF │ TT Electronics plc │ United Kingdom │ Technology │ Electronic Components │ PNK │
├───────┼───────────────────────────────┼────────────────┼────────────┼─────────────────────────────────────┼──────────┤
│ SGPYY │ The Sage Group plc │ United Kingdom │ Technology │ Software - Application │ PNK │
├───────┼───────────────────────────────┼────────────────┼────────────┼─────────────────────────────────────┼──────────┤
│ VVPR │ VivoPower International PLC │ United Kingdom │ Technology │ Solar │ NMS │
├───────┼───────────────────────────────┼────────────────┼────────────┼─────────────────────────────────────┼──────────┤
│ MCFUF │ Micro Focus International plc │ United Kingdom │ Technology │ Software - Infrastructure │ PNK │
├───────┼───────────────────────────────┼────────────────┼────────────┼─────────────────────────────────────┼──────────┤
│ KNNNF │ Kainos Group plc │ United Kingdom │ Technology │ Software - Application │ PNK │
├───────┼───────────────────────────────┼────────────────┼────────────┼─────────────────────────────────────┼──────────┤
│ AVEVF │ AVEVA Group plc │ United Kingdom │ Technology │ Software - Application │ PNK │
└───────┴───────────────────────────────┴────────────────┴────────────┴─────────────────────────────────────┴──────────┘
┏━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Type ┃ Category ┃ Area ┃ Grade ┃ Title ┃
┡━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ spread │ duration │ us │ non_sovereign │ ICE BofA 1-3 Year US Corporate Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ duration │ us │ non_sovereign │ ICE BofA 3-5 Year US Corporate Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ duration │ us │ non_sovereign │ ICE BofA 5-7 Year US Corporate Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ duration │ us │ non_sovereign │ ICE BofA 7-10 Year US Corporate Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ duration │ us │ non_sovereign │ ICE BofA 10-15 Year US Corporate Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ duration │ us │ non_sovereign │ ICE BofA 15+ Year US Corporate Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ all │ us │ non_sovereign │ ICE BofA US Corporate Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ usd │ us │ high_yield │ ICE BofA US High Yield Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ eur │ eu │ high_yield │ ICE BofA Euro High Yield Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ all │ ex_g10 │ non_sovereign │ ICE BofA Emerging Markets Corporate Plus Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ all │ ex_g10 │ private_sector │ ICE BofA Private Sector Financial Emerging Markets Corporate Plus Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ usd │ ex_g10 │ non_sovereign │ ICE BofA US Emerging Markets Corporate Plus Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ eur │ ex_g10 │ non_sovereign │ ICE BofA Euro Emerging Markets Corporate Plus Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ usd │ ex_g10 │ non_sovereign │ ICE BofA US Emerging Markets Liquid Corporate Plus Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ usd │ ex_g10 │ non_financial │ ICE BofA Non-Financial US Emerging Markets Liquid Corporate Plus Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ usd │ ex_g10 │ public_sector │ ICE BofA Public Sector Issuers US Emerging Markets Liquid Corporate Plus Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ all │ emea │ non_sovereign │ ICE BofA EMEA Emerging Markets Corporate Plus Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ usd │ emea │ non_sovereign │ ICE BofA EMEA US Emerging Markets Liquid Corporate Plus Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ all │ asia │ non_sovereign │ ICE BofA Asia Emerging Markets Corporate Plus Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ usd │ asia │ non_sovereign │ ICE BofA Asia US Emerging Markets Liquid Corporate Plus Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ all │ latin_america │ non_sovereign │ ICE BofA Latin America Emerging Markets Corporate Plus Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ usd │ latin_america │ non_sovereign │ ICE BofA Latin America US Emerging Markets Liquid Corporate Plus Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ all │ ex_g10 │ aaa │ ICE BofA AAA-A Emerging Markets Corporate Plus Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ usd │ ex_g10 │ aaa │ ICE BofA AAA-A US Emerging Markets Liquid Corporate Plus Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ all │ ex_g10 │ high_grade │ ICE BofA High Grade Emerging Markets Corporate Plus Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ all │ ex_g10 │ bbb │ ICE BofA BBB Emerging Markets Corporate Plus Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ usd │ ex_g10 │ bbb │ ICE BofA BBB US Emerging Markets Liquid Corporate Plus Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ all │ ex_g10 │ crossover │ ICE BofA Crossover Emerging Markets Corporate Plus Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ all │ ex_g10 │ bb │ ICE BofA BB Emerging Markets Corporate Plus Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ all │ ex_g10 │ high_yield │ ICE BofA High Yield Emerging Markets Corporate Plus Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ all │ ex_g10 │ b │ ICE BofA B & Lower Emerging Markets Corporate Plus Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ usd │ us │ aaa │ ICE BofA AAA US Corporate Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ usd │ us │ aa │ ICE BofA AA US Corporate Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ usd │ us │ a │ ICE BofA Single-A US Corporate Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ usd │ us │ bbb │ ICE BofA BBB US Corporate Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ usd │ us │ bb │ ICE BofA BB US High Yield Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ usd │ us │ b │ ICE BofA Single-B US High Yield Index Option-Adjusted Spread │
├────────┼──────────┼───────────────┼────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ spread │ usd │ us │ ccc │ ICE BofA CCC & Lower US High Yield Index Option-Adjusted Spread │
└────────┴──────────┴───────────────┴────────────────┴───────────────────────────────────────────────────────────────────────────────────────────────────────┘
```