bmv-cli
A command-line interface for Mexican stock market (BMV/BIVA) data via the DataBursatil API v2.
Get real-time quotes, currency rates, API credits, search for symbols, and dividend information — all from your terminal.
Installation
uv tool (recommended)
uv tool install bmv-cli
pipx
pipx install bmv-cli
pip
pip install bmv-cli
Setup
You need a DataBursatil API token. Get one at https://www.databursatil.com.
Set the token as an environment variable:
export BMV_API_TOKEN="your-token-here"
For local development, you can also create a .env file in the project root:
cp .env.sample .env
# Edit .env and add your BMV_API_TOKEN
Usage
All commands require the BMV_API_TOKEN environment variable.
Get real-time prices
bmv price GFNORTEO WALMEX*
Get currency exchange rates
bmv currencies
Check remaining API credits
bmv credits
Search for stock symbols
bmv search WALMEX
bmv search GFNORTE --market global
Get dividend information
bmv dividend FMTY14
bmv dividend WALMEX*
Development
# Clone and setup
git clone https://github.com/AxelBerrelleza/bmv-cli.git
cd bmv-cli
uv sync --extra dev
# Run quality gates
uv run ruff format --check .
uv run ruff check .
uv run mypy src/bmv_cli/api src/bmv_cli/commands
uv run pytest
# Run the CLI during development
uv run bmv --help
See AGENTS.md for detailed development instructions.
Metadata
Release files for bmv-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bmv_cli-0.1.0.tar.gz | 8.7 kB | Without provenance | Details for bmv_cli-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bmv_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for bmv_cli-0.1.0-py3-none-any.whl |
Total release size: 21.2 kB
Release files / bmv_cli-0.1.0.tar.gz
| Download URL | bmv_cli-0.1.0.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8540bc9af585628866f14c975da6dbb174d66b184c52c2da4646ada2e04b336
|
|
BLAKE2b-256 checksum How to use checksums |
76b8d1b03631ed05826c3cc0d0a1acdea8e65247551e18f78c43681c8926c575
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / bmv_cli-0.1.0-py3-none-any.whl
| Download URL | bmv_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
274e7926934942f9217a2390cd0699e372cd8fec63f46d092062ea406860e402
|
|
BLAKE2b-256 checksum How to use checksums |
2b964abbc2a4baf1074fa5f4cb3fd2fd0c3d4d1e8cc700ea09f8e808d8e75b42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for bmv-cli 0.1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.