BCRA API Connector
A Python connector for the BCRA (Banco Central de la República Argentina) APIs, covering Principal Variables/Monetary Statistics, Cheques, Exchange Rate Statistics, and Central de Deudores (Debtor Registry).
Features
- Comprehensive Data Access: Fetch Principal Variables, Monetary Statistics, Checks information, Exchange Rates, and Debtor Registry data.
- Central de Deudores: Query debtor information, historical debts, and rejected checks by CUIT/CUIL.
- DataFrame Support: Convert API responses to pandas DataFrames with
to_dataframe()methods. - Historical Data: Easily retrieve and analyze historical time series for any variable.
- Robustness: Built-in retry logic with exponential backoff and safe failure handling.
- Developer Friendly:
- Full Type Hinting for better IDE support.
- Bilingual context (Spanish API / English Wrapper).
- Detailed debug logging.
- Configurable: Options for SSL verification, retries, and timeouts.
Documentation
Full documentation, including installation instructions, usage examples, and API reference, is available at:
Installation
pip install bcra-connector
# With pandas support for DataFrame conversion
pip install bcra-connector[pandas]
For detailed installation instructions and requirements, see our Installation Guide.
Quick Start
Get up and running in seconds:
from bcra_connector import BCRAConnector
# Initialize the connector
connector = BCRAConnector()
# 1. List principal variables published by BCRA
variables = connector.get_principales_variables()
print(f"Found {len(variables)} variables.")
# 2. Get the latest value for a specific variable (e.g., using the ID of the first one)
if variables:
target_var = variables[0]
print(f"Fetching data for: {target_var.descripcion} (ID: {target_var.idVariable})")
latest = connector.get_latest_value(target_var.idVariable)
print(f"Latest Value: {latest.valor} on {latest.fecha}")
# 3. Get historical data (last 30 days)
# (Note: Date range filtering is handled by the API or post-processing)
Contributing
Contributions are welcome! Please read our:
Security
For vulnerability reports, please review our Security Policy.
Change Log
See CHANGELOG.md for a list of changes and version updates.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Disclaimer
This project is not officially affiliated with or endorsed by the Banco Central de la República Argentina. Use at your own risk.
Metadata
Release files for bcra-connector 0.11.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 | |
|---|---|---|---|
| bcra_connector-0.11.0.tar.gz | 94.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bcra_connector-0.11.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 126.4 kB
Release files / bcra_connector-0.11.0.tar.gz
| Download URL | bcra_connector-0.11.0.tar.gz |
|---|---|
| Size | 94.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b964da94cbd29babf89486814d0747d754ac73fe1ce0bc127a262abc6e01bc8
|
|
BLAKE2b-256 checksum How to use checksums |
b709424d4c78799df8f14911d5daa024a03a8be716a811d5c9e2d4f382e19417
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.
Transparency logRelease files / bcra_connector-0.11.0-py3-none-any.whl
| Download URL | bcra_connector-0.11.0-py3-none-any.whl |
|---|---|
| Size | 31.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
daad7eb2b109e2591e1ab5b22f956ed6794ca7cc76f9b9a4f4490a0d5458f9f6
|
|
BLAKE2b-256 checksum How to use checksums |
02f6318a38717e1a560db2486eb2b4f644bca71b9c0396ded773e9a379cea0f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.
Transparency log