---
title: "Single country's IVF historical timeseries (4 sectors x 6 items)"
method: GET
path: "/api/v1/ecb/ivf/by-country/{slug}"
tags: ["Hedge Fund Intelligence"]
---

# Single country's IVF historical timeseries (4 sectors x 6 items)

`GET /api/v1/ecb/ivf/by-country/{slug}`

Full historical IVF timeseries for one country across all 4 sectors x 6 items, split between stock observations (data_type=1, closing balances) and flow observations (data_type=4, monthly transactions). Slug is 2-char lowercase: at, de, fr, lu, ie etc. for euro-area members; u2 for the euro-area aggregate (mirror SHS - U2 is accessible via this endpoint, only excluded from /top and /changes and /flows leaderboards). ?include=composition adds asset-mix breakdown for sector=T0 (all funds) at latest period: debt_pct + direct_equity_pct + fund_shares_pct + cash_pct of L30 NAV + leverage_ratio (T00/L30). When NAV is null or non-positive, percentages = null.

## Path parameters

- `slug` string, required

## Query parameters

- `include` string — Optional add-on: `composition` adds asset-mix breakdown.
- `metric` string — Reserved for future use; currently does not affect output.

## Response `200`

Single country's full IVF timeseries + optional composition.

- EnvelopeIvfCountryProfile
  - `data` IvfCountryProfile, required — Single country's full IVF historical timeseries.
    - `country` string, required
    - `name` string, required
    - `stock_history_length` integer, required — Number of stock observations (data_type=1) across all sectors x items.
    - `flow_history_length` integer, required — Number of flow observations (data_type=4) across all sectors x items.
    - `stock_history` IvfHistoryEntry[], required
      - `period` string, required — Month in 'YYYY-MM' format.
      - `sector` string, required — ECB IVF_REP_SECTOR code.
      - `item` string, required — ECB IVF_ITEM code.
      - `data_type` string, required — '1' = stock (outstanding), '4' = flow (transactions).
      - `value_eur_mn` number, nullable — Value in EUR millions; None when ECB suppressed the cell.
    - `flow_history` IvfHistoryEntry[], required
      - `period` string, required — Month in 'YYYY-MM' format.
      - `sector` string, required — ECB IVF_REP_SECTOR code.
      - `item` string, required — ECB IVF_ITEM code.
      - `data_type` string, required — '1' = stock (outstanding), '4' = flow (transactions).
      - `value_eur_mn` number, nullable — Value in EUR millions; None when ECB suppressed the cell.
    - `composition_latest` IvfCompositionBlock — Asset-mix breakdown for a country (sector=T0 all funds) at latest period. Percentages are of L30 (NAV / shares issued by the fund). When NAV is null or non-positive, all percentages are None to distinguish "data absent" from "data zero". Percentages may sum to slightly more or less than 100 because A50 (Shares + other equity held) and A52 (Fund-of-fund shares held, subset of A50) are reported asymmetrically across periods.
      - `period` string, required
      - `denominator` string, required
      - `debt_pct` number, nullable
      - `direct_equity_pct` number, nullable — (A50 - A52) / NAV * 100. Direct equity holdings (excludes fund-of-fund).
      - `fund_shares_pct` number, nullable — A52 / NAV * 100. Holdings of investment fund shares.
      - `cash_pct` number, nullable — A20 / NAV * 100. Deposit and loan claims.
      - `leverage_ratio` number, nullable — T00 / L30 = total assets divided by NAV. Proxy for leverage.
  - `meta` SugraMeta, required — Metadata attached to every /api/v1/* response envelope.
    - `endpoint` string, required — Requested endpoint path.
    - `data_time` string, required — ISO 8601 UTC timestamp of the source data, not of the request.
    - `response_time` string, required — ISO 8601 UTC timestamp when this response was produced.
    - `provider` string, required — API name and version.
    - `source` string, nullable — Identifier of the primary upstream source used for this response.
    - `attribution` string, nullable — Human-readable attribution mandated by an upstream source (e.g. a securities regulator or self-regulatory organization). Present only on responses whose source requires the owner and source to be clearly identified. Do not remove or alter it when using the response.
    - `fallback_used` boolean, nullable — True when the primary source failed and a fallback produced the data.
    - `fallback_chain` string[], nullable — Ordered list of sources attempted, in the order they were tried.
    - `cached` boolean, nullable — True when this response was served from the internal cache.
    - `stale` boolean, nullable — True when the cached response was returned after the upstream rate-limited or errored. Clients can use this to detect degraded data.

## Other responses

- `401` — Missing or invalid `x-api-key` header. JSON body with a stable `code` distinguishing `missing_api_key` (no header sent) from `invalid_api_key` (header sent, key not accepted); any other 401 source carries the generic `unauthorized` with its detail as `reason`. Plus `hint`. `plan` is always null on 401 - an unauthenticated request has no plan; quota exhaustion is 429, not 401.
- `422` — Validation Error
- `429` — Daily rate limit exceeded. Check `X-RateLimit-Reset` for the next window.
- `503` — Upstream source is temporarily unavailable. Retry after a short delay.

---

[API](https://skmtc.net/sugra/apis/sugra-api.md) · [All operations](https://skmtc.net/sugra/apis/sugra-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sugra/sugra-api/versions/d3e3d9c28132/schema)
