Logomarca da FGV

Repositório FGV de Periódicos e Revistas

GetHFData: A R package for downloading and aggregating high frequency trading data from Bovespa

Marcelo Scherer Perlin, Henrique P. Ramos


This paper introduces GetHFData, a R package for downloading, importing and aggregating high frequency trading data from the Brazilian financial market. Based on a set of user choices, the package GetHFData will download the required files directly from Bovespa’s ftp site and aggregate the financial data. The main objective of the publication of this software is to facilitate the computational effort related to research based on this large financial dataset and also to increase the reproducibility of studies by setting a replicable standard for data acquisition and processing. In this paper we present the available functions of the software, a brief description of the Brazilian market and several reproducible examples of usage.


high frequency data, Bovespa, market microstructure, R, reproducible research

Full Text:


RBFin - Brazilian Review of Finance, rbfin@fgv.br, (+55-21) 2598-9800
A publication of the Brazilian Society of Finance