diff --git a/openbb_terminal/economy/fred_view.py b/openbb_terminal/economy/fred_view.py index 2d7da159e8a..199f9d55c61 100644 --- a/openbb_terminal/economy/fred_view.py +++ b/openbb_terminal/economy/fred_view.py @@ -182,62 +182,3 @@ def format_data_to_plot(data: pd.DataFrame, detail: dict) -> Tuple[pd.DataFrame, data_to_plot.index = pd.to_datetime(data_to_plot.index) return data_to_plot, title - - -@log_start_end(log=logger) -@check_api_key(["API_FRED_KEY"]) -def display_yield_curve( - date: str = "", - external_axes: Optional[List[plt.Axes]] = None, - raw: bool = False, - export: str = "", - sheet_name: Optional[str] = None, -): - """Display yield curve based on US Treasury rates for a specified date. - - Parameters - ---------- - date: str - Date to get curve for. If None, gets most recent date (format yyyy-mm-dd) - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - raw : bool - Output only raw data - export : str - Export data to csv,json,xlsx or png,jpg,pdf,svg file - """ - rates, date_of_yield = fred_model.get_yield_curve(date, True) - if rates.empty: - console.print(f"[red]Yield data not found for {date_of_yield}.[/red]\n") - return - if external_axes is None: - _, ax = plt.subplots(figsize=plot_autoscale(), dpi=PLOT_DPI) - elif is_valid_axes_count(external_axes, 1): - (ax,) = external_axes - else: - return - - ax.plot(rates["Maturity"], rates["Rate"], "-o") - ax.set_xlabel("Maturity") - ax.set_ylabel("Rate (%)") - theme.style_primary_axis(ax) - if external_axes is None: - ax.set_title(f"US Yield Curve for {date_of_yield} ") - theme.visualize_output() - - if raw: - print_rich_table( - rates, - headers=list(rates.columns), - show_index=False, - title=f"United States Yield Curve for {date_of_yield}", - floatfmt=".3f", - ) - - export_data( - export, - os.path.dirname(os.path.abspath(__file__)), - "ycrv", - rates, - sheet_name, - ) diff --git a/openbb_terminal/sdk_core/models/economy_sdk_model.py b/openbb_terminal/sdk_core/models/economy_sdk_model.py index 0dcd6c616c0..471224293ce 100644 --- a/openbb_terminal/sdk_core/models/economy_sdk_model.py +++ b/openbb_terminal/sdk_core/models/economy_sdk_model.py @@ -82,5 +82,3 @@ class EconomyRoot(Category): self.treasury_maturities = lib.economy_econdb_model.get_treasury_maturities self.usbonds = lib.economy_wsj_model.us_bonds self.valuation = lib.economy_finviz_model.get_valuation_data - self.ycrv = lib.economy_fred_model.get_yield_curve - self.ycrv_chart = lib.economy_fred_view.display_yield_curve diff --git a/tests/openbb_terminal/economy/test_fred_model.py b/tests/openbb_terminal/economy/test_fred_model.py index 5fcc3e0768f..476bf9c6ad4 100644 --- a/tests/openbb_terminal/economy/test_fred_model.py +++ b/tests/openbb_terminal/economy/test_fred_model.py @@ -82,35 +82,6 @@ def test_load_data(func, kwargs_dict, recorder): recorder.capture(result_df) -@pytest.mark.skip(reason="Date needs to be mocked.") -@pytest.mark.vcr -@pytest.mark.parametrize("date", ["2022-03-21"]) -def test_yield_curve(date, recorder): - result_df, returned_date = fred_model.get_yield_curve(date) - assert date == returned_date - assert not result_df.empty - recorder.capture(result_df) - - -@pytest.mark.skip(reason="Date needs to be mocked.") -@pytest.mark.vcr -@pytest.mark.parametrize("date", ["2021-07-17"]) -def test_yield_curve_weekend(date): - result_df, returned_date = fred_model.get_yield_curve(date) - assert date == returned_date - assert result_df.empty - - -@pytest.mark.skip(reason="Date needs to be mocked.") -@pytest.mark.vcr -@pytest.mark.parametrize("date", [None]) -def test_yield_curve_none(date, recorder): - result_df, returned_date = fred_model.get_yield_curve(date) - assert returned_date.strftime("%Y-%m-%d") == "2022-03-21" - assert not result_df.empty - recorder.capture(result_df) - - @pytest.mark.vcr @pytest.mark.parametrize( "func, kwargs_dict", diff --git a/tests/openbb_terminal/fixedincome/cassettes/test_fred_model/test_yield_curve[False].yaml b/tests/openbb_terminal/fixedincome/cassettes/test_fred_model/test_yield_curve[False].yaml index 7ad8ac57c4d..938a6edc388 100644 --- a/tests/openbb_terminal/fixedincome/cassettes/test_fred_model/test_yield_curve[False].yaml +++ b/tests/openbb_terminal/fixedincome/cassettes/test_fred_model/test_yield_curve[False].yaml @@ -7,36 +7,85 @@ interactions: Host: - api.stlouisfed.org method: GET - uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2023-02-08&series_id=DGS1MO + uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2022-12-20&series_id=DGS1MO response: body: - string: "\n\n\n \n \n \n \n \n \n \n\n\n\n\n" + sort_order=\"asc\" count=\"44\" offset=\"0\" limit=\"100000\">\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n\n" headers: Connection: - close Content-Length: - - '1027' + - '4793' Content-Type: - text/xml; charset=UTF-8 Date: - - Tue, 21 Feb 2023 18:15:22 GMT + - Wed, 22 Feb 2023 17:22:09 GMT Expires: - - Tue, 21 Feb 2023 18:16:22 GMT + - Wed, 22 Feb 2023 17:23:09 GMT Last-Modified: - - Fri, 17 Feb 2023 21:23:11 GMT + - Tue, 21 Feb 2023 21:21:09 GMT Vary: - Accept-Encoding x-rate-limit-limit: @@ -54,36 +103,85 @@ interactions: Host: - api.stlouisfed.org method: GET - uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2023-02-08&series_id=DGS3MO + uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2022-12-20&series_id=DGS3MO response: body: - string: "\n\n\n \n \n \n \n \n \n \n\n\n\n\n" + sort_order=\"asc\" count=\"44\" offset=\"0\" limit=\"100000\">\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n\n" headers: Connection: - close Content-Length: - - '1027' + - '4793' Content-Type: - text/xml; charset=UTF-8 Date: - - Tue, 21 Feb 2023 18:15:22 GMT + - Wed, 22 Feb 2023 17:22:10 GMT Expires: - - Tue, 21 Feb 2023 18:16:22 GMT + - Wed, 22 Feb 2023 17:23:10 GMT Last-Modified: - - Fri, 17 Feb 2023 21:23:13 GMT + - Tue, 21 Feb 2023 21:21:11 GMT Vary: - Accept-Encoding x-rate-limit-limit: @@ -101,36 +199,85 @@ interactions: Host: - api.stlouisfed.org method: GET - uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2023-02-08&series_id=DGS6MO + uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2022-12-20&series_id=DGS6MO response: body: - string: "\n\n\n \n \n \n \n \n \n \n\n\n\n\n" + sort_order=\"asc\" count=\"44\" offset=\"0\" limit=\"100000\">\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n\n" headers: Connection: - close Content-Length: - - '1027' + - '4793' Content-Type: - text/xml; charset=UTF-8 Date: - - Tue, 21 Feb 2023 18:15:22 GMT + - Wed, 22 Feb 2023 17:22:10 GMT Expires: - - Tue, 21 Feb 2023 18:16:22 GMT + - Wed, 22 Feb 2023 17:23:10 GMT Last-Modified: - - Fri, 17 Feb 2023 21:23:15 GMT + - Tue, 21 Feb 2023 21:21:11 GMT Vary: - Accept-Encoding x-rate-limit-limit: @@ -148,36 +295,85 @@ interactions: Host: - api.stlouisfed.org method: GET - uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2023-02-08&series_id=DGS1 + uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2022-12-20&series_id=DGS1 response: body: - string: "\n\n\n \n \n \n \n \n \n \n\n\n\n\n" + sort_order=\"asc\" count=\"44\" offset=\"0\" limit=\"100000\">\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n\n" headers: Connection: - close Content-Length: - - '1027' + - '4793' Content-Type: - text/xml; charset=UTF-8 Date: - - Tue, 21 Feb 2023 18:15:22 GMT + - Wed, 22 Feb 2023 17:22:10 GMT Expires: - - Tue, 21 Feb 2023 18:16:22 GMT + - Wed, 22 Feb 2023 17:23:10 GMT Last-Modified: - - Fri, 17 Feb 2023 21:23:07 GMT + - Tue, 21 Feb 2023 21:21:08 GMT Vary: - Accept-Encoding x-rate-limit-limit: @@ -195,36 +391,85 @@ interactions: Host: - api.stlouisfed.org method: GET - uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2023-02-08&series_id=DGS2 + uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2022-12-20&series_id=DGS2 response: body: - string: "\n\n\n \n \n \n \n \n \n \n\n\n\n\n" + sort_order=\"asc\" count=\"44\" offset=\"0\" limit=\"100000\">\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n\n" headers: Connection: - close Content-Length: - - '1027' + - '4793' Content-Type: - text/xml; charset=UTF-8 Date: - - Tue, 21 Feb 2023 18:15:22 GMT + - Wed, 22 Feb 2023 17:22:10 GMT Expires: - - Tue, 21 Feb 2023 18:16:22 GMT + - Wed, 22 Feb 2023 17:23:10 GMT Last-Modified: - - Fri, 17 Feb 2023 21:23:11 GMT + - Tue, 21 Feb 2023 21:21:10 GMT Vary: - Accept-Encoding x-rate-limit-limit: @@ -242,36 +487,85 @@ interactions: Host: - api.stlouisfed.org method: GET - uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2023-02-08&series_id=DGS3 + uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2022-12-20&series_id=DGS3 response: body: - string: "\n\n\n \n \n \n \n \n \n \n\n\n\n\n" + sort_order=\"asc\" count=\"44\" offset=\"0\" limit=\"100000\">\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n\n" headers: Connection: - close Content-Length: - - '1027' + - '4793' Content-Type: - text/xml; charset=UTF-8 Date: - - Tue, 21 Feb 2023 18:15:23 GMT + - Wed, 22 Feb 2023 17:22:10 GMT Expires: - - Tue, 21 Feb 2023 18:16:23 GMT + - Wed, 22 Feb 2023 17:23:10 GMT Last-Modified: - - Fri, 17 Feb 2023 21:23:12 GMT + - Tue, 21 Feb 2023 21:20:20 GMT Vary: - Accept-Encoding x-rate-limit-limit: @@ -289,36 +583,85 @@ interactions: Host: - api.stlouisfed.org method: GET - uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2023-02-08&series_id=DGS5 + uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2022-12-20&series_id=DGS5 response: body: - string: "\n\n\n \n \n \n \n \n \n \n\n\n\n\n" + sort_order=\"asc\" count=\"44\" offset=\"0\" limit=\"100000\">\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n\n" headers: Connection: - close Content-Length: - - '1027' + - '4793' Content-Type: - text/xml; charset=UTF-8 Date: - - Tue, 21 Feb 2023 18:15:23 GMT + - Wed, 22 Feb 2023 17:22:10 GMT Expires: - - Tue, 21 Feb 2023 18:16:23 GMT + - Wed, 22 Feb 2023 17:23:10 GMT Last-Modified: - - Fri, 17 Feb 2023 21:23:14 GMT + - Tue, 21 Feb 2023 21:20:21 GMT Vary: - Accept-Encoding x-rate-limit-limit: @@ -336,36 +679,85 @@ interactions: Host: - api.stlouisfed.org method: GET - uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2023-02-08&series_id=DGS7 + uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2022-12-20&series_id=DGS7 response: body: - string: "\n\n\n \n \n \n \n \n \n \n\n\n\n\n" + sort_order=\"asc\" count=\"44\" offset=\"0\" limit=\"100000\">\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n\n" headers: Connection: - close Content-Length: - - '1027' + - '4793' Content-Type: - text/xml; charset=UTF-8 Date: - - Tue, 21 Feb 2023 18:15:24 GMT + - Wed, 22 Feb 2023 17:22:10 GMT Expires: - - Tue, 21 Feb 2023 18:16:24 GMT + - Wed, 22 Feb 2023 17:23:10 GMT Last-Modified: - - Fri, 17 Feb 2023 21:23:15 GMT + - Tue, 21 Feb 2023 21:20:22 GMT Vary: - Accept-Encoding x-rate-limit-limit: @@ -383,36 +775,85 @@ interactions: Host: - api.stlouisfed.org method: GET - uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2023-02-08&series_id=DGS10 + uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2022-12-20&series_id=DGS10 response: body: - string: "\n\n\n \n \n \n \n \n \n \n\n\n\n\n" + sort_order=\"asc\" count=\"44\" offset=\"0\" limit=\"100000\">\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n\n" headers: Connection: - close Content-Length: - - '1027' + - '4793' Content-Type: - text/xml; charset=UTF-8 Date: - - Tue, 21 Feb 2023 18:15:24 GMT + - Wed, 22 Feb 2023 17:22:11 GMT Expires: - - Tue, 21 Feb 2023 18:16:24 GMT + - Wed, 22 Feb 2023 17:23:11 GMT Last-Modified: - - Fri, 17 Feb 2023 21:23:07 GMT + - Tue, 21 Feb 2023 21:20:15 GMT Vary: - Accept-Encoding x-rate-limit-limit: @@ -430,36 +871,85 @@ interactions: Host: - api.stlouisfed.org method: GET - uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2023-02-08&series_id=DGS20 + uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2022-12-20&series_id=DGS20 response: body: - string: "\n\n\n \n \n \n \n \n \n \n\n\n\n\n" + sort_order=\"asc\" count=\"44\" offset=\"0\" limit=\"100000\">\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n\n" headers: Connection: - close Content-Length: - - '1027' + - '4793' Content-Type: - text/xml; charset=UTF-8 Date: - - Tue, 21 Feb 2023 18:15:24 GMT + - Wed, 22 Feb 2023 17:22:11 GMT Expires: - - Tue, 21 Feb 2023 18:16:24 GMT + - Wed, 22 Feb 2023 17:23:11 GMT Last-Modified: - - Fri, 17 Feb 2023 21:23:12 GMT + - Tue, 21 Feb 2023 21:20:19 GMT Vary: - Accept-Encoding x-rate-limit-limit: @@ -477,36 +967,85 @@ interactions: Host: - api.stlouisfed.org method: GET - uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2023-02-08&series_id=DGS30 + uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2022-12-20&series_id=DGS30 response: body: - string: "\n\n\n \n \n \n \n \n \n \n\n\n\n\n" + sort_order=\"asc\" count=\"44\" offset=\"0\" limit=\"100000\">\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n\n" headers: Connection: - close Content-Length: - - '1027' + - '4793' Content-Type: - text/xml; charset=UTF-8 Date: - - Tue, 21 Feb 2023 18:15:24 GMT + - Wed, 22 Feb 2023 17:22:11 GMT Expires: - - Tue, 21 Feb 2023 18:16:24 GMT + - Wed, 22 Feb 2023 17:23:11 GMT Last-Modified: - - Fri, 17 Feb 2023 21:23:13 GMT + - Tue, 21 Feb 2023 21:20:21 GMT Vary: - Accept-Encoding x-rate-limit-limit: diff --git a/tests/openbb_terminal/fixedincome/cassettes/test_fred_model/test_yield_curve[True].yaml b/tests/openbb_terminal/fixedincome/cassettes/test_fred_model/test_yield_curve[True].yaml index caf745efeaf..1ca98fa307c 100644 --- a/tests/openbb_terminal/fixedincome/cassettes/test_fred_model/test_yield_curve[True].yaml +++ b/tests/openbb_terminal/fixedincome/cassettes/test_fred_model/test_yield_curve[True].yaml @@ -7,36 +7,85 @@ interactions: Host: - api.stlouisfed.org method: GET - uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2023-02-08&series_id=DFII5 + uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2022-12-20&series_id=DFII5 response: body: - string: "\n\n\n \n \n \n \n \n \n \n\n\n\n\n" + sort_order=\"asc\" count=\"44\" offset=\"0\" limit=\"100000\">\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n\n" headers: Connection: - close Content-Length: - - '1027' + - '4793' Content-Type: - text/xml; charset=UTF-8 Date: - - Tue, 21 Feb 2023 18:15:20 GMT + - Wed, 22 Feb 2023 17:22:09 GMT Expires: - - Tue, 21 Feb 2023 18:16:20 GMT + - Wed, 22 Feb 2023 17:23:09 GMT Last-Modified: - - Fri, 17 Feb 2023 21:23:06 GMT + - Tue, 21 Feb 2023 21:20:14 GMT Vary: - Accept-Encoding x-rate-limit-limit: @@ -54,36 +103,85 @@ interactions: Host: - api.stlouisfed.org method: GET - uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2023-02-08&series_id=DFII7 + uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2022-12-20&series_id=DFII7 response: body: - string: "\n\n\n \n \n \n \n \n \n \n\n\n\n\n" + sort_order=\"asc\" count=\"44\" offset=\"0\" limit=\"100000\">\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n\n" headers: Connection: - close Content-Length: - - '1027' + - '4793' Content-Type: - text/xml; charset=UTF-8 Date: - - Tue, 21 Feb 2023 18:15:21 GMT + - Wed, 22 Feb 2023 17:22:09 GMT Expires: - - Tue, 21 Feb 2023 18:16:21 GMT + - Wed, 22 Feb 2023 17:23:09 GMT Last-Modified: - - Fri, 17 Feb 2023 21:23:06 GMT + - Tue, 21 Feb 2023 21:20:15 GMT Vary: - Accept-Encoding x-rate-limit-limit: @@ -101,36 +199,85 @@ interactions: Host: - api.stlouisfed.org method: GET - uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2023-02-08&series_id=DFII10 + uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2022-12-20&series_id=DFII10 response: body: - string: "\n\n\n \n \n \n \n \n \n \n\n\n\n\n" + sort_order=\"asc\" count=\"44\" offset=\"0\" limit=\"100000\">\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n\n" headers: Connection: - close Content-Length: - - '1027' + - '4793' Content-Type: - text/xml; charset=UTF-8 Date: - - Tue, 21 Feb 2023 18:15:21 GMT + - Wed, 22 Feb 2023 17:22:09 GMT Expires: - - Tue, 21 Feb 2023 18:16:21 GMT + - Wed, 22 Feb 2023 17:23:09 GMT Last-Modified: - - Fri, 17 Feb 2023 21:23:04 GMT + - Tue, 21 Feb 2023 21:20:12 GMT Vary: - Accept-Encoding x-rate-limit-limit: @@ -148,36 +295,85 @@ interactions: Host: - api.stlouisfed.org method: GET - uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2023-02-08&series_id=DFII20 + uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2022-12-20&series_id=DFII20 response: body: - string: "\n\n\n \n \n \n \n \n \n \n\n\n\n\n" + sort_order=\"asc\" count=\"44\" offset=\"0\" limit=\"100000\">\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n\n" headers: Connection: - close Content-Length: - - '1027' + - '4793' Content-Type: - text/xml; charset=UTF-8 Date: - - Tue, 21 Feb 2023 18:15:21 GMT + - Wed, 22 Feb 2023 17:22:09 GMT Expires: - - Tue, 21 Feb 2023 18:16:21 GMT + - Wed, 22 Feb 2023 17:23:09 GMT Last-Modified: - - Fri, 17 Feb 2023 21:22:03 GMT + - Tue, 21 Feb 2023 21:20:13 GMT Vary: - Accept-Encoding x-rate-limit-limit: @@ -195,36 +391,85 @@ interactions: Host: - api.stlouisfed.org method: GET - uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2023-02-08&series_id=DFII30 + uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_start=2022-12-20&series_id=DFII30 response: body: - string: "\n\n\n \n \n \n \n \n \n \n\n\n\n\n" + sort_order=\"asc\" count=\"44\" offset=\"0\" limit=\"100000\">\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n\n" headers: Connection: - close Content-Length: - - '1027' + - '4793' Content-Type: - text/xml; charset=UTF-8 Date: - - Tue, 21 Feb 2023 18:15:21 GMT + - Wed, 22 Feb 2023 17:22:09 GMT Expires: - - Tue, 21 Feb 2023 18:16:21 GMT + - Wed, 22 Feb 2023 17:23:09 GMT Last-Modified: - - Fri, 17 Feb 2023 21:22:03 GMT + - Tue, 21 Feb 2023 21:20:14 GMT Vary: - Accept-Encoding x-rate-limit-limit: diff --git a/tests/openbb_terminal/fixedincome/txt/test_fixedincome_controller/test_print_help.txt b/tests/openbb_terminal/fixedincome/txt/test_fixedincome_controller/test_print_help.txt index 1cf15e46e0a..8324e762655 100644 --- a/tests/openbb_terminal/fixedincome/txt/test_fixedincome_controller/test_print_help.txt +++ b/tests/openbb_terminal/fixedincome/txt/test_fixedincome_controller/test_print_help.txt @@ -1,27 +1,32 @@ Reference rates: - estr euro short-term rate (estr) [FRED, ECB] - sofr secured overnight financing rate (sofr) [FRED] - sonia sterling overnight index average (sonia) [FRED] - ameribor american interbank offered rate (ameribor) [FRED] + estr euro short-term rate (estr) [FRED, ECB] + sofr secured overnight financing rate (sofr) [FRED] + sonia sterling overnight index average (sonia) [FRED] + ameribor american interbank offered rate (ameribor) [FRED] Central bank rates: - fed effective federal funds rate [FRED] - projection the Federal Reserve's projection of the federal funds rate. [FRED] - iorb interest rate on reserve balances [FRED] - dwpcr discount window primary credit rate [FRED] - ecb key ECB interest rates [FRED] + fed effective federal funds rate [FRED] + projection the Federal Reserve's projection of the federal funds rate. [FRED] + iorb interest rate on reserve balances [FRED] + dwpcr discount window primary credit rate [FRED] + ecb key ECB interest rates [FRED] Government Bonds: - treasury plot countries (including forecast) treasury rates [OECD] - usrates plot secondary market, constant maturity or inflation protected rates [FRED] - ycrv plot US yield curve [FRED] - ecbycrv plot euro area yield curve [ECB] + treasury plot countries (including forecast) treasury rates [OECD] + usrates plot U.S. secondary market, constant maturity or inflation protected treasuries [FRED] + ycrv plot the yield curve based on constant maturity U.S. treasuries [FRED] + ecbycrv plot the yield curve based on Euro Area treasuries [ECB] Corporate Bonds: + icebofa display ICE BofA Corporate Indices [FRED] + moody display Moody's AAA and BAA Corporate indices [FRED] + cp display short-term, promissory notes issued by corporations [FRED] + spot display spot rates ranging from 1 year to a 100 years [FRED] + hqm display the High Quality Market (HQM) corporate yield curve [FRED] Spreads: - - tmc 10-year treasury constant maturity minus selected treasury constant maturity [FRED] - ffrmc selected treasury constant maturity minus federal funds rate [FRED] - tbffr selected treasury bill minus federal funds rate [FRED] + icespread display spread between ICE BofA Corporate Indices and spot treasury curve [FRED] + tmc 10-year treasury constant maturity minus selected treasury constant maturity [FRED] + ffrmc selected treasury constant maturity minus federal funds rate [FRED] + tbffr selected treasury bill minus federal funds rate [FRED]