refactor(okxApi): 简化条件单状态变更回调方法参数
- 移除 onAutoOrder 方法中的 reason 参数
- 更新日志输出格式以匹配新的方法签名
- 调整 OrdersOkxChannelHandler 中的方法调用以移除传递的 state 参数
| | |
| | | /** |
| | | * 自动订单状态变更回调。由 OrdersOkxChannelHandler 调用。 |
| | | */ |
| | | public void onAutoOrder(String orderId, String status, String reason, String orderType, String tradeId) { |
| | | public void onAutoOrder(String orderId, String status, String orderType, String tradeId) { |
| | | if (state == StrategyState.STOPPED) { |
| | | return; |
| | | } |
| | | log.info("[OKX] 条件单状态变更, id:{}, status:{}, reason:{}, order_type:{}", |
| | | orderId, status, reason, orderType); |
| | | log.info("[OKX] 条件单状态变更, id:{}, status:{}, order_type:{}", |
| | | orderId, status, orderType); |
| | | if (!"finished".equals(status)) { |
| | | return; |
| | | } |
| | |
| | | algoId, orderType, side, posSide, fillSz, tradeId); |
| | | |
| | | if (getGridTradeService() != null) { |
| | | getGridTradeService().onAutoOrder(algoId, "finished", state, orderType, tradeId); |
| | | getGridTradeService().onAutoOrder(algoId, state, orderType, tradeId); |
| | | } |
| | | } |
| | | } catch (Exception e) { |