Пример #1
0
        public void AmendStops(AmendStopLossProfitRequest amendStopLossProfitRequest, OnInstructionResponse instructionCallback, OnFailure failureCallback)
        {
            OrderResponseHandler handler = new OrderResponseHandler();

            SendRequest(amendStopLossProfitRequest, handler, delegate() { instructionCallback(handler.InstructionId); }, failureCallback);
        }
Пример #2
0
        public void CancelOrder(CancelOrderRequest cancelOrderRequest, OnInstructionResponse instructionCallback, OnFailure failureCallback)
        {
            OrderResponseHandler handler = new OrderResponseHandler();

            SendRequest(cancelOrderRequest, handler, delegate() { instructionCallback(handler.InstructionId); }, failureCallback);
        }
Пример #3
0
        public void PlaceLimitOrder(LimitOrderSpecification limitOrderSpecification, OnInstructionResponse instructionCallback, OnFailure failureCallback)
        {
            OrderResponseHandler handler = new OrderResponseHandler();

            SendRequest(limitOrderSpecification, handler, delegate() { instructionCallback(handler.InstructionId); }, failureCallback);
        }
Пример #4
0
        public void AmendStops(AmendStopLossProfitRequest amendStopLossProfitRequest, OnInstructionResponse instructionCallback, OnFailure failureCallback)
        {
            OrderResponseHandler handler = new OrderResponseHandler();

            this.SendRequest((IRequest)amendStopLossProfitRequest, (Handler)handler, (Session.OnSucessfulRequest)(() => instructionCallback(handler.InstructionId)), failureCallback);
        }
Пример #5
0
        public void CancelOrder(CancelOrderRequest cancelOrderRequest, OnInstructionResponse instructionCallback, OnFailure failureCallback)
        {
            OrderResponseHandler handler = new OrderResponseHandler();

            this.SendRequest((IRequest)cancelOrderRequest, (Handler)handler, (Session.OnSucessfulRequest)(() => instructionCallback(handler.InstructionId)), failureCallback);
        }
Пример #6
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);
        }