Skip to main content

BRVM Data

Python data access for the Bourse Régionale des Valeurs Mobilières (BRVM), built from the exchange's daily market bulletins.

The package downloads bulletin PDFs, stores the extracted source data in SQLite, and exposes it as pandas DataFrames. It currently covers:

  • listed equities and dividend observations;
  • headline, compartment, total return, and sector index observations;
  • bond, sukuk, securitized debt, and convertible instrument quote rows;
  • OPCVM fund net asset value observations.

This is a BRVM package. Other African exchanges require their own data sources and exchange-specific extractors.

Install

Requires Python 3.10 or newer. Install the package from PyPI with:

python -m pip install brvm-data

To install from a downloaded or cloned source folder instead, run this from its root:

python -m pip install .

Download and process bulletins

For an initial historical backfill:

brvm-update --start 2025-01-01

For a daily update, continue from the latest bulletin already stored:

brvm-update

To process PDFs already in bulletins/ without downloading:

brvm-update --no-download

The default database is brvm.db in the current directory. The default PDF folder is bulletins/. Use --db and --folder to change either location. Bulletin downloads are limited to weekdays; days without a published file are reported and skipped.

Read the data

import brvm

equities = brvm.load_equities("SNTS", start="2026-01-01")
prices = brvm.load_prices("SNTS", start="2026-01-01")
dividends = brvm.load_dividends("SNTS")

indices = brvm.load_indices("BRVM COMPOSITE", start="2025-01-01")
bonds = brvm.load_fixed_income("TPCI.O90", start="2025-01-01")
funds = brvm.load_funds(start="2025-01-01")

All loaders return pandas DataFrames. Prices and rates are parsed as numbers; missing or non-quoted prices are null. The daily bulletin does not provide equity high/low prices. The bulletin's sector indices use different base dates; the loader preserves that distinction in names such as BRVM - SERVICES PUBLICS [base 1999] and BRVM - SERVICES PUBLICS [base 2025].

Data and limitations

  • The bulletin is the source of record; this package is an extractor, not an official BRVM API.
  • Suspended and non-quoted prices are not treated as traded prices.
  • A computed equity return can differ from the printed variation. The pipeline reports these as data-quality warnings for review.
  • Fixed-income instruments may have no trade on a given day. Coupon details are still reported separately from the daily trading price.
  • The historical PDFs and generated SQLite database are local data and are not included in the source repository.

Development

Run the automated tests with:

python -m unittest discover -s tests -v

The GitHub Actions workflow runs the same tests on pushes and pull requests. The tests use synthetic table rows and do not require network access or the historical bulletin PDFs.

Metadata

Release files for brvm-data 0.2.0

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

Source distribution (sdist)

Source distribution for brvm-data 0.2.0
File Size Uploaded Provenance Actions
brvm_data-0.2.0.tar.gz 19.2 kB With provenance Details for brvm_data-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for brvm-data 0.2.0
File Interpreter ABI Platform Actions
brvm_data-0.2.0-py3-none-any.whl Python 3 none any Details for brvm_data-0.2.0-py3-none-any.whl

Total release size: 37.2 kB

Release files / brvm_data-0.2.0.tar.gz

Download URL brvm_data-0.2.0.tar.gz
Size 19.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b051cf17d6b231c219c3c6d98f62514c0a3293e496e2bde84ec25c9e0bae7a02
BLAKE2b-256 checksum
How to use checksums
1379da7f2d144a696951d772eaefa153d9a1da5be80077e80fef913dc4ff43c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 3, 2026.

Transparency log

Release files / brvm_data-0.2.0-py3-none-any.whl

Download URL brvm_data-0.2.0-py3-none-any.whl
Size 18.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ad25ded12f1036a66d190dedc7181fc33646280fa6eb249346e0e7cdb9bff22
BLAKE2b-256 checksum
How to use checksums
953bb44f04cc2969535911d1edee4a6248c3a9db9069b04a0a8a501aa502d7f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 3, 2026.

Transparency log

Security for brvm-data 0.2.0

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for brvm_data-0.2.0.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 Dec 3, 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.2.0 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