Example #1
0
        static void SendGetAllSubscriptionsForTradingEventsRequest(OpenApiMessagesFactory msgFactory, Queue writeQueue)
        {
            var _msg = msgFactory.CreateAllSubscriptionsForTradingEventsRequest();

            if (isDebugIsOn)
            {
                Console.WriteLine("SendGetAllSubscriptionsForTradingEventsRequest() Message to be send:\n{0}", OpenApiMessagesPresentation.ToString(_msg));
            }
            writeQueue.Enqueue(Utils.Serialize(_msg));
        }
Example #2
0
        protected void btnSendGetAllSubscriptionsForTradingEventsRequest_Click(object sender, EventArgs e)
        {
            SendAuthorizationRequest();
            var msgFactory = new OpenApiMessagesFactory();
            var msg        = msgFactory.CreateAllSubscriptionsForTradingEventsRequest();

            Transmit(msg);
            byte[] _message     = Listen(_apiSocket);
            var    protoMessage = msgFactory.GetMessage(_message);

            lblResponse.Text = OpenApiMessagesPresentation.ToString(protoMessage);
        }
Example #3
0
        void SendGetAllSubscriptionsForTradingEventsRequest(OpenApiMessagesFactory msgFactory, Queue writeQueue)
        {
            var _msg = msgFactory.CreateAllSubscriptionsForTradingEventsRequest();

            if (isDebugIsOn)
            {
                //#if LOG_SENTITIVE_INFO
                //                Console.WriteLine("SendGetAllSubscriptionsForTradingEventsRequest() Message to be sent:\n{0}", OpenApiMessagesPresentation.ToString(_msg));
                //#else
                //#endif
                Console.WriteLine("SendGetAllSubscriptionsForTradingEventsRequest() Message to be sent: *********");
            }
            writeQueue.Enqueue(_msg.ToByteArray());
        }