| | |
| | | .maxPositionPerSide(dto.getMaxPositionPerSide()) |
| | | .addPositionStartThreshold(dto.getAddPositionStartThreshold() >= 0 ? dto.getAddPositionStartThreshold() : 1) |
| | | .placeExcessTakeProfit(normalizeTakeProfitMode(dto.getPlaceExcessTakeProfit())) |
| | | .dualStopLossEnabled(nvl(dto.getDualStopLossEnabled(), false)) |
| | | .longStopLossPrice(dto.getLongStopLossPrice()) |
| | | .shortStopLossPrice(dto.getShortStopLossPrice()) |
| | | .build(); |
| | | } |
| | | |
| | |
| | | return GateConfig.EXCESS_TP_OFF; |
| | | } |
| | | switch (raw.trim()) { |
| | | case "off": |
| | | return GateConfig.EXCESS_TP_OFF; |
| | | case "true": |
| | | case "concentrated": |
| | | return GateConfig.EXCESS_TP_CONCENTRATED; |