Skip to main content

parsimony-riksbank

Sveriges Riksbank (Sweden's central bank) connector plugin for parsimony. Surfaces all five of the Riksbank's public REST APIs: interest & exchange rates (SWEA), the Swedish Krona Short-Term Rate (SWESTR), Monetary Policy forecasts & outcomes, market Turnover Statistics, and securities Holdings. Keyless — no API credentials required.

Part of the parsimony-connectors monorepo. Distributed standalone on PyPI as parsimony-riksbank.

Connectors

Name Kind Description
riksbank_fetch connector Fetch a SWEA interest/exchange-rate series by id (e.g. SEKEURPMI), windowed or latest.
riksbank_swestr_fetch connector Fetch a SWESTR series — the overnight fixing, a compounded average (1W–6M) or the index.
riksbank_monetary_policy_fetch connector Fetch a Monetary Policy forecast/outcome series (e.g. SEQGDPNAYSA); pick one policy_round vintage or get all.
riksbank_turnover_fetch connector Fetch aggregated turnover for a market (fi/fx/ird) at a frequency (daily/monthly).
riksbank_holdings_fetch connector Fetch the Riksbank's securities holdings (swedish_securities per-ISIN, or swedish_securities_aggregated).
enumerate_riksbank enumerator Enumerate every addressable unit across all five products for catalog indexing.
riksbank_search connector Semantic-search the published riksbank catalog and return matching code + title + score/search_detail.

Install

pip install parsimony-riksbank

Pulls in a compatible parsimony automatically. Verify discovery:

python -c "from parsimony import discover; print([p.name for p in discover.iter_providers()])"

Quick start

from parsimony_riksbank import CONNECTORS

# The Riksbank's GDP forecast (annual % change), latest policy round.
result = CONNECTORS["riksbank_monetary_policy_fetch"](
    series="SEQGDPNAYSA",
    policy_round="2026:1",
)
print(result.raw.head())

Catalogs

This plugin ships a riksbank catalog (~156 entries) driven by enumerate_riksbank. riksbank_search loads a published snapshot (overridable via the PARSIMONY_RIKSBANK_CATALOG_URL env var) and falls back to building one in-process when no snapshot is reachable. Maintainers build and push the snapshot with scripts/build_catalog.py.

The catalog code routes the follow-up fetch:

  • bare SWEA id (e.g. SEKEURPMI) → riksbank_fetch(series_id=...)
  • bare SWESTR id (e.g. SWESTR, SWESTRAVG1M) → riksbank_swestr_fetch(series=...)
  • monetary_policy/<id>riksbank_monetary_policy_fetch(series=<id>)
  • turnover/<market>/<frequency>riksbank_turnover_fetch(market=, frequency=)
  • holdings/<dataset>riksbank_holdings_fetch(dataset=<dataset>)

Coverage

The Riksbank publishes five public REST APIs (confirmed against the developer portal's API list); this plugin covers all five.

Catalog covers ALL: yes for the series-shaped products — SWEA /Series and Monetary Policy /forecasts/series_ids are authoritative live enumerations, and SWESTR / Turnover / Holdings have small, stable dimensions enumerated as registries. Connectors cover ALL accessible data: yes — every product has a fetch verb. Notes on deliberate scope:

  • SWESTR PRESWESTR (preliminary 2021 test-period values) is excluded as superseded test data.
  • SWEA derived endpointsCrossRates, ObservationAggregates, CalendarDays — are computed conveniences over the same 117 series (cross-rate calculation, resampling, banking-day lookups), not new addressable series, so they are not catalogued.
  • Turnover is catalogued at the (market, frequency) dataset granularity; the asset/contract/counterparty facets are returned inside each dataset. The Excel-report endpoints duplicate the JSON content and are not wrapped.

Authentication & rate limits

All five products are open / keyless. An optional Ocp-Apim-Subscription-Key (set RIKSBANK_API_KEY or pass api_key=) only raises the keyless quota of 5 requests/minute, 1000/day per IP — recommended for full catalog builds.

Provider

License

See LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

parsimony_riksbank-0.0.2.tar.gz (27.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

parsimony_riksbank-0.0.2-py3-none-any.whl (33.8 kB view details)

Uploaded Python 3

File details

Details for the file parsimony_riksbank-0.0.2.tar.gz.

File metadata

  • Download URL: parsimony_riksbank-0.0.2.tar.gz
  • Upload date:
  • Size: 27.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for parsimony_riksbank-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9eb8c8f64ba774dcfc0ab98a4378839b718f366deefd60ea2497372b51b303ec
MD5 61c9ee9cef8c27fddeb258ad60c1be02
BLAKE2b-256 3c970b5410bde2595d804403f16d987441400b4900a20053bed087c2238d69ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for parsimony_riksbank-0.0.2.tar.gz:

Publisher: release.yml on ockham-sh/parsimony-connectors

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file parsimony_riksbank-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for parsimony_riksbank-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f8002cf9bce65bf88da37dab64126acd2ea6b58e3a5473d72404912005aadbaf
MD5 e4b99823880d6686c82700cfc80a8076
BLAKE2b-256 eb4880fc06063c1b67ee5c608315d9022a1d168c7de28f5ad4294545b78f60df

See more details on using hashes here.

Provenance

The following attestation bundles were made for parsimony_riksbank-0.0.2-py3-none-any.whl:

Publisher: release.yml on ockham-sh/parsimony-connectors

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page