diff --git a/openbb_terminal/fixedincome/yfinance_view.py b/openbb_terminal/fixedincome/yfinance_view.py
index b6a5bf4b46c..a4f544e0fc7 100644
--- a/openbb_terminal/fixedincome/yfinance_view.py
+++ b/openbb_terminal/fixedincome/yfinance_view.py
@@ -24,7 +24,7 @@ TY_TO_ID = {
@log_start_end(log=logger)
@check_api_key(["API_FRED_KEY"])
def plot_ty(
- maturity: str = "3_month",
+ maturity: str = "5_year",
start_date: Optional[str] = None,
end_date: Optional[str] = None,
export: str = "",
diff --git a/poetry.lock b/poetry.lock
index 80a07f39ddd..6664e325cdc 100644
--- a/poetry.lock
+++ b/poetry.lock
@@ -6142,14 +6142,14 @@ dev = ["pre-commit", "pytest-asyncio", "tox"]
[[package]]
name = "pytest-recorder"
-version = "0.2.1"
+version = "0.2.3"
description = "Pytest plugin, meant to facilitate unit tests writing for tools consumming Web APIs."
category = "dev"
optional = false
python-versions = ">=3.8,<4.0"
files = [
- {file = "pytest_recorder-0.2.1-py3-none-any.whl", hash = "sha256:df525cbaa41aa6bb133a917b53f71358b8f56f65852187cb4a96a39e2085f568"},
- {file = "pytest_recorder-0.2.1.tar.gz", hash = "sha256:3a5fe2941efbf49aa5373c5abd88f51ab0cca5e6007f9dbccd6286da3b239eef"},
+ {file = "pytest_recorder-0.2.3-py3-none-any.whl", hash = "sha256:a2aa1f58a72e78585151840503c88b2a4b7aa85651ce3a08232c86e2680d0c90"},
+ {file = "pytest_recorder-0.2.3.tar.gz", hash = "sha256:ecba7069c87d6e30229db82a091c61e6abb18662c69eeb78a3866ea8b37f04b7"},
]
[package.dependencies]
diff --git a/requirements-full.txt b/requirements-full.txt
index 20f34f8fe41..4bde1b76cd4 100644
--- a/requirements-full.txt
+++ b/requirements-full.txt
@@ -247,7 +247,7 @@ pyprind==2.11.3 ; python_version >= "3.8" and python_full_version != "3.9.7" and
pyrsistent==0.19.3 ; python_version >= "3.8" and python_full_version != "3.9.7" and python_version < "3.11"
pytest-cov==3.0.0 ; python_version >= "3.8" and python_full_version != "3.9.7" and python_version < "3.11"
pytest-mock==3.10.0 ; python_version >= "3.8" and python_full_version != "3.9.7" and python_version < "3.11"
-pytest-recorder==0.2.1 ; python_version >= "3.8" and python_version < "3.11" and python_full_version != "3.9.7"
+pytest-recorder==0.2.3 ; python_version >= "3.8" and python_version < "3.11" and python_full_version != "3.9.7"
pytest-recording==0.12.2 ; python_version >= "3.8" and python_full_version != "3.9.7" and python_version < "3.11"
pytest-timeout==2.1.0 ; python_version >= "3.8" and python_full_version != "3.9.7" and python_version < "3.11"
pytest-xdist==3.2.1 ; python_version >= "3.8" and python_full_version != "3.9.7" and python_version < "3.11"
diff --git a/tests/openbb_terminal/fixedincome/__init__.py b/tests/openbb_terminal/fixedincome/__init__.py
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/tests/openbb_terminal/fixedincome/record/http/test_econdb_model/test_get_treasuries[monthly-2019-01-01-2022-01-01-kwargs0].yaml b/tests/openbb_terminal/fixedincome/record/http/test_econdb_model/test_get_treasuries[monthly-2019-01-01-2022-01-01-kwargs0].yaml
new file mode 100644
index 00000000000..035eba4119d
--- /dev/null
+++ b/tests/openbb_terminal/fixedincome/record/http/test_econdb_model/test_get_treasuries[monthly-2019-01-01-2022-01-01-kwargs0].yaml
@@ -0,0 +1,83 @@
+interactions:
+- request:
+ body: null
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - python-requests/2.28.2
+ method: GET
+ uri: https://www.econdb.com/api/series/?dataset=FRB_H15&v=Instrument&h=TIME&instrument=%5BTCMNOM%5D&from=2019-01-01&to=2022-01-01&freq=%5B129&UNIT=%5BPERCENT:_PER_YEAR%5D&format=json&page_size=500&expand=both
+ response:
+ body:
+ string: !!binary |
+ H4sIAAAAAAAAA+2b72/iNhjH/5UorzaJcv7txPeKcrBVGmyD8qI6naqMZj00GroQTled+r/PjxMb
+ hx7S0DIhJEvlkR/bsZ847SdfHrvf4uV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gDfHK9BwHWTmJdNYr4+TbNnuxH5JlVDXYZG
+ uBJ3mN8bYqnvNlGTdlpmX+dK9Rsiad4jPAA+AP6SjAb8p9d/ADvIVyELQQAA
+ headers:
+ Allow:
+ - GET, HEAD, OPTIONS
+ CF-Cache-Status:
+ - DYNAMIC
+ CF-RAY:
+ - 7abeb41e7cfdb018-BEG
+ Connection:
+ - keep-alive
+ Content-Encoding:
+ - gzip
+ Content-Type:
+ - application/json
+ Date:
+ - Wed, 22 Mar 2023 13:15:29 GMT
+ NEL:
+ - '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}'
+ Referrer-Policy:
+ - same-origin
+ Report-To:
+ - '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=TD87xdXr2Vw701vYFpw4Y6HnM7GxycNXu0Lwvf0ic1MTjOoJw%2Fl858nPQ77BaJ46CufZbhoduB7b8nSe%2FujweJ16tpA2Zcp34Fnse7d4QmRjPcYbAKZrz2fYayDtD5uB"}],"group":"cf-nel","max_age":604800}'
+ Server:
+ - cloudflare
+ Transfer-Encoding:
+ - chunked
+ Vary:
+ - Accept-Encoding
+ - Accept, Origin
+ X-Content-Type-Options:
+ - nosniff
+ X-Frame-Options:
+ - DENY
+ status:
+ code: 200
+ message: OK
+version: 1
diff --git a/tests/openbb_terminal/fixedincome/record/http/test_fred_model/test_get_ameribor[overnight-2020-01-01-2020-02-01].yaml b/tests/openbb_terminal/fixedincome/record/http/test_fred_model/test_get_ameribor[overnight-2020-01-01-2020-02-01].yaml
new file mode 100644
index 00000000000..68e24d86223
--- /dev/null
+++ b/tests/openbb_terminal/fixedincome/record/http/test_fred_model/test_get_ameribor[overnight-2020-01-01-2020-02-01].yaml
@@ -0,0 +1,83 @@
+interactions:
+- request:
+ body: null
+ headers:
+ Connection:
+ - close
+ Host:
+ - api.stlouisfed.org
+ method: GET
+ uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_end=2020-02-01&observation_start=2020-01-01&series_id=AMERIBOR
+ response:
+ body:
+ string: "\n\n \n \n
+ \ \n \n
+ \ \n \n \n \n \n \n \n \n \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:
+ - '3834'
+ Content-Type:
+ - text/xml; charset=UTF-8
+ Date:
+ - Thu, 30 Mar 2023 20:14:08 GMT
+ Expires:
+ - Thu, 30 Mar 2023 20:15:08 GMT
+ Last-Modified:
+ - Thu, 30 Mar 2023 12:03:02 GMT
+ Vary:
+ - Accept-Encoding
+ x-rate-limit-limit:
+ - '120'
+ x-rate-limit-remaining:
+ - '117'
+ status:
+ code: 200
+ message: OK
+version: 1
diff --git a/tests/openbb_terminal/fixedincome/record/http/test_fred_model/test_get_cp[30d-financial-aa-2020-01-01-2023-02-01].yaml b/tests/openbb_terminal/fixedincome/record/http/test_fred_model/test_get_cp[30d-financial-aa-2020-01-01-2023-02-01].yaml
new file mode 100644
index 00000000000..09802c77751
--- /dev/null
+++ b/tests/openbb_terminal/fixedincome/record/http/test_fred_model/test_get_cp[30d-financial-aa-2020-01-01-2023-02-01].yaml
@@ -0,0 +1,1114 @@
+interactions:
+- request:
+ body: null
+ headers:
+ Connection:
+ - close
+ Host:
+ - api.stlouisfed.org
+ method: GET
+ uri: https://api.stlouisfed.org/fred/series/observations?api_key=MOCK_API_KEY&observation_end=2023-02-01&observation_start=2020-01-01&series_id=RIFSPPFAAD30NB
+ response:
+ body:
+ string: "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n