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_wisdomtree_nav_history(ticker, *[, ...])

Fetch official current and historical NAV observations.

Classes

WisdomTreeNAVPoint

One official NAV observation.

Exceptions

WisdomTreeAPIError

Raised when WisdomTree's documented NAV endpoint cannot be read.

exception WisdomTreeAPIError

Bases: RuntimeError

Raised 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: object

One official NAV observation.

__init__(timestamp, nav)
Parameters
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=True query. 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
  • ticker (str) – WisdomTree fund ticker, e.g. WTGXX.

  • api_key (Optional[str]) – DataSpan key or WISDOMTREE_DATASPAN_API_KEY.

  • session (Optional[requests.sessions.Session]) – Optional requests session for tests and connection reuse.

  • api_url (str) – Endpoint override for tests.

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]