# Bank Of Statistics

> Retrieve macro-financial and monetary statistics from the Bank of Estonia statistics portal for banking, external sector, and monetary analysis.

- **Type:** Skill
- **Install:** `agentstack add skill-taivop-marketplace-bank-of-statistics`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [taivop](https://agentstack.voostack.com/s/taivop)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [taivop](https://github.com/taivop)
- **Source:** https://github.com/taivop/marketplace/tree/master/skills/.curated/estonia-public-sources/sources/bank-of-statistics

## Install

```sh
agentstack add skill-taivop-marketplace-bank-of-statistics
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Bank of Estonia Statistics

## Use when
- You need central-bank indicators (monetary, financial, external sector).
- You need statistics complementary to Statistics Estonia.

## Avoid when
- The indicator is already fully available from Statistics Estonia and no financial split is needed.

## Access reality
- Public access type: JavaScript UI backed by `/spring/*` JSON endpoints.
- Critical caveat: direct endpoint calls can return `406` without browser-like request headers.

## Inputs
- Indicator topic and period.
- Preferred granularity and format.

## Outputs
- Downloaded indicator series and source citation.

## Primary endpoints
- Portal UI: https://statistika.eestipank.ee/
- Example JSON endpoints (public):
  - https://statistika.eestipank.ee/spring/getValuutad
  - https://statistika.eestipank.ee/spring/getValuutaKursid
  - https://statistika.eestipank.ee/spring/getValuutaKurssAjaloos
  - https://statistika.eestipank.ee/spring/getAvaldamiskalenderHeaders
  - https://statistika.eestipank.ee/spring/getHeadingsFilterData
  - https://statistika.eestipank.ee/spring/getAvaldamiskalenderList

## Retrieval workflow
1. Start from portal page to identify needed indicator family.
2. For `/spring/*` endpoint calls, send headers:
   - `Accept: application/json, text/plain, */*`
   - `X-Requested-With: XMLHttpRequest`
   - `Referer: https://statistika.eestipank.ee/`
3. Call relevant endpoint with required parameters.
4. Parse JSON response and normalize dates/units.
5. Keep endpoint URL and parameter set with output.

## Request contract
- `getValuutaKursid`:
  - required: `aeg`, `aeg1`, `aeg2`, `tyyp`, `lang`
  - date format expected by endpoint: `dd.mm.yyyy`
- `getValuutaKurssAjaloos`:
  - required: `valuuta1`, `valuuta2`, `aegAlg`, `aegLopp`, `lang`, `step`
  - known `step` values: `DAY`, `WEEK`, `MONTH`, `QUARTER`, `SEMIANNUAL`, `YEAR`
- `getAvaldamiskalenderList`:
  - required: `lng`
  - optional filter: `rubriikId`

## Output schema expectations
- Keep at least:
  - indicator code/name
  - period/date
  - value
  - unit/currency
  - dimension filters used (if any)
  - source endpoint URL and params

## Limits and caveats
- Endpoints are unofficially documented through frontend behavior.
- Some endpoint combinations return empty arrays if params are incomplete or mismatched.
- UI routes are hash-based; data endpoints are under `/spring/`.

## Verification hooks
- Verify JSON response content type is `application/json`.
- Verify endpoint returns non-empty arrays for known-valid sample query.
- Verify calls without headers can fail with `406` and calls with headers succeed.

## Quality checks
- Confirm frequency (daily/weekly/monthly/quarterly/annual).
- Confirm whether values are stock or flow before interpretation.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [taivop](https://github.com/taivop)
- **Source:** [taivop/marketplace](https://github.com/taivop/marketplace)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** yes
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-taivop-marketplace-bank-of-statistics
- Seller: https://agentstack.voostack.com/s/taivop
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
