Skip to main content

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.

Metadata

Release files for pybov 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pybov 0.1.2
File Size Uploaded
pybov-0.1.2.tar.gz 28.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pybov 0.1.2
File Interpreter ABI Platform
pybov-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 39.4 kB

Release files / pybov-0.1.2.tar.gz

Download URL pybov-0.1.2.tar.gz
Size 28.1 kB
Tags Source
SHA-256 checksum
How to use checksums
87717d9212bb41b799f54e7ee8193dab2e6b917c320e947c9f53c56129ad554e
BLAKE2b-256 checksum
How to use checksums
76ec09c5c62fe54da3acea7af96acaa98eacb9e05e1825ad594a33e83dc6b32b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.1

Release files / pybov-0.1.2-py3-none-any.whl

Download URL pybov-0.1.2-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce240afcebd346323cd7b052a8b495bf9e0dfc781275f7336449102a161736d1
BLAKE2b-256 checksum
How to use checksums
c4d4023d828838baef459098cf4ac5db2075fd6a4590dbb96e351662840620df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.1

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page