Add null check in _recompute_and_publish
This commit is contained in:
1 parent
d271e2a3ef
commit
abab98cea6
1 file changed
+16
-14
@@ -1,17 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using mbts.analytics;
|
||||
using bts.api;
|
||||
using mbts;
|
||||
using bts.shell;
|
||||
using System.Collections;
|
||||
using mbts.co2;
|
||||
using System.Reflection.Metadata.Ecma335;
|
||||
namespace mbts.spark {
|
||||
using bts;
|
||||
using bts.api;
|
||||
|
||||
using mbts;
|
||||
using mbts.analytics;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Collections;
|
||||
|
||||
namespace mbts.spark {
|
||||
/// This class publishes the market implied vols for the
|
||||
/// selected expiration.
|
||||
public class SingleVolSurfaceMarketImpliedVolSource : IDisposable {
|
||||
@@ -145,6 +143,10 @@ namespace mbts.spark {
|
||||
_ignore_market_implied_vol_source_settings(_bb, _vs_id), out md_exp);
|
||||
_timer.stop();
|
||||
_logger.log("SingleVolSurfaceMarketImpliedVolSource", "SingleVolSurfaceMarketImpliedVolSource", _timer.lastIntervalTime);
|
||||
if (exp_impl_vol_map is null) {
|
||||
return;
|
||||
}
|
||||
|
||||
var sz = exp_impl_vol_map.put_rawk_vols.Count() + exp_impl_vol_map.call_rawk_vols.Count();
|
||||
bts.Log.Gen.info($"SingleVolSurfaceMarketImpliedVolSource posting implied vols sz:{sz}");
|
||||
_bb.post(SparkTags.VolSurfaceMarketImpliedVolTag(_vs_id),
|
||||
@@ -196,4 +198,4 @@ namespace mbts.spark {
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user