浏览代码

直接打印response,从源头看看有没有推送。

skyffire 1 年之前
父节点
当前提交
15f51e72e6
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      strategy/src/bybit_usdt_swap.rs

+ 3 - 1
strategy/src/bybit_usdt_swap.rs

@@ -6,7 +6,7 @@ use rust_decimal::Decimal;
 use tokio::{spawn, time};
 use tokio::sync::Mutex;
 use tokio::time::Instant;
-use tracing::{error};
+use tracing::{error, info};
 use exchanges::bybit_swap_ws::{BybitSwapLogin, BybitSwapSubscribeType, BybitSwapWs, BybitSwapWsType};
 use exchanges::response_base::ResponseData;
 use global::trace_stack::TraceStack;
@@ -115,6 +115,8 @@ async fn on_private_data(core_arc_clone: Arc<Mutex<Core>>, ct_val: &Decimal, run
     let mut trace_stack = TraceStack::new(response.time, response.ins);
     trace_stack.on_after_span_line();
 
+    info!(?response);
+
     match response.channel.as_str() {
         "wallet" => {
             let account = standard::handle_info::HandleSwapInfo::handle_account_info(BybitSwap, &response, run_symbol);