市价单的返回值是不带成交价的,如何得到市价单的成交价呢?
合约
Order order = BinanceClient.futureSyncClient.postOrder(symbol,orderSide,positionSide, OrderType.LIMIT, TimeInForce.IOC,futureQty.toString(),
futurePrice.toString(),null,clientOrderId,null,null, NewOrderRespType.RESULT);
log.info("futrue new order return: orderid={},status={},qty={}" , clientOrderId,order.getStatus(),order.getExecutedQty());
现货:
newOrderResponse = spotSyncClientProxy.newOrder(
marketBuy(symbol,spotQty.toString()).newOrderRespType(NewOrderResponseType.FULL).newClientOrderId(clientOrderId));
无论是合约还是现货都没法返回成交价格和成交数量,我如何才能拿的到呢?