Skip to content

Releases: mbk-dev/okama-macro

okama-macro 0.1.1

Choose a tag to compare

@chilango74 chilango74 released this 08 Aug 08:55

Bug fixes

  • okama_macro.sources.hkma._get_records no longer multiplies its retries.
    The function wrapped _http.get in its own retry loop and caught plain
    RuntimeError — the very type _http.get raises for HTTP failures — so an
    HKMA 5xx was retried 4 times inside _http.get and 4 more times outside it:
    16 requests per call, up to ~32 minutes spent on a single symbol at
    API_TIMEOUT = 120 when the upstream hangs rather than refuses. A dedicated
    _PayloadError now marks success: false responses, 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

Choose a tag to compare

@chilango74 chilango74 released this 25 Jul 12:37

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 and okama_macro.list_series() registry
    expose 16 inflation and central-bank rate series as decimal fractions with a
    consistent pandas Series contract.
  • Raw clients are available under okama_macro.sources for 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