Cliente Python para acceder a estadísticas monetarias, datos de tipo de cambio e información de deudores del Banco Central de la República Argentina (BCRA)
Project description
Cliente Python para acceder a estadísticas monetarias, datos de tipo de cambio e información de deudores publicados por el Banco Central de la República Argentina (BCRA). Diseñado para economistas, analistas y desarrolladores que trabajan con datos macroeconómicos.
📍 Repositorio GitHub: https://github.com/morabdiego/pyBCRA
🛆 Instalación
pip install pyBCRAdata
Requiere Python 3.7+, requests y pandas. Ver documentación de instalación para más detalles.
📊 Ejemplo Rápido
from pyBCRAdata import monetary, currency, checks, debtors
# Obtener variables monetarias
variables = monetary.variables()
# Obtener cotización por fecha de todas las divisas
cotizacion = currency.rates(fecha="2024-01-01")
# Obtener entidades bancarias
bancos = checks.banks()
# Consultar deudores
deudas = debtors.debtors(identificacion="12345678")
O usando el cliente completo:
from pyBCRAdata import BCRAclient
# Inicializar cliente
client = BCRAclient()
# Obtener tasa de política monetaria
df = client.monetary.series(
id_variable="6", # Tasa de Política Monetaria (en % n.a.)
desde="2024-01-01",
hasta="2024-03-21"
)
print(df.head())
# Obtener cotización histórica del dólar
usd = client.currency.series(
moneda="USD",
fechadesde="2024-01-01",
fechahasta="2024-03-21"
)
print(usd.head())
📚 Documentación
La documentación completa está disponible en la carpeta docs:
- Documentación de Instalación - Instrucciones para la instalación
- Referencia de API - Información detallada sobre cada método
Nota: Toda la documentación está disponible en español e inglés. Cada archivo incluye ambos idiomas con una separación clara.
Principales áreas de datos
- Estadísticas Monetarias - Variables monetarias y series históricas
- Estadísticas Cambiarias - Monedas, cotizaciones y series históricas
- Central de Deudores - Deudores, historial y cheques rechazados
- Cheques Denunciados - Bancos y cheques denunciados
🔑 Acceso a la API
Este cliente interactúa con las APIs públicas del BCRA disponibles en el Catálogo de APIs del BCRA.
No se requiere token de autenticación, pero tenga en cuenta que:
- El BCRA puede implementar limitaciones de tasa basadas en dirección IP
- Considere implementar caché para datos de acceso frecuente
Para información detallada sobre manejo de errores, respuestas del servidor y avisos legales, consulte directamente la página del Catálogo de APIs del BCRA. Este proyecto es únicamente un cliente para facilitar el acceso a los datos y toda responsabilidad legal corresponde al BCRA como proveedor de la API.
👋 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 monetary statistics, exchange rate data, and debtor information published by the Central Bank of the Argentine Republic (BCRA).
Designed for economists, analysts, and developers working with macroeconomic data.
📍 GitHub Repository: https://github.com/morabdiego/pyBCRA
🛆 Installation
pip install pyBCRAdata
Requires Python 3.7+, requests, and pandas. See installation documentation for more details.
📊 Quick Example
from pyBCRAdata import monetary, currency, checks, debtors
# Get monetary variables
variables = monetary.variables()
# Get USD exchange rate
cotizacion = currency.rates(fecha="2024-01-01")
# Get bank entities
bancos = checks.banks()
# Query debtors
deudas = debtors.debtors(identificacion="12345678")
Or using the complete client:
from pyBCRAdata import BCRAclient
# Initialize client
client = BCRAclient()
# Get monetary policy rate
df = client.monetary.series(
id_variable="6", # Monetary Policy Rate (in % p.a.)
desde="2024-01-01",
hasta="2024-03-21"
)
print(df.head())
# Get historical USD exchange rate
usd = client.currency.series(
moneda="USD",
fechadesde="2024-01-01",
fechahasta="2024-03-21"
)
print(usd.head())
📚 Documentation
Complete documentation is available in the docs folder:
- Installation Documentation - Installation instructions
- API Reference - Detailed information about each method
Note: All documentation is available in both Spanish and English. Each file includes both languages with clear separation.
Main Data Areas
- Monetary Statistics - Monetary variables and historical series
- Exchange Rate Statistics - Currencies, exchange rates and historical series
- Debtors Central - Debtors, history and rejected checks
- Reported Checks - Banks and reported checks
🔑 API Access
This client interacts with the public BCRA APIs available in the BCRA API Catalog.
No authentication token is required, but please note that:
- The BCRA may implement rate limitations based on IP address
- Consider implementing caching for frequently accessed data
For detailed information on error handling, server responses, and legal notices, please refer directly to the BCRA API Catalog page. This project is solely a client to facilitate data access, and all legal responsibility belongs to the BCRA as the API provider.
👋 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pybcradata-0.4.4.tar.gz.
File metadata
- Download URL: pybcradata-0.4.4.tar.gz
- Upload date:
- Size: 298.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c70c094f14895e22dc47e8bc550431044dfc158f9bbd73c58b49ccfc3bae5c4
|
|
| MD5 |
7b3f8adc94db1b17229f9f4e729477b4
|
|
| BLAKE2b-256 |
f73e96145ee1021f4a0c75c06104320af0d558f6d220faa33ac94e8351b64350
|
File details
Details for the file pybcradata-0.4.4-py3-none-any.whl.
File metadata
- Download URL: pybcradata-0.4.4-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d1512441bb7cba049597bccb719127689bb7499dfddf037c9b3191236c9707c
|
|
| MD5 |
55948413ddb0a163c06790b0d6808bc0
|
|
| BLAKE2b-256 |
3a55514003b725e1e5ceab06ceb09e830ce037b1722b175353710636d6eda6fd
|