KKSU
2024-04-17 829f629756e5402bcd3e9f6ef1f9c6dbffbabb11
src/main/java/com/xcong/excoin/utils/CoinTypeConvert.java
@@ -22,6 +22,8 @@
                return "EOS/USDT";
            case "etcusdt":
                return "ETC/USDT";
            case "xchusdt":
                return "XCH/USDT";
            default:
                return null;
        }
@@ -43,8 +45,18 @@
                return "EOS_NEW_PRICE";
            case "ETC/USDT":
                return "ETC_NEW_PRICE";
            case "XCH/USDT":
                return "XCH_NEW_PRICE";
            default:
                return null;
        }
    }
    public static String convertContractTypeToCoin(String symbol) {
        if (symbol.indexOf("/") > 0) {
            return symbol.substring(0, symbol.indexOf("/"));
        } else {
            return null;
        }
    }
}