Browse Source

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

skyffire 1 year ago
parent
commit
15f51e72e6
1 changed files with 3 additions and 1 deletions
  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);