gate_swap_export_test.rs 534 B

12345678910111213141516171819
  1. mod export_excel_test;
  2. use tracing::{instrument, trace};
  3. use derive::export_excel::ExportEnum;
  4. use crate::export_excel_test::test_new_export;
  5. const SYMBOL: &str = "TIA_USDT";
  6. // 测试获取Exchange实体
  7. #[tokio::test]
  8. #[instrument(level = "TRACE")]
  9. async fn test_get_self_exchange() {
  10. global::log_utils::init_log_with_trace();
  11. let mut export = test_new_export(ExportEnum::GateSwap).await;
  12. let export_trades = export.export_trades("gate_swap_42", SYMBOL.to_string(), 0, 0, 1000).await;
  13. trace!(?export_trades);
  14. }