IDEAS home Printed from https://ideas.repec.org/a/brf/journl/v14y2016i3id64587.html

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

Author

Listed:
  • Marcelo Scherer Perlin

    (UFRGS)

  • Henrique P. Ramos

    (UFRGS)

Abstract

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.

Suggested Citation

  • Marcelo Scherer Perlin & Henrique P. Ramos, 2016. "GetHFData: A R package for downloading and aggregating high frequency trading data from Bovespa," Brazilian Review of Finance, Sociedade Brasileira de Finanças, vol. 14(3), pages 443-478, July.
  • Handle: RePEc:brf:journl:v:14:y:2016:i:3:id:64587
    DOI: 10.12660/rbfin.v14n3.2016.64587
    as

    Download full text from publisher

    File URL: https://periodicos.fgv.br/rbfin/article/view/64587
    File Function: Abstract page
    Download Restriction: no

    File URL: https://periodicos.fgv.br/rbfin/article/download/64587/65701
    File Function: Full text
    Download Restriction: no

    File URL: https://libkey.io/10.12660/rbfin.v14n3.2016.64587?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. José Valentim Machado Vicente & Gustavo Silva Araujo & Paula Baião Fisher de Castro & Felipe Noronha Tavares, 2014. "Assessing Day-to-Day Volatility: Does the Trading Time Matter?," Brazilian Review of Finance, Sociedade Brasileira de Finanças, vol. 12(1), pages 41-66, June.
    2. Márcio Gomes Pinto Garcia & Marcelo Cunha Medeiros & Francisco Eduardo de Luna e Almeida Santos, 2014. "Economic gains of realized volatility in the Brazilian stock market," Brazilian Review of Finance, Sociedade Brasileira de Finanças, vol. 12(3), pages 319-349, July.
    3. Brownlees, C.T. & Gallo, G.M., 2006. "Financial econometric analysis at ultra-high frequency: Data handling concerns," Computational Statistics & Data Analysis, Elsevier, vol. 51(4), pages 2232-2245, December.
    4. Back, Kerry & Pedersen, Hal, 1998. "Long-lived information and intraday patterns," Journal of Financial Markets, Elsevier, vol. 1(3-4), pages 385-402, September.
    5. Nelson Ferreira Fonseca & Wagner Moura Lamounier & Aureliano Angel Bressan, 2012. "Abnormal Returns in the Ibovespa Using Models for High-Frequency Data," Brazilian Review of Finance, Sociedade Brasileira de Finanças, vol. 10(2), pages 243-265, June.
    6. Araújo, Gustavo Silva & Barbedo, Claudio Henrique da S. & Vicente, José Valentim M., 2014. "The adverse selection cost component of the spread of Brazilian stocks," Emerging Markets Review, Elsevier, vol. 21(C), pages 21-41.
    7. Andersen, Torben G. & Bollerslev, Tim, 1997. "Intraday periodicity and volatility persistence in financial markets," Journal of Empirical Finance, Elsevier, vol. 4(2-3), pages 115-158, June.
    8. de Jong,Frank & Rindi,Barbara, 2009. "The Microstructure of Financial Markets," Cambridge Books, Cambridge University Press, number 9780521867849, June.
    9. Glosten, Lawrence R. & Milgrom, Paul R., 1985. "Bid, ask and transaction prices in a specialist market with heterogeneously informed traders," Journal of Financial Economics, Elsevier, vol. 14(1), pages 71-100, March.
    10. Paulo Sérgio Ceretta & Fernanda Galvão de Barba & Kelmara Mendes Vieira & Fernando Casarin, 2011. "Intraday volatility forecasting: analysis of alternative distributions," Brazilian Review of Finance, Sociedade Brasileira de Finanças, vol. 9(2), pages 209-226, July.
    11. Marcelo C. Carvalho & Marco Aurélio S. Freire & Marcelo Cunha Medeiros & Leonardo R. Souza, 2006. "Modeling and Forecasting the Volatility of Brazilian Asset Returns: a Realized Variance Approach," Brazilian Review of Finance, Sociedade Brasileira de Finanças, vol. 4(1), pages .55-77, January.
    12. Milton Biage & Newton Carneiro Affonso da Costa Jr. & Waldemar Antonio da Rocha de Souza & Marco Antônio de Oliveira Vieira Goulart, 2010. "O Efeito Dia de Vencimento no Mercado de Opções da Bovespa Revisitado," Economia, ANPEC - Associação Nacional dos Centros de Pós-Graduação em Economia [Brazilian Association of Graduate Programs in Economics], vol. 11(1), pages 53-96.
    13. Groß-Klußmann, Axel & Hautsch, Nikolaus, 2011. "When machines read the news: Using automated text analytics to quantify high frequency news-implied market reactions," Journal of Empirical Finance, Elsevier, vol. 18(2), pages 321-340, March.
    14. Ole E. Barndorff‐Nielsen & Neil Shephard, 2002. "Econometric analysis of realized volatility and its use in estimating stochastic volatility models," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 64(2), pages 253-280, May.
    15. José Carneiro da Cunha Oliveira Neto & Otávio Ribeiro de Medeiros & Thiago Bergmann de Queiroz, 2012. "Corporate Governance and Information Incorporation Speed: Lead-Lag between the IGC and IBrX," Brazilian Review of Finance, Sociedade Brasileira de Finanças, vol. 10(1), pages 149-172, April.
    16. Anat R. Admati, Paul Pfleiderer, 1988. "A Theory of Intraday Patterns: Volume and Price Variability," The Review of Financial Studies, Society for Financial Studies, vol. 1(1), pages 3-40.
    17. Madhavan, Ananth, 2000. "Market microstructure: A survey," Journal of Financial Markets, Elsevier, vol. 3(3), pages 205-258, August.
    18. Robert F. Engle & Jeffrey R. Russell, 1998. "Autoregressive Conditional Duration: A New Model for Irregularly Spaced Transaction Data," Econometrica, Econometric Society, vol. 66(5), pages 1127-1162, September.
    19. Easley, David & O'Hara, Maureen, 1987. "Price, trade size, and information in securities markets," Journal of Financial Economics, Elsevier, vol. 19(1), pages 69-90, September.
    20. Torben G. Andersen & Tim Bollerslev & Francis X. Diebold & Paul Labys, 2003. "Modeling and Forecasting Realized Volatility," Econometrica, Econometric Society, vol. 71(2), pages 579-625, March.
    21. Ziegelmann, Flávio Augusto & Borges, Bruna & Caldeira, João F., 2015. "Selection of Minimum Variance Portfolio Using Intraday Data: An Empirical Comparison Among Different Realized Measures for BM&FBovespa Data," Brazilian Review of Econometrics, Sociedade Brasileira de Econometria - SBE, vol. 35(1), October.
    22. Kyle, Albert S, 1985. "Continuous Auctions and Insider Trading," Econometrica, Econometric Society, vol. 53(6), pages 1315-1335, November.
    23. Douglas G. Santos & Flavio A. Ziegelmann, 2014. "Volatility Forecasting via MIDAS, HAR and their Combination: An Empirical Comparative Study for IBOVESPA," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 33(4), pages 284-299, July.
    24. MArcelo Carvalho & MArco Aurelio Freire & Marcelo Cunha Medeiros & Leonardo Souza, 2006. "Modeling and forecasting the volatility of Brazilian asset returns," Textos para discussão 530, Department of Economics PUC-Rio (Brazil).
    25. Fleming, Jeff & Kirby, Chris & Ostdiek, Barbara, 2003. "The economic value of volatility timing using "realized" volatility," Journal of Financial Economics, Elsevier, vol. 67(3), pages 473-509, March.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Marcelo S. Perlin & Guilherme Kirch & Daniel Vancin, 2019. "Accessing financial reports and corporate events with GetDFPData," Brazilian Review of Finance, Sociedade Brasileira de Finanças, vol. 17(3), pages 85-108, December.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Said, Bahrawar & Raza, Muhammad Wajid & Elshahat, Ahmed & Paltrinieri, Andrea & Oriani, Marco Ercole, 2026. "Decoding the DNA of stock market microstructure: A comprehensive bibliometric and content review analysis," Research in International Business and Finance, Elsevier, vol. 86(C).
    2. Michael McAleer & Marcelo Medeiros, 2008. "Realized Volatility: A Review," Econometric Reviews, Taylor & Francis Journals, vol. 27(1-3), pages 10-45.
    3. Detlef Seese & Christof Weinhardt & Frank Schlottmann (ed.), 2008. "Handbook on Information Technology in Finance," International Handbooks on Information Systems, Springer, number 978-3-540-49487-4, July.
    4. repec:uts:finphd:39 is not listed on IDEAS
    5. Vayanos, Dimitri & Wang, Jiang, 2013. "Market Liquidity—Theory and Empirical Evidence ," Handbook of the Economics of Finance, in: G.M. Constantinides & M. Harris & R. M. Stulz (ed.), Handbook of the Economics of Finance, volume 2, chapter 0, pages 1289-1361, Elsevier.
    6. Ferriani, Fabrizio, 2010. "Informed and uninformed traders at work: evidence from the French market," MPRA Paper 24487, University Library of Munich, Germany.
    7. repec:uts:finphd:38 is not listed on IDEAS
    8. Nikolaus Hautsch, 1999. "Analyzing the Time between Trades with a Gamma Compounded Hazard Model. An Application to LIFFE Bund Future Transactions," Finance 9904002, University Library of Munich, Germany.
    9. V.K., Anand Krishnan & Chalissery, Meera Davi & Thomas, Sony, 2024. "A bibliometric review of Market Microstructure literature: Current status, development, and future directions," Finance Research Letters, Elsevier, vol. 69(PA).
    10. Iordanis Kalaitzoglou & Boulis Maher Ibrahim, 2010. "Does Order Flow in the European Carbon Allowances Market Reveal Information?," CFI Discussion Papers 1003, Centre for Finance and Investment, Heriot Watt University.
    11. Fei Su, 2018. "Essays on Price Discovery and Volatility Dynamics in the Foreign Exchange Market," PhD Thesis, Finance Discipline Group, UTS Business School, University of Technology, Sydney, number 2-2018, January-A.
    12. Kalaitzoglou, Iordanis & Ibrahim, Boulis M., 2013. "Does order flow in the European Carbon Futures Market reveal information?," Journal of Financial Markets, Elsevier, vol. 16(3), pages 604-635.
    13. Roman Huptas, 2014. "Bayesian Estimation and Prediction for ACD Models in the Analysis of Trade Durations from the Polish Stock Market," Central European Journal of Economic Modelling and Econometrics, Central European Journal of Economic Modelling and Econometrics, vol. 6(4), pages 237-273, December.
    14. Nicholas Taylor, 2011. "Time-varying price discovery in fragmented markets," Applied Financial Economics, Taylor & Francis Journals, vol. 21(10), pages 717-734.
    15. repec:bla:jecsur:v:22:y:2008:i:4:p:711-751 is not listed on IDEAS
    16. Peter Gomber & Satchit Sagade & Erik Theissen & Moritz Christian Weber & Christian Westheide, 2017. "Competition Between Equity Markets: A Review Of The Consolidation Versus Fragmentation Debate," Journal of Economic Surveys, Wiley Blackwell, vol. 31(3), pages 792-814, July.
    17. Chen, Richard Y. & Mykland, Per A., 2017. "Model-free approaches to discern non-stationary microstructure noise and time-varying liquidity in high-frequency data," Journal of Econometrics, Elsevier, vol. 200(1), pages 79-103.
    18. Wong, Woon K. & Tan, Dijun & Tian, Yixiang, 2009. "Informed trading and liquidity in the Shanghai Stock Exchange," International Review of Financial Analysis, Elsevier, vol. 18(1-2), pages 66-73, March.
    19. Havran, Dániel & Erb, Tamás, 2015. "Mit veszítünk a piaci súrlódásokkal?. A pénzügyi piacok mikrostruktúrája [Trading mechanisms and market frictions. Microstructure of the financial markets]," Közgazdasági Szemle (Economic Review - monthly of the Hungarian Academy of Sciences), Közgazdasági Szemle Alapítvány (Economic Review Foundation), vol. 0(3), pages 229-262.
    20. G. Wuyts, 2007. "Stock Market Liquidity.Determinants and Implications," Review of Business and Economic Literature, KU Leuven, Faculty of Economics and Business (FEB), Review of Business and Economic Literature, vol. 0(2), pages 279-316.
    21. Sylwia Nowak, 2008. "How Do Public Announcements Affect the Frequency of Trading in U.S. Airline Stocks?," CAMA Working Papers 2008-38, Centre for Applied Macroeconomic Analysis, Crawford School of Public Policy, The Australian National University.
    22. Adrian Buss & Bernard Dumas, 2019. "The Dynamic Properties of Financial‐Market Equilibrium with Trading Fees," Journal of Finance, American Finance Association, vol. 74(2), pages 795-844, April.
    23. Rzayev, Khaladdin & Ibikunle, Gbenga, 2019. "A state-space modeling of the information content of trading volume," Journal of Financial Markets, Elsevier, vol. 46(C).

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:brf:journl:v:14:y:2016:i:3:id:64587. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Digital Library (email available below). General contact details of provider: https://periodicos.fgv.br/rbfin .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.