Cliente Python para acceder a las APIs públicas del Banco Central de la República Argentina (BCRA): Estadísticas Monetarias (v4.0), Estadísticas Cambiarias, Central de Deudores, Cheques Denunciados y Régimen de Transparencia. Diseñado para economistas, analistas y desarrolladores que trabajan con datos macroeconómicos y financieros.
📍 Repositorio GitHub: https://github.com/morabdiego/pyBCRA
📦 Instalación
pip install pyBCRAdata
Requiere Python 3.9+, requests y pandas. Ver documentación de instalación para más detalles.
📊 Ejemplo Rápido
from pyBCRAdata import monetary, currency, checks, debtors, transparency
# Estadísticas Monetarias v4.0
variables = monetary.variables(categoria="Principales Variables")
reservas = monetary.series(id_variable=1, desde="2025-01-01")
metodologia = monetary.methodology(id_variable=1)
# Estadísticas Cambiarias
cotizacion = currency.rates(fecha="2024-01-15")
# Cheques y Central de Deudores
bancos = checks.banks()
deudas = debtors.debtors(identificacion="20123456789")
# Régimen de Transparencia
plazos_fijos = transparency.fixed_terms(codigoEntidad=11)
tarjetas = transparency.credit_cards()
O usando el cliente configurable:
from pyBCRAdata import BCRAclient
client = BCRAclient(timeout=30.0)
# Obtener serie histórica (v4.0)
df = client.monetary.series(id_variable=1, desde="2025-01-01", hasta="2025-03-31")
print(df.head())
# Comparar tasas de plazos fijos por entidad
pf = client.transparency.fixed_terms(codigoEntidad=11)
print(pf.head())
📚 Documentación
La documentación completa está disponible en la carpeta docs (en español e inglés):
Áreas de datos cubiertas
- Estadísticas Monetarias v4.0 — Catálogo con filtros, series históricas y metodologías
- Régimen de Transparencia — Cajas de ahorro, paquetes, plazos fijos, préstamos y tarjetas de crédito
- Estadísticas Cambiarias — Divisas, cotizaciones diarias y series históricas
- Central de Deudores — Deudas actuales, historial y cheques rechazados
- Cheques Denunciados — Entidades bancarias y cheques denunciados
🔑 Acceso a la API
Este cliente interactúa con las APIs públicas del BCRA documentadas en APIs del Banco Central. No requiere token de autenticación.
👋 Acerca de
Creado por Diego Mora — Economista y Desarrollador Python.
- GitHub
- 📧 Email: morabdiego@gmail.com
📜 Licencia
Este proyecto está licenciado bajo Creative Commons Attribution-NonCommercial 4.0 International License.
Python client to access the public APIs of the Central Bank of the Argentine Republic (BCRA): Monetary Statistics (v4.0), Exchange Rate Statistics, Debtors Central, Reported Checks, and Transparency Regime. Designed for economists, analysts, and developers working with macroeconomic and financial data.
📍 GitHub Repository: https://github.com/morabdiego/pyBCRA
📦 Installation
pip install pyBCRAdata
Requires Python 3.9+, requests, and pandas. See installation documentation for more details.
📊 Quick Example
from pyBCRAdata import monetary, currency, checks, debtors, transparency
# Monetary Statistics v4.0
variables = monetary.variables(categoria="Principales Variables")
reserves = monetary.series(id_variable=1, desde="2025-01-01")
methodology = monetary.methodology(id_variable=1)
# Exchange Rate Statistics
rates = currency.rates(fecha="2024-01-15")
# Checks and Debtors Central
banks = checks.banks()
debts = debtors.debtors(identificacion="20123456789")
# Transparency Regime
fixed_terms = transparency.fixed_terms(codigoEntidad=11)
credit_cards = transparency.credit_cards()
Or using the configurable client:
from pyBCRAdata import BCRAclient
client = BCRAclient(timeout=30.0)
# Fetch historical monetary series (v4.0)
df = client.monetary.series(id_variable=1, desde="2025-01-01", hasta="2025-03-31")
print(df.head())
# Compare fixed-term deposit rates by bank entity
pf = client.transparency.fixed_terms(codigoEntidad=11)
print(pf.head())
📚 Documentation
Complete documentation is available in docs (in both Spanish and English):
Covered Data Areas
- Monetary Statistics v4.0 — Filtered catalog, historical series, and methodologies
- Transparency Regime — Savings accounts, product packages, fixed terms, loans, and credit cards
- Exchange Rate Statistics — Currencies, daily exchange rates, and historical series
- Debtors Central — Current debts, history, and rejected checks
- Reported Checks — Banking entities and reported checks
🔑 API Access
This client interacts with the public BCRA APIs documented at BCRA APIs. No authentication token is required.
👋 About
Created by Diego Mora — Economist and Python Developer.
- GitHub
- 📧 Email: morabdiego@gmail.com
📜 License
This project is licensed under Creative Commons Attribution-NonCommercial 4.0 International License.
Metadata
Release files for pyBCRAdata 1.0.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 |
|---|---|---|---|---|
| pybcradata-1.0.0.tar.gz | 296.9 kB | Without provenance | Details for pybcradata-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pybcradata-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for pybcradata-1.0.0-py3-none-any.whl |
Total release size: 306.6 kB
Release files / pybcradata-1.0.0.tar.gz
| Download URL | pybcradata-1.0.0.tar.gz |
|---|---|
| Size | 296.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
deb1acff7774f0f4ed693f9a6f47fd47ad64ef3789fdefb8ea9cc37c57f7e1ad
|
|
BLAKE2b-256 checksum How to use checksums |
79c40abbfb5718eef22ca167e81acf184f8974425547a66368c09ffb7765e070
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Release files / pybcradata-1.0.0-py3-none-any.whl
| Download URL | pybcradata-1.0.0-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bea6552dd8551f00b51979d8ea898f24f84526bd02f5d0e0be028eef9608f026
|
|
BLAKE2b-256 checksum How to use checksums |
7b022725ccdfe98d90d9a77435dd6ccf315187835dad1428c26204e891adda6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Security for pyBCRAdata 1.0.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.