|
|
@@ -31,7 +31,7 @@ pub async fn run_transactional_exchange(is_shutdown_arc :Arc<AtomicBool>,
|
|
|
match exchange_name.as_str() {
|
|
|
"gate_usdt_swap" => {
|
|
|
gate_swap_run(is_shutdown_arc, true, core_arc, name, symbols, is_colo, exchange_params).await;
|
|
|
- }
|
|
|
+ },
|
|
|
"kucoin_usdt_swap" => {
|
|
|
kucoin_swap_run(is_shutdown_arc, true, core_arc, name, symbols, is_colo, exchange_params).await;
|
|
|
},
|
|
|
@@ -43,17 +43,17 @@ pub async fn run_transactional_exchange(is_shutdown_arc :Arc<AtomicBool>,
|
|
|
// },
|
|
|
"bitget_usdt_swap" => {
|
|
|
bitget_usdt_swap_run(is_shutdown_arc, true, core_arc, name, symbols, is_colo, exchange_params).await;
|
|
|
- }
|
|
|
+ },
|
|
|
"bybit_usdt_swap" => {
|
|
|
bybit_swap_run(is_shutdown_arc,true, core_arc, name, symbols, is_colo, exchange_params).await;
|
|
|
- }
|
|
|
+ },
|
|
|
"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;
|
|
|
- }
|
|
|
+ },
|
|
|
"bitmart_usdt_sawp" => {
|
|
|
bitmart_usdt_swap_run(is_shutdown_arc, true, core_arc, name, symbols, is_colo, exchange_params).await;
|
|
|
- }
|
|
|
+ },
|
|
|
_ => {
|
|
|
let msg = format!("不支持的交易交易所:{}", exchange_name);
|
|
|
panic!("{}", msg);
|
|
|
@@ -93,16 +93,16 @@ pub async fn run_reference_exchange(is_shutdown_arc: Arc<AtomicBool>,
|
|
|
// },
|
|
|
"bitget_usdt_swap" => {
|
|
|
bitget_usdt_swap_run(is_shutdown_arc, false, core_arc, name, symbols, is_colo, exchange_params).await;
|
|
|
- }
|
|
|
+ },
|
|
|
"bybit_usdt_swap" => {
|
|
|
bybit_swap_run(is_shutdown_arc, false, core_arc, name, symbols, is_colo, exchange_params).await;
|
|
|
},
|
|
|
"coinex_usdt_swap" => {
|
|
|
coinex_swap_run(is_shutdown_arc,false, core_arc, name, symbols, is_colo, exchange_params).await;
|
|
|
- }
|
|
|
+ },
|
|
|
"bitmart_usdt_sawp" => {
|
|
|
bitmart_usdt_swap_run(is_shutdown_arc, false, core_arc, name, symbols, is_colo, exchange_params).await;
|
|
|
- }
|
|
|
+ },
|
|
|
_ => {
|
|
|
let msg = format!("不支持的参考交易所:{}", exchange_name);
|
|
|
panic!("{}", msg);
|