{"id":21869729,"url":"https://github.com/jaldekoa/bcra-wrapper","last_synced_at":"2025-04-14T23:42:15.589Z","repository":{"id":237078264,"uuid":"793771756","full_name":"Jaldekoa/BCRA-Wrapper","owner":"Jaldekoa","description":"BCRA Wrapper in Python: A Python wrapper to easily retrieve data from the BCRA in Pandas format using the official API.","archived":false,"fork":false,"pushed_at":"2024-12-19T13:48:12.000Z","size":96,"stargazers_count":19,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T09:09:45.786Z","etag":null,"topics":["finance","finance-api","python","python-api-wrapper"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jaldekoa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-29T20:49:43.000Z","updated_at":"2025-03-21T03:56:20.000Z","dependencies_parsed_at":"2024-05-03T14:19:25.912Z","dependency_job_id":null,"html_url":"https://github.com/Jaldekoa/BCRA-Wrapper","commit_stats":null,"previous_names":["jaldekoa/bcra-wrapper"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaldekoa%2FBCRA-Wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaldekoa%2FBCRA-Wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaldekoa%2FBCRA-Wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaldekoa%2FBCRA-Wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jaldekoa","download_url":"https://codeload.github.com/Jaldekoa/BCRA-Wrapper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248981258,"owners_count":21193143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["finance","finance-api","python","python-api-wrapper"],"created_at":"2024-11-28T06:09:02.474Z","updated_at":"2025-04-14T23:42:15.576Z","avatar_url":"https://github.com/Jaldekoa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bcraapi: Python API for BCRA (Banco Central de la República Argentina)\n![Tests](https://github.com/Jaldekoa/BCRA-Wrapper/actions/workflows/python-package.yml/badge.svg)\n\nbcraapi is a Python wrapper for BCRA APIs provided by Banco Central de la República Argentina itself.\nIt makes use of requests and pandas and returns the data in a pandas DataFrame.\n\nThe BCRA API does not require tokens or registration, so do not hesitate to use it.\n\n## Installation\n```commandline\npip install bcraapi\n```\n\n## APIs of the BCRA\n\n- ### Estadísticas cambiarias v1.0\nYou will be able to access to resources related to exchange rate information published by the BCRA.\n\n- ### Cheques denunciados v1.0\nYou will be able to consult reported, lost, stolen or adulterated checks. The information available here is provided by the financial entities operating in the country and is published without alterations.\n\n- ### Estadísticas v3.0\nYou will be able to access resources related to the main and monetary variables information published by the BCRA. \n\n- ### Central de Deudores v1.0\nYou will be able to access resources related to the main variables information published by the BCRA. \n\n\n## API Cheques denunciados v1.0\n### Entidades\nMethod to obtain the list of all the banking entities in the country with their respective entity code.\n\n```python\nfrom bcraapi import cheques\n\ndf = cheques.entidades()\n```\n#### Returns \nDataFrame with the list of all the banking entities in the country with their respective entity code.\n\n\n### Denunciados\nMethod to know if a check from a certain entity is registered as reported or not.\n\n```python\nfrom bcraapi import cheques\n\ndf = cheques.denunciados(codigo_entidad=11, numero_cheque=20377516)\n```\n### Args\n| Parameter        | Type  | Description                                                                                                                              |\n|------------------|-------|------------------------------------------------------------------------------------------------------------------------------------------|\n| `codigo_entidad` | `int` | ID of the financial entity. It can be queried via `entidades()`.                                                                         |\n| `numero_cheque`  | `int` | Corresponds to the check number to be consulted. |\n\n#### Returns \nDataFrame with the result if a check is registered as reported or not.\n\n\n## API Estadísticas v3.0\n### Monetarias\nMethod to obtain the list of all variables published by the BCRA.\n\n```python\nfrom bcraapi import estadisticas\n\ndf = estadisticas.monetarias()\n```\n\nMethod to obtain the values for the variable and date range indicated.\n\n```python\nfrom bcraapi import estadisticas\n\ndf = estadisticas.monetarias(id_variable=1, desde=\"2024-02-01\", hasta=\"2024-02-05\")\n```\n\n### Args\n| Parameter     | Type  | Description                                                                         |\n|---------------|-------|-------------------------------------------------------------------------------------|\n| `id_variable` | `int` | ID of the desired variable.                                                         |\n| `desde`       | `str` | The start date of the range to be queried, **it must be in the format YYYY-MM-DD**. |\n| `hasta`       | `str` | The end date of the range to be queried, it **must be in the format YYYY-MM-DD**.   |\n| `offset`      | `int` | Records to discard for paging. Default: 0.                                          |\n| `limit`       | `int` | Records to be returned by the service. The maximum value is 3000. Default: 1000.    |\n\n#### Returns \nDataFrame with the values for the selected variable and date range.\n\n## API Estadísticas Cambiarias v1.0\n### Maestro de monedas\nMethod to obtain the list of all ISO currencies in force, with their respective denominations.\ndenomination.\n\n```python\nfrom bcraapi import estadisticascambiarias\n\ndf = estadisticascambiarias.maestros_divisas()\n```\n#### Returns \nDataFrame with the list of currencies of the BCRA.\n\n### Cotizaciones por fecha\nMethod to obtain the list of all current foreign exchange rates published by the BCRA for a given date (yyyy-MM-dd).\nBCRA for a given date. If no date is entered, the last existing quote will be returned.\nthe last existing quotation will be returned.\n\n```python\nfrom bcraapi import estadisticascambiarias\n\ndf = estadisticascambiarias.cotizaciones(fecha=\"2024-06-12\")\n```\n\n### Args\n| Parameter | Type  | Description                                                               |\n|-----------|-------|---------------------------------------------------------------------------|\n| `fecha`   | `str` | Date of the data to be consulted, it must have the format **YYYY-MM-DD**. |\n\n#### Returns \nDataFrame with the values for the selected date.\n\n### Evolución de moneda\nMethod to obtain the price evolution of a currency (ISO) in a particular date range.\nIf the date from and date to parameters are not entered, the last existing quote will be returned.\nthe last existing quote will be returned.\n\n```python\nfrom bcraapi import estadisticascambiarias\n\ndf = estadisticascambiarias.cotizaciones_moneda(moneda=\"USD\")\n```\n\n### Args\n| Parameter     | Type  | Description                                                                                    |\n|---------------|-------|------------------------------------------------------------------------------------------------|\n| `moneda`      | `str` | ISO currency. **This parameter is required**                                                   |\n| `fecha_desde` | `str` | The start date of the range to be queried, **it must be in the format YYYY-MM-DD**.            |\n| `fecha_hasta` | `str` | The end date of the range to be queried, **it must be in the format YYYY-MM-DD**.              |\n| `limit`       | `int` | Maximum amount to be returned per application. **Must be greater than 10 and less than 1000**. |\n| `ofset`       | `int` | Exclude from the answer the first N elements of the contributions to be refunded..              |\n\n#### Returns \nDatarame with the evolution of the exchange rate of a currency.\n\n\n## API Central de Deudores v1.0\n### Deudas \nMethod to obtain the credit situation, amount of debt, days in arrears and observations corresponding to the last period reported by the entities to the BCRA.\n\n```python\nfrom bcraapi import centraldeudores\n\ndf = centraldeudores.deudas(30500010912)\n```\n\n### Args\n| Parameter        | Type  | Description                                                      |\n|------------------|-------|------------------------------------------------------------------|\n| `identificacion` | `str` | Corresponds to CUIT/CUIL/CDI, **it must be 11 characters long**. |\n\n#### Returns \nDataFrame with the credit situation, amount of debt, days in arrears and observations corresponding to the last period reported by the entities to the BCRA.\n\n\n### Deudas Históricas\nMethod to obtain the credit situation for the last 24 months.\n\n```python\nfrom bcraapi import centraldeudores\n\ndf = centraldeudores.deudas_historicas(30500010912)\n```\n\n### Args\n| Parameter        | Type  | Description                                                      |\n|------------------|-------|------------------------------------------------------------------|\n| `identificacion` | `str` | Corresponds to CUIT/CUIL/CDI, **it must be 11 characters long**. |\n\n#### Returns \nDataFrame with the credit situation for the last 24 months.\n\n### Cheques Rechazados\nMethod to obtain the rejected checks with their corresponding reasons.\n\n```python\nfrom bcraapi import centraldeudores\n\ndf = centraldeudores.cheques_rechazados(30717283186)\n```\n\n### Args\n| Parameter        | Type  | Description                                                      |\n|------------------|-------|------------------------------------------------------------------|\n| `identificacion` | `str` | Corresponds to CUIT/CUIL/CDI, **it must be 11 characters long**. |\n\n#### Returns \nDataFrame with the rejected checks with their corresponding reasons.\n\n## API Documentation:\n- [APIs del Banco Central](https://www.bcra.gob.ar/BCRAyVos/catalogo-de-APIs-banco-central.asp)\n- [API Estadísticas Cambiarias v1.0](https://www.bcra.gob.ar/Catalogo/apis.asp?fileName=estadisticascambiarias-v1\u0026sectionName=estadisticascambiarias)\n- [API Cheques v1.0](https://www.bcra.gob.ar/Catalogo/apis.asp?fileName=cheques-v1\u0026sectionName=Cheques)\n- [API Estadísticas v3.0](https://www.bcra.gob.ar/Catalogo/apis.asp?fileName=principales-variables-v3\u0026sectionName=Estad%EDsticas)\n- [API Central de Deudores v1.0](https://www.bcra.gob.ar/Catalogo/apis.asp?fileName=central-deudores-v1\u0026sectionName=Central%20de%20Deudores)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaldekoa%2Fbcra-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaldekoa%2Fbcra-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaldekoa%2Fbcra-wrapper/lists"}