Skip to content

okama-macro 0.1.1

Latest

Choose a tag to compare

@chilango74 chilango74 released this 08 Aug 08:55
· 1 commit to main since this release

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)