This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

pybovespa

The BM&FBOVESPA (in full, Bolsa de Valores, Mercadorias & Futuros de São Paulo) is a stock exchange located at São Paulo, Brazil.

pybovespa is a basic and simple library to get official BM&FBOVESPA stock values.

Installing or updating

Just run:

# pip install -U pybovespa

Show-me an example, I need code!

15-minute delayed info

When you make a request, 15-minute-old information is retrieved. You can check the date and time with stock.time. Example:

#!/usr/bin/env python3

from pybovespa.bovespa import *
from pybovespa.stock import *

bovespa = Bovespa()
stock = bovespa.query("PETR3")
print(stock.cod, stock.name, stock.last)

The output should be something like this:

PETR3 PETROBRAS ON 24,24

It is possible to make only one request for many stocks:

stocks = bovespa.query("PETR4", "VALE5", "OGXP3")
for stock in stocks.values():
    print(stock.cod, stock.last)

stock_vale = stocks["VALE5"]

Historical stock data

Unfortunately, BM&FBovespa does not allow the distribution of their data. However, it is very simple to download them using this library:

bovespa = Bovespa()
bovespa.download(dst="/tmp/hist", year="2012", overwrite=True)

To download data of all available years:

bovespa.download_all(dst="/tmp/hist", overwrite=True)
Release History

Release History

0.1.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pybovespa-0.1.2.tar.gz (4.9 kB) Copy SHA256 Checksum SHA256 Source Sep 22, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting