Class BittrexUtils


  • public final class BittrexUtils
    extends Object
    A central place for shared Bittrex properties
    • Method Detail

      • toPairString

        public static String toPairString​(CurrencyPair currencyPair,
                                          boolean apiVersion3)
        The market names format is reversed starting api version 3.
        Parameters:
        currencyPair - the market name
        apiVersion3 - true if api version is 3 or more
        Returns:
        the market name string representation
      • toCurrencyPair

        public static CurrencyPair toCurrencyPair​(String pairString,
                                                  boolean apiVersion3)
        The market names format is reversed starting api version 3.
        Parameters:
        pairString - the Bittrex string representation of a market
        apiVersion3 - true if api version is 3 or more
        Returns:
        the corresponding CurrencyPair
      • toDate

        public static Date toDate​(String dateString)