public void EnqueueDeletedLimitOrder(ILimitOrder limitOrder) { serverToClientMessage.Reset(); serverToClientMessage.ReceiverClientId = limitOrder.ClientId; serverToClientMessage.LimitOrder.Update(limitOrder.ToDto()); serverToClientMessage.MessageType = ServerToClientMessageTypeEnum.LimitOrderDeleted; Enqueue(); }
public void EnqueueAddedLimitOrder(ILimitOrder limitOrder) { serverToClientMessage.Reset(); serverToClientMessage.ReceiverClientId = limitOrder.ClientId; serverToClientMessage.LimitOrder.Update(limitOrder.ToDto()); serverToClientMessage.MessageType = ServerToClientMessageTypeEnum.LimitOrderAccepted; Enqueue(); }
public void EnqueueUpdatedLimitOrder(ILimitOrder limitOrder, int oldQuantity, double oldPrice) { serverToClientMessage.Reset(); serverToClientMessage.ReceiverClientId = limitOrder.ClientId; serverToClientMessage.LimitOrder.Update(limitOrder.ToDto()); serverToClientMessage.MessageType = ServerToClientMessageTypeEnum.LimitOrderChanged; Enqueue(); }
public void EnqueueUpdatedLimitOrder(ILimitOrder limitOrder, int oldQuantity, double oldPrice) { serverToClientMessage.Reset(); serverToClientMessage.ReceiverClientId = limitOrder.ClientId; serverToClientMessage.LimitOrder.Update(limitOrder.ToDto()); serverToClientMessage.MessageType = ServerToClientMessageTypeEnum.LimitOrderChanged; Enqueue(); }