Browse Source

提交上线测试,使用币安bookTicker

skyfffire 1 year ago
parent
commit
01e79ebed2
2 changed files with 3 additions and 3 deletions
  1. 2 2
      strategy/src/binance_usdt_swap.rs
  2. 1 1
      strategy/src/quant.rs

+ 2 - 2
strategy/src/binance_usdt_swap.rs

@@ -23,8 +23,8 @@ pub(crate) async fn reference_binance_swap_run(bool_v1 :Arc<AtomicBool>, quant_a
         let mut ws = BinanceSwapWs::new_label(name, false, None, BinanceSwapWsType::PublicAndPrivate);
         ws.set_symbols(symbols);
         ws.set_subscribe(vec![
-            BinanceSwapSubscribeType::PuDepth20levels100ms,
-            // BinanceSwapSubscribeType::PuBookTicker,
+            // BinanceSwapSubscribeType::PuDepth20levels100ms,
+            BinanceSwapSubscribeType::PuBookTicker,
             // BinanceSwapSubscribeType::PuAggTrade
         ]);
 

+ 1 - 1
strategy/src/quant.rs

@@ -579,7 +579,7 @@ impl Quant {
     }
 
     pub fn _update_depth(&mut self, depth: Vec<Decimal>, name: String, mut trace_stack: TraceStack) {
-        // info!(?depth, ?name);
+        info!(?depth, ?name);
         trace_stack.on_depth();
 
         // 要从回调传入的深度信息中获取data.name