{"id":13741014,"url":"https://github.com/wilsonfreitas/python-bcb","last_synced_at":"2026-02-25T21:07:36.572Z","repository":{"id":41356622,"uuid":"330242836","full_name":"wilsonfreitas/python-bcb","owner":"wilsonfreitas","description":"Python interface to Brazilian Central Bank web services","archived":false,"fork":false,"pushed_at":"2025-04-21T13:04:31.000Z","size":8045,"stargazers_count":98,"open_issues_count":9,"forks_count":18,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-09-29T08:10:04.016Z","etag":null,"topics":["central-bank","currency","finance","financial-data","python","time-series"],"latest_commit_sha":null,"homepage":"https://wilsonfreitas.github.io/python-bcb/","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wilsonfreitas.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-01-16T19:43:09.000Z","updated_at":"2025-08-26T06:15:36.000Z","dependencies_parsed_at":"2025-04-21T09:39:02.936Z","dependency_job_id":null,"html_url":"https://github.com/wilsonfreitas/python-bcb","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/wilsonfreitas/python-bcb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilsonfreitas%2Fpython-bcb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilsonfreitas%2Fpython-bcb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilsonfreitas%2Fpython-bcb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilsonfreitas%2Fpython-bcb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wilsonfreitas","download_url":"https://codeload.github.com/wilsonfreitas/python-bcb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilsonfreitas%2Fpython-bcb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28509943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["central-bank","currency","finance","financial-data","python","time-series"],"created_at":"2024-08-03T04:00:54.529Z","updated_at":"2026-01-17T14:21:27.488Z","avatar_url":"https://github.com/wilsonfreitas.png","language":"Jupyter Notebook","funding_links":[],"categories":["Python"],"sub_categories":["Data Sources"],"readme":"# python-bcb\n\n**python-bcb** é uma interface em Python estruturada para obter informações\nda API de dados abertos do [Banco Central do Brasil](https://www.bcb.gov.br).\n\n[![Downloads](https://img.shields.io/pypi/dm/python-bcb.svg)](https://pypi.python.org/pypi/python-bcb/)\n[![image](https://img.shields.io/pypi/v/python-bcb.svg?color=green)](https://pypi.python.org/pypi/python-bcb/)\n![Sphinx workflow](https://github.com/wilsonfreitas/python-bcb/actions/workflows/sphinx.yml/badge.svg)\n\n\nO projeto de [Dados Abertos do Banco Central do Brasil](https://dadosabertos.bcb.gov.br/)\ndisponibiliza diversas APIs provendo acesso direto a dados de:\n\n* Moedas\n* Taxas de Juros\n* Índices de preços\n* Informações de Instituições Financeiras\n* Expectativas do Mercado (Expectativas do Boletim FOCUS)\n* E muito outros ...\n\n# Instalação\n\n**python-bcb** está disponível no [Python Package Index](https://pypi.org/project/python-bcb/) e pode ser instalado via `pip` usando.\n\n```shell\npip install python-bcb\n```\n\n# APIs\n\n\n## SGS\nUtiliza o webservice do SGS\n([Sistema Gerenciador de Séries Temporais](https://www3.bcb.gov.br/sgspub/))\npara obter os dados.\n\n## Conversor de Moedas\n\nImplementado no módulo `currency`, um conjunto de funções que realiza webscraping\nno site do [Conversor de Moedas](https://www.bcb.gov.br/conversao)\ndo Banco Central, possível obter séries temporais de frequência diária\nde diversas moedas.\n\n## Moedas OData\n\nO Banco Central disponibiliza diversas informações em APIs que\nseguem o padrão [OData](https://odata.org).\nA classe `bcb.PTAX` implementa uma API OData que\nentrega os boletins diários de taxas de câmbio do Banco Central.\nEsta API entrega mais informações do que o que é obtido no\n`Conversor de Moedas`.\n\n## Expectativas\n\nA API de Expectativas de Mercado traz todas as estatísticas das variáveis\nmacroeconômicas fornecidos por um conjuto de instituições do mercado\nfinanceiro.\nA classe `bcb.Expectativas` implementa essa interface no\npadrão OData.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilsonfreitas%2Fpython-bcb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilsonfreitas%2Fpython-bcb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilsonfreitas%2Fpython-bcb/lists"}