| | |
| | | int posSize = Math.max(queryPositionSize(Position.ModeEnum.DUAL_SHORT), shortPositionSize.intValue()); |
| | | extendShortStopLoss(posSize, shortGridElement.getId()); |
| | | // [Gate] 止盈挂单:超出基础仓位的部分,挂在多仓第一止损位 |
| | | placeExcessTakeProfit(posSize, false); |
| | | // placeExcessTakeProfit(posSize, false); |
| | | log.info("[Gate] 空单成交 gridId:{}, 当前持仓:{}张", filledQty, posSize); |
| | | |
| | | } |
| | |
| | | int posSize = Math.max(queryPositionSize(Position.ModeEnum.DUAL_LONG), longPositionSize.intValue()); |
| | | extendLongStopLoss(posSize, longGridElement.getId()); |
| | | // [Gate] 止盈挂单:超出基础仓位的部分,挂在空仓第一止损位 |
| | | placeExcessTakeProfit(posSize, true); |
| | | // placeExcessTakeProfit(posSize, true); |
| | | log.info("[Gate] 多单成交 gridId:{}, 当前持仓:{}张", filledQty, posSize); |
| | | |
| | | } |