fix(okxNewPrice): 修正加仓操作的交易方向
- 将加仓逻辑中的交易方向从买入改为卖出
- 确保订单参数设置正确的交易方向
- 更新日志记录以反映新的交易行为
| | |
| | | if (pingCang != null && markPx.compareTo(pingCang.getValue()) >= 0 && avgPx.compareTo(pingCang.getValue()) < 0) { |
| | | log.info("开始加仓...上限队列价格小于当前价格{}<={}", pingCang.getValue(), markPx); |
| | | WsMapBuild.saveStringToMap(OrderInfoWs.getAccountMap(accountName), "orderPrice", String.valueOf(markPx)); |
| | | String side = CoinEnums.SIDE_BUY.getCode(); |
| | | String side = CoinEnums.SIDE_SELL.getCode(); |
| | | tradeRequestParam.setSide(side); |
| | | String clOrdId = WsParamBuild.getOrderNum(side); |
| | | tradeRequestParam.setClOrdId(clOrdId); |