public class CoinfloorUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CoinfloorUtils.CoinfloorCurrency |
Constructor and Description |
---|
CoinfloorUtils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
buildClientNonce() |
static List<String> |
buildSignature(long userID,
String cookie,
String passphrase,
String serverNonce,
byte[] clientNonce) |
static void |
checkSuccess(Map<String,Object> payload) |
static CoinfloorUtils.CoinfloorCurrency |
currencyOf(String currency) |
static CoinfloorUtils.CoinfloorCurrency |
getCurrency(int currencyCode) |
static BigDecimal |
scalePriceToBigDecimal(CoinfloorUtils.CoinfloorCurrency baseCurrency,
CoinfloorUtils.CoinfloorCurrency counterCurrency,
Integer amountToScale) |
static BigDecimal |
scalePriceToBigDecimal(String currency,
String counterCurrency,
Integer amountToScale)
Scale integer price results from API call to BigDecimal for local use.
|
static int |
scalePriceToInt(CoinfloorUtils.CoinfloorCurrency baseCurrency,
CoinfloorUtils.CoinfloorCurrency counterCurrency,
BigDecimal amountToScale) |
static int |
scalePriceToInt(String baseCurrency,
String counterCurrency,
BigDecimal amountToScale)
Scale integer price results from API call to BigDecimal for local use.
|
static BigDecimal |
scaleToBigDecimal(CoinfloorUtils.CoinfloorCurrency currency,
Integer amountToScale) |
static BigDecimal |
scaleToBigDecimal(String currency,
Integer amountToScale) |
static int |
scaleToInt(CoinfloorUtils.CoinfloorCurrency currency,
BigDecimal amountToScale) |
static int |
scaleToInt(String currency,
BigDecimal amountToScale) |
static int |
toCurrencyCode(CoinfloorUtils.CoinfloorCurrency currency) |
static int |
toCurrencyCode(String currency) |
public static byte[] buildClientNonce()
public static List<String> buildSignature(long userID, String cookie, String passphrase, String serverNonce, byte[] clientNonce)
public static CoinfloorUtils.CoinfloorCurrency currencyOf(String currency)
public static CoinfloorUtils.CoinfloorCurrency getCurrency(int currencyCode)
public static int toCurrencyCode(String currency)
public static int toCurrencyCode(CoinfloorUtils.CoinfloorCurrency currency)
public static BigDecimal scaleToBigDecimal(String currency, Integer amountToScale)
public static BigDecimal scaleToBigDecimal(CoinfloorUtils.CoinfloorCurrency currency, Integer amountToScale)
public static int scaleToInt(String currency, BigDecimal amountToScale)
public static int scaleToInt(CoinfloorUtils.CoinfloorCurrency currency, BigDecimal amountToScale)
public static BigDecimal scalePriceToBigDecimal(String currency, String counterCurrency, Integer amountToScale)
amountToScale
- The integer result recieved from API Callpublic static BigDecimal scalePriceToBigDecimal(CoinfloorUtils.CoinfloorCurrency baseCurrency, CoinfloorUtils.CoinfloorCurrency counterCurrency, Integer amountToScale)
public static int scalePriceToInt(String baseCurrency, String counterCurrency, BigDecimal amountToScale)
amountToScale
- The integer result recieved from API Callpublic static int scalePriceToInt(CoinfloorUtils.CoinfloorCurrency baseCurrency, CoinfloorUtils.CoinfloorCurrency counterCurrency, BigDecimal amountToScale)
Copyright © 2012–2017 Xeiam, LLC. All rights reserved.