| | |
| | | String status = autoOrder.getString("status"); |
| | | String reason = autoOrder.getString("reason"); |
| | | String orderType = autoOrder.getString("order_type"); |
| | | String tradeId = autoOrder.getString("trade_id"); |
| | | JSONObject trigger = autoOrder.getJSONObject("trigger"); |
| | | String triggerPrice = trigger != null ? trigger.getString("price") : null; |
| | | log.info("[{}] 自动订单更新, id:{}, status:{}, reason:{}, order_type:{}, trigger_price:{}, trade_id:{}", |
| | | CHANNEL_NAME, orderId, status, reason, orderType, triggerPrice, |
| | | autoOrder.get("trade_id")); |
| | | tradeId); |
| | | if (getGridTradeService() != null) { |
| | | getGridTradeService().onAutoOrder(orderId, status, reason, orderType); |
| | | getGridTradeService().onAutoOrder(orderId, status, reason, orderType, tradeId); |
| | | } |
| | | } |
| | | } catch (Exception e) { |