|
|
@@ -20,6 +20,7 @@ use standard::exchange::{Exchange, ExchangeEnum};
|
|
|
// use standard::{binance_spot_handle, Order, Platform, utils};
|
|
|
// use standard::{binance_handle, Order, Platform, utils};
|
|
|
// use standard::{kucoin_handle, Order, Platform, utils};
|
|
|
+// use standard::{kucoin_spot_handle, Order, Platform, utils};
|
|
|
// use standard::{gate_handle, Order, Platform, utils};
|
|
|
// use standard::{bitget_spot_handle, Order, Platform, utils};
|
|
|
use standard::{okx_handle, Order, Platform, utils};
|
|
|
@@ -177,8 +178,6 @@ pub async fn test_new_exchange_wss<T>(exchange: ExchangeEnum, symbol: &str, subs
|
|
|
// let write_tx_am = Arc::new(Mutex::new(write_tx));
|
|
|
// let bool_v1 = Arc::new(AtomicBool::new(true));
|
|
|
//
|
|
|
- // let api_key = env::var("binance_access_key").unwrap_or("".to_string());
|
|
|
- // let api_secret = env::var("binance_secret_key").unwrap_or("".to_string());
|
|
|
// let params = BinanceSwapLogin {
|
|
|
// api_key: account_info.binance_access_key,
|
|
|
// api_secret: account_info.binance_secret_key,
|
|
|
@@ -526,6 +525,7 @@ pub async fn test_new_exchange_wss<T>(exchange: ExchangeEnum, symbol: &str, subs
|
|
|
let mold_clone = Arc::clone(&mold_arc);
|
|
|
loop {
|
|
|
if let Some(data) = read_rx.next().await {
|
|
|
+ trace!("原始数据 data:{:?}",data);
|
|
|
match mold_clone.as_str() {
|
|
|
"depth" => {
|
|
|
if data.data != "" {
|