summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Delahunty <72827203+colin99d@users.noreply.github.com>2023-05-25 07:48:38 -0700
committerGitHub <noreply@github.com>2023-05-25 14:48:38 +0000
commite30da799aa5aa0900cbffc1ce455c28fd55cc2ca (patch)
tree6c52bf4b3063c7c81085a0fa20914e06905c19bf
parent8609b7b1e7892cfad6fb870cb471dd8b4fb3393d (diff)
Fixes Description on Fixedincome (#5065)
* FIxed some stuff * FIxed some stuff --------- Co-authored-by: James Maslek <jmaslek11@gmail.com>
-rw-r--r--openbb_terminal/fixedincome/fred_view.py23
1 files changed, 19 insertions, 4 deletions
diff --git a/openbb_terminal/fixedincome/fred_view.py b/openbb_terminal/fixedincome/fred_view.py
index e33c4f399d8..c11fe827315 100644
--- a/openbb_terminal/fixedincome/fred_view.py
+++ b/openbb_terminal/fixedincome/fred_view.py
@@ -1510,7 +1510,6 @@ def plot_spot(
external_axes : bool, optional
Whether to return the figure object or not, by default False
"""
- series = pd.read_csv(spot_rates_path)
df = fred_model.get_spot(
maturity=maturity, category=category, start_date=start_date, end_date=end_date
)
@@ -1547,9 +1546,25 @@ def plot_spot(
)
if description:
- for title, description_text in series[["Title", "Description"]].values:
- console.print(f"\n[bold]{title}[/bold]")
- console.print(description_text)
+ header1 = "T-Year High Quality Market (HQM) Corporate Bond Spot Rate"
+ message1 = (
+ "The spot rate for T-Year High Quality Market (HQM) Corporate Bond Spot Rate"
+ " is defined as the yield on a bond that gives a single payment after T year."
+ " This is called a zero coupon bond. Because high quality zero coupon bonds are"
+ " not generally available, the HQM methodology computes the spot rates so as to"
+ " make them consistent with the yields on other high quality bonds. The HQM"
+ " yield curve uses data from a set of high quality corporate bonds rated AAA"
+ ", AA, or A that accurately represent the high quality corporate bond market."
+ )
+ header2 = "T-Year High Quality Market (HQM) Corporate Bond Par Yield"
+ message2 = (
+ "The par yield for T-Year High Quality Market (HQM) Corporate Bond Par"
+ " Yield is the coupon rate at which bond prices are zero."
+ )
+ console.print(f"\n[bold]{header1}[/bold]")
+ console.print(message1)
+ console.print(f"\n[bold]{header2}[/bold]")
+ console.print(message2)
export_data(
export,