diff --git a/iol/handler.py b/iol/handler.py index bd4d5b6..0c01cce 100644 --- a/iol/handler.py +++ b/iol/handler.py @@ -155,21 +155,3 @@ def get_adrs(secret, nombre): except: pass return last_results[f"ADR/{nombre}"] - - -@router.get("/{secret}/ON/{nombre}") -def get_on(secret, nombre): - if secret != SECRET: - raise Exception("BAD") - nombre = nombre.upper() - access, refresh = get_token(ttl_hash=get_ttl_hash()) - url = ( - BASE_URL - + f"/api/v2/Cotizaciones/obligacionesnegociables/ar/Todos?cotizacionInstrumentoModel.instrumento=obligacionesNegociables&cotizacionInstrumentoModel.pais=argentina&api_key={access}" - ) - data = get(url, ttl_hash=get_ttl_hash()) - try: - last_results[f"ON/{nombre}"]=[a for a in data["titulos"] if a["simbolo"] == nombre][0] - except: - pass - return last_results[f"ON/{nombre}"] \ No newline at end of file