|
|
@@ -22,6 +22,7 @@ pub(crate) async fn reference_binance_swap_run(bool_v1 :Arc<AtomicBool>, quant_a
|
|
|
let mut ba_exc = BinanceSwapWs::new_label(name, false, exchange_params, BinanceWsType::PublicAndPrivate, tx);
|
|
|
ba_exc.set_subscribe(vec![
|
|
|
BinanceSubscribeType::PuDepth20levels100ms,
|
|
|
+ // BinanceSubscribeType::PuBookTicker,
|
|
|
// BinanceSubscribeType::PuAggTrade
|
|
|
]);
|
|
|
ba_exc.custom_subscribe(bool_v1, symbols.clone()).await;
|
|
|
@@ -34,7 +35,7 @@ pub(crate) async fn reference_binance_swap_run(bool_v1 :Arc<AtomicBool>, quant_a
|
|
|
let mut max_buy = Decimal::ZERO;
|
|
|
let mut min_sell = Decimal::ZERO;
|
|
|
loop {
|
|
|
- // sleep(Duration::from_nanos(1)).await;
|
|
|
+ // sleep(Duration::from_millis(1)).await;
|
|
|
|
|
|
match rx.recv().await {
|
|
|
Some(data) => {
|