BCRA_bot
a Twitter bot for economists
@BCRA_bot is a Twitter bot that tweets daily updates of Argentina’s monetary statistics, with data of the Central Bank of Argentina (BCRA).
The Github repo for this project can be found at manzisebastian/BCRA_bot.
This project started with a simple import requests
way back in november 2021, while testing a third-party API called Estadísticas BCRA to gather key monetary metrics. The very first goal was only to create a heatmap of daily changes of Foreign exchange reserves (which I did, and can be accessed here).
A few months later, the idea of making a bot camse to my mind and I immediately get to work on this project. I wanted a simple, automated way to publish monetary statistics—which are a fairly common topic of discussion in Argentina—on a daily basis, to make this information more accessible and engaging. That is how @BCRA_bot was concieved.
After a few attempts, the first version of the bot was launched in July 2022. It consisted in two separated ways of extracting data: given that the third-party API was updated a few hours after BCRA’s official website, it used web scraping to get the latest data and requested historical data through the API.
The code experienced minor changes and kept adding features (such as weekly and monthly analyses and graphs) until 2024, when the BCRA launched its own official API, allowing the bot to be 100% reliant on it.
As of December 2024, the bot is still running and continously adding new features. Below, you can find a sample tweet.
-- Componentes Base Monetaria --
— BCRA_bot (@BCRA_bot) December 27, 2024
La base monetaria es de $28.372B.
Composición:
- Circulante monetario: $19.3459B (68.19%)
- Billetes y monedas: $17244.2510B (89136.68%)
- Efectivo en ent. fin.: $2,101,601M (10.86%)
- Depósitos en CC del BCRA: $9.0261B (31.81%)
Note: given Twitter’s policy changes regarding bots, @BCRA_bot may sporadically go offline. If the bot is not working as you are reading this, feel free to contact me through any of the usual channels.