fix(gateApi): 修复网格交易止损订单数量配置问题
- 将做空止损订单数量从固定值"1"改为动态配置quantity
- 将做多止损订单数量从固定值"-1"改为取反的配置quantity
- 解决了止损订单数量无法根据实际配置调整的问题
| | |
| | | triggerPrice, |
| | | FuturesPriceTrigger.RuleEnum.NUMBER_1, |
| | | ORDER_TYPE_CLOSE_SHORT, |
| | | "1", |
| | | config.getQuantity(), |
| | | profitId -> { |
| | | elem.setShortStopLossOrderId(profitId); |
| | | GridElement.refreshIndices(); |
| | |
| | | triggerPrice, |
| | | FuturesPriceTrigger.RuleEnum.NUMBER_2, |
| | | ORDER_TYPE_CLOSE_LONG, |
| | | "-1", |
| | | negate(config.getQuantity()), |
| | | profitId -> { |
| | | elem.setLongStopLossOrderId(profitId); |
| | | GridElement.refreshIndices(); |