fix(gateApi): 修正计划订单类型常量命名
| | |
| | | WAITING_KLINE, OPENING, ACTIVE, STOPPED |
| | | } |
| | | |
| | | private static final String ORDER_TYPE_CLOSE_LONG = "close-long-position"; |
| | | private static final String ORDER_TYPE_CLOSE_SHORT = "close-short-position"; |
| | | private static final String ORDER_TYPE_CLOSE_LONG = "plan-close-long-position"; |
| | | private static final String ORDER_TYPE_CLOSE_SHORT = "plan-close-short-position"; |
| | | |
| | | private final GateConfig config; |
| | | private final GateTradeExecutor executor; |
| | |
| | | * |
| | | * @param triggerPrice 触发价格 |
| | | * @param rule 触发规则(NUMBER_1: ≥ 触发价,NUMBER_2: ≤ 触发价) |
| | | * @param orderType stop 类型(close-long-position / close-short-position) |
| | | * @param orderType stop 类型(plan-close-long-position / plan-close-short-position) |
| | | * @param size 平仓张数(正=平空,负=平多) |
| | | */ |
| | | public void placeTakeProfit(BigDecimal triggerPrice, |