public static BitfinexCurrencyPair of ( final String currency , final String profitCurrency ) { final String key = buildCacheKey ( currency , profitCurrency ) ; final BitfinexCurrencyPair bcp = instances . get ( key ) ; if ( bcp == null ) { throw new IllegalArgumentException ( "CurrencyPair is not registered: " + currency + " " + profitCurrency ) ; } return bcp ; }
Retrieves bitfinex currency pair