glassnode-api - v0.29.3
    Preparing search index...

    Variable TimeSeriesPointSchemaConst

    TimeSeriesPointSchema: ZodObject<TimeSeriesPoint> = ...

    One point of a single-valued metric time series, as returned by most metric endpoints via callMetric (e.g. /market/price_usd_close): { t, v }.

    • t — timestamp in unix seconds (a number, not a Date); convert with new Date(t * 1000).
    • v — the value. null is accepted: the docs do not promise that v is never null, and a response schema is lenient by design, so a gap in the data does not fail the whole series.

    Extra fields on a point are tolerated (stripped from the result), so an additive server change does not fail validation. Metrics whose v is an array or object, or that return o instead, need TimeSeriesObjectPointSchema or a schema of your own.