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

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.


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.2.tar.gz (223.9 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.2-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file pybcradata-0.4.2.tar.gz.

File metadata

  • Download URL: pybcradata-0.4.2.tar.gz
  • Upload date:
  • Size: 223.9 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.2.tar.gz
Algorithm Hash digest
SHA256 67a48d84c47e120f84799b8ceca0c51aa934e07c35c01bc83c0058b2d8382344
MD5 668cc4982ef624bf462526d6ccf74eab
BLAKE2b-256 e3a05e12662276a8405beeff44d939756116cd65c5760967719ed413007d80f8

See more details on using hashes here.

File details

Details for the file pybcradata-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: pybcradata-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 16.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d3adcda3cfd64c34f10e78be9df3867f2816c183976fddf9c4fad9512ea14a06
MD5 1328c97c8d63a7a9a18957f70865cde2
BLAKE2b-256 33834211777bc8a9bd7f427e852f5a1d12d466d5ab037674d31ccb621e427a79

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