pomelo-http
Shared HTTP plumbing for the pomelo-* bring-your-own-key market-data sync
crates — part of citrusquant.
Every vendor adapter (pomelo-fmp, pomelo-eodhd, pomelo-alpha-vantage,
pomelo-finnhub) needs the same primitives, so they live here once:
- a mockable
HttpClient, - a
Fetcherthat adds rate-limit throttle + bounded exponential-backoff retry, - token
redaction for logs, and - a
WriteMode.
No vendor logic. JSON field maps, densify formulas, symbol-suffix rules, and
rating mappers stay in each vendor crate — the Fetcher reads its throttle/retry
knobs through the RetrySettings trait, so no vendor SyncConfig type leaks in.
See the data sources overview.
License
MIT