Skip to content

Commit 3f75f9e

Browse files
committed
deploy: c1cccc7
1 parent 12c781c commit 3f75f9e

46 files changed

Lines changed: 3339 additions & 4825 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 38a20b912ec2bacd3166b1ff0bd91ebb
3+
config: 279132834b173b6bf7fd180a054cd63a
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

_images/taxajuros1.png

-552 Bytes
Loading

_sources/api.rst.txt

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
API
33
===
44

5-
Módulo :ref:`bcb.sgs`
6-
---------------------
5+
Módulo :py:mod:`bcb.sgs`
6+
------------------------
77

88
.. currentmodule:: bcb.sgs
99

1010
.. autosummary::
1111

1212
get
1313

14-
Módulo :ref:`bcb.currency`
15-
--------------------------
14+
Módulo :py:mod:`bcb.currency`
15+
-----------------------------
1616

1717
.. currentmodule:: bcb.currency
1818

@@ -22,24 +22,19 @@ Módulo :ref:`bcb.currency`
2222
get_currency_list
2323

2424

25-
APIs OData
26-
----------
25+
:ref:`APIs OData`
26+
-----------------
2727

2828
.. currentmodule:: bcb
2929

3030
.. autosummary::
3131

3232
Endpoint
3333
BaseODataAPI
34+
ODataAPI
3435
Expectativas
3536
PTAX
3637
IFDATA
3738
TaxaJuros
3839
SPI
3940
MercadoImobiliario
40-
TarifasBancariasPorInstituicaoFinanceira
41-
TarifasBancariasPorServico
42-
PostosAtendimentoEletronicoPorInstituicaoFinanceira
43-
PostosAtendimentoCorrespondentesPorInstituicaoFinanceira
44-
EstatisticasSTR
45-
DinheiroCirculacao

_sources/currency.rst.txt

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Moedas
2-
######
2+
======
33

44
O pacote tem 2 APIs que dão acesso a informações de moedas.
55

@@ -11,22 +11,24 @@ O pacote tem 2 APIs que dão acesso a informações de moedas.
1111
Conversor de Moedas
1212
-------------------
1313

14-
O módulo ``currency`` obtem dados de moedas do conversor de moedas do Banco Central através de webscraping.
14+
.. automodule:: bcb.currency
1515

16-
.. currentmodule:: bcb.currency
16+
O módulo :py:mod:`bcb.currency` obtem dados de moedas do conversor de moedas do Banco Central através de webscraping.
1717

18+
.. currentmodule:: bcb.currency
1819

1920
.. autofunction:: get
2021

2122

2223
.. ipython:: python
2324
2425
from bcb import currency
25-
df = currency.get(['USD', 'EUR'], start='2000-01-01', end='2021-01-01', side='ask')
26+
df = currency.get(['USD', 'EUR'],
27+
start='2000-01-01',
28+
end='2021-01-01',
29+
side='ask')
2630
df.head()
2731
28-
.. ipython:: python
29-
3032
@savefig currency1.png
3133
df.plot(figsize=(12, 6));
3234
@@ -46,7 +48,7 @@ API OData
4648

4749
__ documentacao_
4850

49-
Diferente da interface _`currency`, os dados são obtidos a partir da `API de Moedas`__.
51+
Diferente do módulo :py:mod:`bcb.currency`, aqui os dados são obtidos a partir da `API de Moedas`__.
5052

5153
.. currentmodule:: bcb
5254

@@ -65,10 +67,28 @@ Diferente da interface _`currency`, os dados são obtidos a partir da `API de Mo
6567
6668
ptax.describe('Moedas')
6769
70+
ep = ptax.get_endpoint('Moedas')
71+
ep.query().limit(10).collect()
72+
6873
.. ipython:: python
6974
70-
ptax.describe('CotacaoMoedaPeriodoFechamento')
75+
ptax.describe('CotacaoMoedaDia')
76+
77+
ep = ptax.get_endpoint('CotacaoMoedaDia')
78+
(ep.query()
79+
.parameters(moeda='AUD', dataCotacao='1/31/2022')
80+
.collect())
81+
82+
É importante notar que as datas estão no formato dia/mês/ano e os números não
83+
são preenchidos com 0 para ter 2 dígitos.
7184

7285
.. ipython:: python
7386
7487
ptax.describe('CotacaoMoedaPeriodo')
88+
89+
ep = ptax.get_endpoint('CotacaoMoedaPeriodo')
90+
(ep.query()
91+
.parameters(moeda='AUD',
92+
dataInicial='1/1/2022',
93+
dataFinalCotacao='1/5/2022')
94+
.collect())

_sources/index.rst.txt

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,6 @@
66
python-bcb
77
==========
88

9-
.. toctree::
10-
:maxdepth: 1
11-
:caption: Conteúdo:
12-
13-
sgs
14-
currency
15-
expectativas
16-
taxajuros
17-
odata
18-
api
19-
209
**python-bcb** é uma interface em Python estruturada para obter informações
2110
da API de dados abertos do `Banco Central do Brasil <https://www.bcb.gov.br>`_.
2211

