Class LunoUtil

java.lang.Object
org.knowm.xchange.luno.LunoUtil

public class LunoUtil extends Object
  • Constructor Details

    • LunoUtil

      public LunoUtil()
  • Method Details

    • toLunoPair

      public static String toLunoPair(CurrencyPair pair)
    • toLunoCurrency

      public static String toLunoCurrency(Currency c)
    • fromLunoCurrency

      public static Currency fromLunoCurrency(String c)
    • requestType

      public static String requestType(String lunoCurrency)
      see https://www.luno.com/en/api#withdrawals-create
      Parameters:
      lunoCurrency -
      Returns:
      withdrawal type
    • fromLunoPair

      public static CurrencyPair fromLunoPair(String lunoPair)
      convert luno pair to xchange pair i.e. XBTZAR -> BTC/ZAR we assume, the pair has two currencies with 3 chars length each invalid input: '<'- not a very clean approach
      Parameters:
      lunoPair -
      Returns: