Example #1
0
        public void PlaceStopOrder(StopOrderSpecification stopOrderSpecification, OnInstructionResponse instructionCallback, OnFailure failureCallback)
        {
            OrderResponseHandler handler = new OrderResponseHandler();

            SendRequest(stopOrderSpecification, handler, delegate { instructionCallback(handler.InstructionId); }, failureCallback);
        }
Example #2
0
        public void PlaceStopOrder(StopOrderSpecification stopOrderSpecification, OnInstructionResponse instructionCallback, OnFailure failureCallback)
        {
            OrderResponseHandler handler = new OrderResponseHandler();

            this.SendRequest((IRequest)stopOrderSpecification, (Handler)handler, (Session.OnSucessfulRequest)(() => instructionCallback(handler.InstructionId)), failureCallback);
        }