|
|
@@ -49,7 +49,8 @@ pub async fn gate_swap_run(is_shutdown_arc: Arc<AtomicBool>,
|
|
|
ws = GateSwapWs::new_label(name.clone(), is_colo, Some(login_param),
|
|
|
GateSwapWsType::PublicAndPrivate("usdt".to_string()));
|
|
|
ws.set_subscribe(vec![
|
|
|
- // GateSwapSubscribeType::PuFuturesTrades,
|
|
|
+ GateSwapSubscribeType::PuFuturesTrades,
|
|
|
+ GateSwapSubscribeType::PuFuturesBookTicker,
|
|
|
|
|
|
GateSwapSubscribeType::PrFuturesOrders(user_id.clone()),
|
|
|
GateSwapSubscribeType::PrFuturesPositions(user_id.clone()),
|
|
|
@@ -121,7 +122,7 @@ async fn on_data(core_arc: Arc<Mutex<Core>>,
|
|
|
for trade in trades.iter_mut() {
|
|
|
let core_arc_clone = core_arc.clone();
|
|
|
|
|
|
- on_trade(core_arc_clone, &response.label, &mut trace_stack, &trade, 1).await;
|
|
|
+ on_trade(core_arc_clone, &response.label, &mut trace_stack, &trade, 0).await;
|
|
|
}
|
|
|
}
|
|
|
"futures.balances" => {
|