binance_spot_handle_test.rs 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. // mod exchange_test;
  2. // use tracing::instrument;
  3. // use exchanges::binance_spot_ws::BinanceSpotSubscribeType;
  4. // use standard::exchange::ExchangeEnum;
  5. // use crate::exchange_test::test_new_exchange_wss;
  6. //
  7. // const SYMBOL: &str = "BTC_USDT";
  8. //
  9. // // 测试订阅深度信息
  10. // #[tokio::test(flavor = "multi_thread", worker_threads = 4)]
  11. // #[instrument(level = "TRACE")]
  12. // async fn test_get_wss_depth() {
  13. // global::log_utils::init_log_with_trace();
  14. //
  15. // let binance_subscribe_type = vec![
  16. // BinanceSpotSubscribeType::PuDepth20levels100ms,
  17. // ];
  18. // test_new_exchange_wss(ExchangeEnum::BinanceSpot, SYMBOL, binance_subscribe_type, "depth").await;
  19. // }
  20. //
  21. // // 测试订阅Ticker信息
  22. // #[tokio::test(flavor = "multi_thread", worker_threads = 4)]
  23. // #[instrument(level = "TRACE")]
  24. // async fn test_get_wss_ticker() {
  25. // global::log_utils::init_log_with_trace();
  26. //
  27. // let binance_subscribe_type = vec![
  28. // BinanceSpotSubscribeType::PuBookTicker,
  29. // ];
  30. // test_new_exchange_wss(ExchangeEnum::BinanceSpot, SYMBOL, binance_subscribe_type, "ticker").await;
  31. // }