예제 #1
0
 private void _t_OnRspUserLogin(object sender, IntEventArgs e)
 {
     if (e.Value == 0)
     {
         Log("登录成功");
         _t.ReqOrderInsert("rb1705", DirectionType.Sell, OffsetType.Open, 3200, 1, 1000);
     }
     else
     {
         Log($"登录错误:{e.Value}");
     }
 }
예제 #2
0
 //买开
 public void buy_btn_Open(double price)
 {
     _t.ReqOrderInsert(_sub1, DirectionType.Buy, OffsetType.Open, price, 1, 1000);
 }