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}"); } }
//买开 public void buy_btn_Open(double price) { _t.ReqOrderInsert(_sub1, DirectionType.Buy, OffsetType.Open, price, 1, 1000); }