Пример #1
0
 void Start_Stock()
 {
     //Stock
     {
         String id = "Stock 19511";
         int port = 19511;
         MarketDataPacketHandler handler = new MarketDataPacketHandler(Stock);
         RegisterAndStartUdpStreamManager(id, handler, port);
     }
     {
         String id = "Stock 19512";
         int port = 19512;
         MarketDataPacketHandler handler = new MarketDataPacketHandler(Stock);
         RegisterAndStartUdpStreamManager(id, handler, port);
     }
     {
         String id = "Stock 19513";
         int port = 19513;
         MarketDataPacketHandler handler = new MarketDataPacketHandler(Stock);
         RegisterAndStartUdpStreamManager(id, handler, port);
     }
     {
         String id = "Stock 19514";
         int port = 19514;
         MarketDataPacketHandler handler = new MarketDataPacketHandler(Stock);
         RegisterAndStartUdpStreamManager(id, handler, port);
     }
     {
         String id = "Stock 19515";
         int port = 19515;
         MarketDataPacketHandler handler = new MarketDataPacketHandler(Stock);
         RegisterAndStartUdpStreamManager(id, handler, port);
     }
     {
         String id = "Stock 19521";
         int port = 19521;
         MarketDataPacketHandler handler = new MarketDataPacketHandler(Stock);
         RegisterAndStartUdpStreamManager(id, handler, port);
     }
     {
         String id = "Stock 19522";
         int port = 19522;
         MarketDataPacketHandler handler = new MarketDataPacketHandler(Stock);
         RegisterAndStartUdpStreamManager(id, handler, port);
     }
 }
Пример #2
0
        void Start_KospiFutureOptionSpread()
        {
            //Future
            {
                String id = "Kospi Future";
                int port = 15572;
                MarketDataPacketHandler handler = new MarketDataPacketHandler(KospiFuture);
                RegisterAndStartUdpStreamManager(id, handler, port);
            }
            //Call Option
            {
                String id = "Call Option";
                int port = 15515;
                MarketDataPacketHandler handler = new MarketDataPacketHandler(Call);
                RegisterAndStartUdpStreamManager(id, handler, port);
            }

            //Put Option
            {
                String id = "Put Option";
                int port = 15516;
                MarketDataPacketHandler handler = new MarketDataPacketHandler(Put);
                RegisterAndStartUdpStreamManager(id, handler, port);
            }
        }
Пример #3
0
 void Start_KtbSpot()
 {
     //Ktb Bond
     {
         String id = "Ktb Spot";
         int port = 38000;
         MarketDataPacketHandler handler = new MarketDataPacketHandler(KtbSpot);
         RegisterAndStartUdpStreamManager(id, handler, port);
     }
 }
Пример #4
0
 void Start_Elw()
 {
     //Elw
     {
         String id = "Elw 19616";
         int port = 19616;
         MarketDataPacketHandler handler = new MarketDataPacketHandler(Elw);
         RegisterAndStartUdpStreamManager(id, handler, port);
     }
     {
         String id = "Elw 19617";
         int port = 19617;
         MarketDataPacketHandler handler = new MarketDataPacketHandler(Elw);
         RegisterAndStartUdpStreamManager(id, handler, port);
     }
     {
         String id = "Elw 19618";
         int port = 19618;
         MarketDataPacketHandler handler = new MarketDataPacketHandler(Elw);
         RegisterAndStartUdpStreamManager(id, handler, port);
     }
     {
         String id = "Elw 19619";
         int port = 19619;
         MarketDataPacketHandler handler = new MarketDataPacketHandler(Elw);
         RegisterAndStartUdpStreamManager(id, handler, port);
     }
     {
         String id = "Elw 19620";
         int port = 19620;
         MarketDataPacketHandler handler = new MarketDataPacketHandler(Elw);
         RegisterAndStartUdpStreamManager(id, handler, port);
     }
     {
         String id = "Elw 19621";
         int port = 19621;
         MarketDataPacketHandler handler = new MarketDataPacketHandler(Elw);
         RegisterAndStartUdpStreamManager(id, handler, port);
     }
     {
         String id = "Elw 19622";
         int port = 19622;
         MarketDataPacketHandler handler = new MarketDataPacketHandler(Elw);
         RegisterAndStartUdpStreamManager(id, handler, port);
     }
 }