fetch_redstone_price_at
Documentation for eth_defi.tokenised_fund.securitize.redstone.fetch_redstone_price_at function.
- fetch_redstone_price_at(web3, feed, block_identifier='latest')
Fetch the RedStone NAV observation available at an archive block.
The push-feed contract stores its current answer. Archive-node state makes the same call point-in-time correct for both initial backfills and normal incremental scans.
- Parameters
web3 (web3.main.Web3) – Archive-capable connection to the feed chain.
feed (eth_defi.tokenised_fund.securitize.redstone.RedstoneSecuritizeFeed) – Reviewed Securitize feed configuration.
block_identifier (Union[Literal['latest', 'earliest', 'pending', 'safe', 'finalized'], eth_typing.evm.BlockNumber, eth_typing.evm.Hash32, eth_typing.encoding.HexStr, int]) – Historical block number or
latest.
- Returns
Positive USD NAV/share and its publication timestamp.
- Raises
RedstoneFeedError – If the feed has not published a valid observation at the block.
- Return type
eth_defi.tokenised_fund.securitize.redstone.RedstonePricePoint