From 2562c3a1d550243112d60189e2e97c318404a460 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Mon, 22 Jun 2026 13:33:10 +0800
Subject: [PATCH] Merge branch 'gate-zhisun-v2-58b6d8d7b7a6d7b83caed6184026cf63' of http://120.27.238.55:7000/r/exchange into gate-zhisun-v2-58b6d8d7b7a6d7b83caed6184026cf63
---
src/main/java/com/xcong/excoin/utils/TypeJudgeUtils.java | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/utils/TypeJudgeUtils.java b/src/main/java/com/xcong/excoin/utils/TypeJudgeUtils.java
index a3b933d..c7f511a 100644
--- a/src/main/java/com/xcong/excoin/utils/TypeJudgeUtils.java
+++ b/src/main/java/com/xcong/excoin/utils/TypeJudgeUtils.java
@@ -25,4 +25,26 @@
return false;
}
}
+
+ /**
+ * 判断k线区间
+ *
+ * @param period
+ * @return
+ */
+ public static boolean klinePeriod(String period) {
+ switch (period) {
+ case "1min":
+ case "5min":
+ case "30min":
+ case "60min":
+ case "4hour":
+ case "1day":
+ case "1week":
+ return true;
+ default:
+ return false;
+ }
+
+ }
}
--
Gitblit v1.9.1