|
@@ -1,8 +1,10 @@
|
|
|
use std::collections::BTreeMap;
|
|
use std::collections::BTreeMap;
|
|
|
use std::sync::Arc;
|
|
use std::sync::Arc;
|
|
|
use std::sync::atomic::AtomicBool;
|
|
use std::sync::atomic::AtomicBool;
|
|
|
|
|
+use std::time::Duration;
|
|
|
use rust_decimal::Decimal;
|
|
use rust_decimal::Decimal;
|
|
|
use tokio::sync::Mutex;
|
|
use tokio::sync::Mutex;
|
|
|
|
|
+use tokio::time::Sleep;
|
|
|
use global::trace_stack::TraceStack;
|
|
use global::trace_stack::TraceStack;
|
|
|
use standard::SpecialDepth;
|
|
use standard::SpecialDepth;
|
|
|
|
|
|
|
@@ -46,6 +48,7 @@ pub async fn run_transactional_exchange(is_shutdown_arc :Arc<AtomicBool>,
|
|
|
bybit_swap_run(is_shutdown_arc,true, core_arc, name, symbols, is_colo, exchange_params).await;
|
|
bybit_swap_run(is_shutdown_arc,true, core_arc, name, symbols, is_colo, exchange_params).await;
|
|
|
}
|
|
}
|
|
|
"coinex_usdt_swap" => {
|
|
"coinex_usdt_swap" => {
|
|
|
|
|
+ tokio::time::sleep(Duration::from_secs(1)).await;
|
|
|
coinex_swap_run(is_shutdown_arc,true, core_arc, name, symbols, is_colo, exchange_params).await;
|
|
coinex_swap_run(is_shutdown_arc,true, core_arc, name, symbols, is_colo, exchange_params).await;
|
|
|
}
|
|
}
|
|
|
_ => {
|
|
_ => {
|