mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-05 00:42:19 +00:00
Merge pull request #4350 from OpenBB-finance/feature/inflation-rates
Introduce CPI (Consumer Price Index) functionality
This commit is contained in:
1
openbb_terminal/core/sdk/trail_map.csv
vendored
1
openbb_terminal/core/sdk/trail_map.csv
vendored
@@ -203,6 +203,7 @@ economy.search_index,economy_yfinance_model.get_search_indices,
|
||||
economy.spectrum,economy_finviz_view.display_spectrum,
|
||||
economy.treasury,economy_econdb_model.get_treasuries,economy_econdb_view.show_treasuries
|
||||
economy.treasury_maturities,economy_econdb_model.get_treasury_maturities,
|
||||
economy.cpi,economy_fred_model.get_cpi,economy_fred_view.plot_cpi,
|
||||
economy.usbonds,economy_wsj_model.us_bonds,
|
||||
economy.valuation,economy_finviz_model.get_valuation_data,
|
||||
etf.candle,stocks_helper.display_candle,
|
||||
|
||||
|
Can't render this file because it has a wrong number of fields in line 206.
|
256
openbb_terminal/economy/datasets/cpi.csv
vendored
Normal file
256
openbb_terminal/economy/datasets/cpi.csv
vendored
Normal file
@@ -0,0 +1,256 @@
|
||||
title,country,frequency,units,series_id
|
||||
Consumer Price Index for Australia,australia,annual,growth_previous,CPALTT01AUA657N
|
||||
Consumer Price Index for Australia,australia,annual,growth_same,CPALTT01AUA659N
|
||||
Consumer Price Index for Australia,australia,quarterly,growth_previous,CPALTT01AUQ657N
|
||||
Consumer Price Index for Australia,australia,quarterly,growth_same,CPALTT01AUQ659N
|
||||
Consumer Price Index for Austria,austria,annual,growth_previous,CPALTT01ATA657N
|
||||
Consumer Price Index for Austria,austria,annual,growth_same,CPALTT01ATA659N
|
||||
Consumer Price Index for Austria,austria,monthly,growth_previous,CPALTT01ATM657N
|
||||
Consumer Price Index for Austria,austria,monthly,growth_same,CPALTT01ATM659N
|
||||
Consumer Price Index for Austria,austria,quarterly,growth_previous,CPALTT01ATQ657N
|
||||
Consumer Price Index for Austria,austria,quarterly,growth_same,CPALTT01ATQ659N
|
||||
Consumer Price Index for Belgium,belgium,annual,growth_previous,CPALTT01BEA657N
|
||||
Consumer Price Index for Belgium,belgium,annual,growth_same,CPALTT01BEA659N
|
||||
Consumer Price Index for Belgium,belgium,monthly,growth_previous,CPALTT01BEM657N
|
||||
Consumer Price Index for Belgium,belgium,monthly,growth_same,CPALTT01BEM659N
|
||||
Consumer Price Index for Belgium,belgium,quarterly,growth_previous,CPALTT01BEQ657N
|
||||
Consumer Price Index for Belgium,belgium,quarterly,growth_same,CPALTT01BEQ659N
|
||||
Consumer Price Index for Brazil,brazil,annual,growth_previous,CPALTT01BRA657N
|
||||
Consumer Price Index for Brazil,brazil,annual,growth_same,CPALTT01BRA659N
|
||||
Consumer Price Index for Brazil,brazil,monthly,growth_previous,CPALTT01BRM657N
|
||||
Consumer Price Index for Brazil,brazil,monthly,growth_same,CPALTT01BRM659N
|
||||
Consumer Price Index for Brazil,brazil,quarterly,growth_previous,CPALTT01BRQ657N
|
||||
Consumer Price Index for Brazil,brazil,quarterly,growth_same,CPALTT01BRQ659N
|
||||
Consumer Price Index for Canada,canada,annual,index_2015,CPALCY01CAA661N
|
||||
Consumer Price Index for Canada,canada,monthly,index_2015,CPALCY01CAM661N
|
||||
Consumer Price Index for Canada,canada,quarterly,index_2015,CPALCY01CAQ661N
|
||||
Consumer Price Index for Canada,canada,annual,growth_previous,CPALTT01CAA657N
|
||||
Consumer Price Index for Canada,canada,annual,growth_same,CPALTT01CAA659N
|
||||
Consumer Price Index for Canada,canada,monthly,growth_previous,CPALTT01CAM657N
|
||||
Consumer Price Index for Canada,canada,monthly,growth_same,CPALTT01CAM659N
|
||||
Consumer Price Index for Canada,canada,quarterly,growth_previous,CPALTT01CAQ657N
|
||||
Consumer Price Index for Canada,canada,quarterly,growth_same,CPALTT01CAQ659N
|
||||
Consumer Price Index for Chile,chile,annual,growth_previous,CPALTT01CLA657N
|
||||
Consumer Price Index for Chile,chile,annual,growth_same,CPALTT01CLA659N
|
||||
Consumer Price Index for Chile,chile,monthly,growth_previous,CPALTT01CLM657N
|
||||
Consumer Price Index for Chile,chile,monthly,growth_same,CPALTT01CLM659N
|
||||
Consumer Price Index for Chile,chile,quarterly,growth_previous,CPALTT01CLQ657N
|
||||
Consumer Price Index for Chile,chile,quarterly,growth_same,CPALTT01CLQ659N
|
||||
Consumer Price Index for China,china,annual,growth_previous,CPALTT01CNA657N
|
||||
Consumer Price Index for China,china,monthly,growth_same,CPALTT01CNM657N
|
||||
Consumer Price Index for China,china,monthly,growth_previous,CPALTT01CNM659N
|
||||
Consumer Price Index for China,china,quarterly,growth_same,CPALTT01CNQ657N
|
||||
Consumer Price Index for China,china,quarterly,growth_previous,CPALTT01CNQ659N
|
||||
Consumer Price Index for Denmark,denmark,annual,growth_same,CPALTT01DKA657N
|
||||
Consumer Price Index for Denmark,denmark,annual,growth_previous,CPALTT01DKA659N
|
||||
Consumer Price Index for Denmark,denmark,monthly,growth_same,CPALTT01DKM657N
|
||||
Consumer Price Index for Denmark,denmark,monthly,growth_previous,CPALTT01DKM659N
|
||||
Consumer Price Index for Denmark,denmark,quarterly,growth_same,CPALTT01DKQ657N
|
||||
Consumer Price Index for Denmark,denmark,quarterly,growth_previous,CPALTT01DKQ659N
|
||||
Consumer Price Index for Estonia,estonia,annual,growth_same,CPALTT01EEA657N
|
||||
Consumer Price Index for Estonia,estonia,annual,growth_previous,CPALTT01EEA659N
|
||||
Consumer Price Index for Estonia,estonia,annual,index_2015,CPALTT01EEA661N
|
||||
Consumer Price Index for Estonia,estonia,monthly,growth_previous,CPALTT01EEM657N
|
||||
Consumer Price Index for Estonia,estonia,monthly,growth_same,CPALTT01EEM659N
|
||||
Consumer Price Index for Estonia,estonia,monthly,index_2015,CPALTT01EEM661N
|
||||
Consumer Price Index for Estonia,estonia,quarterly,growth_same,CPALTT01EEQ657N
|
||||
Consumer Price Index for Estonia,estonia,quarterly,growth_previous,CPALTT01EEQ659N
|
||||
Consumer Price Index for Estonia,estonia,quarterly,index_2015,CPALTT01EEQ661N
|
||||
Consumer Price Index for Finland,finland,annual,growth_previous,CPALTT01FIA657N
|
||||
Consumer Price Index for Finland,finland,annual,growth_same,CPALTT01FIA659N
|
||||
Consumer Price Index for Finland,finland,monthly,growth_previous,CPALTT01FIM657N
|
||||
Consumer Price Index for Finland,finland,monthly,growth_same,CPALTT01FIM659N
|
||||
Consumer Price Index for Finland,finland,quarterly,growth_previous,CPALTT01FIQ657N
|
||||
Consumer Price Index for Finland,finland,quarterly,growth_same,CPALTT01FIQ659N
|
||||
Consumer Price Index for France,france,annual,growth_previous,CPALTT01FRA657N
|
||||
Consumer Price Index for France,france,annual,growth_same,CPALTT01FRA659N
|
||||
Consumer Price Index for France,france,monthly,growth_previous,CPALTT01FRM657N
|
||||
Consumer Price Index for France,france,monthly,growth_same,CPALTT01FRM659N
|
||||
Consumer Price Index for France,france,quarterly,growth_previous,CPALTT01FRQ657N
|
||||
Consumer Price Index for France,france,quarterly,growth_same,CPALTT01FRQ659N
|
||||
Consumer Price Index for Germany,germany,annual,growth_same,CPALTT01DEA657N
|
||||
Consumer Price Index for Germany,germany,annual,growth_previous,CPALTT01DEA659N
|
||||
Consumer Price Index for Germany,germany,monthly,growth_same,CPALTT01DEM657N
|
||||
Consumer Price Index for Germany,germany,monthly,growth_previous,CPALTT01DEM659N
|
||||
Consumer Price Index for Germany,germany,quarterly,growth_same,CPALTT01DEQ657N
|
||||
Consumer Price Index for Germany,germany,quarterly,growth_previous,CPALTT01DEQ659N
|
||||
Consumer Price Index for Greece,greece,annual,growth_previous,CPALTT01GRA657N
|
||||
Consumer Price Index for Greece,greece,annual,growth_same,CPALTT01GRA659N
|
||||
Consumer Price Index for Greece,greece,monthly,growth_previous,CPALTT01GRM657N
|
||||
Consumer Price Index for Greece,greece,monthly,growth_same,CPALTT01GRM659N
|
||||
Consumer Price Index for Greece,greece,quarterly,growth_previous,CPALTT01GRQ657N
|
||||
Consumer Price Index for Greece,greece,quarterly,growth_same,CPALTT01GRQ659N
|
||||
Consumer Price Index for Hungary,hungary,annual,growth_previous,CPALTT01HUA657N
|
||||
Consumer Price Index for Hungary,hungary,annual,growth_same,CPALTT01HUA659N
|
||||
Consumer Price Index for Hungary,hungary,monthly,growth_previous,CPALTT01HUM657N
|
||||
Consumer Price Index for Hungary,hungary,monthly,growth_same,CPALTT01HUM659N
|
||||
Consumer Price Index for Hungary,hungary,quarterly,growth_previous,CPALTT01HUQ657N
|
||||
Consumer Price Index for Hungary,hungary,quarterly,growth_same,CPALTT01HUQ659N
|
||||
Consumer Price Index for Iceland,iceland,annual,growth_previous,CPALTT01ISA657N
|
||||
Consumer Price Index for Iceland,iceland,annual,growth_same,CPALTT01ISA659N
|
||||
Consumer Price Index for Iceland,iceland,monthly,growth_previous,CPALTT01ISM657N
|
||||
Consumer Price Index for Iceland,iceland,monthly,growth_same,CPALTT01ISM659N
|
||||
Consumer Price Index for Iceland,iceland,quarterly,growth_previous,CPALTT01ISQ657N
|
||||
Consumer Price Index for Iceland,iceland,quarterly,growth_same,CPALTT01ISQ659N
|
||||
Consumer Price Index for India,india,annual,growth_previous,CPALTT01INA657N
|
||||
Consumer Price Index for India,india,annual,growth_same,CPALTT01INA659N
|
||||
Consumer Price Index for India,india,monthly,growth_previous,CPALTT01INM657N
|
||||
Consumer Price Index for India,india,monthly,growth_same,CPALTT01INM659N
|
||||
Consumer Price Index for India,india,quarterly,growth_previous,CPALTT01INQ657N
|
||||
Consumer Price Index for India,india,quarterly,growth_same,CPALTT01INQ659N
|
||||
Consumer Price Index for Indonesia,indonesia,annual,growth_previous,CPALTT01IDA657N
|
||||
Consumer Price Index for Indonesia,indonesia,annual,growth_same,CPALTT01IDA659N
|
||||
Consumer Price Index for Indonesia,indonesia,monthly,growth_previous,CPALTT01IDM657N
|
||||
Consumer Price Index for Indonesia,indonesia,monthly,growth_same,CPALTT01IDM659N
|
||||
Consumer Price Index for Indonesia,indonesia,quarterly,growth_previous,CPALTT01IDQ657N
|
||||
Consumer Price Index for Indonesia,indonesia,quarterly,growth_same,CPALTT01IDQ659N
|
||||
Consumer Price Index for Ireland,ireland,annual,growth_previous,CPALTT01IEA657N
|
||||
Consumer Price Index for Ireland,ireland,annual,growth_same,CPALTT01IEA659N
|
||||
Consumer Price Index for Ireland,ireland,monthly,growth_previous,CPALTT01IEM657N
|
||||
Consumer Price Index for Ireland,ireland,monthly,growth_same,CPALTT01IEM659N
|
||||
Consumer Price Index for Ireland,ireland,quarterly,growth_previous,CPALTT01IEQ657N
|
||||
Consumer Price Index for Ireland,ireland,quarterly,growth_same,CPALTT01IEQ659N
|
||||
Consumer Price Index for Israel,israel,annual,growth_previous,CPALTT01ILA657N
|
||||
Consumer Price Index for Israel,israel,annual,growth_same,CPALTT01ILA659N
|
||||
Consumer Price Index for Israel,israel,monthly,growth_previous,CPALTT01ILM657N
|
||||
Consumer Price Index for Israel,israel,monthly,growth_same,CPALTT01ILM659N
|
||||
Consumer Price Index for Israel,israel,quarterly,growth_previous,CPALTT01ILQ657N
|
||||
Consumer Price Index for Israel,israel,quarterly,growth_same,CPALTT01ILQ659N
|
||||
Consumer Price Index for Italy,italy,annual,growth_previous,CPALTT01ITA657N
|
||||
Consumer Price Index for Italy,italy,annual,growth_same,CPALTT01ITA659N
|
||||
Consumer Price Index for Italy,italy,monthly,growth_previous,CPALTT01ITM657N
|
||||
Consumer Price Index for Italy,italy,monthly,growth_same,CPALTT01ITM659N
|
||||
Consumer Price Index for Italy,italy,quarterly,growth_previous,CPALTT01ITQ657N
|
||||
Consumer Price Index for Italy,italy,quarterly,growth_same,CPALTT01ITQ659N
|
||||
Consumer Price Index for Japan,japan,monthly,index_2015,CPALCY01JPM661N
|
||||
Consumer Price Index for Japan,japan,quarterly,index_2015,CPALCY01JPQ661N
|
||||
Consumer Price Index for Japan,japan,monthly,growth_previous,CPALTT01JPM657N
|
||||
Consumer Price Index for Japan,japan,monthly,growth_same,CPALTT01JPM659N
|
||||
Consumer Price Index for Japan,japan,monthly,index_2015,CPALTT01JPM661S
|
||||
Consumer Price Index for Japan,japan,quarterly,growth_same,CPALTT01JPQ657N
|
||||
Consumer Price Index for Japan,japan,quarterly,growth_previous,CPALTT01JPQ659N
|
||||
Consumer Price Index for Japan,japan,quarterly,index_2015,CPALTT01JPQ661S
|
||||
Consumer Price Index for Luxembourg,luxembourg,annual,growth_previous,CPALTT01LUA657N
|
||||
Consumer Price Index for Luxembourg,luxembourg,annual,growth_same,CPALTT01LUA659N
|
||||
Consumer Price Index for Luxembourg,luxembourg,monthly,growth_previous,CPALTT01LUM657N
|
||||
Consumer Price Index for Luxembourg,luxembourg,monthly,growth_same,CPALTT01LUM659N
|
||||
Consumer Price Index for Luxembourg,luxembourg,quarterly,growth_previous,CPALTT01LUQ657N
|
||||
Consumer Price Index for Luxembourg,luxembourg,quarterly,growth_same,CPALTT01LUQ659N
|
||||
Consumer Price Index for Mexico,mexico,annual,index_2015,CPALCY01MXA661N
|
||||
Consumer Price Index for Mexico,mexico,monthly,index_2015,CPALCY01MXM661N
|
||||
Consumer Price Index for Mexico,mexico,quarterly,index_2015,CPALCY01MXQ661N
|
||||
Consumer Price Index for Mexico,mexico,annual,growth_previous,CPALTT01MXA657N
|
||||
Consumer Price Index for Mexico,mexico,annual,growth_same,CPALTT01MXA659N
|
||||
Consumer Price Index for Mexico,mexico,monthly,growth_previous,CPALTT01MXM657N
|
||||
Consumer Price Index for Mexico,mexico,monthly,growth_same,CPALTT01MXM659N
|
||||
Consumer Price Index for Mexico,mexico,quarterly,growth_previous,CPALTT01MXQ657N
|
||||
Consumer Price Index for Mexico,mexico,quarterly,growth_same,CPALTT01MXQ659N
|
||||
Consumer Price Index for New Zealand,new_zealand,annual,index_2015,CPALCY01NZA661N
|
||||
Consumer Price Index for New Zealand,new_zealand,quarterly,index_2015,CPALCY01NZQ661N
|
||||
Consumer Price Index for New Zealand,new_zealand,annual,growth_previous,CPALTT01NZA657N
|
||||
Consumer Price Index for New Zealand,new_zealand,annual,growth_same,CPALTT01NZA659N
|
||||
Consumer Price Index for New Zealand,new_zealand,quarterly,growth_previous,CPALTT01NZQ657N
|
||||
Consumer Price Index for New Zealand,new_zealand,quarterly,growth_same,CPALTT01NZQ659N
|
||||
Consumer Price Index for Norway,norway,annual,growth_previous,CPALTT01NOA657N
|
||||
Consumer Price Index for Norway,norway,annual,growth_same,CPALTT01NOA659N
|
||||
Consumer Price Index for Norway,norway,monthly,growth_previous,CPALTT01NOM657N
|
||||
Consumer Price Index for Norway,norway,monthly,growth_same,CPALTT01NOM659N
|
||||
Consumer Price Index for Norway,norway,quarterly,growth_previous,CPALTT01NOQ657N
|
||||
Consumer Price Index for Norway,norway,quarterly,growth_same,CPALTT01NOQ659N
|
||||
Consumer Price Index for Poland,poland,annual,growth_previous,CPALTT01PLA657N
|
||||
Consumer Price Index for Poland,poland,annual,growth_same,CPALTT01PLA659N
|
||||
Consumer Price Index for Poland,poland,monthly,growth_previous,CPALTT01PLM657N
|
||||
Consumer Price Index for Poland,poland,monthly,growth_same,CPALTT01PLM659N
|
||||
Consumer Price Index for Poland,poland,quarterly,growth_previous,CPALTT01PLQ657N
|
||||
Consumer Price Index for Poland,poland,quarterly,growth_same,CPALTT01PLQ659N
|
||||
Consumer Price Index for Portugal,portugal,annual,growth_previous,CPALTT01PTA657N
|
||||
Consumer Price Index for Portugal,portugal,annual,growth_same,CPALTT01PTA659N
|
||||
Consumer Price Index for Portugal,portugal,monthly,growth_previous,CPALTT01PTM657N
|
||||
Consumer Price Index for Portugal,portugal,monthly,growth_same,CPALTT01PTM659N
|
||||
Consumer Price Index for Portugal,portugal,quarterly,growth_previous,CPALTT01PTQ657N
|
||||
Consumer Price Index for Portugal,portugal,quarterly,growth_same,CPALTT01PTQ659N
|
||||
Consumer Price Index for Slovenia,slovenia,annual,growth_previous,CPALTT01SIA657N
|
||||
Consumer Price Index for Slovenia,slovenia,annual,growth_same,CPALTT01SIA659N
|
||||
Consumer Price Index for Slovenia,slovenia,monthly,growth_previous,CPALTT01SIM657N
|
||||
Consumer Price Index for Slovenia,slovenia,monthly,growth_same,CPALTT01SIM659N
|
||||
Consumer Price Index for Slovenia,slovenia,quarterly,growth_previous,CPALTT01SIQ657N
|
||||
Consumer Price Index for Slovenia,slovenia,quarterly,growth_same,CPALTT01SIQ659N
|
||||
Consumer Price Index for South Africa,south_africa,annual,growth_previous,CPALTT01ZAA657N
|
||||
Consumer Price Index for South Africa,south_africa,annual,growth_same,CPALTT01ZAA659N
|
||||
Consumer Price Index for South Africa,south_africa,monthly,growth_previous,CPALTT01ZAM657N
|
||||
Consumer Price Index for South Africa,south_africa,monthly,growth_same,CPALTT01ZAM659N
|
||||
Consumer Price Index for South Africa,south_africa,quarterly,growth_previous,CPALTT01ZAQ657N
|
||||
Consumer Price Index for South Africa,south_africa,quarterly,growth_same,CPALTT01ZAQ659N
|
||||
Consumer Price Index for Spain,spain,annual,growth_previous,CPALTT01ESA657N
|
||||
Consumer Price Index for Spain,spain,annual,growth_same,CPALTT01ESA659N
|
||||
Consumer Price Index for Spain,spain,monthly,growth_previous,CPALTT01ESM657N
|
||||
Consumer Price Index for Spain,spain,monthly,growth_same,CPALTT01ESM659N
|
||||
Consumer Price Index for Spain,spain,quarterly,growth_previous,CPALTT01ESQ657N
|
||||
Consumer Price Index for Spain,spain,quarterly,growth_same,CPALTT01ESQ659N
|
||||
Consumer Price Index for Sweden,sweden,annual,growth_previous,CPALTT01SEA657N
|
||||
Consumer Price Index for Sweden,sweden,annual,growth_same,CPALTT01SEA659N
|
||||
Consumer Price Index for Sweden,sweden,monthly,growth_previous,CPALTT01SEM657N
|
||||
Consumer Price Index for Sweden,sweden,monthly,growth_same,CPALTT01SEM659N
|
||||
Consumer Price Index for Sweden,sweden,quarterly,growth_previous,CPALTT01SEQ657N
|
||||
Consumer Price Index for Sweden,sweden,quarterly,growth_same,CPALTT01SEQ659N
|
||||
Consumer Price Index for Switzerland,switzerland,annual,growth_previous,CPALTT01CHA657N
|
||||
Consumer Price Index for Switzerland,switzerland,annual,growth_same,CPALTT01CHA659N
|
||||
Consumer Price Index for Switzerland,switzerland,monthly,growth_previous,CPALTT01CHM657N
|
||||
Consumer Price Index for Switzerland,switzerland,monthly,growth_same,CPALTT01CHM659N
|
||||
Consumer Price Index for Switzerland,switzerland,quarterly,growth_previous,CPALTT01CHQ657N
|
||||
Consumer Price Index for Switzerland,switzerland,quarterly,growth_same,CPALTT01CHQ659N
|
||||
Consumer Price Index for the Czech Republic,czech_republic,annual,growth_same,CPALTT01CZA657N
|
||||
Consumer Price Index for the Czech Republic,czech_republic,annual,growth_previous,CPALTT01CZA659N
|
||||
Consumer Price Index for the Czech Republic,czech_republic,monthly,growth_same,CPALTT01CZM657N
|
||||
Consumer Price Index for the Czech Republic,czech_republic,monthly,growth_previous,CPALTT01CZM659N
|
||||
Consumer Price Index for the Czech Republic,czech_republic,quarterly,growth_same,CPALTT01CZQ657N
|
||||
Consumer Price Index for the Czech Republic,czech_republic,quarterly,growth_previous,CPALTT01CZQ659N
|
||||
Consumer Price Index for the Netherlands,netherlands,annual,growth_previous,CPALTT01NLA657N
|
||||
Consumer Price Index for the Netherlands,netherlands,annual,growth_same,CPALTT01NLA659N
|
||||
Consumer Price Index for the Netherlands,netherlands,monthly,growth_previous,CPALTT01NLM657N
|
||||
Consumer Price Index for the Netherlands,netherlands,monthly,growth_same,CPALTT01NLM659N
|
||||
Consumer Price Index for the Netherlands,netherlands,quarterly,growth_previous,CPALTT01NLQ657N
|
||||
Consumer Price Index for the Netherlands,netherlands,quarterly,growth_same,CPALTT01NLQ659N
|
||||
Consumer Price Index for the Republic of Korea,korea,annual,growth_previous,CPALTT01KRA657N
|
||||
Consumer Price Index for the Republic of Korea,korea,annual,growth_same,CPALTT01KRA659N
|
||||
Consumer Price Index for the Republic of Korea,korea,monthly,growth_previous,CPALTT01KRM657N
|
||||
Consumer Price Index for the Republic of Korea,korea,monthly,growth_same,CPALTT01KRM659N
|
||||
Consumer Price Index for the Republic of Korea,korea,quarterly,growth_previous,CPALTT01KRQ657N
|
||||
Consumer Price Index for the Republic of Korea,korea,quarterly,growth_same,CPALTT01KRQ659N
|
||||
Consumer Price Index for the Russian Federation,russian_federation,monthly,growth_previous,CPALTT01RUM657N
|
||||
Consumer Price Index for the Russian Federation,russian_federation,monthly,growth_same,CPALTT01RUM659N
|
||||
Consumer Price Index for the Russian Federation,russian_federation,quarterly,growth_previous,CPALTT01RUQ657N
|
||||
Consumer Price Index for the Russian Federation,russian_federation,quarterly,growth_same,CPALTT01RUQ659N
|
||||
Consumer Price Index for the Slovak Republic,slovak_republic,annual,growth_previous,CPALTT01SKA657N
|
||||
Consumer Price Index for the Slovak Republic,slovak_republic,annual,growth_same,CPALTT01SKA659N
|
||||
Consumer Price Index for the Slovak Republic,slovak_republic,monthly,growth_previous,CPALTT01SKM657N
|
||||
Consumer Price Index for the Slovak Republic,slovak_republic,monthly,growth_same,CPALTT01SKM659N
|
||||
Consumer Price Index for the Slovak Republic,slovak_republic,quarterly,growth_previous,CPALTT01SKQ657N
|
||||
Consumer Price Index for the Slovak Republic,slovak_republic,quarterly,growth_same,CPALTT01SKQ659N
|
||||
Consumer Price Index for the United Kingdom,the united kingdom,annual,growth_previous,CPALTT01GBA657N
|
||||
Consumer Price Index for the United Kingdom,united_kingdom,annual,growth_same,CPALTT01GBA659N
|
||||
Consumer Price Index for the United Kingdom,united_kingdom,monthly,growth_previous,CPALTT01GBM657N
|
||||
Consumer Price Index for the United Kingdom,united_kingdom,monthly,growth_same,CPALTT01GBM659N
|
||||
Consumer Price Index for the United Kingdom,united_kingdom,quarterly,growth_previous,CPALTT01GBQ657N
|
||||
Consumer Price Index for the United Kingdom,united_kingdom,quarterly,growth_same,CPALTT01GBQ659N
|
||||
Consumer Price Index for the United States,united_states,annual,index_2015,CPALCY01USA661N
|
||||
Consumer Price Index for the United States,united_states,monthly,index_2015,CPALCY01USM661N
|
||||
Consumer Price Index for the United States,united_states,quarterly,index_2015,CPALCY01USQ661N
|
||||
Consumer Price Index for the United States,united_states,annual,growth_previous,CPALTT01USA657N
|
||||
Consumer Price Index for the United States,united_states,annual,growth_same,CPALTT01USA659N
|
||||
Consumer Price Index for the United States,united_states,annual,index_2015,CPALTT01USA661S
|
||||
Consumer Price Index for the United States,united_states,monthly,growth_previous,CPALTT01USM657N
|
||||
Consumer Price Index for the United States,united_states,monthly,growth_same,CPALTT01USM659N
|
||||
Consumer Price Index for the United States,united_states,monthly,index_2015,CPALTT01USM661S
|
||||
Consumer Price Index for the United States,united_states,quarterly,growth_previous,CPALTT01USQ657N
|
||||
Consumer Price Index for the United States,united_states,quarterly,growth_same,CPALTT01USQ659N
|
||||
Consumer Price Index for the United States,united_states,quarterly,index_2015,CPALTT01USQ661S
|
||||
Consumer Price Index for Turkey,turkey,annual,index_2015,CPALCY01TRA661N
|
||||
Consumer Price Index for Turkey,turkey,monthly,index_2015,CPALCY01TRM661N
|
||||
Consumer Price Index for Turkey,turkey,quarterly,index_2015,CPALCY01TRQ661N
|
||||
Consumer Price Index for Turkey,turkey,annual,growth_previous,CPALTT01TRA657N
|
||||
Consumer Price Index for Turkey,turkey,annual,growth_same,CPALTT01TRA659N
|
||||
Consumer Price Index for Turkey,turkey,monthly,growth_previous,CPALTT01TRM657N
|
||||
Consumer Price Index for Turkey,turkey,monthly,growth_same,CPALTT01TRM659N
|
||||
Consumer Price Index for Turkey,turkey,quarterly,growth_previous,CPALTT01TRQ657N
|
||||
Consumer Price Index for Turkey,turkey,quarterly,growth_same,CPALTT01TRQ659N
|
||||
|
137
openbb_terminal/economy/datasets/harmonized_cpi.csv
vendored
Normal file
137
openbb_terminal/economy/datasets/harmonized_cpi.csv
vendored
Normal file
@@ -0,0 +1,137 @@
|
||||
title,country,frequency,units,series_id
|
||||
Harmonised CPI for Austria,austria,annual,growth_previous,CPHPTT01ATA657N
|
||||
Harmonised CPI for Austria,austria,annual,growth_same,CPHPTT01ATA659N
|
||||
Harmonised CPI for Austria,austria,monthly,growth_previous,CPHPTT01ATM657N
|
||||
Harmonised CPI for Austria,austria,monthly,growth_same,CPHPTT01ATM659N
|
||||
Harmonised CPI for Austria,austria,monthly,index_2015,CP0000ATM086NEST
|
||||
Harmonised CPI for Belgium,belgium,annual,growth_previous,CPHPTT01BEA657N
|
||||
Harmonised CPI for Belgium,belgium,annual,growth_same,CPHPTT01BEA659N
|
||||
Harmonised CPI for Belgium,belgium,monthly,growth_previous,CPHPTT01BEM657N
|
||||
Harmonised CPI for Belgium,belgium,monthly,growth_same,CPHPTT01BEM659N
|
||||
Harmonised CPI for Belgium,belgium,monthly,index_2015,CP0000BEM086NEST
|
||||
Harmonised CPI for Bulgaria,bulgaria,monthly,index_2015,CP0000BGM086NEST
|
||||
Harmonised CPI for Croatia,croatia,monthly,index_2015,CP0000HRM086NEST
|
||||
Harmonised CPI for Cyprus,cyprus,monthly,index_2015,CP0000CYM086NEST
|
||||
Harmonised CPI for the Czech Republic,czech_republic,annual,growth_previous,CPHPTT01CZA657N
|
||||
Harmonised CPI for the Czech Republic,czech_republic,annual,growth_same,CPHPTT01CZA659N
|
||||
Harmonised CPI for the Czech Republic,czech_republic,monthly,growth_previous,CPHPTT01CZM657N
|
||||
Harmonised CPI for the Czech Republic,czech_republic,monthly,growth_same,CPHPTT01CZM659N
|
||||
Harmonised CPI for Czech Republic,czech_republic,monthly,index_2015,CP0000CZM086NEST
|
||||
Harmonised CPI for Denmark,denmark,annual,growth_previous,CPHPTT01DKA657N
|
||||
Harmonised CPI for Denmark,denmark,annual,growth_same,CPHPTT01DKA659N
|
||||
Harmonised CPI for Denmark,denmark,monthly,growth_previous,CPHPTT01DKM657N
|
||||
Harmonised CPI for Denmark,denmark,monthly,growth_same,CPHPTT01DKM659N
|
||||
Harmonised CPI for Denmark,denmark,monthly,index_2015,CP0000DKM086NEST
|
||||
Harmonised CPI for Estonia,estonia,annual,growth_previous,CPHPTT01EEA657N
|
||||
Harmonised CPI for Estonia,estonia,annual,growth_same,CPHPTT01EEA659N
|
||||
Harmonised CPI for Estonia,estonia,annual,index_2015,CPHPTT01EEA661N
|
||||
Harmonised CPI for Estonia,estonia,monthly,growth_previous,CPHPTT01EEM657N
|
||||
Harmonised CPI for Estonia,estonia,monthly,growth_same,CPHPTT01EEM659N
|
||||
Harmonised CPI for Estonia,estonia,monthly,index_2015,CPHPTT01EEM661N
|
||||
Harmonised CPI for the Euro Area ,euro_area,annual,growth_previous,CPHPTT01EZA657N
|
||||
Harmonised CPI for the Euro Area ,euro_area,annual,growth_same,CPHPTT01EZA659N
|
||||
Harmonised CPI for the Euro Area ,euro_area,annual,index_2015,CPHPTT01EZA661N
|
||||
Harmonised CPI for the Euro Area ,euro_area,monthly,growth_previous,CPHPTT01EZM657N
|
||||
Harmonised CPI for the Euro Area ,euro_area,monthly,growth_same,CPHPTT01EZM659N
|
||||
Harmonised CPI for the Euro Area ,euro_area,monthly,index_2015,CPHPTT01EZM661N
|
||||
Harmonised CPI for Finland,finland,annual,growth_previous,CPHPTT01FIA657N
|
||||
Harmonised CPI for Finland,finland,annual,growth_same,CPHPTT01FIA659N
|
||||
Harmonised CPI for Finland,finland,monthly,growth_previous,CPHPTT01FIM657N
|
||||
Harmonised CPI for Finland,finland,monthly,growth_same,CPHPTT01FIM659N
|
||||
Harmonised CPI for Finland,finland,monthly,index_2015,CP0000FIM086NEST
|
||||
Harmonised CPI for France,france,monthly,index_2015,CP0000FRM086NEST
|
||||
Harmonised CPI for France,france,annual,growth_previous,CPHPTT01FRA657N
|
||||
Harmonised CPI for France,france,annual,growth_same,CPHPTT01FRA659N
|
||||
Harmonised CPI for France,france,monthly,growth_previous,CPHPTT01FRM657N
|
||||
Harmonised CPI for France,france,monthly,growth_same,CPHPTT01FRM659N
|
||||
Harmonised CPI for Germany,germany,annual,growth_previous,CPHPTT01DEA657N
|
||||
Harmonised CPI for Germany,germany,annual,growth_same,CPHPTT01DEA659N
|
||||
Harmonised CPI for Germany,germany,monthly,growth_previous,CPHPTT01DEM657N
|
||||
Harmonised CPI for Germany,germany,monthly,growth_same,CPHPTT01DEM659N
|
||||
Harmonised CPI for Germany,germany,monthly,index_2015,CP0000DEM086NEST
|
||||
Harmonised CPI for Greece,greece,monthly,index_2015,CP0000GRM086NEST
|
||||
Harmonised CPI for Greece,greece,annual,growth_previous,CPHPTT01GRA657N
|
||||
Harmonised CPI for Greece,greece,annual,growth_same,CPHPTT01GRA659N
|
||||
Harmonised CPI for Greece,greece,monthly,growth_previous,CPHPTT01GRM657N
|
||||
Harmonised CPI for Greece,greece,monthly,growth_same,CPHPTT01GRM659N
|
||||
Harmonised CPI for Hungary,hungary,monthly,index_2015,CP0000HUM086NEST
|
||||
Harmonised CPI for Hungary,hungary,annual,growth_previous,CPHPTT01HUA657N
|
||||
Harmonised CPI for Hungary,hungary,annual,growth_same,CPHPTT01HUA659N
|
||||
Harmonised CPI for Hungary,hungary,monthly,growth_previous,CPHPTT01HUM657N
|
||||
Harmonised CPI for Hungary,hungary,monthly,growth_same,CPHPTT01HUM659N
|
||||
Harmonised CPI for Iceland,iceland,monthly,index_2015,CP0000ISM086NEST
|
||||
Harmonised CPI for Iceland,iceland,annual,growth_previous,CPHPTT01ISA657N
|
||||
Harmonised CPI for Iceland,iceland,annual,growth_same,CPHPTT01ISA659N
|
||||
Harmonised CPI for Iceland,iceland,monthly,growth_previous,CPHPTT01ISM657N
|
||||
Harmonised CPI for Iceland,iceland,monthly,growth_same,CPHPTT01ISM659N
|
||||
Harmonised CPI for Italy,italy,monthly,index_2015,CP0000ITM086NEST
|
||||
Harmonised CPI for Italy,italy,annual,growth_previous,CPHPTT01ITA657N
|
||||
Harmonised CPI for Italy,italy,annual,growth_same,CPHPTT01ITA659N
|
||||
Harmonised CPI for Italy,italy,monthly,growth_previous,CPHPTT01ITM657N
|
||||
Harmonised CPI for Italy,italy,monthly,growth_same,CPHPTT01ITM659N
|
||||
Harmonised CPI for Latvia,latvia,monthly,index_2015,CP0000LVM086NEST
|
||||
Harmonised CPI for Lithuania,lithuania,monthly,index_2015,CP0000LTM086NEST
|
||||
Harmonised CPI for Luxembourg,luxembourg,monthly,index_2015,CP0000LUM086NEST
|
||||
Harmonised CPI for Luxembourg,luxembourg,annual,growth_previous,CPHPTT01LUA657N
|
||||
Harmonised CPI for Luxembourg,luxembourg,annual,growth_same,CPHPTT01LUA659N
|
||||
Harmonised CPI for Luxembourg,luxembourg,monthly,growth_previous,CPHPTT01LUM657N
|
||||
Harmonised CPI for Luxembourg,luxembourg,monthly,growth_same,CPHPTT01LUM659N
|
||||
Harmonised CPI for Malta,malta,monthly,index_2015,CP0000MTM086NEST
|
||||
Harmonised CPI for Netherlands,netherlands,monthly,index_2015,CP0000NLM086NEST
|
||||
Harmonised CPI for the Netherlands,netherlands,annual,growth_previous,CPHPTT01NLA657N
|
||||
Harmonised CPI for the Netherlands,netherlands,annual,growth_same,CPHPTT01NLA659N
|
||||
Harmonised CPI for the Netherlands,netherlands,monthly,growth_previous,CPHPTT01NLM657N
|
||||
Harmonised CPI for the Netherlands,netherlands,monthly,growth_same,CPHPTT01NLM659N
|
||||
Harmonised CPI for Norway,norway,monthly,index_2015,CP0000NOM086NEST
|
||||
Harmonised CPI for Norway,norway,annual,growth_previous,CPHPTT01NOA657N
|
||||
Harmonised CPI for Norway,norway,annual,growth_same,CPHPTT01NOA659N
|
||||
Harmonised CPI for Norway,norway,monthly,growth_previous,CPHPTT01NOM657N
|
||||
Harmonised CPI for Norway,norway,monthly,growth_same,CPHPTT01NOM659N
|
||||
Harmonised CPI for Poland,poland,monthly,index_2015,CP0000PLM086NEST
|
||||
Harmonised CPI for Poland,poland,annual,growth_previous,CPHPTT01PLA657N
|
||||
Harmonised CPI for Poland,poland,annual,growth_same,CPHPTT01PLA659N
|
||||
Harmonised CPI for Poland,poland,monthly,growth_previous,CPHPTT01PLM657N
|
||||
Harmonised CPI for Poland,poland,monthly,growth_same,CPHPTT01PLM659N
|
||||
Harmonised CPI for Portugal,portugal,monthly,index_2015,CP0000PTM086NEST
|
||||
Harmonised CPI for Portugal,portugal,annual,growth_previous,CPHPTT01PTA657N
|
||||
Harmonised CPI for Portugal,portugal,annual,growth_same,CPHPTT01PTA659N
|
||||
Harmonised CPI for Portugal,portugal,monthly,growth_previous,CPHPTT01PTM657N
|
||||
Harmonised CPI for Portugal,portugal,monthly,growth_same,CPHPTT01PTM659N
|
||||
Harmonised CPI for Romania,romania,monthly,index_2015,CP0000ROM086NEST
|
||||
Harmonised CPI for the Slovak Republic,slovak_republic,annual,growth_previous,CPHPTT01SKA657N
|
||||
Harmonised CPI for the Slovak Republic,slovak_republic,annual,growth_same,CPHPTT01SKA659N
|
||||
Harmonised CPI for the Slovak Republic,slovak_republic,monthly,growth_previous,CPHPTT01SKM657N
|
||||
Harmonised CPI for the Slovak Republic,slovak_republic,monthly,growth_same,CPHPTT01SKM659N
|
||||
Harmonised CPI for Slovakia,slovakia,monthly,index_2015,CP0000SKM086NEST
|
||||
Harmonised CPI for Slovenia,slovenia,monthly,index_2015,CP0000SIM086NEST
|
||||
Harmonised CPI for Slovenia,slovenia,annual,growth_previous,CPHPTT01SIA657N
|
||||
Harmonised CPI for Slovenia,slovenia,annual,growth_same,CPHPTT01SIA659N
|
||||
Harmonised CPI for Slovenia,slovenia,monthly,growth_previous,CPHPTT01SIM657N
|
||||
Harmonised CPI for Slovenia,slovenia,monthly,growth_same,CPHPTT01SIM659N
|
||||
Harmonised CPI for Spain,spain,annual,growth_previous,CPHPTT01ESA657N
|
||||
Harmonised CPI for Spain,spain,annual,growth_same,CPHPTT01ESA659N
|
||||
Harmonised CPI for Spain,spain,monthly,growth_previous,CPHPTT01ESM657N
|
||||
Harmonised CPI for Spain,spain,monthly,growth_same,CPHPTT01ESM659N
|
||||
Harmonised CPI for Spain,spain,monthly,index_2015,CP0000ESM086NEST
|
||||
Harmonised CPI for Sweden,sweden,monthly,index_2015,CP0000SEM086NEST
|
||||
Harmonised CPI for Sweden,sweden,annual,growth_previous,CPHPTT01SEA657N
|
||||
Harmonised CPI for Sweden,sweden,annual,growth_same,CPHPTT01SEA659N
|
||||
Harmonised CPI for Sweden,sweden,monthly,growth_previous,CPHPTT01SEM657N
|
||||
Harmonised CPI for Sweden,sweden,monthly,growth_same,CPHPTT01SEM659N
|
||||
Harmonised CPI for Switzerland,switzerland,annual,growth_previous,CPHPTT01CHA657N
|
||||
Harmonised CPI for Switzerland,switzerland,annual,growth_same,CPHPTT01CHA659N
|
||||
Harmonised CPI for Switzerland,switzerland,monthly,growth_previous,CPHPTT01CHM657N
|
||||
Harmonised CPI for Switzerland,switzerland,monthly,growth_same,CPHPTT01CHM659N
|
||||
Harmonised CPI for Switzerland,switzerland,monthly,index_2015,CP0000CHM086NEST
|
||||
Harmonised CPI for Turkey,turkey,monthly,index_2015,CP0000TRM086NEST
|
||||
Harmonised CPI for Turkey,turkey,annual,growth_previous,CPHPTT01TRA657N
|
||||
Harmonised CPI for Turkey,turkey,annual,growth_same,CPHPTT01TRA659N
|
||||
Harmonised CPI for Turkey,turkey,monthly,growth_previous,CPHPTT01TRM657N
|
||||
Harmonised CPI for Turkey,turkey,monthly,growth_same,CPHPTT01TRM659N
|
||||
Harmonised CPI for the United Kingdom,united_kingdom,annual,growth_same,CPHPTT01GBA659N
|
||||
Harmonised CPI for the United Kingdom,united_kingdom,monthly,growth_same,CPHPTT01GBM659N
|
||||
Harmonised CPI for United States,united_states,monthly,index_2015,CP0000USM086NEST
|
||||
Harmonised CPI for the United States,united_states,annual,growth_previous,CPHPTT01USA657N
|
||||
Harmonised CPI for the United States,united_states,annual,growth_same,CPHPTT01USA659N
|
||||
Harmonised CPI for the United States,united_states,monthly,growth_previous,CPHPTT01USM657N
|
||||
Harmonised CPI for the United States,united_states,monthly,growth_same,CPHPTT01USM659N
|
||||
|
@@ -61,6 +61,7 @@ class EconomyController(BaseController):
|
||||
"fred",
|
||||
"index",
|
||||
"treasury",
|
||||
"cpi",
|
||||
"plot",
|
||||
"valuation",
|
||||
"performance",
|
||||
@@ -199,6 +200,9 @@ class EconomyController(BaseController):
|
||||
}
|
||||
choices["events"]["-c"] = "--countries"
|
||||
|
||||
choices["cpi"]["--countries"] = {c: None for c in fred_model.CPI_COUNTRIES}
|
||||
choices["cpi"]["-c"] = "--countries"
|
||||
|
||||
self.choices = choices
|
||||
self.completer = NestedCompleter.from_nested_dict(choices)
|
||||
|
||||
@@ -263,6 +267,7 @@ class EconomyController(BaseController):
|
||||
mt.add_info("_database_")
|
||||
mt.add_cmd("macro")
|
||||
mt.add_cmd("treasury")
|
||||
mt.add_cmd("cpi")
|
||||
mt.add_cmd("fred")
|
||||
mt.add_cmd("index")
|
||||
mt.add_raw("\n")
|
||||
@@ -1042,6 +1047,108 @@ class EconomyController(BaseController):
|
||||
if obbff.ENABLE_EXIT_AUTO_HELP:
|
||||
self.print_help()
|
||||
|
||||
@log_start_end(log=logger)
|
||||
def call_cpi(self, other_args: List[str]):
|
||||
"""Process cpi command"""
|
||||
parser = argparse.ArgumentParser(
|
||||
add_help=False,
|
||||
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
|
||||
prog="cpi",
|
||||
description="Plot (harmonized) consumer price indices for a "
|
||||
"variety of countries and regions.",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"-c",
|
||||
"--countries",
|
||||
dest="countries",
|
||||
type=str,
|
||||
help="What countries you'd like to collect data for",
|
||||
default="united_states",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"-u",
|
||||
"--units",
|
||||
dest="units",
|
||||
type=str,
|
||||
help="What units you'd like to collect data for",
|
||||
default="growth_same",
|
||||
choices=fred_model.CPI_UNITS,
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--frequency",
|
||||
dest="frequency",
|
||||
type=str,
|
||||
help="What frequency you'd like to collect data for",
|
||||
default="monthly",
|
||||
choices=fred_model.CPI_FREQUENCY,
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--harmonized",
|
||||
action="store_true",
|
||||
dest="harmonized",
|
||||
help="Whether to use harmonized cpi data",
|
||||
default=False,
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--no-smart-select",
|
||||
action="store_false",
|
||||
dest="smart_select",
|
||||
help="Whether to assist with selection",
|
||||
default=True,
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"-o",
|
||||
"--options",
|
||||
dest="options",
|
||||
action="store_true",
|
||||
help="See the available options",
|
||||
default=False,
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"-s",
|
||||
"--start",
|
||||
dest="start_date",
|
||||
type=valid_date,
|
||||
help="Starting date (YYYY-MM-DD) of data",
|
||||
default="1980-01-01",
|
||||
)
|
||||
parser.add_argument(
|
||||
"-e",
|
||||
"--end",
|
||||
dest="end_date",
|
||||
type=valid_date,
|
||||
help="Ending date (YYYY-MM-DD) of data",
|
||||
default=None,
|
||||
)
|
||||
ns_parser = self.parse_known_args_and_warn(
|
||||
parser, other_args, EXPORT_BOTH_RAW_DATA_AND_FIGURES, raw=True
|
||||
)
|
||||
if ns_parser:
|
||||
countries = list_from_str(ns_parser.countries)
|
||||
|
||||
fred_view.plot_cpi(
|
||||
countries=countries,
|
||||
units=ns_parser.units,
|
||||
frequency=ns_parser.frequency,
|
||||
harmonized=ns_parser.harmonized,
|
||||
smart_select=ns_parser.smart_select,
|
||||
options=ns_parser.options,
|
||||
start_date=ns_parser.start_date,
|
||||
end_date=ns_parser.end_date,
|
||||
raw=ns_parser.raw,
|
||||
export=ns_parser.export,
|
||||
sheet_name=" ".join(ns_parser.sheet_name)
|
||||
if ns_parser.sheet_name
|
||||
else None,
|
||||
)
|
||||
|
||||
@log_start_end(log=logger)
|
||||
def call_events(self, other_args: List[str]):
|
||||
"""Process events command"""
|
||||
|
||||
@@ -3,6 +3,7 @@ __docformat__ = "numpy"
|
||||
|
||||
import logging
|
||||
import os
|
||||
import pathlib
|
||||
import textwrap
|
||||
from typing import List, Optional, Tuple
|
||||
|
||||
@@ -19,6 +20,65 @@ from openbb_terminal.rich_config import console
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
harmonized_cpi_path = pathlib.Path(__file__).parent / "datasets" / "harmonized_cpi.csv"
|
||||
cpi_path = pathlib.Path(__file__).parent / "datasets" / "cpi.csv"
|
||||
|
||||
CPI_COUNTRIES = [
|
||||
"australia",
|
||||
"austria",
|
||||
"belgium",
|
||||
"brazil",
|
||||
"bulgaria",
|
||||
"canada",
|
||||
"chile",
|
||||
"china",
|
||||
"croatia",
|
||||
"cyprus",
|
||||
"czech_republic",
|
||||
"denmark",
|
||||
"estonia",
|
||||
"euro_area",
|
||||
"finland",
|
||||
"france",
|
||||
"germany",
|
||||
"greece",
|
||||
"hungary",
|
||||
"iceland",
|
||||
"india",
|
||||
"indonesia",
|
||||
"ireland",
|
||||
"israel",
|
||||
"italy",
|
||||
"japan",
|
||||
"korea",
|
||||
"latvia",
|
||||
"lithuania",
|
||||
"luxembourg",
|
||||
"malta",
|
||||
"mexico",
|
||||
"netherlands",
|
||||
"new_zealand",
|
||||
"norway",
|
||||
"poland",
|
||||
"portugal",
|
||||
"romania",
|
||||
"russian_federation",
|
||||
"slovak_republic",
|
||||
"slovakia",
|
||||
"slovenia",
|
||||
"south_africa",
|
||||
"spain",
|
||||
"sweden",
|
||||
"switzerland",
|
||||
"turkey",
|
||||
"united_kingdom",
|
||||
"united_states",
|
||||
]
|
||||
|
||||
CPI_UNITS = ["growth_previous", "growth_same", "index_2015"]
|
||||
|
||||
CPI_FREQUENCY = ["monthly", "quarterly", "annual"]
|
||||
|
||||
|
||||
@log_start_end(log=logger)
|
||||
@check_api_key(["API_FRED_KEY"])
|
||||
@@ -246,3 +306,87 @@ def get_aggregated_series_data(
|
||||
data[s_id] = series[s_id]
|
||||
|
||||
return data, detail
|
||||
|
||||
|
||||
@log_start_end(log=logger)
|
||||
@check_api_key(["API_FRED_KEY"])
|
||||
def get_cpi(
|
||||
countries: list,
|
||||
units: str = "",
|
||||
frequency: str = "",
|
||||
harmonized: bool = False,
|
||||
smart_select: bool = True,
|
||||
options: bool = False,
|
||||
start_date: Optional[str] = None,
|
||||
end_date: Optional[str] = None,
|
||||
) -> Tuple[pd.DataFrame, dict]:
|
||||
"""Obtain CPI data from FRED. [Source: FRED]
|
||||
|
||||
Parameters
|
||||
----------
|
||||
countries: list
|
||||
The country or countries you want to see.
|
||||
units: str
|
||||
The units you want to see, can be "growth_previous", "growth_same" or "index_2015".
|
||||
frequency: str
|
||||
The frequency you want to see, either "annual", monthly" or "quarterly".
|
||||
harmonized: bool
|
||||
Whether you wish to obtain harmonized data.
|
||||
smart_select: bool
|
||||
Whether to assist with the selection.
|
||||
options: bool
|
||||
Whether to return the options.
|
||||
start_date: Optional[str]
|
||||
Start date, formatted YYYY-MM-DD
|
||||
end_date: Optional[str]
|
||||
End date, formatted YYYY-MM-DD
|
||||
"""
|
||||
series = pd.read_csv(harmonized_cpi_path) if harmonized else pd.read_csv(cpi_path)
|
||||
|
||||
if options:
|
||||
return series.drop(["series_id"], axis=1)
|
||||
|
||||
step_1 = series[series["country"].str.contains("|".join(countries))]
|
||||
step_2 = step_1[step_1["units"] == units]
|
||||
step_3 = step_2[step_2["frequency"] == frequency]
|
||||
|
||||
if smart_select:
|
||||
if not step_3.empty and step_3["country"].nunique() == len(countries):
|
||||
series = step_3
|
||||
elif not step_2.empty and step_2["country"].nunique() == len(countries):
|
||||
console.print(
|
||||
f"No {frequency} data available for all countries. Using common frequency."
|
||||
)
|
||||
frequency_new = step_1["frequency"].mode()[0]
|
||||
series = step_2[step_2["frequency"] == frequency_new]
|
||||
else:
|
||||
console.print(
|
||||
f"No {frequency} and {units} data available for all countries. Using remaining options."
|
||||
)
|
||||
series = step_3 if not step_3.empty else step_2
|
||||
else:
|
||||
series = step_3
|
||||
|
||||
if series.empty:
|
||||
console.print(
|
||||
"The combination of parameters does not result in any data. Please consider "
|
||||
"using the `options` parameter to see the available options. Note that there "
|
||||
"are two options list, one with `harmonized` and one without."
|
||||
)
|
||||
return pd.DataFrame()
|
||||
|
||||
series_dictionary = {}
|
||||
|
||||
for series_id, country_value, frequency_value, unit_value in series[
|
||||
["series_id", "country", "frequency", "units"]
|
||||
].values:
|
||||
series_dictionary[
|
||||
f"{country_value}-{frequency_value}-{unit_value}"
|
||||
] = get_series_data(
|
||||
series_id=series_id, start_date=start_date, end_date=end_date
|
||||
)
|
||||
|
||||
df = pd.DataFrame.from_dict(series_dictionary)
|
||||
df.index = pd.to_datetime(df.index).date
|
||||
|
||||
return df
|
||||
|
||||
@@ -4,6 +4,7 @@ __docformat__ = "numpy"
|
||||
import logging
|
||||
import os
|
||||
import textwrap
|
||||
from itertools import cycle
|
||||
from typing import List, Optional, Tuple
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
@@ -27,7 +28,7 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
register_matplotlib_converters()
|
||||
|
||||
# pylint: disable=too-many-arguments
|
||||
# pylint: disable=too-many-arguments,inconsistent-return-statements
|
||||
|
||||
|
||||
@log_start_end(log=logger)
|
||||
@@ -170,6 +171,136 @@ def display_fred_series(
|
||||
return None
|
||||
|
||||
|
||||
@log_start_end(log=logger)
|
||||
@check_api_key(["API_FRED_KEY"])
|
||||
def plot_cpi(
|
||||
countries: list,
|
||||
units: str = "growth_same",
|
||||
frequency: str = "monthly",
|
||||
harmonized: bool = False,
|
||||
smart_select: bool = True,
|
||||
options: bool = False,
|
||||
start_date: Optional[str] = None,
|
||||
end_date: Optional[str] = None,
|
||||
raw: bool = False,
|
||||
export: str = "",
|
||||
sheet_name: str = "",
|
||||
external_axes: Optional[List[plt.Axes]] = None,
|
||||
):
|
||||
"""Plot CPI data. [Source: FRED]
|
||||
|
||||
Parameters
|
||||
----------
|
||||
countries: list
|
||||
List of countries to plot
|
||||
units: str
|
||||
Units of the data, either "growth_same", "growth_previous", "index_2015"
|
||||
frequency: str
|
||||
Frequency of the data, either "monthly", "quarterly" or "annual"
|
||||
harmonized: bool
|
||||
Whether to use harmonized data
|
||||
smart_select: bool
|
||||
Whether to automatically select the best series
|
||||
options: bool
|
||||
Whether to show options
|
||||
start_date: Optional[str]
|
||||
Start date, formatted YYYY-MM-DD
|
||||
end_date: Optional[str]
|
||||
End date, formatted YYYY-MM-DD
|
||||
raw: bool
|
||||
Show raw data
|
||||
export: str
|
||||
Export data to csv or excel file
|
||||
sheet_name: str
|
||||
Name of the sheet to export to
|
||||
external_axes: Optional[List[plt.Axes]]
|
||||
External axes (1 axis is expected in the list)
|
||||
"""
|
||||
series = (
|
||||
pd.read_csv(fred_model.harmonized_cpi_path)
|
||||
if harmonized
|
||||
else pd.read_csv(fred_model.cpi_path)
|
||||
)
|
||||
|
||||
df = fred_model.get_cpi(
|
||||
countries=countries,
|
||||
units=units,
|
||||
frequency=frequency,
|
||||
harmonized=harmonized,
|
||||
smart_select=smart_select,
|
||||
options=options,
|
||||
start_date=start_date,
|
||||
end_date=end_date,
|
||||
)
|
||||
|
||||
if options:
|
||||
return print_rich_table(series.drop(["series_id"], axis=1))
|
||||
|
||||
# This plot has 1 axis
|
||||
if not external_axes:
|
||||
_, ax = plt.subplots(figsize=plot_autoscale(), dpi=PLOT_DPI)
|
||||
elif is_valid_axes_count(external_axes, 1):
|
||||
(ax,) = external_axes
|
||||
else:
|
||||
return pd.DataFrame()
|
||||
|
||||
colors = cycle(theme.get_colors())
|
||||
|
||||
for column in df.columns:
|
||||
country, frequency, units = column.split("-")
|
||||
label = f"{country.replace('_', ' ').title()} ({frequency}, {units})"
|
||||
|
||||
ax.plot(
|
||||
df.index,
|
||||
df[column].values,
|
||||
color=next(colors, "#FCED00"),
|
||||
label=label,
|
||||
)
|
||||
|
||||
if len(df.columns) > 1:
|
||||
title = f"{'Harmonized ' if harmonized else ''}Consumer Price Indices"
|
||||
ax.set_title(title, fontsize=15)
|
||||
ax.legend(prop={"size": 8})
|
||||
else:
|
||||
country = [
|
||||
country.replace("_", " ").title()
|
||||
for country in countries
|
||||
if df.columns.str.contains(country)
|
||||
]
|
||||
|
||||
if country:
|
||||
title = f"{'Harmonized ' if harmonized else ''}Consumer Price Index for {country[0]}"
|
||||
ax.set_title(title)
|
||||
|
||||
if units == "growth_same":
|
||||
ax.set_ylabel("Growth Same Period (%)")
|
||||
elif units == "growth_previous":
|
||||
ax.set_ylabel("Growth Previous Period (%)")
|
||||
else:
|
||||
ax.set_ylabel("Index (2015=100)")
|
||||
|
||||
theme.style_primary_axis(ax)
|
||||
|
||||
if external_axes is None:
|
||||
theme.visualize_output()
|
||||
|
||||
if raw:
|
||||
print_rich_table(
|
||||
df.iloc[-10:],
|
||||
title=title,
|
||||
show_index=True,
|
||||
floatfmt=".3f",
|
||||
)
|
||||
|
||||
export_data(
|
||||
export,
|
||||
os.path.dirname(os.path.abspath(__file__)),
|
||||
"CP",
|
||||
df / 100,
|
||||
sheet_name,
|
||||
)
|
||||
|
||||
|
||||
def format_data_to_plot(data: pd.DataFrame, detail: dict) -> Tuple[pd.DataFrame, str]:
|
||||
"""Helper to format data to plot"""
|
||||
|
||||
|
||||
@@ -465,6 +465,7 @@
|
||||
"spectrum": ["Finviz"],
|
||||
"macro": ["EconDB"],
|
||||
"treasury": ["EconDB"],
|
||||
"cpi": ["FRED"],
|
||||
"fred": ["FRED"],
|
||||
"index": ["YahooFinance"]
|
||||
},
|
||||
|
||||
2
openbb_terminal/miscellaneous/i18n/en.yml
vendored
2
openbb_terminal/miscellaneous/i18n/en.yml
vendored
@@ -749,6 +749,7 @@ en:
|
||||
economy/fred: collect macro data from FRED based on a series ID
|
||||
economy/index: find and plot any (major) index on the market
|
||||
economy/treasury: obtain U.S. treasury rates
|
||||
economy/cpi: obtain (harmonized) Consumer Price Indices for any country
|
||||
economy/ycrv: show sovereign yield curves
|
||||
economy/spread: show bond spread matrix
|
||||
economy/events: show economic calendar
|
||||
@@ -784,7 +785,6 @@ en:
|
||||
economy/qa/raw: print raw data
|
||||
economy/qa/decompose: decomposition in cyclic-trend, season, and residuals of prices
|
||||
economy/qa/cusum: detects abrupt changes using cumulative sum algorithm of prices
|
||||
fixedincome: Fixed Income
|
||||
fixedincome/_reference_rates_: Reference rates
|
||||
fixedincome/estr: euro short-term rate (estr)
|
||||
fixedincome/sofr: secured overnight financing rate (sofr)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
274
tests/openbb_terminal/economy/cassettes/test_fred_model/test_get_cpi[get_cpi-kwargs_dict4].yaml
vendored
Normal file
274
tests/openbb_terminal/economy/cassettes/test_fred_model/test_get_cpi[get_cpi-kwargs_dict4].yaml
vendored
Normal file
@@ -0,0 +1,274 @@
|
||||
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&series_id=CPALTT01GBA657N
|
||||
response:
|
||||
body:
|
||||
string: "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<observations realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" observation_start=\"1600-01-01\" observation_end=\"9999-12-31\"
|
||||
units=\"lin\" output_type=\"1\" file_type=\"xml\" order_by=\"observation_date\"
|
||||
sort_order=\"asc\" count=\"67\" offset=\"0\" limit=\"100000\">\n <observation
|
||||
realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1956-01-01\"
|
||||
value=\".\"/>\n <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\"
|
||||
date=\"1957-01-01\" value=\".\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1958-01-01\" value=\".\"/>\n <observation
|
||||
realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1959-01-01\"
|
||||
value=\".\"/>\n <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\"
|
||||
date=\"1960-01-01\" value=\"1.0035733292785\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1961-01-01\" value=\"3.44749717726758\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1962-01-01\"
|
||||
value=\"4.19650003638218\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1963-01-01\" value=\"2.01854435053746\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1964-01-01\"
|
||||
value=\"3.2815893187485\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1965-01-01\" value=\"4.77377151312203\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1966-01-01\"
|
||||
value=\"3.90961795748476\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1967-01-01\" value=\"2.48211731044351\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1968-01-01\"
|
||||
value=\"4.69742444335869\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1969-01-01\" value=\"5.44666666666666\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1970-01-01\"
|
||||
value=\"6.3665676171208\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1971-01-01\" value=\"9.44484070375655\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1972-01-01\"
|
||||
value=\"7.07109107695649\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1973-01-01\" value=\"9.19604362160794\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1974-01-01\"
|
||||
value=\"16.043989223337\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1975-01-01\" value=\"24.2072936660269\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1976-01-01\"
|
||||
value=\"16.5595252812461\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1977-01-01\" value=\"15.8402715172084\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1978-01-01\"
|
||||
value=\"8.2631386193005\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1979-01-01\" value=\"13.4212863123176\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1980-01-01\"
|
||||
value=\"17.965924766059\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1981-01-01\" value=\"11.8766196827002\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1982-01-01\"
|
||||
value=\"8.5988700564972\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1983-01-01\" value=\"4.60930184163978\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1984-01-01\"
|
||||
value=\"4.9607121543664\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1985-01-01\" value=\"6.07139383722625\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1986-01-01\"
|
||||
value=\"3.42761476782098\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1987-01-01\" value=\"4.14891804395978\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1988-01-01\"
|
||||
value=\"4.20939997645425\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1989-01-01\" value=\"5.8091286307054\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1990-01-01\"
|
||||
value=\"8.03921568627452\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1991-01-01\" value=\"7.4410163339383\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1992-01-01\"
|
||||
value=\"4.5608108108108\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1993-01-01\" value=\"2.58481421647819\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1994-01-01\"
|
||||
value=\"2.20472440944882\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1995-01-01\" value=\"2.61941448382125\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1996-01-01\"
|
||||
value=\"2.85285285285287\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1997-01-01\" value=\"2.18978102189781\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1998-01-01\"
|
||||
value=\"1.85714285714284\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1999-01-01\" value=\"1.82328190743338\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2000-01-01\"
|
||||
value=\"1.10192837465566\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2001-01-01\" value=\"1.63487738419617\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2002-01-01\"
|
||||
value=\"1.4745308310992\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2003-01-01\" value=\"1.32100396301189\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2004-01-01\"
|
||||
value=\"1.43415906127771\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2005-01-01\" value=\"2.05655526992288\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2006-01-01\"
|
||||
value=\"2.51889168765743\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2007-01-01\" value=\"2.33415233415232\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2008-01-01\"
|
||||
value=\"3.48139255702283\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2009-01-01\" value=\"1.97215777262181\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2010-01-01\"
|
||||
value=\"2.50284414106937\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2011-01-01\" value=\"3.88457269700333\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2012-01-01\"
|
||||
value=\"2.56410256410257\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2013-01-01\" value=\"2.29166666666668\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2014-01-01\"
|
||||
value=\"1.42566191446028\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2015-01-01\" value=\"0.401606425702812\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2016-01-01\"
|
||||
value=\"1.0\"/>\n <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\"
|
||||
date=\"2017-01-01\" value=\"2.57425742574258\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2018-01-01\" value=\"2.31660231660232\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2019-01-01\"
|
||||
value=\"1.69811320754717\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2020-01-01\" value=\"1.02040816326532\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2021-01-01\"
|
||||
value=\"2.47933884297518\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2022-01-01\" value=\"7.97491039426525\"/>\n</observations>\n\n\n\n"
|
||||
headers:
|
||||
Connection:
|
||||
- close
|
||||
Content-Length:
|
||||
- '7868'
|
||||
Content-Type:
|
||||
- text/xml; charset=UTF-8
|
||||
Date:
|
||||
- Tue, 28 Feb 2023 02:37:33 GMT
|
||||
Expires:
|
||||
- Tue, 28 Feb 2023 02:38:33 GMT
|
||||
Last-Modified:
|
||||
- Tue, 14 Feb 2023 17:47:05 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&series_id=CPALTT01USA657N
|
||||
response:
|
||||
body:
|
||||
string: "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<observations realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" observation_start=\"1600-01-01\" observation_end=\"9999-12-31\"
|
||||
units=\"lin\" output_type=\"1\" file_type=\"xml\" order_by=\"observation_date\"
|
||||
sort_order=\"asc\" count=\"67\" offset=\"0\" limit=\"100000\">\n <observation
|
||||
realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1956-01-01\"
|
||||
value=\".\"/>\n <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\"
|
||||
date=\"1957-01-01\" value=\".\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1958-01-01\" value=\".\"/>\n <observation
|
||||
realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1959-01-01\"
|
||||
value=\".\"/>\n <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\"
|
||||
date=\"1960-01-01\" value=\"1.45797598627788\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1961-01-01\" value=\"1.07072414764725\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1962-01-01\"
|
||||
value=\"1.19877334820185\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1963-01-01\" value=\"1.2396694214876\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1964-01-01\"
|
||||
value=\"1.27891156462585\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1965-01-01\" value=\"1.58516926383661\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1966-01-01\"
|
||||
value=\"3.01507537688446\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1967-01-01\" value=\"2.77278562259306\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1968-01-01\"
|
||||
value=\"4.27179615288534\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1969-01-01\" value=\"5.46238620028748\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1970-01-01\"
|
||||
value=\"5.83825533848251\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1971-01-01\" value=\"4.29276668813049\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1972-01-01\"
|
||||
value=\"3.27227824655283\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1973-01-01\" value=\"6.1777600637704\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1974-01-01\"
|
||||
value=\"11.0548048048048\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1975-01-01\" value=\"9.14314686496535\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1976-01-01\"
|
||||
value=\"5.74481263549084\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1977-01-01\" value=\"6.50168399472838\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1978-01-01\"
|
||||
value=\"7.63096383885604\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1979-01-01\" value=\"11.2544711292795\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1980-01-01\"
|
||||
value=\"13.5492019749684\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1981-01-01\" value=\"10.3347153402771\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1982-01-01\"
|
||||
value=\"6.13142700027496\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1983-01-01\" value=\"3.21243523316061\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1984-01-01\"
|
||||
value=\"4.30053547523429\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1985-01-01\" value=\"3.54564415209369\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1986-01-01\"
|
||||
value=\"1.89804772234273\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1987-01-01\" value=\"3.66456321751692\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1988-01-01\"
|
||||
value=\"4.07774110744409\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1989-01-01\" value=\"4.82700303008946\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1990-01-01\"
|
||||
value=\"5.39795643990321\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1991-01-01\" value=\"4.23496396453855\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1992-01-01\"
|
||||
value=\"3.02881967814969\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1993-01-01\" value=\"2.95165696638556\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1994-01-01\"
|
||||
value=\"2.60744159215459\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1995-01-01\" value=\"2.80541968853656\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1996-01-01\"
|
||||
value=\"2.93120419993438\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1997-01-01\" value=\"2.33768993730739\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1998-01-01\"
|
||||
value=\"1.55227909874365\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1999-01-01\" value=\"2.18802719697359\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2000-01-01\"
|
||||
value=\"3.37685727149931\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2001-01-01\" value=\"2.82617111885405\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2002-01-01\"
|
||||
value=\"1.586031626506\"/>\n <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\"
|
||||
date=\"2003-01-01\" value=\"2.27009497336116\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2004-01-01\" value=\"2.67723669309172\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2005-01-01\"
|
||||
value=\"3.39274684549546\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2006-01-01\" value=\"3.22594410070408\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2007-01-01\"
|
||||
value=\"2.85267248150139\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2008-01-01\" value=\"3.83910029665099\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2009-01-01\"
|
||||
value=\"-0.355546266299731\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2010-01-01\" value=\"1.64004344238987\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2011-01-01\"
|
||||
value=\"3.15684156862208\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2012-01-01\" value=\"2.06933726526059\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2013-01-01\"
|
||||
value=\"1.46483265562714\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2014-01-01\" value=\"1.62222297740822\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2015-01-01\"
|
||||
value=\"0.118627135552451\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2016-01-01\" value=\"1.26158320570535\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2017-01-01\"
|
||||
value=\"2.13011000365961\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2018-01-01\" value=\"2.44258329692821\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2019-01-01\"
|
||||
value=\"1.81221007526011\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2020-01-01\" value=\"1.2335843963064\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2021-01-01\"
|
||||
value=\"4.69785886363736\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2022-01-01\" value=\"8.00279982052119\"/>\n</observations>\n\n\n\n"
|
||||
headers:
|
||||
Connection:
|
||||
- close
|
||||
Content-Length:
|
||||
- '7890'
|
||||
Content-Type:
|
||||
- text/xml; charset=UTF-8
|
||||
Date:
|
||||
- Tue, 28 Feb 2023 02:37:33 GMT
|
||||
Expires:
|
||||
- Tue, 28 Feb 2023 02:38:33 GMT
|
||||
Last-Modified:
|
||||
- Tue, 14 Feb 2023 17:45:03 GMT
|
||||
Vary:
|
||||
- Accept-Encoding
|
||||
x-rate-limit-limit:
|
||||
- '120'
|
||||
x-rate-limit-remaining:
|
||||
- '110'
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
version: 1
|
||||
274
tests/openbb_terminal/economy/cassettes/test_fred_model/test_get_cpi[get_cpi-kwargs_dict6].yaml
vendored
Normal file
274
tests/openbb_terminal/economy/cassettes/test_fred_model/test_get_cpi[get_cpi-kwargs_dict6].yaml
vendored
Normal file
@@ -0,0 +1,274 @@
|
||||
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&series_id=CPALTT01GBA657N
|
||||
response:
|
||||
body:
|
||||
string: "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<observations realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" observation_start=\"1600-01-01\" observation_end=\"9999-12-31\"
|
||||
units=\"lin\" output_type=\"1\" file_type=\"xml\" order_by=\"observation_date\"
|
||||
sort_order=\"asc\" count=\"67\" offset=\"0\" limit=\"100000\">\n <observation
|
||||
realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1956-01-01\"
|
||||
value=\".\"/>\n <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\"
|
||||
date=\"1957-01-01\" value=\".\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1958-01-01\" value=\".\"/>\n <observation
|
||||
realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1959-01-01\"
|
||||
value=\".\"/>\n <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\"
|
||||
date=\"1960-01-01\" value=\"1.0035733292785\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1961-01-01\" value=\"3.44749717726758\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1962-01-01\"
|
||||
value=\"4.19650003638218\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1963-01-01\" value=\"2.01854435053746\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1964-01-01\"
|
||||
value=\"3.2815893187485\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1965-01-01\" value=\"4.77377151312203\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1966-01-01\"
|
||||
value=\"3.90961795748476\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1967-01-01\" value=\"2.48211731044351\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1968-01-01\"
|
||||
value=\"4.69742444335869\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1969-01-01\" value=\"5.44666666666666\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1970-01-01\"
|
||||
value=\"6.3665676171208\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1971-01-01\" value=\"9.44484070375655\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1972-01-01\"
|
||||
value=\"7.07109107695649\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1973-01-01\" value=\"9.19604362160794\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1974-01-01\"
|
||||
value=\"16.043989223337\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1975-01-01\" value=\"24.2072936660269\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1976-01-01\"
|
||||
value=\"16.5595252812461\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1977-01-01\" value=\"15.8402715172084\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1978-01-01\"
|
||||
value=\"8.2631386193005\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1979-01-01\" value=\"13.4212863123176\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1980-01-01\"
|
||||
value=\"17.965924766059\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1981-01-01\" value=\"11.8766196827002\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1982-01-01\"
|
||||
value=\"8.5988700564972\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1983-01-01\" value=\"4.60930184163978\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1984-01-01\"
|
||||
value=\"4.9607121543664\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1985-01-01\" value=\"6.07139383722625\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1986-01-01\"
|
||||
value=\"3.42761476782098\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1987-01-01\" value=\"4.14891804395978\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1988-01-01\"
|
||||
value=\"4.20939997645425\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1989-01-01\" value=\"5.8091286307054\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1990-01-01\"
|
||||
value=\"8.03921568627452\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1991-01-01\" value=\"7.4410163339383\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1992-01-01\"
|
||||
value=\"4.5608108108108\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1993-01-01\" value=\"2.58481421647819\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1994-01-01\"
|
||||
value=\"2.20472440944882\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1995-01-01\" value=\"2.61941448382125\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1996-01-01\"
|
||||
value=\"2.85285285285287\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1997-01-01\" value=\"2.18978102189781\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1998-01-01\"
|
||||
value=\"1.85714285714284\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1999-01-01\" value=\"1.82328190743338\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2000-01-01\"
|
||||
value=\"1.10192837465566\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2001-01-01\" value=\"1.63487738419617\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2002-01-01\"
|
||||
value=\"1.4745308310992\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2003-01-01\" value=\"1.32100396301189\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2004-01-01\"
|
||||
value=\"1.43415906127771\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2005-01-01\" value=\"2.05655526992288\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2006-01-01\"
|
||||
value=\"2.51889168765743\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2007-01-01\" value=\"2.33415233415232\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2008-01-01\"
|
||||
value=\"3.48139255702283\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2009-01-01\" value=\"1.97215777262181\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2010-01-01\"
|
||||
value=\"2.50284414106937\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2011-01-01\" value=\"3.88457269700333\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2012-01-01\"
|
||||
value=\"2.56410256410257\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2013-01-01\" value=\"2.29166666666668\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2014-01-01\"
|
||||
value=\"1.42566191446028\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2015-01-01\" value=\"0.401606425702812\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2016-01-01\"
|
||||
value=\"1.0\"/>\n <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\"
|
||||
date=\"2017-01-01\" value=\"2.57425742574258\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2018-01-01\" value=\"2.31660231660232\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2019-01-01\"
|
||||
value=\"1.69811320754717\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2020-01-01\" value=\"1.02040816326532\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2021-01-01\"
|
||||
value=\"2.47933884297518\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2022-01-01\" value=\"7.97491039426525\"/>\n</observations>\n\n\n\n"
|
||||
headers:
|
||||
Connection:
|
||||
- close
|
||||
Content-Length:
|
||||
- '7868'
|
||||
Content-Type:
|
||||
- text/xml; charset=UTF-8
|
||||
Date:
|
||||
- Tue, 28 Feb 2023 02:37:33 GMT
|
||||
Expires:
|
||||
- Tue, 28 Feb 2023 02:38:33 GMT
|
||||
Last-Modified:
|
||||
- Tue, 14 Feb 2023 17:47:05 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&series_id=CPALTT01USA657N
|
||||
response:
|
||||
body:
|
||||
string: "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<observations realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" observation_start=\"1600-01-01\" observation_end=\"9999-12-31\"
|
||||
units=\"lin\" output_type=\"1\" file_type=\"xml\" order_by=\"observation_date\"
|
||||
sort_order=\"asc\" count=\"67\" offset=\"0\" limit=\"100000\">\n <observation
|
||||
realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1956-01-01\"
|
||||
value=\".\"/>\n <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\"
|
||||
date=\"1957-01-01\" value=\".\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1958-01-01\" value=\".\"/>\n <observation
|
||||
realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1959-01-01\"
|
||||
value=\".\"/>\n <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\"
|
||||
date=\"1960-01-01\" value=\"1.45797598627788\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1961-01-01\" value=\"1.07072414764725\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1962-01-01\"
|
||||
value=\"1.19877334820185\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1963-01-01\" value=\"1.2396694214876\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1964-01-01\"
|
||||
value=\"1.27891156462585\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1965-01-01\" value=\"1.58516926383661\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1966-01-01\"
|
||||
value=\"3.01507537688446\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1967-01-01\" value=\"2.77278562259306\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1968-01-01\"
|
||||
value=\"4.27179615288534\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1969-01-01\" value=\"5.46238620028748\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1970-01-01\"
|
||||
value=\"5.83825533848251\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1971-01-01\" value=\"4.29276668813049\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1972-01-01\"
|
||||
value=\"3.27227824655283\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1973-01-01\" value=\"6.1777600637704\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1974-01-01\"
|
||||
value=\"11.0548048048048\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1975-01-01\" value=\"9.14314686496535\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1976-01-01\"
|
||||
value=\"5.74481263549084\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1977-01-01\" value=\"6.50168399472838\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1978-01-01\"
|
||||
value=\"7.63096383885604\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1979-01-01\" value=\"11.2544711292795\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1980-01-01\"
|
||||
value=\"13.5492019749684\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1981-01-01\" value=\"10.3347153402771\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1982-01-01\"
|
||||
value=\"6.13142700027496\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1983-01-01\" value=\"3.21243523316061\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1984-01-01\"
|
||||
value=\"4.30053547523429\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1985-01-01\" value=\"3.54564415209369\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1986-01-01\"
|
||||
value=\"1.89804772234273\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1987-01-01\" value=\"3.66456321751692\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1988-01-01\"
|
||||
value=\"4.07774110744409\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1989-01-01\" value=\"4.82700303008946\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1990-01-01\"
|
||||
value=\"5.39795643990321\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1991-01-01\" value=\"4.23496396453855\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1992-01-01\"
|
||||
value=\"3.02881967814969\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1993-01-01\" value=\"2.95165696638556\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1994-01-01\"
|
||||
value=\"2.60744159215459\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1995-01-01\" value=\"2.80541968853656\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1996-01-01\"
|
||||
value=\"2.93120419993438\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1997-01-01\" value=\"2.33768993730739\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"1998-01-01\"
|
||||
value=\"1.55227909874365\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"1999-01-01\" value=\"2.18802719697359\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2000-01-01\"
|
||||
value=\"3.37685727149931\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2001-01-01\" value=\"2.82617111885405\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2002-01-01\"
|
||||
value=\"1.586031626506\"/>\n <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\"
|
||||
date=\"2003-01-01\" value=\"2.27009497336116\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2004-01-01\" value=\"2.67723669309172\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2005-01-01\"
|
||||
value=\"3.39274684549546\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2006-01-01\" value=\"3.22594410070408\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2007-01-01\"
|
||||
value=\"2.85267248150139\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2008-01-01\" value=\"3.83910029665099\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2009-01-01\"
|
||||
value=\"-0.355546266299731\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2010-01-01\" value=\"1.64004344238987\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2011-01-01\"
|
||||
value=\"3.15684156862208\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2012-01-01\" value=\"2.06933726526059\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2013-01-01\"
|
||||
value=\"1.46483265562714\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2014-01-01\" value=\"1.62222297740822\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2015-01-01\"
|
||||
value=\"0.118627135552451\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2016-01-01\" value=\"1.26158320570535\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2017-01-01\"
|
||||
value=\"2.13011000365961\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2018-01-01\" value=\"2.44258329692821\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2019-01-01\"
|
||||
value=\"1.81221007526011\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2020-01-01\" value=\"1.2335843963064\"/>\n
|
||||
\ <observation realtime_start=\"2023-02-27\" realtime_end=\"2023-02-27\" date=\"2021-01-01\"
|
||||
value=\"4.69785886363736\"/>\n <observation realtime_start=\"2023-02-27\"
|
||||
realtime_end=\"2023-02-27\" date=\"2022-01-01\" value=\"8.00279982052119\"/>\n</observations>\n\n\n\n"
|
||||
headers:
|
||||
Connection:
|
||||
- close
|
||||
Content-Length:
|
||||
- '7890'
|
||||
Content-Type:
|
||||
- text/xml; charset=UTF-8
|
||||
Date:
|
||||
- Tue, 28 Feb 2023 02:37:33 GMT
|
||||
Expires:
|
||||
- Tue, 28 Feb 2023 02:38:33 GMT
|
||||
Last-Modified:
|
||||
- Tue, 14 Feb 2023 17:45:03 GMT
|
||||
Vary:
|
||||
- Accept-Encoding
|
||||
x-rate-limit-limit:
|
||||
- '120'
|
||||
x-rate-limit-remaining:
|
||||
- '111'
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
version: 1
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -13,9 +13,9 @@ interactions:
|
||||
response:
|
||||
body:
|
||||
string: !!binary |
|
||||
H4sIAAAAAAAEA6pWKkpNzCnJzE2NLy5JLCpRslIyMjAy1jUw1DUyV9JByKbmpaDL5RelpBbFJ1Uq
|
||||
H4sIAAAAAAAEA6pWKkpNzCnJzE2NLy5JLCpRslIyMjAy1jUw0jUyV9JByKbmpaDL5RelpBbFJ1Uq
|
||||
WSkVpyYWJWfEFyXmZSvpKBXnF5XEg2WVrJRSUouTlXSUkvNL80qUrAx0lPLT0opTIUzAcjJzM0uU
|
||||
rAwNDAx0lIpTizJTi4uVrKJjawGUcQg+lwAAAA==
|
||||
rAwNDAx0lIpTizJTi4uVrKJjawGA/aRylwAAAA==
|
||||
headers:
|
||||
Accept-Ranges:
|
||||
- bytes
|
||||
@@ -28,17 +28,17 @@ interactions:
|
||||
Content-Type:
|
||||
- application/json; charset=UTF-8
|
||||
Date:
|
||||
- Fri, 27 Jan 2023 17:00:53 GMT
|
||||
- Tue, 28 Feb 2023 02:37:33 GMT
|
||||
ETag:
|
||||
- W/"f251e9d2283cd8abcc87903c2a4b40fb-gzip-gzip"
|
||||
- W/"6e49860ee052a6231d974b29decd4791-gzip-gzip"
|
||||
Expires:
|
||||
- Fri, 27 Jan 2023 17:10:53 GMT
|
||||
- Tue, 28 Feb 2023 02:47:33 GMT
|
||||
Vary:
|
||||
- Accept-Encoding
|
||||
x-rate-limit-limit:
|
||||
- '120'
|
||||
x-rate-limit-remaining:
|
||||
- '118'
|
||||
- '116'
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -13,16 +13,18 @@ interactions:
|
||||
response:
|
||||
body:
|
||||
string: !!binary |
|
||||
H4sIAAAAAAAEA6pWKkpNzCnJzE2NLy5JLCpRslIyMjAy0jUw1jUyVNJByKbmpaDLFacWZaYWFytZ
|
||||
H4sIAAAAAAAEA6pWKkpNzCnJzE2NLy5JLCpRslIyMjAy1jUw0jUyV9JByKbmpaDLFacWZaYWFytZ
|
||||
RVcrZYJkXdyDTZH1kGxiSWZJTqqSlZJvYlF2aolCZGZqTopCfp5CqF6wnkJIUWpicWlRpUJwanJp
|
||||
UWZJZmqxQmKJgqluZGpikYJzfl5xSWJeiYJvYglItlJJRyk/qTi1qCyxJDM/D+47Q0szI10DQ10D
|
||||
IzQFqB40NFfSUUorSi0sTc1LrlSyUnJJzMwBmQkXiy/OyC8ChZeLko5SaV5mSbGSlVJAalFyal4J
|
||||
TASuRlVJR6k4NbE4Py8xJz4xJau0uCQXpM5KyS+/RCEYKpNTqeAIlktNwa4ebp5fsKOSjlJOYnFJ
|
||||
fGlBSmJJKij4YRFnaKFgaGplZGJlYqxrAIqQgvyC0pzEosySSiUrczMdpbz8klSQa93yixTSSotK
|
||||
MlKLFDLz0vKLcsFhpVCUmp5YlJKZl65QAgvzZFjw5kKDVyElsSRRR6EgJzWxOFWhKDUttUihJF+h
|
||||
JCNVwSk/sShFIT9NwT2/LLUoL7+oWEEjo6SkwCpGP0a/vLxcLy01JbUoMacoFRQ9qXrp+WUx+kWp
|
||||
YJOKY/QzDE1j9JNLi4pS80rAPL2ClDRNhcS8FLDp8GSAaibMpTDTivNLi5JTdUGxkVoUow9yrW5y
|
||||
RmJRCVwoM68ktSi1uES3KLEktThGPyAxHURVghIdYLmpJRn5KXqJxQUVmnpKtbG1ANQh0WEoAwAA
|
||||
UWZJZmqxQmKJgqluZGpikYJzfl5xSWJeiYJvYglItlJHIbA0vyQVrD8xT8Ezryy1uCQ3Na9EwSmx
|
||||
OLNYSUcpP6k4tagssSQzPw/ueUNLMyNdA0NdAyM0BWj+N1HSUUorSi0sTc1LrlSyUnJJzMypRBaL
|
||||
L87ILwIFp4uSjlJpXmZJsZKVUkBqUXJqXglMBK5GVUlHqTg1sTg/LzEnPjElqxTiUiUrJb/8EoVg
|
||||
qExOpYIjWC41Bbt6uHl+wY5KOko5icUl8aUFKYklqaDYQcSrgqGplZGRlYGlroGZko5SQX5BaU5i
|
||||
UWZJpZKVubmOUl5+SSrItW75RQpppUUlGalFCpl5aflFueCwUihKTU8sSsnMS1cogUVJMiz0c6Gh
|
||||
r5CSWJKoo1CQk5pYnKpQlJqWWqRQkq9QkpGq4KFnaKoQXJJYkllckpmcmKMQlApRBbZXQSOjpKSg
|
||||
2CpGP0a/vLxcLy01JbUoMacoFRRXqXrp+WUx+kUQDcUx+hmGpjH6KalpiaU5JXoZJbmaCol5KWBb
|
||||
4KkFkoicS4vKUhV8U0sy8lPyc/LTK5HtycjPTdWD+QViRUF+TmZypW5mcXFpanGMflpmXmJecmZe
|
||||
um5JRqpuen5ZalEeKC3F6GfmlaQWpRaX6BYllqTqFsO8VRyjDzNQtxKUjHWTQS7QzUW4ADBNPaXa
|
||||
2FoAqNDsT4EDAAA=
|
||||
headers:
|
||||
Accept-Ranges:
|
||||
- bytes
|
||||
@@ -31,18 +33,19 @@ interactions:
|
||||
Content-Encoding:
|
||||
- gzip
|
||||
Content-Length:
|
||||
- '570'
|
||||
- '638'
|
||||
Content-Type:
|
||||
- application/json; charset=UTF-8
|
||||
Date:
|
||||
- Mon, 21 Mar 2022 11:04:21 GMT
|
||||
- Tue, 28 Feb 2023 02:37:33 GMT
|
||||
Expires:
|
||||
- Mon, 21 Mar 2022 11:05:21 GMT
|
||||
- Tue, 28 Feb 2023 02:38:33 GMT
|
||||
Last-Modified:
|
||||
- Fri, 18 Mar 2022 20:24:43 GMT
|
||||
- Mon, 27 Feb 2023 21:22:09 GMT
|
||||
Set-Cookie:
|
||||
- cookiesession1=678A3E1FCD2B52BC94FB0A1F60F713D4;Expires=Tue, 21 Mar 2023 11:04:14
|
||||
GMT;Path=/;HttpOnly
|
||||
- ak_bmsc=63F09FE47B7A2C92ACF06066D02941F7~000000000000000000000000000000~YAAQJOw4F4RETouGAQAAIN7hlRLIT19OGncz5rrfo2+dqoW2EoQo9S5LCkLaD2iJ1c/9b+uEIoX6WATHuuqP0HfTAqAEtq36ezchAofhHKYF7GuckHLvSeGKHgdG+k4ETfhl1YHh+JbqTQio2D4kgZ9GpIbZYsyxMi6nIOnxLM0XVBYeZwrIoT3nwYxWzUJINznMNsRpIF4iGNoK1t/TxiYMhMLxRZ3LKLoCYsN7KVwGMTCX0I1yQjdTpYtkRFYnk+YWOvExH3qsqwzHz2y9Tdy2sHTrP4/EERcmz3ANxVpqi6O6vdMS3UmvnAG35uSmw/fohIWiGIQ4ChVa+mTU1+V0pgh0nZU6/uts36vfKW2j2NReOnTZaMaUdMUyvs2E;
|
||||
Domain=.stlouisfed.org; Path=/; Expires=Tue, 28 Feb 2023 04:37:33 GMT; Max-Age=7200;
|
||||
HttpOnly
|
||||
Vary:
|
||||
- Accept-Encoding
|
||||
x-rate-limit-limit:
|
||||
|
||||
@@ -576,3 +576,249 @@
|
||||
2022-03-15,2.15
|
||||
2022-03-16,2.19
|
||||
2022-03-17,2.2
|
||||
2022-03-18,2.14
|
||||
2022-03-21,2.32
|
||||
2022-03-22,2.38
|
||||
2022-03-23,2.32
|
||||
2022-03-24,2.34
|
||||
2022-03-25,2.48
|
||||
2022-03-28,2.46
|
||||
2022-03-29,2.41
|
||||
2022-03-30,2.35
|
||||
2022-03-31,2.32
|
||||
2022-04-01,2.39
|
||||
2022-04-04,2.42
|
||||
2022-04-05,2.54
|
||||
2022-04-06,2.61
|
||||
2022-04-07,2.66
|
||||
2022-04-08,2.72
|
||||
2022-04-11,2.79
|
||||
2022-04-12,2.72
|
||||
2022-04-13,2.7
|
||||
2022-04-14,2.83
|
||||
2022-04-15,
|
||||
2022-04-18,2.85
|
||||
2022-04-19,2.93
|
||||
2022-04-20,2.85
|
||||
2022-04-21,2.9
|
||||
2022-04-22,2.9
|
||||
2022-04-25,2.81
|
||||
2022-04-26,2.77
|
||||
2022-04-27,2.82
|
||||
2022-04-28,2.85
|
||||
2022-04-29,2.89
|
||||
2022-05-02,2.99
|
||||
2022-05-03,2.97
|
||||
2022-05-04,2.93
|
||||
2022-05-05,3.05
|
||||
2022-05-06,3.12
|
||||
2022-05-09,3.05
|
||||
2022-05-10,2.99
|
||||
2022-05-11,2.91
|
||||
2022-05-12,2.84
|
||||
2022-05-13,2.93
|
||||
2022-05-16,2.88
|
||||
2022-05-17,2.98
|
||||
2022-05-18,2.89
|
||||
2022-05-19,2.84
|
||||
2022-05-20,2.78
|
||||
2022-05-23,2.86
|
||||
2022-05-24,2.76
|
||||
2022-05-25,2.75
|
||||
2022-05-26,2.75
|
||||
2022-05-27,2.74
|
||||
2022-05-30,
|
||||
2022-05-31,2.85
|
||||
2022-06-01,2.94
|
||||
2022-06-02,2.92
|
||||
2022-06-03,2.96
|
||||
2022-06-06,3.04
|
||||
2022-06-07,2.98
|
||||
2022-06-08,3.03
|
||||
2022-06-09,3.04
|
||||
2022-06-10,3.15
|
||||
2022-06-13,3.43
|
||||
2022-06-14,3.49
|
||||
2022-06-15,3.33
|
||||
2022-06-16,3.28
|
||||
2022-06-17,3.25
|
||||
2022-06-20,
|
||||
2022-06-21,3.31
|
||||
2022-06-22,3.16
|
||||
2022-06-23,3.09
|
||||
2022-06-24,3.13
|
||||
2022-06-27,3.2
|
||||
2022-06-28,3.2
|
||||
2022-06-29,3.1
|
||||
2022-06-30,2.98
|
||||
2022-07-01,2.88
|
||||
2022-07-04,
|
||||
2022-07-05,2.82
|
||||
2022-07-06,2.93
|
||||
2022-07-07,3.01
|
||||
2022-07-08,3.09
|
||||
2022-07-11,2.99
|
||||
2022-07-12,2.96
|
||||
2022-07-13,2.91
|
||||
2022-07-14,2.96
|
||||
2022-07-15,2.93
|
||||
2022-07-18,2.96
|
||||
2022-07-19,3.01
|
||||
2022-07-20,3.04
|
||||
2022-07-21,2.91
|
||||
2022-07-22,2.77
|
||||
2022-07-25,2.81
|
||||
2022-07-26,2.81
|
||||
2022-07-27,2.78
|
||||
2022-07-28,2.68
|
||||
2022-07-29,2.67
|
||||
2022-08-01,2.6
|
||||
2022-08-02,2.75
|
||||
2022-08-03,2.73
|
||||
2022-08-04,2.68
|
||||
2022-08-05,2.83
|
||||
2022-08-08,2.77
|
||||
2022-08-09,2.8
|
||||
2022-08-10,2.78
|
||||
2022-08-11,2.87
|
||||
2022-08-12,2.84
|
||||
2022-08-15,2.79
|
||||
2022-08-16,2.82
|
||||
2022-08-17,2.89
|
||||
2022-08-18,2.88
|
||||
2022-08-19,2.98
|
||||
2022-08-22,3.03
|
||||
2022-08-23,3.05
|
||||
2022-08-24,3.11
|
||||
2022-08-25,3.03
|
||||
2022-08-26,3.04
|
||||
2022-08-29,3.12
|
||||
2022-08-30,3.11
|
||||
2022-08-31,3.15
|
||||
2022-09-01,3.26
|
||||
2022-09-02,3.2
|
||||
2022-09-05,
|
||||
2022-09-06,3.33
|
||||
2022-09-07,3.27
|
||||
2022-09-08,3.29
|
||||
2022-09-09,3.33
|
||||
2022-09-12,3.37
|
||||
2022-09-13,3.42
|
||||
2022-09-14,3.41
|
||||
2022-09-15,3.45
|
||||
2022-09-16,3.45
|
||||
2022-09-19,3.49
|
||||
2022-09-20,3.57
|
||||
2022-09-21,3.51
|
||||
2022-09-22,3.7
|
||||
2022-09-23,3.69
|
||||
2022-09-26,3.88
|
||||
2022-09-27,3.97
|
||||
2022-09-28,3.72
|
||||
2022-09-29,3.76
|
||||
2022-09-30,3.83
|
||||
2022-10-03,3.67
|
||||
2022-10-04,3.62
|
||||
2022-10-05,3.76
|
||||
2022-10-06,3.83
|
||||
2022-10-07,3.89
|
||||
2022-10-10,
|
||||
2022-10-11,3.93
|
||||
2022-10-12,3.91
|
||||
2022-10-13,3.97
|
||||
2022-10-14,4.0
|
||||
2022-10-17,4.02
|
||||
2022-10-18,4.01
|
||||
2022-10-19,4.14
|
||||
2022-10-20,4.24
|
||||
2022-10-21,4.21
|
||||
2022-10-24,4.25
|
||||
2022-10-25,4.1
|
||||
2022-10-26,4.04
|
||||
2022-10-27,3.96
|
||||
2022-10-28,4.02
|
||||
2022-10-31,4.1
|
||||
2022-11-01,4.07
|
||||
2022-11-02,4.1
|
||||
2022-11-03,4.14
|
||||
2022-11-04,4.17
|
||||
2022-11-07,4.22
|
||||
2022-11-08,4.14
|
||||
2022-11-09,4.12
|
||||
2022-11-10,3.82
|
||||
2022-11-11,
|
||||
2022-11-14,3.88
|
||||
2022-11-15,3.8
|
||||
2022-11-16,3.67
|
||||
2022-11-17,3.77
|
||||
2022-11-18,3.82
|
||||
2022-11-21,3.83
|
||||
2022-11-22,3.76
|
||||
2022-11-23,3.71
|
||||
2022-11-24,
|
||||
2022-11-25,3.68
|
||||
2022-11-28,3.69
|
||||
2022-11-29,3.75
|
||||
2022-11-30,3.68
|
||||
2022-12-01,3.53
|
||||
2022-12-02,3.51
|
||||
2022-12-05,3.6
|
||||
2022-12-06,3.51
|
||||
2022-12-07,3.42
|
||||
2022-12-08,3.48
|
||||
2022-12-09,3.57
|
||||
2022-12-12,3.61
|
||||
2022-12-13,3.51
|
||||
2022-12-14,3.49
|
||||
2022-12-15,3.44
|
||||
2022-12-16,3.48
|
||||
2022-12-19,3.57
|
||||
2022-12-20,3.69
|
||||
2022-12-21,3.68
|
||||
2022-12-22,3.67
|
||||
2022-12-23,3.75
|
||||
2022-12-26,
|
||||
2022-12-27,3.84
|
||||
2022-12-28,3.88
|
||||
2022-12-29,3.83
|
||||
2022-12-30,3.88
|
||||
2023-01-02,
|
||||
2023-01-03,3.79
|
||||
2023-01-04,3.69
|
||||
2023-01-05,3.71
|
||||
2023-01-06,3.55
|
||||
2023-01-09,3.53
|
||||
2023-01-10,3.61
|
||||
2023-01-11,3.54
|
||||
2023-01-12,3.43
|
||||
2023-01-13,3.49
|
||||
2023-01-16,
|
||||
2023-01-17,3.53
|
||||
2023-01-18,3.37
|
||||
2023-01-19,3.39
|
||||
2023-01-20,3.48
|
||||
2023-01-23,3.52
|
||||
2023-01-24,3.46
|
||||
2023-01-25,3.46
|
||||
2023-01-26,3.49
|
||||
2023-01-27,3.52
|
||||
2023-01-30,3.55
|
||||
2023-01-31,3.52
|
||||
2023-02-01,3.39
|
||||
2023-02-02,3.4
|
||||
2023-02-03,3.53
|
||||
2023-02-06,3.63
|
||||
2023-02-07,3.67
|
||||
2023-02-08,3.63
|
||||
2023-02-09,3.67
|
||||
2023-02-10,3.74
|
||||
2023-02-13,3.72
|
||||
2023-02-14,3.77
|
||||
2023-02-15,3.81
|
||||
2023-02-16,3.86
|
||||
2023-02-17,3.82
|
||||
2023-02-20,
|
||||
2023-02-21,3.95
|
||||
2023-02-22,3.93
|
||||
2023-02-23,3.88
|
||||
2023-02-24,3.95
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
1
tests/openbb_terminal/economy/csv/test_fred_model/test_get_cpi[get_cpi-kwargs_dict0].csv
vendored
Normal file
1
tests/openbb_terminal/economy/csv/test_fred_model/test_get_cpi[get_cpi-kwargs_dict0].csv
vendored
Normal file
@@ -0,0 +1 @@
|
||||
""
|
||||
|
1
tests/openbb_terminal/economy/csv/test_fred_model/test_get_cpi[get_cpi-kwargs_dict1].csv
vendored
Normal file
1
tests/openbb_terminal/economy/csv/test_fred_model/test_get_cpi[get_cpi-kwargs_dict1].csv
vendored
Normal file
@@ -0,0 +1 @@
|
||||
""
|
||||
|
1
tests/openbb_terminal/economy/csv/test_fred_model/test_get_cpi[get_cpi-kwargs_dict2].csv
vendored
Normal file
1
tests/openbb_terminal/economy/csv/test_fred_model/test_get_cpi[get_cpi-kwargs_dict2].csv
vendored
Normal file
@@ -0,0 +1 @@
|
||||
""
|
||||
|
1
tests/openbb_terminal/economy/csv/test_fred_model/test_get_cpi[get_cpi-kwargs_dict3].csv
vendored
Normal file
1
tests/openbb_terminal/economy/csv/test_fred_model/test_get_cpi[get_cpi-kwargs_dict3].csv
vendored
Normal file
@@ -0,0 +1 @@
|
||||
""
|
||||
|
68
tests/openbb_terminal/economy/csv/test_fred_model/test_get_cpi[get_cpi-kwargs_dict4].csv
vendored
Normal file
68
tests/openbb_terminal/economy/csv/test_fred_model/test_get_cpi[get_cpi-kwargs_dict4].csv
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
,the united kingdom-annual-growth_previous,united_states-annual-growth_previous
|
||||
1956-01-01,,
|
||||
1957-01-01,,
|
||||
1958-01-01,,
|
||||
1959-01-01,,
|
||||
1960-01-01,1.0035733292785,1.45797598627788
|
||||
1961-01-01,3.44749717726758,1.07072414764725
|
||||
1962-01-01,4.19650003638218,1.19877334820185
|
||||
1963-01-01,2.01854435053746,1.2396694214876
|
||||
1964-01-01,3.2815893187485,1.27891156462585
|
||||
1965-01-01,4.77377151312203,1.58516926383661
|
||||
1966-01-01,3.90961795748476,3.01507537688446
|
||||
1967-01-01,2.48211731044351,2.77278562259306
|
||||
1968-01-01,4.69742444335869,4.27179615288534
|
||||
1969-01-01,5.44666666666666,5.46238620028748
|
||||
1970-01-01,6.3665676171208,5.83825533848251
|
||||
1971-01-01,9.44484070375655,4.29276668813049
|
||||
1972-01-01,7.07109107695649,3.27227824655283
|
||||
1973-01-01,9.19604362160794,6.1777600637704
|
||||
1974-01-01,16.043989223337,11.0548048048048
|
||||
1975-01-01,24.2072936660269,9.14314686496535
|
||||
1976-01-01,16.5595252812461,5.74481263549084
|
||||
1977-01-01,15.8402715172084,6.50168399472838
|
||||
1978-01-01,8.2631386193005,7.63096383885604
|
||||
1979-01-01,13.4212863123176,11.2544711292795
|
||||
1980-01-01,17.965924766059,13.5492019749684
|
||||
1981-01-01,11.8766196827002,10.3347153402771
|
||||
1982-01-01,8.5988700564972,6.13142700027496
|
||||
1983-01-01,4.60930184163978,3.21243523316061
|
||||
1984-01-01,4.9607121543664,4.30053547523429
|
||||
1985-01-01,6.07139383722625,3.54564415209369
|
||||
1986-01-01,3.42761476782098,1.89804772234273
|
||||
1987-01-01,4.14891804395978,3.66456321751692
|
||||
1988-01-01,4.20939997645425,4.07774110744409
|
||||
1989-01-01,5.8091286307054,4.82700303008946
|
||||
1990-01-01,8.03921568627452,5.39795643990321
|
||||
1991-01-01,7.4410163339383,4.23496396453855
|
||||
1992-01-01,4.5608108108108,3.02881967814969
|
||||
1993-01-01,2.58481421647819,2.95165696638556
|
||||
1994-01-01,2.20472440944882,2.60744159215459
|
||||
1995-01-01,2.61941448382125,2.80541968853656
|
||||
1996-01-01,2.85285285285287,2.93120419993438
|
||||
1997-01-01,2.18978102189781,2.33768993730739
|
||||
1998-01-01,1.85714285714284,1.55227909874365
|
||||
1999-01-01,1.82328190743338,2.18802719697359
|
||||
2000-01-01,1.10192837465566,3.37685727149931
|
||||
2001-01-01,1.63487738419617,2.82617111885405
|
||||
2002-01-01,1.4745308310992,1.586031626506
|
||||
2003-01-01,1.32100396301189,2.27009497336116
|
||||
2004-01-01,1.43415906127771,2.67723669309172
|
||||
2005-01-01,2.05655526992288,3.39274684549546
|
||||
2006-01-01,2.51889168765743,3.22594410070408
|
||||
2007-01-01,2.33415233415232,2.85267248150139
|
||||
2008-01-01,3.48139255702283,3.83910029665099
|
||||
2009-01-01,1.97215777262181,-0.355546266299731
|
||||
2010-01-01,2.50284414106937,1.64004344238987
|
||||
2011-01-01,3.88457269700333,3.15684156862208
|
||||
2012-01-01,2.56410256410257,2.06933726526059
|
||||
2013-01-01,2.29166666666668,1.46483265562714
|
||||
2014-01-01,1.42566191446028,1.62222297740822
|
||||
2015-01-01,0.401606425702812,0.118627135552451
|
||||
2016-01-01,1.0,1.26158320570535
|
||||
2017-01-01,2.57425742574258,2.13011000365961
|
||||
2018-01-01,2.31660231660232,2.44258329692821
|
||||
2019-01-01,1.69811320754717,1.81221007526011
|
||||
2020-01-01,1.02040816326532,1.2335843963064
|
||||
2021-01-01,2.47933884297518,4.69785886363736
|
||||
2022-01-01,7.97491039426525,8.00279982052119
|
||||
|
1
tests/openbb_terminal/economy/csv/test_fred_model/test_get_cpi[get_cpi-kwargs_dict5].csv
vendored
Normal file
1
tests/openbb_terminal/economy/csv/test_fred_model/test_get_cpi[get_cpi-kwargs_dict5].csv
vendored
Normal file
@@ -0,0 +1 @@
|
||||
""
|
||||
|
68
tests/openbb_terminal/economy/csv/test_fred_model/test_get_cpi[get_cpi-kwargs_dict6].csv
vendored
Normal file
68
tests/openbb_terminal/economy/csv/test_fred_model/test_get_cpi[get_cpi-kwargs_dict6].csv
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
,the united kingdom-annual-growth_previous,united_states-annual-growth_previous
|
||||
1956-01-01,,
|
||||
1957-01-01,,
|
||||
1958-01-01,,
|
||||
1959-01-01,,
|
||||
1960-01-01,1.0035733292785,1.45797598627788
|
||||
1961-01-01,3.44749717726758,1.07072414764725
|
||||
1962-01-01,4.19650003638218,1.19877334820185
|
||||
1963-01-01,2.01854435053746,1.2396694214876
|
||||
1964-01-01,3.2815893187485,1.27891156462585
|
||||
1965-01-01,4.77377151312203,1.58516926383661
|
||||
1966-01-01,3.90961795748476,3.01507537688446
|
||||
1967-01-01,2.48211731044351,2.77278562259306
|
||||
1968-01-01,4.69742444335869,4.27179615288534
|
||||
1969-01-01,5.44666666666666,5.46238620028748
|
||||
1970-01-01,6.3665676171208,5.83825533848251
|
||||
1971-01-01,9.44484070375655,4.29276668813049
|
||||
1972-01-01,7.07109107695649,3.27227824655283
|
||||
1973-01-01,9.19604362160794,6.1777600637704
|
||||
1974-01-01,16.043989223337,11.0548048048048
|
||||
1975-01-01,24.2072936660269,9.14314686496535
|
||||
1976-01-01,16.5595252812461,5.74481263549084
|
||||
1977-01-01,15.8402715172084,6.50168399472838
|
||||
1978-01-01,8.2631386193005,7.63096383885604
|
||||
1979-01-01,13.4212863123176,11.2544711292795
|
||||
1980-01-01,17.965924766059,13.5492019749684
|
||||
1981-01-01,11.8766196827002,10.3347153402771
|
||||
1982-01-01,8.5988700564972,6.13142700027496
|
||||
1983-01-01,4.60930184163978,3.21243523316061
|
||||
1984-01-01,4.9607121543664,4.30053547523429
|
||||
1985-01-01,6.07139383722625,3.54564415209369
|
||||
1986-01-01,3.42761476782098,1.89804772234273
|
||||
1987-01-01,4.14891804395978,3.66456321751692
|
||||
1988-01-01,4.20939997645425,4.07774110744409
|
||||
1989-01-01,5.8091286307054,4.82700303008946
|
||||
1990-01-01,8.03921568627452,5.39795643990321
|
||||
1991-01-01,7.4410163339383,4.23496396453855
|
||||
1992-01-01,4.5608108108108,3.02881967814969
|
||||
1993-01-01,2.58481421647819,2.95165696638556
|
||||
1994-01-01,2.20472440944882,2.60744159215459
|
||||
1995-01-01,2.61941448382125,2.80541968853656
|
||||
1996-01-01,2.85285285285287,2.93120419993438
|
||||
1997-01-01,2.18978102189781,2.33768993730739
|
||||
1998-01-01,1.85714285714284,1.55227909874365
|
||||
1999-01-01,1.82328190743338,2.18802719697359
|
||||
2000-01-01,1.10192837465566,3.37685727149931
|
||||
2001-01-01,1.63487738419617,2.82617111885405
|
||||
2002-01-01,1.4745308310992,1.586031626506
|
||||
2003-01-01,1.32100396301189,2.27009497336116
|
||||
2004-01-01,1.43415906127771,2.67723669309172
|
||||
2005-01-01,2.05655526992288,3.39274684549546
|
||||
2006-01-01,2.51889168765743,3.22594410070408
|
||||
2007-01-01,2.33415233415232,2.85267248150139
|
||||
2008-01-01,3.48139255702283,3.83910029665099
|
||||
2009-01-01,1.97215777262181,-0.355546266299731
|
||||
2010-01-01,2.50284414106937,1.64004344238987
|
||||
2011-01-01,3.88457269700333,3.15684156862208
|
||||
2012-01-01,2.56410256410257,2.06933726526059
|
||||
2013-01-01,2.29166666666668,1.46483265562714
|
||||
2014-01-01,1.42566191446028,1.62222297740822
|
||||
2015-01-01,0.401606425702812,0.118627135552451
|
||||
2016-01-01,1.0,1.26158320570535
|
||||
2017-01-01,2.57425742574258,2.13011000365961
|
||||
2018-01-01,2.31660231660232,2.44258329692821
|
||||
2019-01-01,1.69811320754717,1.81221007526011
|
||||
2020-01-01,1.02040816326532,1.2335843963064
|
||||
2021-01-01,2.47933884297518,4.69785886363736
|
||||
2022-01-01,7.97491039426525,8.00279982052119
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -576,3 +576,249 @@
|
||||
2022-03-15,2.15
|
||||
2022-03-16,2.19
|
||||
2022-03-17,2.2
|
||||
2022-03-18,2.14
|
||||
2022-03-21,2.32
|
||||
2022-03-22,2.38
|
||||
2022-03-23,2.32
|
||||
2022-03-24,2.34
|
||||
2022-03-25,2.48
|
||||
2022-03-28,2.46
|
||||
2022-03-29,2.41
|
||||
2022-03-30,2.35
|
||||
2022-03-31,2.32
|
||||
2022-04-01,2.39
|
||||
2022-04-04,2.42
|
||||
2022-04-05,2.54
|
||||
2022-04-06,2.61
|
||||
2022-04-07,2.66
|
||||
2022-04-08,2.72
|
||||
2022-04-11,2.79
|
||||
2022-04-12,2.72
|
||||
2022-04-13,2.7
|
||||
2022-04-14,2.83
|
||||
2022-04-15,
|
||||
2022-04-18,2.85
|
||||
2022-04-19,2.93
|
||||
2022-04-20,2.85
|
||||
2022-04-21,2.9
|
||||
2022-04-22,2.9
|
||||
2022-04-25,2.81
|
||||
2022-04-26,2.77
|
||||
2022-04-27,2.82
|
||||
2022-04-28,2.85
|
||||
2022-04-29,2.89
|
||||
2022-05-02,2.99
|
||||
2022-05-03,2.97
|
||||
2022-05-04,2.93
|
||||
2022-05-05,3.05
|
||||
2022-05-06,3.12
|
||||
2022-05-09,3.05
|
||||
2022-05-10,2.99
|
||||
2022-05-11,2.91
|
||||
2022-05-12,2.84
|
||||
2022-05-13,2.93
|
||||
2022-05-16,2.88
|
||||
2022-05-17,2.98
|
||||
2022-05-18,2.89
|
||||
2022-05-19,2.84
|
||||
2022-05-20,2.78
|
||||
2022-05-23,2.86
|
||||
2022-05-24,2.76
|
||||
2022-05-25,2.75
|
||||
2022-05-26,2.75
|
||||
2022-05-27,2.74
|
||||
2022-05-30,
|
||||
2022-05-31,2.85
|
||||
2022-06-01,2.94
|
||||
2022-06-02,2.92
|
||||
2022-06-03,2.96
|
||||
2022-06-06,3.04
|
||||
2022-06-07,2.98
|
||||
2022-06-08,3.03
|
||||
2022-06-09,3.04
|
||||
2022-06-10,3.15
|
||||
2022-06-13,3.43
|
||||
2022-06-14,3.49
|
||||
2022-06-15,3.33
|
||||
2022-06-16,3.28
|
||||
2022-06-17,3.25
|
||||
2022-06-20,
|
||||
2022-06-21,3.31
|
||||
2022-06-22,3.16
|
||||
2022-06-23,3.09
|
||||
2022-06-24,3.13
|
||||
2022-06-27,3.2
|
||||
2022-06-28,3.2
|
||||
2022-06-29,3.1
|
||||
2022-06-30,2.98
|
||||
2022-07-01,2.88
|
||||
2022-07-04,
|
||||
2022-07-05,2.82
|
||||
2022-07-06,2.93
|
||||
2022-07-07,3.01
|
||||
2022-07-08,3.09
|
||||
2022-07-11,2.99
|
||||
2022-07-12,2.96
|
||||
2022-07-13,2.91
|
||||
2022-07-14,2.96
|
||||
2022-07-15,2.93
|
||||
2022-07-18,2.96
|
||||
2022-07-19,3.01
|
||||
2022-07-20,3.04
|
||||
2022-07-21,2.91
|
||||
2022-07-22,2.77
|
||||
2022-07-25,2.81
|
||||
2022-07-26,2.81
|
||||
2022-07-27,2.78
|
||||
2022-07-28,2.68
|
||||
2022-07-29,2.67
|
||||
2022-08-01,2.6
|
||||
2022-08-02,2.75
|
||||
2022-08-03,2.73
|
||||
2022-08-04,2.68
|
||||
2022-08-05,2.83
|
||||
2022-08-08,2.77
|
||||
2022-08-09,2.8
|
||||
2022-08-10,2.78
|
||||
2022-08-11,2.87
|
||||
2022-08-12,2.84
|
||||
2022-08-15,2.79
|
||||
2022-08-16,2.82
|
||||
2022-08-17,2.89
|
||||
2022-08-18,2.88
|
||||
2022-08-19,2.98
|
||||
2022-08-22,3.03
|
||||
2022-08-23,3.05
|
||||
2022-08-24,3.11
|
||||
2022-08-25,3.03
|
||||
2022-08-26,3.04
|
||||
2022-08-29,3.12
|
||||
2022-08-30,3.11
|
||||
2022-08-31,3.15
|
||||
2022-09-01,3.26
|
||||
2022-09-02,3.2
|
||||
2022-09-05,
|
||||
2022-09-06,3.33
|
||||
2022-09-07,3.27
|
||||
2022-09-08,3.29
|
||||
2022-09-09,3.33
|
||||
2022-09-12,3.37
|
||||
2022-09-13,3.42
|
||||
2022-09-14,3.41
|
||||
2022-09-15,3.45
|
||||
2022-09-16,3.45
|
||||
2022-09-19,3.49
|
||||
2022-09-20,3.57
|
||||
2022-09-21,3.51
|
||||
2022-09-22,3.7
|
||||
2022-09-23,3.69
|
||||
2022-09-26,3.88
|
||||
2022-09-27,3.97
|
||||
2022-09-28,3.72
|
||||
2022-09-29,3.76
|
||||
2022-09-30,3.83
|
||||
2022-10-03,3.67
|
||||
2022-10-04,3.62
|
||||
2022-10-05,3.76
|
||||
2022-10-06,3.83
|
||||
2022-10-07,3.89
|
||||
2022-10-10,
|
||||
2022-10-11,3.93
|
||||
2022-10-12,3.91
|
||||
2022-10-13,3.97
|
||||
2022-10-14,4.0
|
||||
2022-10-17,4.02
|
||||
2022-10-18,4.01
|
||||
2022-10-19,4.14
|
||||
2022-10-20,4.24
|
||||
2022-10-21,4.21
|
||||
2022-10-24,4.25
|
||||
2022-10-25,4.1
|
||||
2022-10-26,4.04
|
||||
2022-10-27,3.96
|
||||
2022-10-28,4.02
|
||||
2022-10-31,4.1
|
||||
2022-11-01,4.07
|
||||
2022-11-02,4.1
|
||||
2022-11-03,4.14
|
||||
2022-11-04,4.17
|
||||
2022-11-07,4.22
|
||||
2022-11-08,4.14
|
||||
2022-11-09,4.12
|
||||
2022-11-10,3.82
|
||||
2022-11-11,
|
||||
2022-11-14,3.88
|
||||
2022-11-15,3.8
|
||||
2022-11-16,3.67
|
||||
2022-11-17,3.77
|
||||
2022-11-18,3.82
|
||||
2022-11-21,3.83
|
||||
2022-11-22,3.76
|
||||
2022-11-23,3.71
|
||||
2022-11-24,
|
||||
2022-11-25,3.68
|
||||
2022-11-28,3.69
|
||||
2022-11-29,3.75
|
||||
2022-11-30,3.68
|
||||
2022-12-01,3.53
|
||||
2022-12-02,3.51
|
||||
2022-12-05,3.6
|
||||
2022-12-06,3.51
|
||||
2022-12-07,3.42
|
||||
2022-12-08,3.48
|
||||
2022-12-09,3.57
|
||||
2022-12-12,3.61
|
||||
2022-12-13,3.51
|
||||
2022-12-14,3.49
|
||||
2022-12-15,3.44
|
||||
2022-12-16,3.48
|
||||
2022-12-19,3.57
|
||||
2022-12-20,3.69
|
||||
2022-12-21,3.68
|
||||
2022-12-22,3.67
|
||||
2022-12-23,3.75
|
||||
2022-12-26,
|
||||
2022-12-27,3.84
|
||||
2022-12-28,3.88
|
||||
2022-12-29,3.83
|
||||
2022-12-30,3.88
|
||||
2023-01-02,
|
||||
2023-01-03,3.79
|
||||
2023-01-04,3.69
|
||||
2023-01-05,3.71
|
||||
2023-01-06,3.55
|
||||
2023-01-09,3.53
|
||||
2023-01-10,3.61
|
||||
2023-01-11,3.54
|
||||
2023-01-12,3.43
|
||||
2023-01-13,3.49
|
||||
2023-01-16,
|
||||
2023-01-17,3.53
|
||||
2023-01-18,3.37
|
||||
2023-01-19,3.39
|
||||
2023-01-20,3.48
|
||||
2023-01-23,3.52
|
||||
2023-01-24,3.46
|
||||
2023-01-25,3.46
|
||||
2023-01-26,3.49
|
||||
2023-01-27,3.52
|
||||
2023-01-30,3.55
|
||||
2023-01-31,3.52
|
||||
2023-02-01,3.39
|
||||
2023-02-02,3.4
|
||||
2023-02-03,3.53
|
||||
2023-02-06,3.63
|
||||
2023-02-07,3.67
|
||||
2023-02-08,3.63
|
||||
2023-02-09,3.67
|
||||
2023-02-10,3.74
|
||||
2023-02-13,3.72
|
||||
2023-02-14,3.77
|
||||
2023-02-15,3.81
|
||||
2023-02-16,3.86
|
||||
2023-02-17,3.82
|
||||
2023-02-20,
|
||||
2023-02-21,3.95
|
||||
2023-02-22,3.93
|
||||
2023-02-23,3.88
|
||||
2023-02-24,3.95
|
||||
|
||||
|
@@ -1 +1 @@
|
||||
[{"id": "DGS5", "realtime_start": "2022-03-21", "realtime_end": "2022-03-21", "title": "Market Yield on U.S. Treasury Securities at 5-Year Constant Maturity", "observation_start": "1962-01-02", "observation_end": "2022-03-17", "frequency": "Daily", "frequency_short": "D", "units": "Percent", "units_short": "%", "seasonal_adjustment": "Not Seasonally Adjusted", "seasonal_adjustment_short": "NSA", "last_updated": "2022-03-18 15:24:43-05", "popularity": 76, "notes": "For further information regarding treasury constant maturity data, please refer to the Board of Governors (http://www.federalreserve.gov/releases/h15/current/h15.pdf) and the Treasury (http://www.treasury.gov/resource-center/data-chart-center/interest-rates/Pages/yieldmethod.aspx)."}]
|
||||
[{"id": "DGS5", "realtime_start": "2023-02-27", "realtime_end": "2023-02-27", "title": "Market Yield on U.S. Treasury Securities at 5-Year Constant Maturity, Quoted on an Investment Basis", "observation_start": "1962-01-02", "observation_end": "2023-02-24", "frequency": "Daily", "frequency_short": "D", "units": "Percent", "units_short": "%", "seasonal_adjustment": "Not Seasonally Adjusted", "seasonal_adjustment_short": "NSA", "last_updated": "2023-02-27 15:22:09-06", "popularity": 77, "notes": "For further information regarding treasury constant maturity data, please refer to the H.15 Statistical Release notes (https://www.federalreserve.gov/releases/h15/default.htm) and the Treasury Yield Curve Methodology (https://home.treasury.gov/policy-issues/financing-the-government/interest-rate-statistics/treasury-yield-curve-methodology)."}]
|
||||
@@ -96,3 +96,41 @@ def test_get_series_ids(func, kwargs_dict, recorder):
|
||||
|
||||
assert isinstance(result_df, pd.DataFrame)
|
||||
recorder.capture(result_df)
|
||||
|
||||
|
||||
@pytest.mark.vcr
|
||||
@pytest.mark.parametrize(
|
||||
"func, kwargs_dict",
|
||||
[
|
||||
("get_cpi", {"countries": ["united kingdom"]}),
|
||||
("get_cpi", {"countries": ["united kingdom", "united_states"]}),
|
||||
("get_cpi", {"countries": ["united kingdom", "united_states", "belgium"]}),
|
||||
(
|
||||
"get_cpi",
|
||||
{"countries": ["united kingdom", "united_states"], "frequency": "monthly"},
|
||||
),
|
||||
(
|
||||
"get_cpi",
|
||||
{
|
||||
"countries": ["united kingdom", "united_states"],
|
||||
"units": "growth_previous",
|
||||
},
|
||||
),
|
||||
(
|
||||
"get_cpi",
|
||||
{"countries": ["united kingdom", "united_states"], "harmonized": True},
|
||||
),
|
||||
(
|
||||
"get_cpi",
|
||||
{
|
||||
"countries": ["united kingdom", "united_states"],
|
||||
"units": "growth_previous",
|
||||
},
|
||||
),
|
||||
],
|
||||
)
|
||||
def test_get_cpi(func, kwargs_dict, recorder):
|
||||
result_df = getattr(fred_model, func)(**kwargs_dict)
|
||||
|
||||
assert isinstance(result_df, pd.DataFrame)
|
||||
recorder.capture(result_df)
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
Databases:
|
||||
macro collect macro data for a country or countries [EconDB]
|
||||
treasury obtain U.S. treasury rates [EconDB]
|
||||
cpi obtain (harmonized) Consumer Price Indices for any country [FRED]
|
||||
fred collect macro data from FRED based on a series ID [FRED]
|
||||
index find and plot any (major) index on the market [YahooFinance]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user