use of org.knowm.xchange.Exchange in project XChange by knowm.
the class ItBitTradesDemo method main.
public static void main(String[] args) throws IOException {
Exchange xchange = ExchangeFactory.INSTANCE.createExchange(ItBitExchange.class);
MarketDataService marketDataService = xchange.getMarketDataService();
generic(marketDataService);
}
use of org.knowm.xchange.Exchange in project XChange by knowm.
the class KoineksTickerDemo method main.
public static void main(String[] args) throws IOException {
// Use the factory to get Koineks exchange API using default settings
Exchange koineks = KoineksDemoUtils.createExchange();
// Interested in the public market data feed (no authentication)
MarketDataService marketDataService = koineks.getMarketDataService();
generic(marketDataService);
raw((KoineksMarketDataService) marketDataService);
}
use of org.knowm.xchange.Exchange in project XChange by knowm.
the class KoinimTickerDemo method main.
public static void main(String[] args) throws IOException {
// Use the factory to get Koinim exchange API using default settings
Exchange koinim = KoinimDemoUtils.createExchange();
// Interested in the public market data feed (no authentication)
MarketDataService marketDataService = koinim.getMarketDataService();
generic(marketDataService);
raw((KoinimMarketDataService) marketDataService);
}
use of org.knowm.xchange.Exchange in project XChange by knowm.
the class KrakenExampleUtils method createTestExchange.
public static Exchange createTestExchange() {
Exchange krakenExchange = ExchangeFactory.INSTANCE.createExchange(KrakenExchange.class);
krakenExchange.getExchangeSpecification().setApiKey("API Key");
krakenExchange.getExchangeSpecification().setSecretKey("Secret==");
krakenExchange.getExchangeSpecification().setUserName("user");
krakenExchange.applySpecification(krakenExchange.getExchangeSpecification());
return krakenExchange;
}
use of org.knowm.xchange.Exchange in project XChange by knowm.
the class KrakenLimitOrderDemo method main.
public static void main(String[] args) throws IOException {
Exchange krakenExchange = KrakenExampleUtils.createTestExchange();
generic(krakenExchange);
raw(krakenExchange);
}
Aggregations