About 10 minutes.
Everything you see in Vanda Analytics runs on the same API you have access to. This page takes you from sign-in to your first data pull, then points you to the right reference for everything else.
Every Vanda API shares one sign-in, one base address (https://api.vanda-analytics.com) and the same conventions, so what you learn here carries over to each of them.
| API | What it covers | Reference |
|---|---|---|
| Positioning (VandaXasset) | One combined positioning score per market, showing how crowded investors are across equities, rates, FX and commodities. | Docs · .md |
| Flow (VandaXasset) | Flows and positions by investor type (foreign, institutional, retail, systematic) per market, plus CTA forecasts. | Docs · .md |
| Macro (VandaMacro) | Macroeconomic series and Vanda's macro models: inflation, growth, labour, central bank and capital flows, CTA positioning. | Docs · .md |
| Series (VandaTrack) | Retail buying and selling in single US-listed securities: equities, ETFs and ADRs. | Docs · .md |
| Aggregates (VandaTrack) | The same retail flow rolled up to sectors, industries, indices and baskets. | Docs · .md |
| Auth | Exchange your login for a token. Not needed if you use an API key. | Docs |
In the Python SDK each API is a section of the client: client.positioning, client.flow, client.macro, client.series and client.aggregates. Auth is handled for you.
The examples below use Positioning, Flow and Macro. The same pattern (find a series in the catalog, get the latest value, then pull history) applies to every API.
Many charts in Vanda Analytics have Copy API in their menu (☰). It gives you the exact request behind that chart.
Pick one. Both work with every API and give you exactly what your Vanda Analytics subscription covers.
API key
RecommendedCreate one at vanda-analytics.com/tools/api-keys and send it on every request as the x-api-key header. The key is shown once, lasts 90 days by default, and can be revoked on the same page.
Username and password
Quick testsSend your Vanda Analytics login to POST /auth/basic for a short-lived token, then send Authorization: Bearer <token>.
Authentication covers both methods, tiers and error codes in full.
The vanda-api Python package (Python 3.9+) handles sign-in, retries and paging, with one section per API. It is optional: any HTTP client works.
pip install vanda-apiPut your credentials in environment variables, never in code:
# either an API key
export VANDA_SDK_KEY="your_api_key"
# or your login
export VANDA_LOGIN_EMAIL="you@yourfirm.com"
export VANDA_PASSWORD="your_password"from vanda import VandaClient
client = VandaClient() # reads the variables above
# then client.positioning, client.flow, client.macro, client.series, client.aggregatesEach API has a searchable catalog. Start there rather than guessing labels.
- Search by market, country or investor type:
/positioning/catalog?q=10Y,/flow/catalog?q=Japan%20foreignor/macro/catalog?q=USCPI. - Filter with the values listed by
/catalog/facets, for exampleasset_type=FX. - Read the entry. It gives the label to query, a plain-English name and the history available. Flow entries also list each metric with its unit and a unique slug: store the slug, because numeric
series_idvalues can change.
Macro is addressed by series_id only, and on Macro the series_id is stable: store it. Each catalog entry is one series, with its metric, unit, frequency, start_date and version. Send series_id as a string, since the values are too large for JavaScript numbers.
| Identifier | Reads as |
|---|---|
USEQCOMB | US equity, combined positioning |
USFICOMB-10YR | US Treasury 10-year, combined positioning |
JPEQSTCKFORINSMIXMIX | Japan · equity · stocks · foreign · institutional (MIX = all) |
6107234879472613684 | Macro: US core CPI inflation, 12-month annualised (monthly) |
Every example works with any HTTP tool plus your x-api-key header.
curl https://api.vanda-analytics.com/positioning/users/me \
-H "x-api-key: $VANDA_SDK_KEY"The response shows your tier and its limits: page size, series per request and how much history one request can cover.
client.positioning.get_latest(series_ids=["USEQCOMB", "USFICOMB-10YR"])Each row carries a signal: crowded_long at +1.5σ or above, crowded_short at −1.5σ or below, otherwise neutral.
client.positioning.get_timeseries(
series_ids=["USEQCOMB"],
start_date="2024-01-01",
normalisation="none",
)client.flow.get_timeseries(
series_ids=["JPEQSTCKFORINSMIXMIX"],
metrics=["net"],
start_date="2025-01-01",
)# Find the series, then read it by series_id
client.macro.list_catalog(q="USCPI", domain="MACRO")
client.macro.get_latest(series_ids=["6107234879472613684"])
client.macro.get_timeseries(
series_ids=["6107234879472613684"],
start_date="2024-01-01",
)Each row carries ts, value, unit, frequency and version. Ids that match no series are listed in unresolved, and the rest of the request still succeeds.
- One positioning series per call when you normalise or transform. A multi-series request returns raw values and skips normalisation.
- Stay within your tier's history window. Ten years per request on the Enterprise tier;
/users/meshows yours. - Results are paged. Follow
pagination.has_next, or use the Positioning and Flow/timeseries/exportendpoints for an unpaged file. Macro has no export endpoint. - Positioning and Macro: add
revision=point_in_timefor values as first published (for backtests) andversion=V1orV2to pin a model. - Check the
unitfield before combining flow or macro series. Units differ between series. - Macro only:
invert,sumandcumulative_compoundedreshape the rows themselves and cannot be combined withtransformationornormalisation. Macro returns rows in ascending time order by default.
Key concepts explains each of these in more depth.
These docs are written for AI assistants as well as people.
- Use Copy at the top of any page to copy it as Markdown, or View to open the Markdown version.
- Give your assistant llms.txt, a plain-text map of every page, or add
.mdto any docs address, for example the Flow reference as Markdown. - Connect a coding assistant to the docs MCP server at
https://docs.vanda-analytics.com/mcpso it can look up endpoints and parameters itself. - Ask in plain English, and tell it your key is in
VANDA_SDK_KEY. Never paste the key itself.
To query Vanda data directly in conversation, without code, see Vanda MCP. Use the docs with AI has setup steps and a starter prompt.
API reference
Every endpoint and parameter for each API, with try-it examples.
Key concepts
Identifiers, crowding, revisions, units, transformations and forecasts.
Notebook: data access
REST and SDK end to end, with output.
Notebook: catalog tour
Datasets, label grammar and metric vocabulary.
Questions or access requests: your Vanda account manager, or sales@vanda.com.