fetch_settlement_prices

Documentation for eth_defi.tokenised_fund.securitize.settlement.fetch_settlement_prices function.

fetch_settlement_prices(hypersync_client, feed, end_block, attempts=3)

Fetch the settlement NAV timeline with Hypersync.

Hypersync is a hard requirement: there is no RPC or archive-state fallback. The repository’s Hypersync client disables internal retries, so a rate-limited request is retried here. Each wait lasts until the server-stated resets_in, because a shared API key’s quota is usually only available right after its 60-second window resets.

Parameters
Returns

Deposit settlement prices sorted by block number.

Raises

RuntimeError – If Hypersync stays rate limited after all attempts, or If Hypersync returns no deposit settlement although end_block is at or after the known first settlement. An incomplete index must abort the scan rather than rewrite priced history as unpriced rows.

Return type

list[eth_defi.tokenised_fund.securitize.settlement.SecuritizeSettlementPrice]