Parse the Bitcoin Price given a currencyCode and inputValue. @param currencyCode The currency code to parse, e.g "USD" or "LTC". @param value The value to parse. @return The parsed Price.
(String currencyCode, long value)
| 69 | * @return The parsed Price. |
| 70 | */ |
| 71 | public static Price valueOf(String currencyCode, long value) { |
| 72 | if (CurrencyUtil.isFiatCurrency(currencyCode)) { |
| 73 | return new Price(Fiat.valueOf(currencyCode, value)); |
| 74 | } else { |
| 75 | return new Price(Altcoin.valueOf(currencyCode, value)); |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | public Volume getVolumeByAmount(Coin amount) { |
| 80 | if (monetary instanceof Fiat) |