bitget_spot_export_test.rs 533 B

123456789101112131415161718
  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 = "LOOM_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::BitgetSpot).await;
  12. let export_trades = export.export_trades("bitget_spot",SYMBOL.to_string(), 0, 0, 100).await;
  13. trace!(?export_trades);
  14. }