Skip to main content

CLI for accessing European electricity balancing market data via the Balancing Services REST API

Project description

balancing-services-cli

Command-line interface for the Balancing Services REST API - access European electricity balancing market data directly from your terminal.

Installation

uv add balancing-services-cli

Or with pip:

pip install balancing-services-cli

Or run without installing via uvx:

uvx balancing-services-cli imbalance-prices --area EE --start 2025-01-01T00:00:00Z --end 2025-01-02T00:00:00Z

Authentication

Provide your API token via the --token option:

bs-cli --token your-token-here imbalance-prices --area EE --start 2025-01-01T00:00:00Z --end 2025-01-02T00:00:00Z

Usage

# CSV to stdout (default)
bs-cli imbalance-prices --area EE --start 2025-01-01T00:00:00Z --end 2025-01-02T00:00:00Z

# Save to CSV file
bs-cli imbalance-prices --area EE --start 2025-01-01T00:00:00Z --end 2025-01-02T00:00:00Z -o prices.csv

# Save to Parquet
bs-cli imbalance-prices --area EE --start 2025-01-01T00:00:00Z --end 2025-01-02T00:00:00Z -o prices.parquet

# Balancing energy commands (require --reserve-type)
bs-cli energy-prices --area EE --start 2025-01-01T00:00:00Z --end 2025-01-02T00:00:00Z --reserve-type aFRR
bs-cli energy-bids --area EE --start 2025-01-01T00:00:00Z --end 2025-01-02T00:00:00Z --reserve-type mFRR

# Balancing capacity commands (require --reserve-type)
bs-cli capacity-prices --area EE --start 2025-01-01T00:00:00Z --end 2025-01-02T00:00:00Z --reserve-type aFRR
bs-cli capacity-bids --area EE --start 2025-01-01T00:00:00Z --end 2025-01-02T00:00:00Z --reserve-type FCR

Commands

Command Description
imbalance-prices Imbalance prices
imbalance-volumes Imbalance total volumes
energy-activated Balancing energy activated volumes
energy-offered Balancing energy offered volumes
energy-prices Balancing energy prices
energy-bids Balancing energy bids (auto-paginates)
energy-cbpm Cross-border purchased marginal prices (auto-paginates)
energy-cross-border-volumes Cross-border balancing energy volumes
energy-day-ahead-prices Day-ahead wholesale energy prices (EXPERIMENTAL, auto-paginates)
capacity-bids Balancing capacity bids (auto-paginates)
capacity-prices Balancing capacity prices
capacity-procured Balancing capacity procured volumes
capacity-cross-zonal Cross-zonal capacity allocation

Output Formats

  • CSV (default): Written to stdout or file. Use with Excel, DuckDB, Polars, pandas, etc.
  • Parquet: Must specify -o file.parquet.

Global Options

Option Description
--token API bearer token
-o, --output Output file path (auto-detects format from .csv/.parquet extension)
-f, --format Override output format (csv, parquet)

Project details


Download files

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

Source Distribution

balancing_services_cli-1.11.0.tar.gz (20.4 kB view details)

Uploaded Source

Built Distribution

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

balancing_services_cli-1.11.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file balancing_services_cli-1.11.0.tar.gz.

File metadata

  • Download URL: balancing_services_cli-1.11.0.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"openSUSE Tumbleweed","version":"20260510","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for balancing_services_cli-1.11.0.tar.gz
Algorithm Hash digest
SHA256 c240a5afca409c731eee014153d13ba0a9561ec3b3f34f37bbc91f124fcd3f35
MD5 9e24fbced7c3a2c0d735afe577e6f9af
BLAKE2b-256 ecf885a1ffe184e9f6ff4da17ec49c08383e3df73737eeb3192a4924d7036c7f

See more details on using hashes here.

File details

Details for the file balancing_services_cli-1.11.0-py3-none-any.whl.

File metadata

  • Download URL: balancing_services_cli-1.11.0-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"openSUSE Tumbleweed","version":"20260510","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for balancing_services_cli-1.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ac7046ba0beff8ccd82f2fbeb297c2e7839aa7016c3495af240acd1e8d68b64
MD5 97d3e9664c9fa18948061c8036c1ebb3
BLAKE2b-256 7fc7807af516e36886dca3304df761e3fc6cee5ed469d3010b3e37d936ac39c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page