| | |
| | | private String unrealizedPnlPriceMode; |
| | | /** 是否为生产环境 */ |
| | | private boolean isProduction; |
| | | /** 价格驱动开关:true=启用K线推送中的价格驱动逻辑,false=禁用。null=未设置(默认true) */ |
| | | private Boolean priceDriveEnabled; |
| | | /** 策略运行轮数上限:达到盈利后重启计数,达到此值后不再重启。0=不限 */ |
| | | private int rounds; |
| | | |
| | | /** |
| | | * 从 GateConfig 构建 DTO(不暴露 apiSecret)。 |
| | |
| | | .unrealizedPnlPriceMode(config.getUnrealizedPnlPriceMode() != null |
| | | ? config.getUnrealizedPnlPriceMode().name() : "LAST_PRICE") |
| | | .isProduction(config.isProduction()) |
| | | .priceDriveEnabled(config.isPriceDriveEnabled()) |
| | | .rounds(config.getRounds()) |
| | | .build(); |
| | | } |
| | | } |