Releases: mbk-dev/okama-macro
Releases · mbk-dev/okama-macro
Release list
okama-macro 0.1.1
Bug fixes
okama_macro.sources.hkma._get_recordsno longer multiplies its retries.
The function wrapped_http.getin its own retry loop and caught plain
RuntimeError— the very type_http.getraises for HTTP failures — so an
HKMA 5xx was retried 4 times inside_http.getand 4 more times outside it:
16 requests per call, up to ~32 minutes spent on a single symbol at
API_TIMEOUT = 120when the upstream hangs rather than refuses. A dedicated
_PayloadErrornow markssuccess: falseresponses, and the outer loop
catches only payload-level errors, so transport failures propagate at the
first exhaustion. Retry-on-transient-5xx behaviour is unchanged.
(#1)
okama-macro 0.1.0
okama-macro 0.1.0
First public release of the consolidated macro-economic data-source library for
the okama project.
Highlights
- A unified
okama_macro.get()API andokama_macro.list_series()registry
expose 16 inflation and central-bank rate series as decimal fractions with a
consistent pandasSeriescontract. - Raw clients are available under
okama_macro.sourcesfor BIS, Bank of
England, Bank of Israel, Hong Kong C&SD, CFETS, ECB, FRED, HKMA, MOSPI,
China's NBS, UK ONS, and RBI. - Shared
_http.get()and_frame.clip_window()helpers standardize retries,
proxy handling, TLS behavior, date windows, and output normalization while
preserving source-specific transport where required. boe.get_bank_rate()preserves the corrected forward-fill direction that
prevents look-ahead bias.ecb.get_refinancing_rate()splices the minimum bid rate into the ECB
variable-tender period instead of leaving an eight-year gap.mospi.get_general_cpi()splices India's live base-2024 CPI feed onto the
historical base-2012 series.
Compatibility
- Python 3.11–3.14
- pandas 2.x and 3.x
Install
pip install okama-macro