find_settlement_price_at
Documentation for eth_defi.tokenised_fund.securitize.settlement.find_settlement_price_at function.
- find_settlement_price_at(prices, block_number)
Find the latest settlement at or before a block.
A settlement’s NAV stays in force until the next settlement, so rows between settlements repeat the last struck value.
- Parameters
prices (collections.abc.Sequence[eth_defi.tokenised_fund.securitize.settlement.SecuritizeSettlementPrice]) – Settlement prices sorted by block number.
block_number (int) – Sampled block.
- Returns
Latest settlement no later than
block_number, orNonebefore the first settlement.- Return type
Optional[eth_defi.tokenised_fund.securitize.settlement.SecuritizeSettlementPrice]