tesorotools-python 0.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tesorotools_python-0.0.0/.gitignore +20 -0
- tesorotools_python-0.0.0/PKG-INFO +13 -0
- tesorotools_python-0.0.0/README.md +83 -0
- tesorotools_python-0.0.0/examples/README.md +24 -0
- tesorotools_python-0.0.0/examples/barh_plots.yaml +202 -0
- tesorotools_python-0.0.0/examples/data.yaml +4 -0
- tesorotools_python-0.0.0/examples/dependencies.yaml +162 -0
- tesorotools_python-0.0.0/examples/line_plots.yaml +57 -0
- tesorotools_python-0.0.0/examples/offsets.yaml +17 -0
- tesorotools_python-0.0.0/examples/plots.yaml +43 -0
- tesorotools_python-0.0.0/examples/tables.yaml +457 -0
- tesorotools_python-0.0.0/examples/template.yaml +34 -0
- tesorotools_python-0.0.0/examples/type_curves.yaml +88 -0
- tesorotools_python-0.0.0/pyproject.toml +11 -0
- tesorotools_python-0.0.0/src/tesorotools/__init__.py +0 -0
- tesorotools_python-0.0.0/src/tesorotools/artists/__init__.py +5 -0
- tesorotools_python-0.0.0/src/tesorotools/artists/barh_plot.py +310 -0
- tesorotools_python-0.0.0/src/tesorotools/artists/line_plot.py +114 -0
- tesorotools_python-0.0.0/src/tesorotools/artists/table.py +199 -0
- tesorotools_python-0.0.0/src/tesorotools/artists/type_curve.py +216 -0
- tesorotools_python-0.0.0/src/tesorotools/convert.py +93 -0
- tesorotools_python-0.0.0/src/tesorotools/data_sources/__init__.py +0 -0
- tesorotools_python-0.0.0/src/tesorotools/data_sources/debug.py +26 -0
- tesorotools_python-0.0.0/src/tesorotools/data_sources/eikon.py +117 -0
- tesorotools_python-0.0.0/src/tesorotools/database/__init__.py +0 -0
- tesorotools_python-0.0.0/src/tesorotools/database/push.py +70 -0
- tesorotools_python-0.0.0/src/tesorotools/dependencies/__init__.py +0 -0
- tesorotools_python-0.0.0/src/tesorotools/dependencies/functions.py +11 -0
- tesorotools_python-0.0.0/src/tesorotools/dependencies/node.py +34 -0
- tesorotools_python-0.0.0/src/tesorotools/dependencies/resolution.py +118 -0
- tesorotools_python-0.0.0/src/tesorotools/main.py +37 -0
- tesorotools_python-0.0.0/src/tesorotools/offsets/__init__.py +0 -0
- tesorotools_python-0.0.0/src/tesorotools/offsets/offsets.py +439 -0
- tesorotools_python-0.0.0/src/tesorotools/offsets/outliers.py +15 -0
- tesorotools_python-0.0.0/src/tesorotools/render/__init__.py +11 -0
- tesorotools_python-0.0.0/src/tesorotools/render/content/__init__.py +0 -0
- tesorotools_python-0.0.0/src/tesorotools/render/content/content.py +17 -0
- tesorotools_python-0.0.0/src/tesorotools/render/content/images.py +147 -0
- tesorotools_python-0.0.0/src/tesorotools/render/content/section.py +53 -0
- tesorotools_python-0.0.0/src/tesorotools/render/content/table.py +283 -0
- tesorotools_python-0.0.0/src/tesorotools/render/headline.py +40 -0
- tesorotools_python-0.0.0/src/tesorotools/render/introduction.py +49 -0
- tesorotools_python-0.0.0/src/tesorotools/render/report.py +29 -0
- tesorotools_python-0.0.0/src/tesorotools/utils/__init__.py +0 -0
- tesorotools_python-0.0.0/src/tesorotools/utils/config.py +35 -0
- tesorotools_python-0.0.0/src/tesorotools/utils/globals.py +12 -0
- tesorotools_python-0.0.0/src/tesorotools/utils/matplotlib.py +38 -0
- tesorotools_python-0.0.0/src/tesorotools/utils/series.py +40 -0
- tesorotools_python-0.0.0/src/tesorotools/utils/template.py +126 -0
- tesorotools_python-0.0.0/src/tesorotools_python.egg-info/PKG-INFO +9 -0
- tesorotools_python-0.0.0/src/tesorotools_python.egg-info/SOURCES.txt +31 -0
- tesorotools_python-0.0.0/src/tesorotools_python.egg-info/dependency_links.txt +1 -0
- tesorotools_python-0.0.0/src/tesorotools_python.egg-info/requires.txt +6 -0
- tesorotools_python-0.0.0/src/tesorotools_python.egg-info/top_level.txt +1 -0
- tesorotools_python-0.0.0/tesoro.mplstyle +21 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tesorotools-python
|
|
3
|
+
Version: 0.0.0
|
|
4
|
+
Requires-Dist: babel
|
|
5
|
+
Requires-Dist: eikon
|
|
6
|
+
Requires-Dist: matplotlib
|
|
7
|
+
Requires-Dist: openpyxl
|
|
8
|
+
Requires-Dist: pandas
|
|
9
|
+
Requires-Dist: psycopg2
|
|
10
|
+
Requires-Dist: pyarrow
|
|
11
|
+
Requires-Dist: python-docx
|
|
12
|
+
Requires-Dist: pyyaml
|
|
13
|
+
Requires-Dist: sqlalchemy
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# Especificación de un documento
|
|
2
|
+
|
|
3
|
+
## Generar los *assets* de un semanal (fase de transición)
|
|
4
|
+
1. Poner en la carpeta [debug](debug) el archivo [flash.feather](debug/flash.feather) generado por el *script* `generar_semanal.py` de `dev2`. Será necesario cambiar a la rama `semanal` con un `git switch semanal`. Recordar revertir este cambio.
|
|
5
|
+
2. `python -m tesorotools.convert`
|
|
6
|
+
3. `python -m tesorotools.main`
|
|
7
|
+
|
|
8
|
+
## Plantilla
|
|
9
|
+
|
|
10
|
+
- Debe ser un archivo `.yaml`
|
|
11
|
+
- Si no se especifica nada, el programa buscará un archivo llamado `template.yaml` en la carpeta desde donde se esté ejecutando. En caso de no encontrarlo, lanzará un error.
|
|
12
|
+
|
|
13
|
+
### Headline
|
|
14
|
+
*Opcional*. Consta de dos entradas, también *opcionales* `title` y `comment`.
|
|
15
|
+
|
|
16
|
+
#### Ejemplo
|
|
17
|
+
```yaml
|
|
18
|
+
headline:
|
|
19
|
+
title: Apertura
|
|
20
|
+
comment: El precio del chocolate con almendras se dispara
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Se renderizará en el estilo `Title` o `Título` del documento base de word proporcionado.
|
|
24
|
+
|
|
25
|
+
### Introduction
|
|
26
|
+
*Opcional*. Consta de dos entradas, también *opcionales* `date` y `hour`.
|
|
27
|
+
|
|
28
|
+
- `date`: Fecha en formato `AAAA-MM-DD`, con o sin comillas.
|
|
29
|
+
- `hour`: Hora en formato `HH:MM`, **siempre** entre comillas.
|
|
30
|
+
|
|
31
|
+
#### Ejemplo
|
|
32
|
+
```yaml
|
|
33
|
+
introduction:
|
|
34
|
+
date: 2025-01-31
|
|
35
|
+
hour: "15:30"
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
La fecha se renderizará en el estilo `Subtitle` o `Subtítulo` del documento base de word proporcionado.
|
|
39
|
+
|
|
40
|
+
# Descripción de la estructura y el funcionamiento
|
|
41
|
+
|
|
42
|
+
## Funcionamiento
|
|
43
|
+
- Se *leen* las plantillas del documento.
|
|
44
|
+
- Una vez leídas sabemos:
|
|
45
|
+
- Qué es lo que hay que descargar, de dónde y con qué fechas.
|
|
46
|
+
- Qué es lo que hay que calcular a partir de lo descargado y cómo.
|
|
47
|
+
- Descarga *missing*
|
|
48
|
+
- Debe haber una opción *debug*, así como opción de no descargar y tomar directamente de nuestra bbdd.
|
|
49
|
+
- Cálculo o *prerrenderizado*: se generan las imágenes de los gráficos así como los archivos necesarios para renderizar las tablas en su formato final.
|
|
50
|
+
- *Renderizado* final.
|
|
51
|
+
|
|
52
|
+
## Sistema de lectura de archivos `.yaml`
|
|
53
|
+
El informe a generar se describe mediante unas *plantillas*, que en la práctica son archivos `.yaml`, con lo que es importante entender cómo el programa procede a la lectura de los mismos.
|
|
54
|
+
|
|
55
|
+
Todo archivo `.yaml` debe leerse a través de la función `utils.config.read_config`. Esta toma como parámetros el path al fichero a leer y un *cargador*. Siempre que se vaya a leer una *plantilla*, este cargador debe ser `utils.config.CustomLoader`, en caso contrario, puede dejarse en blanco.
|
|
56
|
+
|
|
57
|
+
En el proceso de lectura, el documento completo se representa como un objeto de tipo `MappingNode` y este es el parámetro `node` en la función `construct_mapping`.
|
|
58
|
+
|
|
59
|
+
Cada `MappingNode` contiene un atributo `value`, que en una lista de tuplas `(key_node, value_node)`
|
|
60
|
+
|
|
61
|
+
Dentro de un documento `.yaml` sencillo como
|
|
62
|
+
```yaml
|
|
63
|
+
clave1: "valor1"
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
La lista `value` solo tiene una tupla en su interior, donde:
|
|
67
|
+
- La clave o `key_node` es de tipo `ScalarNode` con tag `tag:yaml.org,2002:str` *implícito* y valor `clave1`.
|
|
68
|
+
- El valor o `value_node` también es de tipo `ScalarNode` con valor `valor1`.
|
|
69
|
+
|
|
70
|
+
En casos más complejos como
|
|
71
|
+
```yaml
|
|
72
|
+
clave2: !offset_table
|
|
73
|
+
subclave: "subvalor"
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
De nuevo, la lista `value` solo contendrá una tupla en su interior, donde:
|
|
77
|
+
- La clave es un `ScalarNode` con valor `clave2`
|
|
78
|
+
- El valor es un `MappingNode` con *tag* personalizado `!offset_table`. Su valor a su vez en una lista de tuplas bla bla bla (se ve la recursividad)
|
|
79
|
+
|
|
80
|
+
## Informes
|
|
81
|
+
- Un *informe* (*Report*) es una **clase** que contiene un diccionario de *contenidos* (*Content*)
|
|
82
|
+
- Un *cotenido* (*Content*) es un **protocolo** que permite consultar y modificar su *nivel de anidamiento* así como construirse a partir de un archivo `.yaml`.
|
|
83
|
+
- Un informe puede *rederizarse* a un documento word a partir de una **plantilla**. Sencillamente, renderizará todos sus componentes uno por uno.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
## Tablas
|
|
2
|
+
|
|
3
|
+
### Columnas
|
|
4
|
+
|
|
5
|
+
- `name`: Nombre de la columna a mostrar.
|
|
6
|
+
|
|
7
|
+
- `scale`: Número por el que se multiplica el valor original en la base de datos a la hora de ser mostrado.
|
|
8
|
+
- `unit`: Símbolo de la unidad del valor a mostrar.
|
|
9
|
+
- `decimals`: Número de decimales a mostrar.
|
|
10
|
+
|
|
11
|
+
- `show_units_in_title`: Se mostrará el símbolo de las unidades en el título de la columna.
|
|
12
|
+
- `show_units_in_cell`: Se mostrará el símbolo de las unidades al lado del valor de cada celda.
|
|
13
|
+
|
|
14
|
+
Variables de localización de los valores a mostrar en la base de datos.
|
|
15
|
+
|
|
16
|
+
- `offset`:
|
|
17
|
+
- `difference`:
|
|
18
|
+
- `stat`:
|
|
19
|
+
|
|
20
|
+
Variables de coloreado.
|
|
21
|
+
|
|
22
|
+
- `colors`: Indica si el valor debe ir coloreado o no en la tabla.
|
|
23
|
+
- `positive_good`: Si es `True` colorearemos los valores positivos de un color que el lector asocie con "*bueno*".
|
|
24
|
+
- `outliers`: Si es `True` sombrearemos las celdas que tengan un valor por encima de cierto umbral.
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
.alemania_series:
|
|
2
|
+
PT10YT=RR_DIFF: DE10YT=RR
|
|
3
|
+
GR10YT=RR_DIFF: DE10YT=RR
|
|
4
|
+
ES10YT=RR_DIFF: DE10YT=RR
|
|
5
|
+
EUUNIEURAE10Y=_DIFF: DE10YT=RR
|
|
6
|
+
IT10YT=RR_DIFF: DE10YT=RR
|
|
7
|
+
FR10YT=RR_DIFF: DE10YT=RR
|
|
8
|
+
|
|
9
|
+
.flash: &flash
|
|
10
|
+
date:
|
|
11
|
+
|
|
12
|
+
.perc_format: &perc_format
|
|
13
|
+
units: "%"
|
|
14
|
+
decimals: 2
|
|
15
|
+
|
|
16
|
+
.pb_format: &pb_format
|
|
17
|
+
units: "p.b."
|
|
18
|
+
decimals: 0
|
|
19
|
+
|
|
20
|
+
.bancos: &bancos
|
|
21
|
+
sorted: True
|
|
22
|
+
blocks:
|
|
23
|
+
bancos_esp:
|
|
24
|
+
label: Bancos españoles
|
|
25
|
+
series:
|
|
26
|
+
BKT.MC: Bankinter
|
|
27
|
+
SAN.MC: Santander
|
|
28
|
+
CABK.MC: Caixabank
|
|
29
|
+
SABE.MC: Sabadell
|
|
30
|
+
BBVA.MC: BBVA
|
|
31
|
+
UNI.MC: Unicaja
|
|
32
|
+
bandos_idx:
|
|
33
|
+
label: Índices bancarios internacionales
|
|
34
|
+
series:
|
|
35
|
+
.IBCA.MA: Índice bancario español*
|
|
36
|
+
.SX7E: EuroStoxx Banks
|
|
37
|
+
.FTNMX301010: Índice bancario UK
|
|
38
|
+
.SPXBK: S&P 500 Bancos EEUU
|
|
39
|
+
.DJUSBK: DJ US Banks
|
|
40
|
+
.DJSRBKT: DJ US Regional Banks
|
|
41
|
+
format:
|
|
42
|
+
<<: *perc_format
|
|
43
|
+
decimals: 0
|
|
44
|
+
annot_format:
|
|
45
|
+
<<: *perc_format
|
|
46
|
+
|
|
47
|
+
bancos_week:
|
|
48
|
+
flash:
|
|
49
|
+
<<: *flash
|
|
50
|
+
deviations: True
|
|
51
|
+
offset: ftd
|
|
52
|
+
difference: relative
|
|
53
|
+
<<: *bancos
|
|
54
|
+
|
|
55
|
+
bancos_mtd:
|
|
56
|
+
flash:
|
|
57
|
+
<<: *flash
|
|
58
|
+
deviations: False
|
|
59
|
+
offset: mtd
|
|
60
|
+
difference: relative
|
|
61
|
+
<<: *bancos
|
|
62
|
+
|
|
63
|
+
.deuda_general: &deuda_general
|
|
64
|
+
sorted: True
|
|
65
|
+
series:
|
|
66
|
+
EUUNIEURAE10Y=: UE
|
|
67
|
+
ES10YT=RR: España*
|
|
68
|
+
DE10YT=RR: Alemania
|
|
69
|
+
FR10YT=RR: Francia
|
|
70
|
+
IT10YT=RR: Italia
|
|
71
|
+
PT10YT=RR: Portugal
|
|
72
|
+
GR10YT=RR: Grecia
|
|
73
|
+
GB10YT=RR: Reino Unido
|
|
74
|
+
US10YT=RR: EEUU
|
|
75
|
+
format:
|
|
76
|
+
<<: *pb_format
|
|
77
|
+
annot_format:
|
|
78
|
+
<<: *pb_format
|
|
79
|
+
axis_format:
|
|
80
|
+
<<: *perc_format
|
|
81
|
+
|
|
82
|
+
deuda_general_week:
|
|
83
|
+
flash:
|
|
84
|
+
<<: *flash
|
|
85
|
+
offset: ftd
|
|
86
|
+
difference: absolute
|
|
87
|
+
deviations: True
|
|
88
|
+
<<: *deuda_general
|
|
89
|
+
|
|
90
|
+
deuda_general_ytd:
|
|
91
|
+
flash:
|
|
92
|
+
<<: *flash
|
|
93
|
+
offset: ytd
|
|
94
|
+
difference: absolute
|
|
95
|
+
deviations: False
|
|
96
|
+
<<: *deuda_general
|
|
97
|
+
|
|
98
|
+
.deuda_diferenciales: &deuda_diferenciales
|
|
99
|
+
sorted: True
|
|
100
|
+
series:
|
|
101
|
+
PT10YT=RR_DIFF: Portugal
|
|
102
|
+
GR10YT=RR_DIFF: Grecia
|
|
103
|
+
ES10YT=RR_DIFF: España*
|
|
104
|
+
EUUNIEURAE10Y=_DIFF: UE
|
|
105
|
+
IT10YT=RR_DIFF: Italia
|
|
106
|
+
FR10YT=RR_DIFF: Francia
|
|
107
|
+
format:
|
|
108
|
+
<<: *pb_format
|
|
109
|
+
annot_format:
|
|
110
|
+
<<: *pb_format
|
|
111
|
+
axis_format:
|
|
112
|
+
<<: *pb_format
|
|
113
|
+
|
|
114
|
+
deuda_diferenciales_week:
|
|
115
|
+
flash:
|
|
116
|
+
<<: *flash
|
|
117
|
+
offset: ftd
|
|
118
|
+
difference: absolute
|
|
119
|
+
deviations: True
|
|
120
|
+
<<: *deuda_diferenciales
|
|
121
|
+
|
|
122
|
+
deuda_diferenciales_ytd:
|
|
123
|
+
flash:
|
|
124
|
+
<<: *flash
|
|
125
|
+
offset: ytd
|
|
126
|
+
difference: absolute
|
|
127
|
+
deviations: False
|
|
128
|
+
<<: *deuda_diferenciales
|
|
129
|
+
|
|
130
|
+
.deuda_esp: &deuda_esp
|
|
131
|
+
sorted: False
|
|
132
|
+
series:
|
|
133
|
+
ES1YT=RR: 1 años
|
|
134
|
+
ES2YT=RR: 2 años
|
|
135
|
+
ES3YT=RR: 3 años
|
|
136
|
+
ES5YT=RR: 5 años
|
|
137
|
+
ES10YT=RR: 10 años*
|
|
138
|
+
ES30YT=RR: 30 años
|
|
139
|
+
format:
|
|
140
|
+
<<: *pb_format
|
|
141
|
+
annot_format:
|
|
142
|
+
<<: *pb_format
|
|
143
|
+
axis_format:
|
|
144
|
+
<<: *perc_format
|
|
145
|
+
|
|
146
|
+
deuda_esp_week:
|
|
147
|
+
flash:
|
|
148
|
+
<<: *flash
|
|
149
|
+
offset: ftd
|
|
150
|
+
difference: absolute
|
|
151
|
+
deviations: True
|
|
152
|
+
<<: *deuda_esp
|
|
153
|
+
|
|
154
|
+
deuda_esp_ytd:
|
|
155
|
+
flash:
|
|
156
|
+
<<: *flash
|
|
157
|
+
offset: ytd
|
|
158
|
+
difference: absolute
|
|
159
|
+
deviations: False
|
|
160
|
+
<<: *deuda_esp
|
|
161
|
+
|
|
162
|
+
.divisas: &divisas
|
|
163
|
+
sorted: True
|
|
164
|
+
series:
|
|
165
|
+
USD_OVER_RUB: Rublo
|
|
166
|
+
GBP=: Libra
|
|
167
|
+
EUR=: Euro*
|
|
168
|
+
USD_OVER_BRL: Real Brasileño
|
|
169
|
+
USD_OVER_CNY: Yuan
|
|
170
|
+
USD_OVER_TRY: Lira Turca
|
|
171
|
+
USD_OVER_JPY: Yen
|
|
172
|
+
USD_OVER_CHF: Franco Suizo
|
|
173
|
+
format:
|
|
174
|
+
<<: *perc_format
|
|
175
|
+
decimals: 0
|
|
176
|
+
annot_format:
|
|
177
|
+
<<: *perc_format
|
|
178
|
+
decimals: 1
|
|
179
|
+
|
|
180
|
+
divisas_week:
|
|
181
|
+
flash:
|
|
182
|
+
<<: *flash
|
|
183
|
+
offset: ftd
|
|
184
|
+
difference: relative
|
|
185
|
+
deviations: True
|
|
186
|
+
<<: *divisas
|
|
187
|
+
format:
|
|
188
|
+
<<: *perc_format
|
|
189
|
+
decimals: 1
|
|
190
|
+
annot_format:
|
|
191
|
+
<<: *perc_format
|
|
192
|
+
decimals: 2
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
divisas_ytd:
|
|
197
|
+
flash:
|
|
198
|
+
<<: *flash
|
|
199
|
+
offset: ytd
|
|
200
|
+
difference: relative
|
|
201
|
+
deviations: False
|
|
202
|
+
<<: *divisas
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# keep dependent series in a separate file to avoid cluttering
|
|
2
|
+
# a series at time t can only depend on other series on time t
|
|
3
|
+
|
|
4
|
+
# diferenciales
|
|
5
|
+
|
|
6
|
+
PT10YT=RR_DIFF:
|
|
7
|
+
dependencies:
|
|
8
|
+
- PT10YT=RR
|
|
9
|
+
- DE10YT=RR
|
|
10
|
+
function: difference
|
|
11
|
+
|
|
12
|
+
GR10YT=RR_DIFF:
|
|
13
|
+
dependencies:
|
|
14
|
+
- GR10YT=RR
|
|
15
|
+
- DE10YT=RR
|
|
16
|
+
function: difference
|
|
17
|
+
|
|
18
|
+
EUUNIEURAE10Y=_DIFF:
|
|
19
|
+
dependencies:
|
|
20
|
+
- EUUNIEURAE10Y=
|
|
21
|
+
- DE10YT=RR
|
|
22
|
+
function: difference
|
|
23
|
+
|
|
24
|
+
IT10YT=RR_DIFF:
|
|
25
|
+
dependencies:
|
|
26
|
+
- IT10YT=RR
|
|
27
|
+
- DE10YT=RR
|
|
28
|
+
function: difference
|
|
29
|
+
|
|
30
|
+
FR10YT=RR_DIFF:
|
|
31
|
+
dependencies:
|
|
32
|
+
- FR10YT=RR
|
|
33
|
+
- DE10YT=RR
|
|
34
|
+
function: difference
|
|
35
|
+
|
|
36
|
+
ES3MT=RR_DIFF:
|
|
37
|
+
dependencies:
|
|
38
|
+
- ES3MT=RR
|
|
39
|
+
- DE3MT=RR
|
|
40
|
+
function: difference
|
|
41
|
+
|
|
42
|
+
ES6MT=RR_DIFF:
|
|
43
|
+
dependencies:
|
|
44
|
+
- ES6MT=RR
|
|
45
|
+
- DE6MT=RR
|
|
46
|
+
function: difference
|
|
47
|
+
|
|
48
|
+
ES1YT=RR_DIFF:
|
|
49
|
+
dependencies:
|
|
50
|
+
- ES1YT=RR
|
|
51
|
+
- DE1YT=RR
|
|
52
|
+
function: difference
|
|
53
|
+
|
|
54
|
+
ES2YT=RR_DIFF:
|
|
55
|
+
dependencies:
|
|
56
|
+
- ES2YT=RR
|
|
57
|
+
- DE2YT=RR
|
|
58
|
+
function: difference
|
|
59
|
+
|
|
60
|
+
ES3YT=RR_DIFF:
|
|
61
|
+
dependencies:
|
|
62
|
+
- ES3YT=RR
|
|
63
|
+
- DE3YT=RR
|
|
64
|
+
function: difference
|
|
65
|
+
|
|
66
|
+
ES4YT=RR_DIFF:
|
|
67
|
+
dependencies:
|
|
68
|
+
- ES4YT=RR
|
|
69
|
+
- DE4YT=RR
|
|
70
|
+
function: difference
|
|
71
|
+
|
|
72
|
+
ES5YT=RR_DIFF:
|
|
73
|
+
dependencies:
|
|
74
|
+
- ES5YT=RR
|
|
75
|
+
- DE5YT=RR
|
|
76
|
+
function: difference
|
|
77
|
+
|
|
78
|
+
ES6YT=RR_DIFF:
|
|
79
|
+
dependencies:
|
|
80
|
+
- ES6YT=RR
|
|
81
|
+
- DE6YT=RR
|
|
82
|
+
function: difference
|
|
83
|
+
|
|
84
|
+
ES7YT=RR_DIFF:
|
|
85
|
+
dependencies:
|
|
86
|
+
- ES7YT=RR
|
|
87
|
+
- DE7YT=RR
|
|
88
|
+
function: difference
|
|
89
|
+
|
|
90
|
+
ES8YT=RR_DIFF:
|
|
91
|
+
dependencies:
|
|
92
|
+
- ES8YT=RR
|
|
93
|
+
- DE8YT=RR
|
|
94
|
+
function: difference
|
|
95
|
+
|
|
96
|
+
ES9YT=RR_DIFF:
|
|
97
|
+
dependencies:
|
|
98
|
+
- ES9YT=RR
|
|
99
|
+
- DE9YT=RR
|
|
100
|
+
function: difference
|
|
101
|
+
|
|
102
|
+
ES10YT=RR_DIFF:
|
|
103
|
+
dependencies:
|
|
104
|
+
- ES10YT=RR
|
|
105
|
+
- DE10YT=RR
|
|
106
|
+
function: difference
|
|
107
|
+
|
|
108
|
+
ES15YT=RR_DIFF:
|
|
109
|
+
dependencies:
|
|
110
|
+
- ES15YT=RR
|
|
111
|
+
- DE15YT=RR
|
|
112
|
+
function: difference
|
|
113
|
+
|
|
114
|
+
ES20YT=RR_DIFF:
|
|
115
|
+
dependencies:
|
|
116
|
+
- ES20YT=RR
|
|
117
|
+
- DE20YT=RR
|
|
118
|
+
function: difference
|
|
119
|
+
|
|
120
|
+
ES25YT=RR_DIFF:
|
|
121
|
+
dependencies:
|
|
122
|
+
- ES25YT=RR
|
|
123
|
+
- DE25YT=RR
|
|
124
|
+
function: difference
|
|
125
|
+
|
|
126
|
+
ES30YT=RR_DIFF:
|
|
127
|
+
dependencies:
|
|
128
|
+
- ES30YT=RR
|
|
129
|
+
- DE30YT=RR
|
|
130
|
+
function: difference
|
|
131
|
+
|
|
132
|
+
# divisas
|
|
133
|
+
|
|
134
|
+
USD_OVER_JPY:
|
|
135
|
+
dependencies:
|
|
136
|
+
- JPY=
|
|
137
|
+
function: inverse
|
|
138
|
+
|
|
139
|
+
USD_OVER_CNY:
|
|
140
|
+
dependencies:
|
|
141
|
+
- CNY=
|
|
142
|
+
function: inverse
|
|
143
|
+
|
|
144
|
+
USD_OVER_CHF:
|
|
145
|
+
dependencies:
|
|
146
|
+
- CHF=
|
|
147
|
+
function: inverse
|
|
148
|
+
|
|
149
|
+
USD_OVER_RUB:
|
|
150
|
+
dependencies:
|
|
151
|
+
- RUB=
|
|
152
|
+
function: inverse
|
|
153
|
+
|
|
154
|
+
USD_OVER_BRL:
|
|
155
|
+
dependencies:
|
|
156
|
+
- BRL=
|
|
157
|
+
function: inverse
|
|
158
|
+
|
|
159
|
+
USD_OVER_TRY:
|
|
160
|
+
dependencies:
|
|
161
|
+
- TRY=
|
|
162
|
+
function: inverse
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
.b100_format: &b100_format
|
|
2
|
+
units: ""
|
|
3
|
+
decimals: 0
|
|
4
|
+
|
|
5
|
+
.perc_format: &perc_format
|
|
6
|
+
units: "%"
|
|
7
|
+
decimals: 2
|
|
8
|
+
|
|
9
|
+
.pb_format: &pb_format
|
|
10
|
+
units: "p.b."
|
|
11
|
+
decimals: 0
|
|
12
|
+
|
|
13
|
+
# for the moment only support for fixed dates
|
|
14
|
+
diferenciales:
|
|
15
|
+
base_100: False
|
|
16
|
+
start_date: 2024-01-01
|
|
17
|
+
end_date:
|
|
18
|
+
annotate: True
|
|
19
|
+
format:
|
|
20
|
+
<<: *pb_format
|
|
21
|
+
series:
|
|
22
|
+
ES10YT=RR_DIFF: España
|
|
23
|
+
GR10YT=RR_DIFF: Grecia
|
|
24
|
+
PT10YT=RR_DIFF: Portugal
|
|
25
|
+
FR10YT=RR_DIFF: Francia
|
|
26
|
+
IT10YT=RR_DIFF: Italia
|
|
27
|
+
|
|
28
|
+
divisas:
|
|
29
|
+
base_100: True
|
|
30
|
+
start_date: 2024-11-01
|
|
31
|
+
end_date:
|
|
32
|
+
annotate: False
|
|
33
|
+
format:
|
|
34
|
+
<<: *b100_format
|
|
35
|
+
series:
|
|
36
|
+
EUR=: Euro
|
|
37
|
+
GBP=: Libra
|
|
38
|
+
USD_OVER_JPY: Yen
|
|
39
|
+
USD_OVER_CNY: Yuan
|
|
40
|
+
USD_OVER_CHF: Franco Suizo
|
|
41
|
+
|
|
42
|
+
tipos:
|
|
43
|
+
base_100: True
|
|
44
|
+
start_date: 2024-11-01
|
|
45
|
+
end_date:
|
|
46
|
+
annotate: False
|
|
47
|
+
format:
|
|
48
|
+
<<: *b100_format
|
|
49
|
+
series:
|
|
50
|
+
ES10YT=RR: España
|
|
51
|
+
GR10YT=RR: Grecia
|
|
52
|
+
PT10YT=RR: Portugal
|
|
53
|
+
FR10YT=RR: Francia
|
|
54
|
+
IT10YT=RR: Italia
|
|
55
|
+
DE10YT=RR: Alemania
|
|
56
|
+
legend:
|
|
57
|
+
ncol: 3
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# general plot config file
|
|
2
|
+
|
|
3
|
+
style:
|
|
4
|
+
font: Cabinet Grotesk
|
|
5
|
+
|
|
6
|
+
figure:
|
|
7
|
+
dpi: 500
|
|
8
|
+
layout: constrained
|
|
9
|
+
|
|
10
|
+
ax:
|
|
11
|
+
spines:
|
|
12
|
+
color: gray
|
|
13
|
+
linewidth: 1
|
|
14
|
+
baseline:
|
|
15
|
+
color: "#d9e1fc"
|
|
16
|
+
linestyle: solid
|
|
17
|
+
linewidth: 1
|
|
18
|
+
zorder: 1
|
|
19
|
+
|
|
20
|
+
type_curve:
|
|
21
|
+
last:
|
|
22
|
+
alpha: 0.2
|
|
23
|
+
color: C1
|
|
24
|
+
current:
|
|
25
|
+
alpha: 0.3
|
|
26
|
+
color: C0
|
|
27
|
+
line:
|
|
28
|
+
linewidth: 2
|
|
29
|
+
marker: D
|
|
30
|
+
color: C0
|
|
31
|
+
legend_sep: -0.1
|
|
32
|
+
|
|
33
|
+
barh:
|
|
34
|
+
highlight_factor: 0.4
|
|
35
|
+
padding: 5
|
|
36
|
+
|
|
37
|
+
line:
|
|
38
|
+
legend_sep: -0.125
|
|
39
|
+
ncol: 5
|
|
40
|
+
|
|
41
|
+
table:
|
|
42
|
+
style: Light Shading Accent 1
|
|
43
|
+
autofit: False
|