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
new file mode 100644
index 00000000000..7ad8ac57c4d
--- /dev/null
+++ b/tests/openbb_terminal/fixedincome/cassettes/test_fred_model/test_yield_curve[False].yaml
@@ -0,0 +1,519 @@
+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_start=2023-02-08&series_id=DGS1MO
+ response:
+ body:
+ string: "\n\n \n \n \n \n \n \n \n\n\n\n\n"
+ headers:
+ Connection:
+ - close
+ Content-Length:
+ - '1027'
+ Content-Type:
+ - text/xml; charset=UTF-8
+ Date:
+ - Tue, 21 Feb 2023 18:15:22 GMT
+ Expires:
+ - Tue, 21 Feb 2023 18:16:22 GMT
+ Last-Modified:
+ - Fri, 17 Feb 2023 21:23:11 GMT
+ Vary:
+ - Accept-Encoding
+ x-rate-limit-limit:
+ - '120'
+ x-rate-limit-remaining:
+ - '115'
+ status:
+ code: 200
+ message: OK
+- 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_start=2023-02-08&series_id=DGS3MO
+ response:
+ body:
+ string: "\n\n \n \n \n \n \n \n \n\n\n\n\n"
+ headers:
+ Connection:
+ - close
+ Content-Length:
+ - '1027'
+ Content-Type:
+ - text/xml; charset=UTF-8
+ Date:
+ - Tue, 21 Feb 2023 18:15:22 GMT
+ Expires:
+ - Tue, 21 Feb 2023 18:16:22 GMT
+ Last-Modified:
+ - Fri, 17 Feb 2023 21:23:13 GMT
+ Vary:
+ - Accept-Encoding
+ x-rate-limit-limit:
+ - '120'
+ x-rate-limit-remaining:
+ - '114'
+ status:
+ code: 200
+ message: OK
+- 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_start=2023-02-08&series_id=DGS6MO
+ response:
+ body:
+ string: "\n\n \n \n \n \n \n \n \n\n\n\n\n"
+ headers:
+ Connection:
+ - close
+ Content-Length:
+ - '1027'
+ Content-Type:
+ - text/xml; charset=UTF-8
+ Date:
+ - Tue, 21 Feb 2023 18:15:22 GMT
+ Expires:
+ - Tue, 21 Feb 2023 18:16:22 GMT
+ Last-Modified:
+ - Fri, 17 Feb 2023 21:23:15 GMT
+ Vary:
+ - Accept-Encoding
+ x-rate-limit-limit:
+ - '120'
+ x-rate-limit-remaining:
+ - '113'
+ status:
+ code: 200
+ message: OK
+- 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_start=2023-02-08&series_id=DGS1
+ response:
+ body:
+ string: "\n\n \n \n \n \n \n \n \n\n\n\n\n"
+ headers:
+ Connection:
+ - close
+ Content-Length:
+ - '1027'
+ Content-Type:
+ - text/xml; charset=UTF-8
+ Date:
+ - Tue, 21 Feb 2023 18:15:22 GMT
+ Expires:
+ - Tue, 21 Feb 2023 18:16:22 GMT
+ Last-Modified:
+ - Fri, 17 Feb 2023 21:23:07 GMT
+ Vary:
+ - Accept-Encoding
+ x-rate-limit-limit:
+ - '120'
+ x-rate-limit-remaining:
+ - '112'
+ status:
+ code: 200
+ message: OK
+- 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_start=2023-02-08&series_id=DGS2
+ response:
+ body:
+ string: "\n\n \n \n \n \n \n \n \n\n\n\n\n"
+ headers:
+ Connection:
+ - close
+ Content-Length:
+ - '1027'
+ Content-Type:
+ - text/xml; charset=UTF-8
+ Date:
+ - Tue, 21 Feb 2023 18:15:22 GMT
+ Expires:
+ - Tue, 21 Feb 2023 18:16:22 GMT
+ Last-Modified:
+ - Fri, 17 Feb 2023 21:23:11 GMT
+ Vary:
+ - Accept-Encoding
+ x-rate-limit-limit:
+ - '120'
+ x-rate-limit-remaining:
+ - '111'
+ status:
+ code: 200
+ message: OK
+- 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_start=2023-02-08&series_id=DGS3
+ response:
+ body:
+ string: "\n\n \n \n \n \n \n \n \n\n\n\n\n"
+ headers:
+ Connection:
+ - close
+ Content-Length:
+ - '1027'
+ Content-Type:
+ - text/xml; charset=UTF-8
+ Date:
+ - Tue, 21 Feb 2023 18:15:23 GMT
+ Expires:
+ - Tue, 21 Feb 2023 18:16:23 GMT
+ Last-Modified:
+ - Fri, 17 Feb 2023 21:23:12 GMT
+ Vary:
+ - Accept-Encoding
+ x-rate-limit-limit:
+ - '120'
+ x-rate-limit-remaining:
+ - '110'
+ status:
+ code: 200
+ message: OK
+- 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_start=2023-02-08&series_id=DGS5
+ response:
+ body:
+ string: "\n\n \n \n \n \n \n \n \n\n\n\n\n"
+ headers:
+ Connection:
+ - close
+ Content-Length:
+ - '1027'
+ Content-Type:
+ - text/xml; charset=UTF-8
+ Date:
+ - Tue, 21 Feb 2023 18:15:23 GMT
+ Expires:
+ - Tue, 21 Feb 2023 18:16:23 GMT
+ Last-Modified:
+ - Fri, 17 Feb 2023 21:23:14 GMT
+ Vary:
+ - Accept-Encoding
+ x-rate-limit-limit:
+ - '120'
+ x-rate-limit-remaining:
+ - '109'
+ status:
+ code: 200
+ message: OK
+- 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_start=2023-02-08&series_id=DGS7
+ response:
+ body:
+ string: "\n\n \n \n \n \n \n \n \n\n\n\n\n"
+ headers:
+ Connection:
+ - close
+ Content-Length:
+ - '1027'
+ Content-Type:
+ - text/xml; charset=UTF-8
+ Date:
+ - Tue, 21 Feb 2023 18:15:24 GMT
+ Expires:
+ - Tue, 21 Feb 2023 18:16:24 GMT
+ Last-Modified:
+ - Fri, 17 Feb 2023 21:23:15 GMT
+ Vary:
+ - Accept-Encoding
+ x-rate-limit-limit:
+ - '120'
+ x-rate-limit-remaining:
+ - '108'
+ status:
+ code: 200
+ message: OK
+- 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_start=2023-02-08&series_id=DGS10
+ response:
+ body:
+ string: "\n\n \n \n \n \n \n \n \n\n\n\n\n"
+ headers:
+ Connection:
+ - close
+ Content-Length:
+ - '1027'
+ Content-Type:
+ - text/xml; charset=UTF-8
+ Date:
+ - Tue, 21 Feb 2023 18:15:24 GMT
+ Expires:
+ - Tue, 21 Feb 2023 18:16:24 GMT
+ Last-Modified:
+ - Fri, 17 Feb 2023 21:23:07 GMT
+ Vary:
+ - Accept-Encoding
+ x-rate-limit-limit:
+ - '120'
+ x-rate-limit-remaining:
+ - '107'
+ status:
+ code: 200
+ message: OK
+- 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_start=2023-02-08&series_id=DGS20
+ response:
+ body:
+ string: "\n\n \n \n \n \n \n \n \n\n\n\n\n"
+ headers:
+ Connection:
+ - close
+ Content-Length:
+ - '1027'
+ Content-Type:
+ - text/xml; charset=UTF-8
+ Date:
+ - Tue, 21 Feb 2023 18:15:24 GMT
+ Expires:
+ - Tue, 21 Feb 2023 18:16:24 GMT
+ Last-Modified:
+ - Fri, 17 Feb 2023 21:23:12 GMT
+ Vary:
+ - Accept-Encoding
+ x-rate-limit-limit:
+ - '120'
+ x-rate-limit-remaining:
+ - '106'
+ status:
+ code: 200
+ message: OK
+- 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_start=2023-02-08&series_id=DGS30
+ response:
+ body:
+ string: "\n\n \n \n \n \n \n \n \n\n\n\n\n"
+ headers:
+ Connection:
+ - close
+ Content-Length:
+ - '1027'
+ Content-Type:
+ - text/xml; charset=UTF-8
+ Date:
+ - Tue, 21 Feb 2023 18:15:24 GMT
+ Expires:
+ - Tue, 21 Feb 2023 18:16:24 GMT
+ Last-Modified:
+ - Fri, 17 Feb 2023 21:23:13 GMT
+ Vary:
+ - Accept-Encoding
+ x-rate-limit-limit:
+ - '120'
+ x-rate-limit-remaining:
+ - '105'
+ status:
+ code: 200
+ message: OK
+version: 1
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
new file mode 100644
index 00000000000..caf745efeaf
--- /dev/null
+++ b/tests/openbb_terminal/fixedincome/cassettes/test_fred_model/test_yield_curve[True].yaml
@@ -0,0 +1,237 @@
+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_start=2023-02-08&series_id=DFII5
+ response:
+ body:
+ string: "\n\n \n \n \n \n \n \n \n\n\n\n\n"
+ headers:
+ Connection:
+ - close
+ Content-Length:
+ - '1027'
+ Content-Type:
+ - text/xml; charset=UTF-8
+ Date:
+ - Tue, 21 Feb 2023 18:15:20 GMT
+ Expires:
+ - Tue, 21 Feb 2023 18:16:20 GMT
+ Last-Modified:
+ - Fri, 17 Feb 2023 21:23:06 GMT
+ Vary:
+ - Accept-Encoding
+ x-rate-limit-limit:
+ - '120'
+ x-rate-limit-remaining:
+ - '120'
+ status:
+ code: 200
+ message: OK
+- 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_start=2023-02-08&series_id=DFII7
+ response:
+ body:
+ string: "\n\n \n \n \n \n \n \n \n\n\n\n\n"
+ headers:
+ Connection:
+ - close
+ Content-Length:
+ - '1027'
+ Content-Type:
+ - text/xml; charset=UTF-8
+ Date:
+ - Tue, 21 Feb 2023 18:15:21 GMT
+ Expires:
+ - Tue, 21 Feb 2023 18:16:21 GMT
+ Last-Modified:
+ - Fri, 17 Feb 2023 21:23:06 GMT
+ Vary:
+ - Accept-Encoding
+ x-rate-limit-limit:
+ - '120'
+ x-rate-limit-remaining:
+ - '119'
+ status:
+ code: 200
+ message: OK
+- 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_start=2023-02-08&series_id=DFII10
+ response:
+ body:
+ string: "\n\n \n \n \n \n \n \n \n\n\n\n\n"
+ headers:
+ Connection:
+ - close
+ Content-Length:
+ - '1027'
+ Content-Type:
+ - text/xml; charset=UTF-8
+ Date:
+ - Tue, 21 Feb 2023 18:15:21 GMT
+ Expires:
+ - Tue, 21 Feb 2023 18:16:21 GMT
+ Last-Modified:
+ - Fri, 17 Feb 2023 21:23:04 GMT
+ Vary:
+ - Accept-Encoding
+ x-rate-limit-limit:
+ - '120'
+ x-rate-limit-remaining:
+ - '118'
+ status:
+ code: 200
+ message: OK
+- 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_start=2023-02-08&series_id=DFII20
+ response:
+ body:
+ string: "\n\n \n \n \n \n \n \n \n\n\n\n\n"
+ headers:
+ Connection:
+ - close
+ Content-Length:
+ - '1027'
+ Content-Type:
+ - text/xml; charset=UTF-8
+ Date:
+ - Tue, 21 Feb 2023 18:15:21 GMT
+ Expires:
+ - Tue, 21 Feb 2023 18:16:21 GMT
+ Last-Modified:
+ - Fri, 17 Feb 2023 21:22:03 GMT
+ Vary:
+ - Accept-Encoding
+ x-rate-limit-limit:
+ - '120'
+ x-rate-limit-remaining:
+ - '117'
+ status:
+ code: 200
+ message: OK
+- 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_start=2023-02-08&series_id=DFII30
+ response:
+ body:
+ string: "\n\n \n \n \n \n \n \n \n\n\n\n\n"
+ headers:
+ Connection:
+ - close
+ Content-Length:
+ - '1027'
+ Content-Type:
+ - text/xml; charset=UTF-8
+ Date:
+ - Tue, 21 Feb 2023 18:15:21 GMT
+ Expires:
+ - Tue, 21 Feb 2023 18:16:21 GMT
+ Last-Modified:
+ - Fri, 17 Feb 2023 21:22:03 GMT
+ Vary:
+ - Accept-Encoding
+ x-rate-limit-limit:
+ - '120'
+ x-rate-limit-remaining:
+ - '116'
+ status:
+ code: 200
+ message: OK
+version: 1
diff --git a/tests/openbb_terminal/fixedincome/cassettes/test_oecd_model/test_get_interest_rates[long].yaml b/tests/openbb_terminal/fixedincome/cassettes/test_oecd_model/test_get_interest_rates[long].yaml
new file mode 100644
index 00000000000..fc7fe2cec41
--- /dev/null
+++ b/tests/openbb_terminal/fixedincome/cassettes/test_oecd_model/test_get_interest_rates[long].yaml
@@ -0,0 +1,39 @@
+interactions:
+- request:
+ body: null
+ headers:
+ Connection:
+ - close
+ Host:
+ - stats.oecd.org
+ User-Agent:
+ - Python-urllib/3.9
+ method: GET
+ uri: https://stats.oecd.org/sdmx-json/data/DP_LIVE/.STINT.TOT.PC_PA.M/OECD?contentType=csv&detail=code&separator=comma&csv-lang=en&startPeriod=2022-01&endPeriod=2022-01
+ response:
+ body:
+ string: "\uFEFF\"LOCATION\",\"INDICATOR\",\"SUBJECT\",\"MEASURE\",\"FREQUENCY\",\"TIME\",\"Value\",\"Flag
+ Codes\"\r\n\"CHL\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",5.56,\r\n\"USA\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",0.22,\r\n\"NZL\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",1.03,\r\n\"DNK\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.29,\r\n\"ISR\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",0.02,\r\n\"GBR\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",0.53,\r\n\"BEL\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.5601,\r\n\"RUS\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",8.96,\r\n\"IDN\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",3.75,\r\n\"HUN\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",4.0645,\r\n\"FIN\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.5601,\r\n\"LUX\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.5601,\r\n\"ESP\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.5601,\r\n\"NOR\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",1.1,\r\n\"JPN\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.049,\r\n\"GRC\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.5601,\r\n\"KOR\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",1.39,\r\n\"AUT\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.5601,\r\n\"SVK\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.5601,\r\n\"EST\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.5601,\r\n\"SVN\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.5601,\r\n\"CAN\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",0.4571955,\r\n\"DEU\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.5601,\r\n\"PRT\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.5601,\r\n\"ISL\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",2.71,\r\n\"AUS\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",0.07,\r\n\"IRL\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.5601,\r\n\"NLD\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.5601,\r\n\"CHE\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.72,\r\n\"ZAF\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",3.87,\r\n\"CZE\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",4.21,\r\n\"POL\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",3.02,\r\n\"CHN\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",3.32,\r\n\"SWE\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.16,\r\n\"MEX\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",5.87,\r\n\"FRA\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.5601,\r\n\"ITA\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.5601,\r\n\"COL\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",3.47,\r\n\"LVA\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.5601,\r\n\"EA19\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.5601,\r\n\"LTU\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.5601,\r\n\"CRI\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",1.83,\r\n\"IND\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",3.63,\r\n\"BGR\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",0.0089,\r\n\"HRV\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.5601,\r\n\"ROU\",\"STINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",3.0465,\r\n"
+ headers:
+ Access-Control-Allow-Headers:
+ - Content-Type
+ Access-Control-Allow-Methods:
+ - POST,GET,OPTIONS
+ Access-Control-Allow-Origin:
+ - '*'
+ Cache-Control:
+ - private
+ Connection:
+ - close
+ Content-Disposition:
+ - attachment;filename=DP_LIVE_21022023190450184.csv
+ Content-Type:
+ - text/csv
+ Date:
+ - Tue, 21 Feb 2023 18:04:49 GMT
+ Transfer-Encoding:
+ - chunked
+ status:
+ code: 200
+ message: OK
+version: 1
diff --git a/tests/openbb_terminal/fixedincome/cassettes/test_oecd_model/test_get_interest_rates[long_forecast].yaml b/tests/openbb_terminal/fixedincome/cassettes/test_oecd_model/test_get_interest_rates[long_forecast].yaml
new file mode 100644
index 00000000000..6c61ba3acea
--- /dev/null
+++ b/tests/openbb_terminal/fixedincome/cassettes/test_oecd_model/test_get_interest_rates[long_forecast].yaml
@@ -0,0 +1,39 @@
+interactions:
+- request:
+ body: null
+ headers:
+ Connection:
+ - close
+ Host:
+ - stats.oecd.org
+ User-Agent:
+ - Python-urllib/3.9
+ method: GET
+ uri: https://stats.oecd.org/sdmx-json/data/DP_LIVE/.STINTFORECAST.TOT.PC_PA.Q/OECD?contentType=csv&detail=code&separator=comma&csv-lang=en&startPeriod=2022-Q1&endPeriod=2022-Q1
+ response:
+ body:
+ string: "\uFEFF\"LOCATION\",\"INDICATOR\",\"SUBJECT\",\"MEASURE\",\"FREQUENCY\",\"TIME\",\"Value\",\"Flag
+ Codes\"\r\n\"AUS\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",0.103333333333333,\r\n\"AUT\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",-0.528866666666667,\r\n\"BEL\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",-0.528866666666667,\r\n\"CAN\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",0.651304655666667,\r\n\"CZE\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",4.58666666666667,\r\n\"DNK\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",-0.266666666666667,\r\n\"FIN\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",-0.528866666666667,\r\n\"FRA\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",-0.528866666666667,\r\n\"DEU\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",-0.528866666666667,\r\n\"GRC\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",-0.528866666666667,\r\n\"HUN\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",4.1475,\r\n\"ISL\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",3.25,\r\n\"IRL\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",-0.528866666666667,\r\n\"JPN\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",-0.0177644703243616,\r\n\"KOR\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",1.46333333333333,\r\n\"LUX\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",-0.528866666666667,\r\n\"MEX\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",6.29666666666667,\r\n\"NLD\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",-0.528866666666667,\r\n\"NZL\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",1.24333333333333,\r\n\"NOR\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",1.19666666666667,\r\n\"POL\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",3.81333333333333,\r\n\"PRT\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",-0.528866666666667,\r\n\"SVK\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",-0.528866666666667,\r\n\"ESP\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",-0.528866666666667,\r\n\"SWE\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",-0.0154079020013803,\r\n\"CHE\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",-0.655,\r\n\"GBR\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",0.776666666666667,\r\n\"USA\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",0.443333333333333,\r\n\"CHL\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",6.51692788129744,\r\n\"EST\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",-0.528866666666667,\r\n\"IND\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",4,\r\n\"IDN\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",3.07,\r\n\"ISR\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",0.03,\r\n\"SVN\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",-0.528866666666667,\r\n\"ITA\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",-0.528866666666667,\r\n\"CHN\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",4.35,\r\n\"LTU\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",-0.528866666666667,\r\n\"BRA\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",9.5,\r\n\"ZAF\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",4.45,\r\n\"LVA\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",-0.528866666666667,\r\n\"EA17\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",-0.528866666666666,\r\n\"BGR\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",-0.690425900371123,\r\n\"COL\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",4.25,\r\n\"CRI\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",1.73620024123188,\r\n\"HRV\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",0.0111111,\r\n\"PER\",\"STINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",3.2446316752019,\r\n"
+ headers:
+ Access-Control-Allow-Headers:
+ - Content-Type
+ Access-Control-Allow-Methods:
+ - POST,GET,OPTIONS
+ Access-Control-Allow-Origin:
+ - '*'
+ Cache-Control:
+ - private
+ Connection:
+ - close
+ Content-Disposition:
+ - attachment;filename=DP_LIVE_21022023190450871.csv
+ Content-Type:
+ - text/csv
+ Date:
+ - Tue, 21 Feb 2023 18:04:49 GMT
+ Transfer-Encoding:
+ - chunked
+ status:
+ code: 200
+ message: OK
+version: 1
diff --git a/tests/openbb_terminal/fixedincome/cassettes/test_oecd_model/test_get_interest_rates[short].yaml b/tests/openbb_terminal/fixedincome/cassettes/test_oecd_model/test_get_interest_rates[short].yaml
new file mode 100644
index 00000000000..180b62baf2c
--- /dev/null
+++ b/tests/openbb_terminal/fixedincome/cassettes/test_oecd_model/test_get_interest_rates[short].yaml
@@ -0,0 +1,39 @@
+interactions:
+- request:
+ body: null
+ headers:
+ Connection:
+ - close
+ Host:
+ - stats.oecd.org
+ User-Agent:
+ - Python-urllib/3.9
+ method: GET
+ uri: https://stats.oecd.org/sdmx-json/data/DP_LIVE/.LTINT.TOT.PC_PA.M/OECD?contentType=csv&detail=code&separator=comma&csv-lang=en&startPeriod=2022-01&endPeriod=2022-01
+ response:
+ body:
+ string: "\uFEFF\"LOCATION\",\"INDICATOR\",\"SUBJECT\",\"MEASURE\",\"FREQUENCY\",\"TIME\",\"Value\",\"Flag
+ Codes\"\r\n\"IRL\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",0.3803,\r\n\"AUS\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",1.88,\r\n\"POL\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",4,\r\n\"CHE\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",0.045,\r\n\"NLD\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.098,\r\n\"DEU\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.1147619,\r\n\"ISL\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",4.48,\r\n\"PRT\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",0.58,\r\n\"CAN\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",1.759,\r\n\"ITA\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",1.346,\r\n\"FRA\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",0.31,\r\n\"CHL\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",5.886167,\r\n\"CZE\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",3.12,\r\n\"SWE\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",0.36,\r\n\"SVN\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",0.4,\r\n\"ZAF\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",9.83,\r\n\"USA\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",1.76,\r\n\"FIN\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",0.17909,\r\n\"NZL\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",2.56,\r\n\"ESP\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",0.6645238,\r\n\"HUN\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",4.71,\r\n\"LUX\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",-0.039,\r\n\"DNK\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",0.114,\r\n\"BEL\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",0.26,\r\n\"ISR\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",1.43,\r\n\"GBR\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",1.2051,\r\n\"AUT\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",0.1813,\r\n\"KOR\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",2.492,\r\n\"NOR\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",1.86,\r\n\"GRC\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",1.62,\r\n\"SVK\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",0.25235,\r\n\"JPN\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",0.17,\r\n\"LVA\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",0.38,\r\n\"EA19\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",0.5339,\r\n\"COL\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",9.26,\r\n\"LTU\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",0.16,\r\n\"CRI\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",8.33,\r\n\"IND\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",6.65,\r\n\"EST\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",0.31,\r\n\"IDN\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",6.413286,\r\n\"BRA\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",6.08,\r\n\"CHN\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",2.6997,\r\n\"BGR\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",0.57,\r\n\"HRV\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",0.7,\r\n\"ROU\",\"LTINT\",\"TOT\",\"PC_PA\",\"M\",\"2022-01\",5.37,\r\n"
+ headers:
+ Access-Control-Allow-Headers:
+ - Content-Type
+ Access-Control-Allow-Methods:
+ - POST,GET,OPTIONS
+ Access-Control-Allow-Origin:
+ - '*'
+ Cache-Control:
+ - private
+ Connection:
+ - close
+ Content-Disposition:
+ - attachment;filename=DP_LIVE_21022023190448325.csv
+ Content-Type:
+ - text/csv
+ Date:
+ - Tue, 21 Feb 2023 18:04:47 GMT
+ Transfer-Encoding:
+ - chunked
+ status:
+ code: 200
+ message: OK
+version: 1
diff --git a/tests/openbb_terminal/fixedincome/cassettes/test_oecd_model/test_get_interest_rates[short_forecast].yaml b/tests/openbb_terminal/fixedincome/cassettes/test_oecd_model/test_get_interest_rates[short_forecast].yaml
new file mode 100644
index 00000000000..5ac470f052d
--- /dev/null
+++ b/tests/openbb_terminal/fixedincome/cassettes/test_oecd_model/test_get_interest_rates[short_forecast].yaml
@@ -0,0 +1,39 @@
+interactions:
+- request:
+ body: null
+ headers:
+ Connection:
+ - close
+ Host:
+ - stats.oecd.org
+ User-Agent:
+ - Python-urllib/3.9
+ method: GET
+ uri: https://stats.oecd.org/sdmx-json/data/DP_LIVE/.LTINTFORECAST.TOT.PC_PA.Q/OECD?contentType=csv&detail=code&separator=comma&csv-lang=en&startPeriod=2022-Q1&endPeriod=2022-Q1
+ response:
+ body:
+ string: "\uFEFF\"LOCATION\",\"INDICATOR\",\"SUBJECT\",\"MEASURE\",\"FREQUENCY\",\"TIME\",\"Value\",\"Flag
+ Codes\"\r\n\"AUS\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",2.16333333333333,\r\n\"AUT\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",0.480363333333333,\r\n\"BEL\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",0.546666666666667,\r\n\"CAN\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",1.923549199,\r\n\"CZE\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",3.22666666666667,\r\n\"DNK\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",0.379,\r\n\"FIN\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",0.468575797,\r\n\"FRA\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",0.59,\r\n\"DEU\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",0.105659075,\r\n\"GRC\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",2.23,\r\n\"HUN\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",5.16333333333333,\r\n\"ISL\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",4.69,\r\n\"IRL\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",0.6949,\r\n\"JPN\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",0.173341818495514,\r\n\"KOR\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",2.65533333333333,\r\n\"LUX\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",0.303333333333333,\r\n\"MEX\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",7.52092733885445,\r\n\"NLD\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",0.160666666666667,\r\n\"NZL\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",2.79,\r\n\"NOR\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",2.08666666666667,\r\n\"POL\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",4.26,\r\n\"PRT\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",0.933333333333333,\r\n\"SVK\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",0.65265,\r\n\"ESP\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",1.00067387866667,\r\n\"SWE\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",0.5956,\r\n\"CHE\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",0.329333333333333,\r\n\"GBR\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",1.4133,\r\n\"USA\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",1.94,\r\n\"CHL\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",5.93606380333333,\r\n\"IND\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",6.79327333333333,\r\n\"ISR\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",1.76666666666667,\r\n\"ITA\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",1.6646,\r\n\"ZAF\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",9.86,\r\n\"SVN\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",0.713333333333334,\r\n\"LVA\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",0.79,\r\n\"LTU\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",1.00589603174603,\r\n\"EA17\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",0.642850336674733,\r\n\"BGR\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",0.756666666666667,\r\n\"COL\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",9.71249107700806,\r\n\"HRV\",\"LTINTFORECAST\",\"TOT\",\"PC_PA\",\"Q\",\"2022-Q1\",1.33333333333333,\r\n"
+ headers:
+ Access-Control-Allow-Headers:
+ - Content-Type
+ Access-Control-Allow-Methods:
+ - POST,GET,OPTIONS
+ Access-Control-Allow-Origin:
+ - '*'
+ Cache-Control:
+ - private
+ Connection:
+ - close
+ Content-Disposition:
+ - attachment;filename=DP_LIVE_21022023190449372.csv
+ Content-Type:
+ - text/csv
+ Date:
+ - Tue, 21 Feb 2023 18:04:48 GMT
+ Transfer-Encoding:
+ - chunked
+ status:
+ code: 200
+ message: OK
+version: 1
diff --git a/tests/openbb_terminal/fixedincome/csv/test_fred_model/test_yield_curve[False].csv b/tests/openbb_terminal/fixedincome/csv/test_fred_model/test_yield_curve[False].csv
new file mode 100644
index 00000000000..c4c3247d1cb
--- /dev/null
+++ b/tests/openbb_terminal/fixedincome/csv/test_fred_model/test_yield_curve[False].csv
@@ -0,0 +1,12 @@
+,Maturity,Rate
+0,0.08333333333333333,4.64
+1,0.25,4.72
+2,0.5,4.88
+3,1.0,4.87
+4,2.0,4.45
+5,3.0,4.08
+6,5.0,3.82
+7,7.0,3.75
+8,10.0,3.63
+9,20.0,3.86
+10,30.0,3.7
diff --git a/tests/openbb_terminal/fixedincome/csv/test_fred_model/test_yield_curve[True].csv b/tests/openbb_terminal/fixedincome/csv/test_fred_model/test_yield_curve[True].csv
new file mode 100644
index 00000000000..6cf4428f04e
--- /dev/null
+++ b/tests/openbb_terminal/fixedincome/csv/test_fred_model/test_yield_curve[True].csv
@@ -0,0 +1,6 @@
+,Maturity,Rate
+0,5,1.36
+1,7,1.32
+2,10,1.29
+3,20,1.35
+4,30,1.41
diff --git a/tests/openbb_terminal/fixedincome/csv/test_oecd_model/test_get_interest_rates[long].csv b/tests/openbb_terminal/fixedincome/csv/test_oecd_model/test_get_interest_rates[long].csv
new file mode 100644
index 00000000000..b12c544ea63
--- /dev/null
+++ b/tests/openbb_terminal/fixedincome/csv/test_oecd_model/test_get_interest_rates[long].csv
@@ -0,0 +1,2 @@
+,united_states (10 year),canada (10 year)
+2022-01-01,0.22,0.4571955
diff --git a/tests/openbb_terminal/fixedincome/csv/test_oecd_model/test_get_interest_rates[long_forecast].csv b/tests/openbb_terminal/fixedincome/csv/test_oecd_model/test_get_interest_rates[long_forecast].csv
new file mode 100644
index 00000000000..db0989f80a8
--- /dev/null
+++ b/tests/openbb_terminal/fixedincome/csv/test_oecd_model/test_get_interest_rates[long_forecast].csv
@@ -0,0 +1,2 @@
+,united_states (10 year with forecast),canada (10 year with forecast)
+2022-01-01,0.443333333333333,0.651304655666667
diff --git a/tests/openbb_terminal/fixedincome/csv/test_oecd_model/test_get_interest_rates[short].csv b/tests/openbb_terminal/fixedincome/csv/test_oecd_model/test_get_interest_rates[short].csv
new file mode 100644
index 00000000000..62416e37274
--- /dev/null
+++ b/tests/openbb_terminal/fixedincome/csv/test_oecd_model/test_get_interest_rates[short].csv
@@ -0,0 +1,2 @@
+,united_states (3 month),canada (3 month)
+2022-01-01,1.76,1.759
diff --git a/tests/openbb_terminal/fixedincome/csv/test_oecd_model/test_get_interest_rates[short_forecast].csv b/tests/openbb_terminal/fixedincome/csv/test_oecd_model/test_get_interest_rates[short_forecast].csv
new file mode 100644
index 00000000000..3eaa89439ea
--- /dev/null
+++ b/tests/openbb_terminal/fixedincome/csv/test_oecd_model/test_get_interest_rates[short_forecast].csv
@@ -0,0 +1,2 @@
+,united_states (3 month with forecast),canada (3 month with forecast)
+2022-01-01,1.94,1.923549199
diff --git a/tests/openbb_terminal/fixedincome/test_ecb_model.py b/tests/openbb_terminal/fixedincome/test_ecb_model.py
index 037b71ec52e..1772d8b83e9 100644
--- a/tests/openbb_terminal/fixedincome/test_ecb_model.py
+++ b/tests/openbb_terminal/fixedincome/test_ecb_model.py
@@ -1,26 +1,28 @@
-
-
-import pytest
import pandas as pd
+import pytest
+
from openbb_terminal.fixedincome import ecb_model
@pytest.mark.vcr
def test_get_series_data(recorder):
"""Test get_series_data"""
- data = ecb_model.get_series_data("EST.B.EU000A2X2A25.WT",
- start_date= "2022-01-01",
- end_date= "2022-01-31")
+ data = ecb_model.get_series_data(
+ "EST.B.EU000A2X2A25.WT", start_date="2022-01-01", end_date="2022-01-31"
+ )
assert isinstance(data, pd.DataFrame)
recorder.capture(data)
+
@pytest.mark.vcr
def test_get_ecb_yield_curve(recorder):
"""Test get_ecb_yield_curve"""
- data = ecb_model.get_ecb_yield_curve(date="2023-02-15",
- yield_type="spot_rate",
- return_date=True,
- detailed=False,
- any_rating=True)
+ data = ecb_model.get_ecb_yield_curve(
+ date="2023-02-15",
+ yield_type="spot_rate",
+ return_date=True,
+ detailed=False,
+ any_rating=True,
+ )
assert isinstance(data, tuple)
recorder.capture(data[0])
diff --git a/tests/openbb_terminal/fixedincome/test_fred_model.py b/tests/openbb_terminal/fixedincome/test_fred_model.py
new file mode 100644
index 00000000000..2bf6e9f1739
--- /dev/null
+++ b/tests/openbb_terminal/fixedincome/test_fred_model.py
@@ -0,0 +1,23 @@
+import pandas as pd
+import pytest
+
+from openbb_terminal.fixedincome import fred_model
+
+
+@pytest.fixture(scope="module")
+def vcr_config():
+ return {
+ "filter_headers": [("User-Agent", None)],
+ "filter_query_parameters": [
+ ("api_key", "MOCK_API_KEY"),
+ ],
+ }
+
+
+@pytest.mark.vcr
+@pytest.mark.parametrize("inflation", [True, False])
+def test_yield_curve(recorder, inflation):
+ data = fred_model.get_yield_curve(date="2023-02-08", inflation_adjusted=inflation)
+
+ assert isinstance(data, pd.DataFrame)
+ recorder.capture(data)
diff --git a/tests/openbb_terminal/fixedincome/test_oecd_model.py b/tests/openbb_terminal/fixedincome/test_oecd_model.py
new file mode 100644
index 00000000000..13e68efb663
--- /dev/null
+++ b/tests/openbb_terminal/fixedincome/test_oecd_model.py
@@ -0,0 +1,20 @@
+from datetime import datetime
+
+import pandas as pd
+import pytest
+
+from openbb_terminal.fixedincome import oecd_model
+
+
+@pytest.mark.vcr
+@pytest.mark.parametrize("data", ["short", "short_forecast", "long", "long_forecast"])
+def test_get_interest_rates(recorder, data):
+ """Test get_interest_rates"""
+ data = oecd_model.get_interest_rate_data(
+ data=data,
+ countries=["united_states", "canada"],
+ start_date=datetime.strptime("2022-01-01", "%Y-%m-%d"),
+ end_date=datetime.strptime("2022-01-31", "%Y-%m-%d"),
+ )
+ assert isinstance(data, pd.DataFrame)
+ recorder.capture(data)