Browse Source

放开gate usdt币本位现货限制

DESKTOP-NE65RNK\Citrus_limon 1 năm trước cách đây
mục cha
commit
4a36da8466
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      src/gate_coin_spot_data_listener.rs

+ 3 - 2
src/gate_coin_spot_data_listener.rs

@@ -38,8 +38,9 @@ pub async fn run_listener(is_shutdown_arc: Arc<AtomicBool>) {
         let symbol_infos = response.data.as_array().unwrap();
         for symbol_info in symbol_infos {
             let trade_status = symbol_info["trade_status"].as_str().unwrap();
-            let quote = symbol_info["quote"].as_str().unwrap();
-            if trade_status != "tradable" || quote == "USDT" { continue; };
+            // let quote = symbol_info["quote"].as_str().unwrap();
+            // if trade_status != "tradable" || quote == "USDT" { continue; };
+            if trade_status != "tradable" { continue; };
             let symbol = symbol_info["id"].as_str().unwrap().to_string();
             symbols.push(symbol)
         }