public ExecuteOrderSummaryItem(InstrumentClient instrument, OrderRange orderRange)
 {
     this._ChildSummaryItems = new ObservableCollection<ExecuteOrderSummaryItem>();
     this._Code = orderRange.BeginRange + "~" + orderRange.EndRange;
     this._Id = instrument.Id + "_" + this._Code;
     this._ExecuteOrderSummaryType = ExecuteOrderSummaryType.Range;
     this._MinNumeratorUnit = instrument.NumeratorUnit;
     this._MaxDenominator = instrument.Denominator;
     this._Instrument = instrument;
     this._OrderRange = orderRange;
 }
        private OrderRange GetTimeRange(DateTime executeTime, int interval)
        {
            string beginTime = executeTime.ToShortTimeString();
            string EndTime = executeTime.AddMinutes(interval).ToShortTimeString();

            OrderRange orderRange = new OrderRange(RangeType.Time, interval, beginTime, EndTime);
            return orderRange;
        }
        private OrderRange GetPriceRange(string executePrice, int interval, InstrumentClient instrument)
        {
            Price rangeValue = new Price(executePrice, (int)instrument.NumeratorUnit, (int)instrument.Denominator);
            Price beginPrice = rangeValue;
            Price EndPrice = rangeValue + interval;

            OrderRange orderRange = new OrderRange(RangeType.Price, interval, beginPrice.ToString(), EndPrice.ToString());
            return orderRange;
        }