tokenised_fund.securitize.chronicle
Documentation for eth_defi.tokenised_fund.securitize.chronicle Python module.
Normalise signed Chronicle Proof of Asset history for Securitize funds.
Chronicle’s public STAC dashboard is a visualisation of signed, off-chain Proof of Asset records. Unlike RedStone, it does not currently document a stable public history endpoint. This module deliberately accepts an explicit operator-provided JSON URL instead of guessing an undocumented route.
The parser supports the dashboard’s compact timestamp, nav and
totalValueLocked record shape. A configured source can therefore use the
same in-memory Securitize merger as RedStone without a second Parquet rewrite.
Reference: https://chroniclelabs.org/dashboard/proofofasset/securitize-stac
Module Attributes
Timeout for a public Chronicle history request in seconds. |
|
Unix seconds above this are interpreted as milliseconds. |
|
Securitize products currently announced as Chronicle Proof of Asset feeds. |
Functions
|
Fetch Chronicle Proof of Asset NAV history from an explicit JSON URL. |
Classes
One Chronicle-verified NAV and optional total-value observation. |
|
One Securitize product verified by Chronicle Proof of Asset. |
Exceptions
Raised when a configured Chronicle history source is malformed. |
- DEFAULT_CHRONICLE_API_TIMEOUT = 20.0
Timeout for a public Chronicle history request in seconds.
- UNIX_MILLISECONDS_THRESHOLD = 10000000000
Unix seconds above this are interpreted as milliseconds.
- exception ChronicleAPIError
Bases:
RuntimeErrorRaised when a configured Chronicle history source is malformed.
- __init__(*args, **kwargs)
- __new__(**kwargs)
- add_note(note, /)
Add a note to the exception
- with_traceback(tb, /)
Set self.__traceback__ to tb and return self.
- class ChronicleSecuritizeFeed
Bases:
objectOne Securitize product verified by Chronicle Proof of Asset.
- token: eth_typing.evm.HexAddress
Lower-case DSToken address.
- __init__(chain_id, token, dashboard_slug)
- Parameters
chain_id (int) –
token (eth_typing.evm.HexAddress) –
dashboard_slug (str) –
- Return type
None
- class ChroniclePricePoint
Bases:
objectOne Chronicle-verified NAV and optional total-value observation.
- timestamp: datetime.datetime
UTC timestamp of the signed observation.
Verified fund NAV per share in USD.
- total_assets: Optional[decimal.Decimal]
Optional verified total fund value in USD.
- __init__(timestamp, share_price, total_assets)
- Parameters
timestamp (datetime.datetime) –
share_price (decimal.Decimal) –
total_assets (Optional[decimal.Decimal]) –
- Return type
None
- CHRONICLE_SECURITIZE_FEEDS: dict[tuple[int, eth_typing.evm.HexAddress], eth_defi.tokenised_fund.securitize.chronicle.ChronicleSecuritizeFeed] = {(1, '0x51c2d74017390cbbd30550179a16a1c28f7210fc'): ChronicleSecuritizeFeed(chain_id=1, token='0x51c2d74017390cbbd30550179a16a1c28f7210fc', dashboard_slug='securitize-stac')}
Securitize products currently announced as Chronicle Proof of Asset feeds.
- fetch_chronicle_price_history(feed, history_url, *, timeout=20.0)
Fetch Chronicle Proof of Asset NAV history from an explicit JSON URL.
The caller must supply the source URL because Chronicle has not documented a stable public API endpoint for the STAC dashboard. The response may be a list directly or an envelope containing a
datalist.- Parameters
feed (eth_defi.tokenised_fund.securitize.chronicle.ChronicleSecuritizeFeed) – Reviewed Chronicle product metadata. Retained for audit-friendly call sites and future feed-specific validation.
history_url (str) – Public JSON history URL exported by Chronicle.
timeout (float) – HTTP request timeout in seconds.
- Returns
Oldest-to-newest distinct signed observations.
- Raises
ChronicleAPIError – If the source response does not contain a supported history list.
- Return type
collections.abc.Iterator[eth_defi.tokenised_fund.securitize.chronicle.ChroniclePricePoint]