@@ -87,6 +76,16 @@ Uso
8776
sgs.get(('IPCA', 433), last=12)
8877
8978
79+
.. toctree::
80+
:maxdepth: 1
81+
82+
sgs
83+
currency
84+
expectativas
85+
taxajuros
86+
odata
87+
api
88+
9089
Índices e tabelas
9190
==================
9291

_sources/sgs.rst.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
SGS
2-
###
2+
===
33

44
O módulo ``sgs`` obtem os dados do webservice do Banco Central,
55
interface json do serviço BCData/SGS -
66
`Sistema Gerenciador de Séries Temporais (SGS) <https://www3.bcb.gov.br/sgspub/localizarseries/localizarSeries.do?method=prepararTelaLocalizarSeries>`_.
77

88
.. automodule:: bcb.sgs
99

10-
Função :ref:`bcb.sgs.get`
11-
-------------------------
10+
Função bcb.sgs.get
11+
--------------------
1212

1313
.. currentmodule:: bcb.sgs
1414

1515
.. autofunction:: get
1616

17+
Exemplo
18+
-------
19+
1720
.. ipython:: python
1821
1922
from bcb import sgs

_static/basic.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ div.sphinxsidebarwrapper {
5555

5656
div.sphinxsidebar {
5757
float: left;
58-
width: 270px;
58+
width: 230px;
5959
margin-left: -100%;
6060
font-size: 90%;
6161
word-wrap: break-word;

_static/debug.css

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/*
2+
This CSS file should be overridden by the theme authors. It's
3+
meant for debugging and developing the skeleton that this theme provides.
4+
*/
5+
body {
6+
font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
7+
"Apple Color Emoji", "Segoe UI Emoji";
8+
background: lavender;
9+
}
10+
.sb-announcement {
11+
background: rgb(131, 131, 131);
12+
}
13+
.sb-announcement__inner {
14+
background: black;
15+
color: white;
16+
}
17+
.sb-header {
18+
background: lightskyblue;
19+
}
20+
.sb-header__inner {
21+
background: royalblue;
22+
color: white;
23+
}
24+
.sb-header-secondary {
25+
background: lightcyan;
26+
}
27+
.sb-header-secondary__inner {
28+
background: cornflowerblue;
29+
color: white;
30+
}
31+
.sb-sidebar-primary {
32+
background: lightgreen;
33+
}
34+
.sb-main {
35+
background: blanchedalmond;
36+
}
37+
.sb-main__inner {
38+
background: antiquewhite;
39+
}
40+
.sb-header-article {
41+
background: lightsteelblue;
42+
}
43+
.sb-article-container {
44+
background: snow;
45+
}
46+
.sb-article-main {
47+
background: white;
48+
}
49+
.sb-footer-article {
50+
background: lightpink;
51+
}
52+
.sb-sidebar-secondary {
53+
background: lightgoldenrodyellow;
54+
}
55+
.sb-footer-content {
56+
background: plum;
57+
}
58+
.sb-footer-content__inner {
59+
background: palevioletred;
60+
}
61+
.sb-footer {
62+
background: pink;
63+
}
64+
.sb-footer__inner {
65+
background: salmon;
66+
}
67+
[role="main"] {
68+
background: white;
69+
}

_static/documentation_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var DOCUMENTATION_OPTIONS = {
88
LINK_SUFFIX: '.html',
99
HAS_SOURCE: true,
1010
SOURCELINK_SUFFIX: '.txt',
11-
NAVIGATION_WITH_KEYS: true,
11+
NAVIGATION_WITH_KEYS: false,
1212
SHOW_SEARCH_SUMMARY: true,
1313
ENABLE_SEARCH_SHORTCUTS: true,
1414
};
-552 Bytes
Loading

0 commit comments

Comments
 (0)