コード例 #1
0
 internal OrderSettings(Order owner, OrderConstructParams constructParams)
     : base(owner)
 {
     _owner       = owner;
     _hitSettings = new HitOrderSettings(owner, constructParams);
     _notValuedDayInterestAndStorage = new NotValuedDayInterestAndStorage(owner, constructParams);
     this.Parse(constructParams);
 }
コード例 #2
0
 private void ParseSettings(OrderConstructParams constructParams)
 {
     _interestValueDate   = this.CreateSoundItem(OrderBusinessItemNames.InterestValueDate, constructParams.InterestValueDate);
     _setPriceMaxMovePips = this.CreateReadonlyItem(OrderBusinessItemNames.SetPriceMaxMovePips, constructParams.SetPriceMaxMovePips);
     _dqMaxMove           = this.CreateReadonlyItem(OrderBusinessItemNames.DQMaxMove, constructParams.DQMaxMove);
     _phase       = this.CreateSoundItem(OrderBusinessItemNames.Phase, constructParams.Phase);
     _tradeOption = this.CreateReadonlyItem(OrderBusinessItemNames.TradeOption, constructParams.TradeOption);
 }
コード例 #3
0
ファイル: HitOrderSettings.cs プロジェクト: dreamsql/Outter
 internal HitOrderSettings(Order parent, OrderConstructParams constructParams) :
     base(parent)
 {
     _owner     = parent;
     _bestTime  = this.CreateSoundItem("BestTime", constructParams.BestTime);
     _hitCount  = this.CreateSoundItem(OrderBusinessItemNames.HitCount, constructParams.HitCount);
     _bestPrice = this.CreateSoundItem(OrderBusinessItemNames.BestPrice, constructParams.BestPrice);
     _hitStatus = this.CreateSoundItem(OrderBusinessItemNames.HitStatus, constructParams.HitStatus);
 }
コード例 #4
0
 private void ParseLot(OrderConstructParams constructParams)
 {
     _lot            = this.CreateSoundItem(OrderBusinessItemNames.Lot, constructParams.Lot);
     _originalLot    = this.CreateReadonlyItem(OrderBusinessItemNames.OriginalLot, constructParams.OriginalLot);
     _lotBalance     = this.CreateSoundItem(OrderBusinessItemNames.LotBalance, constructParams.LotBalance);
     _interestPerLot = this.CreateSoundItem("InterestPerLot", constructParams.InterestPerLot);
     _storagePerLot  = this.CreateSoundItem("StoragePerLot", constructParams.StoragePerLot);
     _minLot         = this.CreateSoundItem("MinLot", constructParams.MinLot);
     _maxShow        = this.CreateSoundItem("MaxShow", constructParams.MaxShow);
 }
コード例 #5
0
 private void ParsePrice(OrderConstructParams constructParams)
 {
     _executePrice        = this.CreateSoundItem(OrderBusinessItemNames.ExecutePrice, constructParams.ExecutePrice);
     _setPrice            = this.CreateReadonlyItem(OrderBusinessItemNames.SetPrice, constructParams.SetPrice);
     _setPrice2           = this.CreateReadonlyItem(OrderBusinessItemNames.SetPrice2, constructParams.SetPrice2);
     _autoLimitPrice      = this.CreateDumpItem <Price>("AutoLimitPrice", null);
     _autoStopPrice       = this.CreateDumpItem <Price>("AutoStopPrice", null);
     _priceTimestamp      = this.CreateSoundItem(OrderBusinessItemNames.PriceTimestamp, constructParams.PriceTimestamp);
     _judgePrice          = this.CreateSoundItem <Price>("JudgePrice", null);
     _judgePriceTimestamp = this.CreateSoundItem <DateTime?>("JudgePriceTimestamp", null);
 }
コード例 #6
0
ファイル: OrderFacade.cs プロジェクト: dreamsql/Outter
 internal Order CreateOrder(Transaction tran, OrderConstructParams constructParams)
 {
     if (tran.IsPhysical)
     {
         return(PhysicalOrderServiceFactory.Default.CreateOrder(tran, constructParams));
     }
     else
     {
         return(GeneralOrderServiceFactory.Default.CreateOrder(tran, constructParams));
     }
 }
コード例 #7
0
 protected virtual void Parse(OrderConstructParams constructParams)
 {
     _id     = this.CreateKey(OrderBusinessItemNames.Id, constructParams.Id);
     _isOpen = this.CreateSoundItem(OrderBusinessItemNames.IsOpen, constructParams.IsOpen);
     _isBuy  = this.CreateReadonlyItem(OrderBusinessItemNames.IsBuy, constructParams.IsBuy);
     this.ParseLot(constructParams);
     this.ParseCode(constructParams);
     this.ParsePrice(constructParams);
     this.ParseSettings(constructParams);
     _cancelReasonId          = this.CreateSoundItem <Guid?>("CANCELREASONID", null);
     _cancelReasonDesc        = this.CreateSoundItem <string>("CANCELREASONDESC", null);
     _cancelReason            = this.CreateSoundItem <CancelReason?>("CancelReason", null);
     _orderBatchInstructionID = this.CreateReadonlyItem("OrderBatchInstructionID", constructParams.OrderBatchInstructionID);
     _isAutoFill = this.CreateSoundItem("IsAutoFill", false);
     _estimateCloseCommission = this.CreateSoundItem("EstimateCloseCommission", constructParams.EstimateCloseCommission);
     _estimateCloseLevy       = this.CreateSoundItem("EstimateCloseLevy", constructParams.EstimateCloseLevy);
 }
コード例 #8
0
 private void ParseCode(OrderConstructParams constructParams)
 {
     _code        = this.CreateSoundItem(OrderBusinessItemNames.Code, constructParams.Code);
     _originCode  = this.CreateReadonlyItem(OrderBusinessItemNames.OriginCode, constructParams.OriginCode);
     _blotterCode = this.CreateReadonlyItem(OrderBusinessItemNames.BlotterCode, constructParams.BlotterCode);
 }
コード例 #9
0
 internal NotValuedDayInterestAndStorage(BusinessRecord parent, OrderConstructParams constructParams)
     : base(parent)
 {
 }