← 返回
未分类 Key 中文

Bank of Korea ECOS CLI

Command-line client for Bank of Korea ECOS API to list statistic tables and fetch time series data in JSON by code and frequency.
韩国央行 ECOS API 的命令行客户端,可列出统计表并按代码和频率获取 JSON 格式的时间序列数据。
chloepark85 chloepark85 来源
未分类 clawhub v0.1.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 330
下载
💾 0
安装
1
版本
#latest

概述

Bank of Korea ECOS CLI

Minimal command-line client for the Bank of Korea Economic Statistics System (ECOS) Open API.

  • List available statistic tables
  • Fetch time series by statistic code and frequency (A,S,Q,M,D)
  • JSON output, suitable for piping to jq or saving to files

Installation

Clone and run in a virtualenv (or install once on your host/agent image):

python -m venv .venv && source .venv/bin/activate
pip install -e .

Usage

Environment variables:

  • BOK_API_KEY (required) — your ECOS API key
  • BOK_LANG (optional) — kr or en (default: kr)

Examples:

# Help
ecos-cli -h

# List statistic tables (first 1000)
ecos-cli table-list | jq '.[] | .[]? // .'

# Fetch a monthly time series for a statistic code between start/end dates
ecos-cli series 722Y001 M 202001 202412 | jq .

Notes:

  • Date formats depend on the cycle: YYYY for A/S, YYYYQQ for Q (ECOS accepts YYYYQ# in some cases), YYYYMM for M, YYYYMMDD for D.
  • Output structure is a direct passthrough of the ECOS JSON response.

API references

  • ECOS API portal: https://ecos.bok.or.kr/api/
  • StatisticTableList: /StatisticTableList/{API_KEY}/json/{lang}/{start}/{end}/
  • StatisticSearch: /StatisticSearch/{API_KEY}/json/{lang}/{start}/{end}/{STAT_CODE}/{CYCLE}/{START}/{END}/

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-05-07 16:57 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

business-ops

Finance Automation

chloepark85
通过 Stripe Webhooks 和实时 Telegram 通知,自动化支付、发票、费用和财务报告,实现财务高效管理。
★ 0 📥 1,935
dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 72 📥 182,114
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 679 📥 328,287