Skip to content
Last updated

Quickstart

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.

1. Pick an API

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.

APIWhat it coversReference
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
AuthExchange 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.

Shortcut

Many charts in Vanda Analytics have Copy API in their menu (☰). It gives you the exact request behind that chart.

2. Get access

Pick one. Both work with every API and give you exactly what your Vanda Analytics subscription covers.

API key

Recommended

Create 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 tests

Send 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.

3. Install the SDK

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-api

Put 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.aggregates

4. Find a series

Each API has a searchable catalog. Start there rather than guessing labels.

  1. Search by market, country or investor type: /positioning/catalog?q=10Y, /flow/catalog?q=Japan%20foreign or /macro/catalog?q=USCPI.
  2. Filter with the values listed by /catalog/facets, for example asset_type=FX.
  3. 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_id values can change.
Macro is different

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.

IdentifierReads as
USEQCOMBUS equity, combined positioning
USFICOMB-10YRUS Treasury 10-year, combined positioning
JPEQSTCKFORINSMIXMIXJapan · equity · stocks · foreign · institutional (MIX = all)
6107234879472613684Macro: US core CPI inflation, 12-month annualised (monthly)

5. Make your first calls

Every example works with any HTTP tool plus your x-api-key header.

Check your access and limits

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.

Latest positioning, with crowding flag

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.

Positioning history

client.positioning.get_timeseries(
    series_ids=["USEQCOMB"],
    start_date="2024-01-01",
    normalisation="none",
)

Investor flows

client.flow.get_timeseries(
    series_ids=["JPEQSTCKFORINSMIXMIX"],
    metrics=["net"],
    start_date="2025-01-01",
)

Macro data

# 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.

Good to know
  • 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/me shows yours.
  • Results are paged. Follow pagination.has_next, or use the Positioning and Flow /timeseries/export endpoints for an unpaged file. Macro has no export endpoint.
  • Positioning and Macro: add revision=point_in_time for values as first published (for backtests) and version=V1 or V2 to pin a model.
  • Check the unit field before combining flow or macro series. Units differ between series.
  • Macro only: invert, sum and cumulative_compounded reshape the rows themselves and cannot be combined with transformation or normalisation. Macro returns rows in ascending time order by default.

Key concepts explains each of these in more depth.

6. Use with AI

These docs are written for AI assistants as well as people.

  1. Use Copy at the top of any page to copy it as Markdown, or View to open the Markdown version.
  2. Give your assistant llms.txt, a plain-text map of every page, or add .md to any docs address, for example the Flow reference as Markdown.
  3. Connect a coding assistant to the docs MCP server at https://docs.vanda-analytics.com/mcp so it can look up endpoints and parameters itself.
  4. 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.

7. Next steps

Questions or access requests: your Vanda account manager, or sales@vanda.com.