From 13d054a54c2022d0d688a7d2d7bf9014cdc24eae Mon Sep 17 00:00:00 2001 From: Jake Norbut Date: Wed, 8 May 2019 10:04:01 -0500 Subject: [PATCH] just keep checking the OB cache rather than against our local one --- .../spark/Modules/Trading/OrderBook/OrderBookRowVM.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/client/spark/Modules/Trading/OrderBook/OrderBookRowVM.cs b/src/client/spark/Modules/Trading/OrderBook/OrderBookRowVM.cs index cdf97002c..2f9df1288 100644 --- a/src/client/spark/Modules/Trading/OrderBook/OrderBookRowVM.cs +++ b/src/client/spark/Modules/Trading/OrderBook/OrderBookRowVM.cs @@ -22,7 +22,6 @@ namespace mbts.spark { IRaiseCanExecuteChangedCommand _show_order_modify_cmd, _toggle_expanded_cmd, _cancel_cmd, _detach_command, _attach_command, _update_command, _modify_order_quantity_andor_price, _revert_prospective_order_quantity_andor_price; bool _is_parent, _is_expanded, _is_selected, _is_attachable, _is_detachable; int _depth_level; - OrderRecordImmutable? _root_algo_record; SecurityImmutable? _security => order_tuple.security; @@ -105,14 +104,7 @@ namespace mbts.spark { public string filled_status_desc => order.filled_status_description(security.spec_or_default()); // Root Algo - public OrderRecordImmutable root_algo_record { - get { - if (!_root_algo_record.HasValue) { - _root_algo_record = _owner.get_root(this.order); - } - return _root_algo_record.Value; - } - } + public OrderRecordImmutable root_algo_record => _owner.get_root(this.order); public CustomOrderDefinition.CustomOneofCase root_algo_order_type => root_algo_record.order_type(); public OrderSecurityAlgoMeta root_algo_order_tuple => _owner.get_ordersecurityalgometa(root_algo_record); public OrderMetadata root_algo_order_metdata => _owner.get_metadata(root_algo_record);