com.binance.api.client.constant.Util Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of binance-api-client Show documentation
Show all versions of binance-api-client Show documentation
Java implementation for Binance API
package com.binance.api.client.constant;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
* Utility class
*/
public final class Util {
/**
* List of fiat currencies.
*/
public static final List FIAT_CURRENCY = Collections.unmodifiableList(Arrays.asList("USDT", "BUSD", "PAX", "TUSD", "USDC", "NGN", "RUB", "USDS", "TRY"));
public static final String BTC_TICKER = "BTC";
private Util() {
}
/**
* Check if the ticker is fiat currency.
*/
public static boolean isFiatCurrency(String symbol) {
for (String fiat : FIAT_CURRENCY) {
if (symbol.equals(fiat)) return true;
}
return false;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy