pomelo-fmp 0.12.2

Bring-your-own-key FMP data sync + snapshot-factor formulas for the yuzu backtest engine. Writes a data-layout tree to any ObjectSink (local disk or S3/R2). No FMP data redistributed.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Re-exports the shared HTTP plumbing ([`pomelo_http`]) under this crate's
//! `http` path, so vendor modules keep `use super::http::{Fetcher, HttpClient}`.
//! The [`Fetcher`] alias fixes the [`RetrySettings`](pomelo_http::RetrySettings)
//! type to this crate's [`SyncConfig`](crate::config::SyncConfig); its
//! [`get_rows`](pomelo_http::Fetcher::get_rows) covers FMP's list-endpoint error
//! envelopes.

pub use pomelo_http::{HttpClient, HttpError};

/// The real ureq-backed client — only with the `fmp-sync` feature.
#[cfg(feature = "fmp-sync")]
pub use pomelo_http::UreqClient;

/// [`pomelo_http::Fetcher`] specialized to this crate's `SyncConfig`.
pub(crate) type Fetcher<'a, H> = pomelo_http::Fetcher<'a, H, crate::config::SyncConfig>;