|
@@ -92,7 +92,7 @@ impl WsManager {
|
|
|
"symbol": symbol,
|
|
"symbol": symbol,
|
|
|
"limit": 100,
|
|
"limit": 100,
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
let depth_response = rest_client.depth(params).await;
|
|
let depth_response = rest_client.depth(params).await;
|
|
|
|
|
|
|
|
if let Some(object_map) = depth_response.data.as_object() {
|
|
if let Some(object_map) = depth_response.data.as_object() {
|
|
@@ -102,7 +102,7 @@ impl WsManager {
|
|
|
info!("The top-level value is not a JSON object:{:?}", serde_json::to_string_pretty(&depth_response.data)?);
|
|
info!("The top-level value is not a JSON object:{:?}", serde_json::to_string_pretty(&depth_response.data)?);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- tokio::time::sleep(Duration::from_millis(20)).await;
|
|
|
|
|
|
|
+ tokio::time::sleep(Duration::from_millis(200)).await;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
info!("正在创建 {:?} 的订阅...", current_batch_symbols);
|
|
info!("正在创建 {:?} 的订阅...", current_batch_symbols);
|