fetch_pol_history

Documentation for eth_defi.core3.api.fetch_pol_history function.

fetch_pol_history(session, slug, timeout=60.0)

Fetch all-time PoL history chart from /v1/{slug}/pol/history/chart.

Returns a list of {score, timestamp} points, unwrapped from {"points": [...]}. Used for initial backfill.

Parameters
Returns

List of point dicts with score and timestamp keys.

Return type

list[dict]