Skip to main content

Python library for processing data from B3

Project description

About

b3 is a Python library that allows extracting data provided by B3. The library was designed to be part of a software for analysis of public companies, although it can be used on its own for other purposes.

What is B3?

B3 is the Brazilian stock exchange. Among its responsibilities is buying and selling securities, such as stocks and stock options.

Note that, as B3 is concerned with market data, it is beyond its scope to store or provide financial data from publicly-held companies, such as the balance sheet and the income statement. Such financial data is the responsibility of CVM, and its automated handling is possible with the library cvm.

Usage

To retrieve online information of companies:

>>> import b3
>>> co = b3.company_detail('1023')
>>> co.company_name
'BCO BRASIL S.A.'
>>> co.cnpj
'00000000000191'
>>> co.company_code
'BBAS'

To extract historical quotes:

import b3

with b3.historical_quotes_reader('path/to/COTAHIST.txt') as reader:
    for bulletin in reader:
        print(bulletin)

Disclaimer

b3 is an open-source library that has no connection or affiliation with B3. The library uses the public API from B3's website and was created solely for educational purposes. Read B3's Terms of Use for details about your rights to use their information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pybov-0.1.2.tar.gz (28.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pybov-0.1.2-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file pybov-0.1.2.tar.gz.

File metadata

  • Download URL: pybov-0.1.2.tar.gz
  • Upload date:
  • Size: 28.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.1

File hashes

Hashes for pybov-0.1.2.tar.gz
Algorithm Hash digest
SHA256 87717d9212bb41b799f54e7ee8193dab2e6b917c320e947c9f53c56129ad554e
MD5 18d0f5686476ccea3ea5c35c71ac18c2
BLAKE2b-256 76ec09c5c62fe54da3acea7af96acaa98eacb9e05e1825ad594a33e83dc6b32b

See more details on using hashes here.

File details

Details for the file pybov-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pybov-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.1

File hashes

Hashes for pybov-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ce240afcebd346323cd7b052a8b495bf9e0dfc781275f7336449102a161736d1
MD5 79b498b100d2d54be4017f2f3ab52851
BLAKE2b-256 c4d4023d828838baef459098cf4ac5db2075fd6a4590dbb96e351662840620df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page