Skip to content

Serviços de Consulta a API dos Dados Abertos do Banco Central do Brasil

Notifications You must be signed in to change notification settings

castilhera/banco-central-do-brasil-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dados Abertos do Banco Central do Brasil (APIs)

Serviços de Consulta a API dos Dados Abertos do Banco Central do Brasil, utilizando Python.

https://dadosabertos.bcb.gov.br/.

Serviços

Moedas (Currency Service)

Exemplo de Uso
currency_service = CurrencyService()
currencies = currency_service.get_all()

Dólar Comercial - Venda e Compra (PTAX Service)

Exemplo de Uso
ptax_service = PTAXService()
ptax = ptax_service.get_ptax_rate(date(2024, 1, 2))
ptax_list = ptax_service.get_daily_ptax_rate_by_period(date(2024, 1, 2), date(2024, 1, 5))

Taxas de Câmbio (Exchange Rate Service)

Exemplo de Uso
currency_code = "CAD"
exchange_rate_service = ExchangeRateService()
exchange_rate = exchange_rate_service.get_exchange_rate(currency_code, date(2024, 1, 1))
exchange_rates = exchange_rate_service.get_daily_exchange_rate_by_period(currency_code, date(2024, 8, 1), date(2024, 8, 2))

Releases

No releases published

Packages

No packages published

Languages