Skip to main content

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

pyBCRA Logo

PyPI version Python 3.7+ License: CC BY-NC 4.0 pandas requests Argentina Documentation

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:

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

🔑 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.

📜 Licencia

Este proyecto está licenciado bajo Creative Commons Attribution-NonCommercial 4.0 International License.


pyBCRA Logo 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:

Note: All documentation is available in both Spanish and English. Each file includes both languages with clear separation.

Main Data Areas

🔑 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.

📜 License

This project is licensed under Creative Commons Attribution-NonCommercial 4.0 International License.

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

pybcradata-0.4.4.tar.gz (298.4 kB view details)

Uploaded Source

Built Distribution

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

pybcradata-0.4.4-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

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

Hashes for pybcradata-0.4.4.tar.gz
Algorithm Hash digest
SHA256 8c70c094f14895e22dc47e8bc550431044dfc158f9bbd73c58b49ccfc3bae5c4
MD5 7b3f8adc94db1b17229f9f4e729477b4
BLAKE2b-256 f73e96145ee1021f4a0c75c06104320af0d558f6d220faa33ac94e8351b64350

See more details on using hashes here.

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

Hashes for pybcradata-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8d1512441bb7cba049597bccb719127689bb7499dfddf037c9b3191236c9707c
MD5 55948413ddb0a163c06790b0d6808bc0
BLAKE2b-256 3a55514003b725e1e5ceab06ceb09e830ce037b1722b175353710636d6eda6fd

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