fetch_pol_history_incremental
Documentation for eth_defi.core3.api.fetch_pol_history_incremental function.
- fetch_pol_history_incremental(session, slug, from_ts, to_ts, timeout=60.0)
Fetch ranged PoL history from
/v1/{slug}/pol/history.Uses the
fromandtoquery parameters (unix timestamps in seconds) to fetch only the requested range. Used for incremental updates after the initial backfill.- Parameters
session (eth_defi.core3.session.Core3Session) – Core3 API session.
slug (str) – Project slug.
from_ts (int) – Start unix timestamp (inclusive).
to_ts (int) – End unix timestamp (inclusive).
timeout (float) – HTTP request timeout in seconds.
- Returns
List of point dicts with
scoreandtimestampkeys.- Return type