资源加载中... loading...

exchange.Go()方法没反应,请检查下c++版的

Author: lanchaiye, Created: 2017-12-22 12:39:16, Updated: 2017-12-23 14:52:52

   auto d = exchange.GetDepth();
    if (d.Valid) {
        Log(d.Asks[0], d.Bids[0]);
    }
   TId ffff;
    auto  ff=exchange.Go("Sell",d.Bids[0].Price,0.05);
    if(ff.wait(ffff)){
         Log(" 111",ffff);
    
    }else{
       Log("22222");
    }  

这段代码在实盘仿真试了没有买卖成功。没反应。不用exchange.Go()方法直接用exchange.Sell();这个方法就可以成功


More

lanchaiye 好的。可以了

Zero 已经修复,重启机器人即可。不需要更新托管