diff --git a/scripts/research/r0823_spot_netting.py b/scripts/research/r0823_spot_netting.py index 81407e2..befd6eb 100644 --- a/scripts/research/r0823_spot_netting.py +++ b/scripts/research/r0823_spot_netting.py @@ -317,6 +317,11 @@ def q1() -> dict: # ---------------------------------------------------------------- 1f) il rendimento dell'USDC print("\n 1f) IPOTESI MIA, NATA E REFUTATA QUI: «convertire USDC in spot rinuncia a un interesse»") apr = pool.get("USDC", (None, None))[1] + if apr is None: + print(" [VENUE] get_currencies NON letto in questa corsa -> sezione non eseguibile.") + print(" «non l'ho guardato» non e' «e' zero»: si dichiara, non si assume.") + return dict(E=Eu, cap=cap, im=imr, free=free, need=need, spec=spec, apr=None, + tp_gross=tp_gross_1x, skh_gross=skh_gross) print(f" [VENUE] get_currencies dichiara USDC `apr` = {apr} (USDT 0,0 · BTC 0,0 · ETH 0,0)") print(" Se quel tasso fosse accreditato a questo conto, mettere il 75% del capitale in") print(f" spot BTC/ETH (apr 0,0) costerebbe fino a {(apr or 0)*0.75:.2f}%/anno = meta' del")