Quant0 commited on
Commit
a69da38
·
verified ·
1 Parent(s): 8c4570c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -208,7 +208,6 @@ with gr.Blocks(title="Análisis de Opciones") as demo:
208
  gr.Markdown("#### Herramienta para visualizar y exportar datos de opciones.")
209
  gr.Markdown("Introduzca el tipo de opción que desea consultar, indicando el Ticker y la Fecha de vencimiento. Si no se especifica una fecha de vencimiento, se mostrarán todas las disponibles.")
210
  with gr.Row():
211
- option_type = gr.Radio(choices=["put", "call"], label="Tipo de opción", value="put")
212
  ticker_input = gr.Textbox(label="Ticker (ej. GOOGL)", value="MSTR")
213
  expiration_date = gr.Textbox(label="Fecha de vencimiento (formato: aaaa-mm-dd)", value = "" )
214
  size_of_the_window = gr.Slider(minimum=1, maximum=30, value=16, step=1, label="Tamaño de la ventana")
@@ -219,12 +218,14 @@ with gr.Blocks(title="Análisis de Opciones") as demo:
219
  btn_mostrar = gr.Button("Mostrar datos")
220
 
221
  with gr.Tab("Puts"):
222
-
 
223
  with gr.Row():
224
 
225
  output_df_put = gr.DataFrame(label="Datos de Opciones put", value=initial_df_put)
226
 
227
  with gr.Tab("Calls"):
 
228
 
229
  with gr.Row():
230
 
@@ -239,7 +240,8 @@ with gr.Blocks(title="Análisis de Opciones") as demo:
239
  output_plot2 = gr.Plot(label = 'Volatilidad Implícita por strike')
240
 
241
  with gr.Tab("Exportar"):
242
-
 
243
  btn_descargar = gr.Button("Descargar en Excel")
244
  output_file = gr.File(label="Archivo Excel")
245
  output_msg = gr.Label()
 
208
  gr.Markdown("#### Herramienta para visualizar y exportar datos de opciones.")
209
  gr.Markdown("Introduzca el tipo de opción que desea consultar, indicando el Ticker y la Fecha de vencimiento. Si no se especifica una fecha de vencimiento, se mostrarán todas las disponibles.")
210
  with gr.Row():
 
211
  ticker_input = gr.Textbox(label="Ticker (ej. GOOGL)", value="MSTR")
212
  expiration_date = gr.Textbox(label="Fecha de vencimiento (formato: aaaa-mm-dd)", value = "" )
213
  size_of_the_window = gr.Slider(minimum=1, maximum=30, value=16, step=1, label="Tamaño de la ventana")
 
218
  btn_mostrar = gr.Button("Mostrar datos")
219
 
220
  with gr.Tab("Puts"):
221
+ gr.Markdown("# Opciones Put")
222
+
223
  with gr.Row():
224
 
225
  output_df_put = gr.DataFrame(label="Datos de Opciones put", value=initial_df_put)
226
 
227
  with gr.Tab("Calls"):
228
+ gr.Markdown("# Opciones Call")
229
 
230
  with gr.Row():
231
 
 
240
  output_plot2 = gr.Plot(label = 'Volatilidad Implícita por strike')
241
 
242
  with gr.Tab("Exportar"):
243
+ gr.Markdown("# Exportación:")
244
+ gr.Markdown("### Se generará un archivo excel con dos hojas: Calls y Puts, con las correspondientes tablas según los datos seleccionados")
245
  btn_descargar = gr.Button("Descargar en Excel")
246
  output_file = gr.File(label="Archivo Excel")
247
  output_msg = gr.Label()