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 endpoints — CrossRates, 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.

Metadata

Release files for parsimony-riksbank 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for parsimony-riksbank 0.0.2
File Size Uploaded Provenance
parsimony_riksbank-0.0.2.tar.gz 27.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for parsimony-riksbank 0.0.2
File Interpreter ABI Platform
parsimony_riksbank-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 61.7 kB

Release files / parsimony_riksbank-0.0.2.tar.gz

Download URL parsimony_riksbank-0.0.2.tar.gz
Size 27.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9eb8c8f64ba774dcfc0ab98a4378839b718f366deefd60ea2497372b51b303ec
BLAKE2b-256 checksum
How to use checksums
3c970b5410bde2595d804403f16d987441400b4900a20053bed087c2238d69ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.

Transparency log

Release files / parsimony_riksbank-0.0.2-py3-none-any.whl

Download URL parsimony_riksbank-0.0.2-py3-none-any.whl
Size 33.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f8002cf9bce65bf88da37dab64126acd2ea6b58e3a5473d72404912005aadbaf
BLAKE2b-256 checksum
How to use checksums
eb4880fc06063c1b67ee5c608315d9022a1d168c7de28f5ad4294545b78f60df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.

Transparency log

Security for parsimony-riksbank 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for parsimony_riksbank-0.0.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files Full provenance

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