@Override public ExchangeSpecification getDefaultExchangeSpecification() { ExchangeSpecification specification = new ExchangeSpecification(this.getClass().getCanonicalName()); specification.setShouldLoadRemoteMetaData(false); specification.setPlainTextUri("http://webrates.truefx.com/"); specification.setExchangeName("TrueFX"); specification.setExchangeDescription("TrueFX exchange"); return specification; }
@Override public ExchangeSpecification getDefaultExchangeSpecification() { ExchangeSpecification specification = new ExchangeSpecification(this.getClass().getCanonicalName()); specification.setShouldLoadRemoteMetaData(false); specification.setPlainTextUri("http://localhost:8332/"); specification.setExchangeName("BitcoinCore"); specification.setExchangeDescription("BitcoinCore wallet"); return specification; }
@Override public ExchangeSpecification getDefaultExchangeSpecification() { ExchangeSpecification exchangeSpecification = new ExchangeSpecification(this.getClass().getCanonicalName()); exchangeSpecification.setPlainTextUri("http://api.bitcoincharts.com"); exchangeSpecification.setHost("api.bitcoincharts.com"); exchangeSpecification.setPort(80); exchangeSpecification.setExchangeName("BitcoinCharts"); exchangeSpecification.setExchangeDescription( "Bitcoin charts provides financial and technical data related to the Bitcoin network."); return exchangeSpecification; }
@Override public ExchangeSpecification getDefaultExchangeSpecification() { ExchangeSpecification exchangeSpecification = new ExchangeSpecification(this.getClass().getCanonicalName()); exchangeSpecification.setPlainTextUri("https://blockchain.info"); exchangeSpecification.setHost("blockchain.info"); exchangeSpecification.setPort(80); exchangeSpecification.setExchangeName("Blockchain"); exchangeSpecification.setExchangeDescription( "Blockchain provide an API for accessing the Botcoin Network."); return exchangeSpecification; }
@Override public ExchangeSpecification getDefaultExchangeSpecification() { ExchangeSpecification exchangeSpecification = new ExchangeSpecification(this.getClass().getCanonicalName()); exchangeSpecification.setPlainTextUri("http://openexchangerates.org"); exchangeSpecification.setHost("openexchangerates.org"); exchangeSpecification.setPort(80); exchangeSpecification.setExchangeName("Open Exchange Rates"); exchangeSpecification.setExchangeDescription( "Open Exchange Rates is an exchange rate provider for a wide range of currencies."); return exchangeSpecification; }
public static void main(String[] args) throws IOException { // Use the factory to get the Open Exchange Rates exchange API ExchangeSpecification exchangeSpecification = new ExchangeSpecification(OERExchange.class.getName()); exchangeSpecification.setPlainTextUri("http://openexchangerates.org"); exchangeSpecification.setApiKey("ab32c922bca749ec9345b4717914ee1f"); Exchange openExchangeRates = ExchangeFactory.INSTANCE.createExchange(exchangeSpecification); generic(openExchangeRates); raw(openExchangeRates); }
exchangeSpecification.setPlainTextUri(defaultSpecification.getPlainTextUri());
exchangeSpecification.setPlainTextUri(defaultSpecification.getPlainTextUri());