| | |
| | | private static final String STATE_KEY = "state"; |
| | | private static final String FILLFEE_KEY = "fillFee"; |
| | | private static final String POSSIDE_KEY = "posSide"; |
| | | public static List<TradeRequestParam> handleEvent(JSONObject response, RedisUtils redisUtils, String accountName) { |
| | | public static TradeRequestParam handleEvent(JSONObject response, RedisUtils redisUtils, String accountName) { |
| | | |
| | | log.info("开始执行OrderInfoWs......"); |
| | | try { |
| | |
| | | |
| | | log.info("{}: 订单详情已完成: {}, 自定义编号: {}", accountName, CoinEnums.HE_YUE.getCode(), clOrdId); |
| | | |
| | | List<TradeRequestParam> tradeRequestParamList = new ArrayList<>(); |
| | | |
| | | TradeRequestParam tradeRequestParam = new TradeRequestParam(); |
| | | tradeRequestParam.setAccountName(accountName); |
| | | BigDecimal zhiYingPx = getZhiYingPx( |
| | |
| | | tradeRequestParam.setSide(CoinEnums.POSSIDE_LONG.getCode().equals(posSide) ? CoinEnums.SIDE_SELL.getCode() : CoinEnums.SIDE_BUY.getCode()); |
| | | tradeRequestParam.setClOrdId(WsParamBuild.getOrderNum(side)); |
| | | tradeRequestParam.setSz(accFillSz); |
| | | tradeRequestParamList.add(tradeRequestParam); |
| | | |
| | | return tradeRequestParamList; |
| | | return tradeRequestParam; |
| | | |
| | | } |
| | | return null; |