Esempio n. 1
0
        internal virtual void Fill(Account account, Protocal.OrderRelationData orderRelationData)
        {
            this.OperationType         = Framework.OperationType.AsNewRecord;
            this.CloseOrder            = account.GetOrder(orderRelationData.CloseOrderId);
            this.OpenOrder             = account.GetOrder(orderRelationData.OpenOrderId);
            this.ClosedLot             = orderRelationData.ClosedLot;
            this.OpenOrderExecuteTime  = orderRelationData.OpenOrderExecuteTime;
            this.OpenOrderExecutePrice = orderRelationData.OpenOrderExecutePrice;
            var bookData = orderRelationData as Protocal.OrderRelationBookData;

            if (bookData != null)
            {
                this.FillBookData(bookData);
            }
        }
 public override AddOrderRelationCommandBase Create(Order closeOrder, Protocal.OrderRelationData orderRelaitonData)
 {
     return(new AddPhysicalOrderRelationCommand((PhysicalOrder)closeOrder, orderRelaitonData));
 }
Esempio n. 3
0
 internal AddCommunicationPhysicalOrderRelationCommand(Physical.PhysicalOrder closeOrder, Protocal.OrderRelationData orderRelationData)
     : base(closeOrder, AddPhysicalOrderRelationCommandService.Default, orderRelationData)
 {
 }
Esempio n. 4
0
 protected AddCommunicationOrderRelationCommandBase(Order closeOrder, IAddOrderRelationCommandService commandService, Protocal.OrderRelationData orderRelationData)
     : base(closeOrder, Visitors.AddCommunicationOrderRelationCommandVisitor.Default, commandService, orderRelationData)
 {
 }
Esempio n. 5
0
 protected OrderRelationCommunicationCommandBase(Order closeOrder, Visitors.AddCommunicationOrderRelaitonVistorBase visitor, IAddOrderRelationCommandService commandService, Protocal.OrderRelationData orderRelationData)
     : base(closeOrder, visitor, commandService)
 {
     this.OrderRelationData = orderRelationData;
 }
Esempio n. 6
0
 public abstract AddOrderRelationCommandBase Create(Order closeOrder, Protocal.OrderRelationData orderRelaitonData);
 internal override AddOrderRelationCommandBase Create(Order closeOrder, Protocal.OrderRelationData orderRelationData)
 {
     return(new AddCommunicationPhysicalOrderRelationCommand((PhysicalOrder)closeOrder, orderRelationData));
 }
 internal abstract AddOrderRelationCommandBase Create(Order closeOrder, Protocal.OrderRelationData orderRelationData);
 internal override AddOrderRelationCommandBase Create(Agent.Order closeOrder, Protocal.OrderRelationData orderRelationData)
 {
     return(new AddCommunicationOrderRelationCommand(closeOrder, orderRelationData));
 }
Esempio n. 10
0
 public override AddOrderRelationCommandBase Create(Agent.Order closeOrder, Protocal.OrderRelationData orderRelaitonData)
 {
     throw new NotImplementedException();
 }
 internal AddGeneralOrderRelationCommand(Order closeOrder, Protocal.OrderRelationData orderRelationData)
     : base(closeOrder, orderRelationData, AddCommunicationOrderRelationCommandVisitor.Default)
 {
 }