market
Market data helpers for the refinance calculator interface.
fetch_all_series(api_key)
Retrieve all configured market series from FRED.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
api_key
|
str
|
API key to authenticate with FRED. |
required |
Returns:
| Type | Description |
|---|---|
tuple[dict[str, list[tuple[str, float]]], list[str]]
|
Tuple of raw series data and collection of error messages. |
Source code in src/refi_calculator/web/market.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | |
get_api_key()
Retrieve the FRED API key stored in Streamlit secrets.
Source code in src/refi_calculator/web/market.py
21 22 23 | |
render_market_tab()
Render the market data tab with metrics, range selector, chart, and table.
Source code in src/refi_calculator/web/market.py
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 | |