Skip to content

Latest commit

 

History

History
68 lines (51 loc) · 2.52 KB

README.md

File metadata and controls

68 lines (51 loc) · 2.52 KB

B3 Stock Indexes

Table of Contents (ToC)
  1. About The Project
  2. Getting Started
  3. Usage
  4. License
  5. Contact

About The Project

The B3 S.A. - Brasil, Bolsa, Balcão (in English, B3 - Brazil Stock Exchange and Over-the-Counter Market), formerly BM&FBOVESPA, is a stock exchange located in São Paulo, Brazil, and the second oldest of the country (Wikipedia). B3 hold the stock indexes, movements (sales and purchases) of the stock market in Brazil.

This project scraping stock indexes and their business segments from B3' Market data and indices. Basically, it is processed the CSV files and generate one single output file, i.e., stock-indexes.csv.


Getting Started

Prerequisites

venv allow you to manage separate package installations for different projects. They essentially allow you to create a 'virtual' isolated Python installation and install packages into that virtual installation (Python).

  • Create a Python environment

    $ python -m venv .venv
    $ source .venv/bin/activate
  • Install the dependencies

    $ pip install -r requirements.txt

Running

  • Runing the scraping
    $ python main.py

Usage

Stock market data can be interesting to analyze and develop predictive models that generate financial returns. This scraping generates a dataset containing Brazilian stock market indexes information, such as stock code, company name, business segment, etc. You can combine this dataset with historical data (e.g., ibovespa-stocks) to create more robust analysis and models.

License

Distributed under the MIT License. See LICENSE for more information.


Contact