Skip to content
Last updated

Key concepts

Read this once before building on Vanda data. Each section explains one idea that applies across the APIs, the AI assistant connector and Snowflake.

Products and APIs

ProductWhat it measuresAPIsAlso available through
VandaTrackRetail buying and selling in US-listed securitiesSeries (single securities), Aggregates (sectors, industries, indices, baskets)Platform, AI assistants, Snowflake
VandaXassetInvestor positioning and flows across equities, rates, FX and commoditiesPositioning, FlowPlatform, AI assistants, Snowflake, AWS S3, Excel
VandaMacroMacroeconomic series and Vanda's macro models, across countries and asset classesMacroPlatform
VandaInsightsVanda's published researchNonePlatform, AI assistants

VandaXasset flow is not the same as VandaTrack retail flow. VandaXasset covers investor types per market (foreign investors, dealers, futures positioning, short interest, CTA exposure). VandaTrack covers retail turnover in single stocks, sectors, indices and baskets.

Series and identifiers

Every dataset is a set of series, each with its own history. Find series in each API's catalog (/positioning/catalog, /flow/catalog, /macro/catalog) rather than building identifiers by hand.

PositioningFlowMacro
Preferredseries_label, in the form dataset_id:entity:metricslug, from the catalog entry. Store this oneseries_id, from the catalog entry. Store this one
Also acceptedA legacy label such as USEQCOMB, the entity or series_idA label such as JPEQSTCKFORINSMIXMIX, the entity or series_idNone

Avoid storing the numeric series_id on Flow: it changes when the pipeline reloads. On Macro it is stable and is the only identifier; send it as a string, since the values are too large for JavaScript numbers.

A label can cover several series, for example one per metric or per model version. Narrow the request with metrics (Flow) or version (Positioning), or use the exact slug or series_label. On Macro each series_id is already one series.

Reading a label

Labels are built from short codes in a fixed order, starting with country and asset class. MIX means "all" for that position.

LabelReads as
USEQCOMBUS equity, combined positioning
USFICOMB-10YRUS Treasury 10-year, combined positioning
JPEQSTCKFORINSMIXMIXJapan · equity · stocks · foreign · institutional (MIX = all)

The catalog tour notebook walks through the full grammar.

Combined positioning and crowding

A combined positioning score measures how stretched investor positioning is in one market. It blends several positioning measures (for example short interest, systematic fund exposure and foreign holdings), converts each to a z-score against its own full history and weights them by estimated investor volumes.

The result is in standard deviations (σ) from that market's own history, so readings compare across markets:

ScoreSignalReads as
+1.5σ or abovecrowded_longPositioning is unusually long
between −1.5σ and +1.5σneutralWithin the normal range
−1.5σ or belowcrowded_shortPositioning is unusually short or underweight

A high score says positioning is crowded, not that an asset is attractive. Crowded trades can be vulnerable to reversal, and crowded shorts can see short-covering.

Restated and point-in-time values

Positioning and Macro can be read two ways, set with revision:

  • restated (the default): values after later revisions. Best for analysis of the history as it is now understood.
  • point_in_time: each value as it was known on the date. Use this for backtests, so a signal never uses information that was not yet available.

The two differ on most series and can flip the crowding signal on some, so always record which one you used.

Model versions

Positioning and Macro series are versioned (V1, V2, …). Omit version to get the latest, or pass it to pin a model so your results stay stable when a new version ships.

Cadence, lag and staleness

  • Cadence varies by series. Most positioning is daily, but some series are weekly, fortnightly or monthly. A one-month window can return about 20 points for one series and 1 for another. Nothing is gap-filled or resampled, so read the timestamps rather than assuming a frequency.
  • Data publishes with a lag. Each catalog entry gives its publication lag and expected update time. CFTC-based series, for example, are weekly and several weeks behind.
  • Some series have stopped publishing. Flow returns staleness_days with each latest value and is_active in the catalog. On Macro, check last_ts from /macro/availability. Check them before treating a value as current.
  • Some macro series include forecasts. Future-dated rows are kept, so the newest row can be later than today.

Units and measure class

Flow values come in different units, such as USD millions, shares, contracts, index points and percentages. Each data point carries its own unit, metric and frequency.

Each flow series also has a measure_class:

  • flow: a quantity per period, such as net buying. It can be summed over time; chart it as bars.
  • level: a position at a point in time, such as outstanding exposure. Do not sum it; chart it as a line.

Never add, net, average or rank values with different units together.

Transformations and normalisation

The Positioning, Flow and Macro timeseries endpoints can transform a series for you:

ParameterValuesNotes
transformationrolling_sum, moving_avgNeeds window
windowSet values from 2 to 252, such as 5, 20, 60 and 252Counted in observations, not days: 20 is 20 weeks on a weekly series, 12 is a year on a monthly one
normalisationzscore, percentile_rank (Positioning also accepts none)Percentile rank is a fraction from 0 to 1
normalisation_period3m, 6m, 1y, 2y, 5y, Expanding, AllThe lookback the normalisation uses
  • Results are computed over the series' full history and returned under transformation.results.data. data still holds the raw values.
  • Transformations and normalisation apply to one series per request. A multi-series request returns raw values and says why under transformation.
  • Positioning normalises by default (zscore over All). Pass normalisation=none for the raw stored values.
  • Flow and Macro normalisation is opt-in, and normalisation and normalisation_period must be sent together.
  • Macro also offers invert (negate every value), sum (add several series into one, date by date) and cumulative_compounded (a running total of value × 100). They change the rows themselves and cannot be combined with transformation or normalisation.
  • A score over All uses the whole history, including data after each point. For "was this extreme at the time", use a fixed lookback such as 1y.

Forecasts

Some Flow series publish model forecasts as a cube: for each run date, every combination of a horizon and a scenario.

  • Horizon: market days ahead of the run date (the run date is horizon 0). The cube currently spans 0 to 15.
  • Component: the systematic strategy the forecast belongs to (cta, vt, rp or gamma). Each publishes its own metrics.
  • Scenario: a branch of the cube. CTA, rp and vt branch on a z-score (All is the unconditional path); gamma branches on a return.

Call /flow/forecast/runs first to see the run dates, horizons and scenarios a series publishes, then /flow/forecast to read them. Pair run_date with horizon to place a point in time; there is no separate forecast date. Forecasts are projections, not observations: keep them apart from observed history.

Paging and exports

  • Timeseries and catalog responses are paged. Set records_per_page (up to your tier's limit) and page_number, and read pagination.has_next to know when to stop.
  • For a full history in one file, use the Positioning and Flow /timeseries/export endpoints: CSV or JSON, optionally gzip or zip compressed. Macro has no export endpoint; page through /macro/timeseries.
  • Use /availability to see the first and last observation of each series before you request it.