tokenised_fund.wisdomtree.nav
Documentation for eth_defi.tokenised_fund.wisdomtree.nav Python module.
WisdomTree DataSpan NAV API client.
WisdomTree documents the endpoint at https://docs.wisdomtreeconnect.com/dataspan/nav . The API key is intentionally supplied by the operator instead of embedding browser credentials in scans.
Functions
|
Fetch official current and historical NAV observations. |
Classes
One official NAV observation. |
Exceptions
Raised when WisdomTree's documented NAV endpoint cannot be read. |
- exception WisdomTreeAPIError
Bases:
RuntimeErrorRaised when WisdomTree’s documented NAV endpoint cannot be read.
- __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 WisdomTreeNAVPoint
Bases:
objectOne official NAV observation.
- __init__(timestamp, nav)
- Parameters
timestamp (datetime.datetime) –
nav (decimal.Decimal) –
- Return type
None
- fetch_wisdomtree_nav_history(ticker, *, api_key=None, session=None, api_url='https://dataspanapi.wisdomtree.com/funddetails/nav/')
Fetch official current and historical NAV observations.
The request uses WisdomTree’s documented
history=Truequery. It only accepts explicit NAV/date fields and fails closed when the provider changes its response shape, so an unknown response can never silently become a one-dollar estimate.- Parameters
- Returns
Chronologically sorted official NAV observations.
- Raises
WisdomTreeAPIError – If credentials, HTTP response or fields are invalid.
- Return type
collections.abc.Iterator[eth_defi.tokenised_fund.wisdomtree.nav.WisdomTreeNAVPoint]