예제 #1
0
 private static void MdUser_onRspUserLogin(object sender, OnRspUserLoginEventArgs e)
 {
     string[] instruments = new string[2] {
         "IF1912", "IF2001"
     };
     mdUser.SubscribeMarketData(instruments, 2);
 }
예제 #2
0
 private static void Trader_OnRspUserLogin(object sender, OnRspUserLoginEventArgs e)
 {
     Console.WriteLine("Trader_OnRspUserLogin");
     if (e.PRspInfo != null && e.PRspInfo.Value.ErrorID != 0)
     {
         Console.WriteLine(string.Format("OnRspUserLogin[{0}:{1}]",
                                         e.PRspInfo.Value.ErrorID,
                                         e.PRspInfo.Value.ErrorMsg));
     }
 }