Skip to content

Instantly share code, notes, and snippets.

@maurobaraldi
Created October 2, 2020 18:50
Show Gist options
  • Save maurobaraldi/69acb311320e7d90fcef0598e83b23f9 to your computer and use it in GitHub Desktop.
Save maurobaraldi/69acb311320e7d90fcef0598e83b23f9 to your computer and use it in GitHub Desktop.
Download de dados historicos da Boevspa de 1986 a 2019
import urllib.request
for year in range(1986,2019):
file = "COTAHIST_A%i.zip" % year
url = 'http://bvmf.bmfbovespa.com.br/InstDados/SerHist/%s' % file
urllib.request.urlretrieve(url, "/home/username/Dowloads/%s" % file )
@maurobaraldi
Copy link
Author

Layout para interpretatr os dados dos arquivos.
http://bvmf.bmfbovespa.com.br/pt-br/download/SeriesHistoricas_Layout.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment