From a330bc5020c5ecfeae59afa506539f302fb64fea Mon Sep 17 00:00:00 2001 From: Taha Afzal Date: Mon, 3 Oct 2022 23:20:15 -0400 Subject: [PATCH] MV and Ladder use GreekTuple.normalized_theo now --- src/client/spark/Modules/Trading/Ladder/FairValueModel.cs | 2 +- src/client/spark/Modules/Trading/Ladder/VM/LadderVM.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/spark/Modules/Trading/Ladder/FairValueModel.cs b/src/client/spark/Modules/Trading/Ladder/FairValueModel.cs index 7e78770f4..252361314 100644 --- a/src/client/spark/Modules/Trading/Ladder/FairValueModel.cs +++ b/src/client/spark/Modules/Trading/Ladder/FairValueModel.cs @@ -49,7 +49,7 @@ namespace Spark.Trading { IObservable theo_source() => _sec_greeks_in.Select(sec_greeks => - sec_greeks.TryGetValue(key.security_id, out var greeks) ? greeks.theo : double.NaN); + sec_greeks.TryGetValue(key.security_id, out var greeks) ? greeks.normalized_theo : double.NaN); } } } diff --git a/src/client/spark/Modules/Trading/Ladder/VM/LadderVM.cs b/src/client/spark/Modules/Trading/Ladder/VM/LadderVM.cs index 86a382b58..107d3c189 100644 --- a/src/client/spark/Modules/Trading/Ladder/VM/LadderVM.cs +++ b/src/client/spark/Modules/Trading/Ladder/VM/LadderVM.cs @@ -256,7 +256,7 @@ namespace mbts.spark { bus.subscribe(SparkTags.LogActivity).OnDispatcher().Subscribe(status_update), bus.subscribe(SparkTags.SecuritiesTag).OnDispatcher().Subscribe(on_security_map), model.greeks.OnDispatcher().Subscribe(g => { - _theo.set(g.theo); + _theo.set(g.normalized_theo); _delta.set(g.delta); _vega.set(g.vega); }),