I use websocket like that, sometimes I can get the right message, but sometimes I cant get any message. e.g. I made 6 new order today but no “ORDER_TRADE_UPDATE” return ,what the probable reasons for that?
BinanceClient.futureSubsptClient.subscribeUserDataEvent(listenKey, ((event) -> {
//更新资金、持仓信息
if(event.getEventType().equals("ACCOUNT_UPDATE")){
for(BalanceUpdate balanceUpdate:event.getAccountUpdate().getBalances()){
MarketCache.futureBalanceCache.put(balanceUpdate.getAsset(),balanceUpdate);
}
for(PositionUpdate positionUpdate:event.getAccountUpdate().getPositions()){
MarketCache.futurePositionCache.put(positionUpdate.getSymbol(),positionUpdate);
}
// logger.info("future accout_update event:{}",event);
//更新订单信息
}else if(event.getEventType().equals("ORDER_TRADE_UPDATE")){
OrderUpdate orderUpdate = event.getOrderUpdate();
MarketCache.futureOrderCache.put(orderUpdate.getOrderId(),orderUpdate);
logger.info("future trade_update event: orderstatus={},clientId={},price={},qty={},event={}",
orderUpdate.getOrderStatus(),orderUpdate.getClientOrderId(),orderUpdate.getAvgPrice(),