Преглед изворни кода

查看filled不为0时的消息原文,看看是不是漏处理了。

skyffire пре 1 година
родитељ
комит
5221bc9cec
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      strategy/src/bybit_usdt_swap.rs

+ 5 - 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;
@@ -133,6 +133,10 @@ async fn on_private_data(core_arc_clone: Arc<Mutex<Core>>, ct_val: &Decimal, run
                     continue;
                 }
 
+                if order.deal_amount != Decimal::ZERO {
+                    info!("bybit order 消息原文:{:?}", response);
+                }
+
                 let order_info = OrderInfo {
                     symbol: "".to_string(),
                     amount: order.amount.abs(),