diff --git a/src/client/spark/Modules/Spreader/ExecutionStrategyEditor.xaml b/src/client/spark/Modules/Spreader/ExecutionStrategyEditor.xaml
index 15e946fb7..659609dcb 100644
--- a/src/client/spark/Modules/Spreader/ExecutionStrategyEditor.xaml
+++ b/src/client/spark/Modules/Spreader/ExecutionStrategyEditor.xaml
@@ -377,8 +377,6 @@
-
-
Name
- MD Calculation
+ Pricing
- Pricing
-
@@ -432,7 +420,7 @@
-
+
(SyntheticContract.Types.PriceCalc)GetValue(PriceCalcProperty); set => SetValue(PriceCalcProperty, value); }
public static readonly IEnumerable PriceCalcItems = EnumHelper.get_values();
@@ -314,7 +314,6 @@ namespace mbts.ui.spark {
else if (t == typeof(uint)) return UIntTemplate;
else if (t == typeof(QuantityMeasure)) return QuantityMeasureTemplate;
else if (t == typeof(LegSpreaderParams.Types.MarketDataType)) return MarketDataTypeTemplate;
- else if (t == typeof(LegSpreaderParams.Types.LegMarketDataCalculation)) return MarketDataCalculationTemplate;
else if (t == typeof(ConditionalQuoting.Types.PriceType)) return ConditionalPriceTypeTemplate;
else return null;
}
diff --git a/src/client/spark/Modules/Spreader/VM/ParameterRows/Leg/MarketDataCalculationModel.cs b/src/client/spark/Modules/Spreader/VM/ParameterRows/Leg/MarketDataCalculationModel.cs
deleted file mode 100644
index f526589a3..000000000
--- a/src/client/spark/Modules/Spreader/VM/ParameterRows/Leg/MarketDataCalculationModel.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-using mbts.ui.spark;
-using LegMarketDataCalculation = bts.spark.LegSpreaderParams.Types.LegMarketDataCalculation;
-
-namespace mbts.spark {
- partial class SyntheticEditorVM {
- class MarketDataCalculationModel : RowModelBase {
- public override string display_name { get; } = "Market Data Calculation";
- public override string help_text { get; }
- public override string man_page { get; } = string.Empty;
-
- public override LegMarketDataCalculation get_value(LegSpreaderParamsTuple leg_tup) =>
- leg_tup.leg_params.LegMdCalc;
-
- public override void set_value(LegSpreaderParamsTuple leg_tup, LegMarketDataCalculation value) =>
- leg_tup.leg_params.LegMdCalc = value;
- }
- }
-}
\ No newline at end of file
diff --git a/src/client/spark/Modules/Spreader/VM/SyntheticEditorVM.cs b/src/client/spark/Modules/Spreader/VM/SyntheticEditorVM.cs
index 040f07f85..995c555f7 100644
--- a/src/client/spark/Modules/Spreader/VM/SyntheticEditorVM.cs
+++ b/src/client/spark/Modules/Spreader/VM/SyntheticEditorVM.cs
@@ -26,7 +26,7 @@ namespace mbts.spark {
readonly PriceMultiplierModel _price_mult_model;
readonly List _resources = new List();
readonly Property _has_working_orders, _can_add_leg;
- LegSpreaderParams.Types.LegMarketDataCalculation _selected_md_calc_type;
+
Security _synthetic;
bool _set_name_automatically, _set_ticks_automatically, _set_quantities_automatically, _set_price_mults_automatically, _is_setting_quantities, _is_setting_price_mults;
TickFactors _tick_factors;
@@ -208,7 +208,6 @@ namespace mbts.spark {
//new MinLeanQtyModel(), //TAHA_SPREADER
//new QuoteHiddenModel(),
new MarketDataTypeModel(),
- //new MarketDataCalculationModel(),
new QuoteThrottleEnabledModel(quote_throttle_inside_ticks, quote_throttle_outside_ticks),
quote_throttle_inside_ticks,
quote_throttle_outside_ticks,
@@ -266,8 +265,6 @@ namespace mbts.spark {
public bool is_new_leg_popup_open { get; set; }
public bool can_add_leg => _can_add_leg.Value;
public SyntheticContract.Types.PriceCalc price_calc { get => _synthetic.Synthetic.PriceCalc; set => _synthetic.Synthetic.PriceCalc = value; }
- public LegSpreaderParams.Types.LegMarketDataCalculation selected_md_calc_type { get => _selected_md_calc_type; set => Set(ref _selected_md_calc_type, value); }
- public IEnumerable md_calc_types { get; } = EnumHelper.get_values();
public ObservableCollection leg_tuples { get; } = new ObservableCollection();
public int leg_count => leg_tuples.Count;
public IReadOnlyCollection rows { get; }
@@ -279,7 +276,6 @@ namespace mbts.spark {
var mutable_strategy = _strategy.CloneToMutable();
mutable_strategy.LegParamsMap.Clear();
foreach (var lt in leg_tuples) {
- lt.leg_params.LegMdCalc = selected_md_calc_type;
mutable_strategy.LegParamsMap.Add(lt.leg.Security.Id, lt.leg_params);
}
return new ExecutionStrategyImmutable(mutable_strategy);
@@ -290,9 +286,6 @@ namespace mbts.spark {
_synthetic.Exchange = Venue.Bts;
_strategy = strategy;
leg_tuples.SetItems(_get_legs(_synthetic, strategy));
- if (leg_tuples.Count > 0) {
- Set(ref _selected_md_calc_type, leg_tuples[0].leg_params.LegMdCalc, nameof(selected_md_calc_type));
- }
RaisePropertyChanged(nameof(name), nameof(tick_factors));
}
diff --git a/src/client/spark/view/Converters/EnumStringConverters/SyntheticPriceCalcDisplayTextConverter.cs b/src/client/spark/view/Converters/EnumStringConverters/SyntheticPriceCalcDisplayTextConverter.cs
index 386076cde..9adc0770a 100644
--- a/src/client/spark/view/Converters/EnumStringConverters/SyntheticPriceCalcDisplayTextConverter.cs
+++ b/src/client/spark/view/Converters/EnumStringConverters/SyntheticPriceCalcDisplayTextConverter.cs
@@ -9,10 +9,7 @@ namespace mbts.ui.converters {
class SyntheticPriceCalcDisplayTextConverter : IValueConverter {
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) {
if (value is SyntheticContract.Types.PriceCalc price_calc) {
- switch (price_calc) {
- case SyntheticContract.Types.PriceCalc.Diff: return "Standard";
- default: return DisplayNameHelper.camel_to_title_case(value.ToString());
- }
+ return DisplayNameHelper.camel_to_title_case(value.ToString());
} else return value != null ? value.ToString() : string.Empty;
}
diff --git a/src/client/sparkcmd/Cmd/ServiceTestCommand.cs b/src/client/sparkcmd/Cmd/ServiceTestCommand.cs
index 742c3daf8..2b2d1acd0 100644
--- a/src/client/sparkcmd/Cmd/ServiceTestCommand.cs
+++ b/src/client/sparkcmd/Cmd/ServiceTestCommand.cs
@@ -40,7 +40,7 @@ namespace bts {
Currency = Currency.Usd,
Synthetic = new SyntheticContract {
Name = "Synthetic1",
- PriceCalc = SyntheticContract.Types.PriceCalc.Ratio,
+ PriceCalc = SyntheticContract.Types.PriceCalc.Standard,
Legs = {
new ContractLeg {
Security = new Security {