use of org.knowm.xchange.service.trade.TradeService in project XChange by knowm.
the class QuoineOrdersListDemo method main.
public static void main(String[] args) throws IOException {
Exchange exchange = QuoineExamplesUtils.createExchange();
TradeService tradeService = exchange.getTradeService();
raw((QuoineTradeServiceRaw) tradeService);
}
use of org.knowm.xchange.service.trade.TradeService in project XChange by knowm.
the class TradeDemo method main.
public static void main(String[] args) throws IOException {
Exchange exchange = QuoineExamplesUtils.createExchange();
TradeService tradeService = exchange.getTradeService();
generic(tradeService);
raw((QuoineTradeServiceRaw) tradeService);
}
use of org.knowm.xchange.service.trade.TradeService in project XChange by knowm.
the class KunaExchangeTestIntegration method test_exchange_services.
@Test
public void test_exchange_services() {
AccountService accountService = getExchange().getAccountService();
TradeService tradeService = getExchange().getTradeService();
MarketDataService marketDataService = getExchange().getMarketDataService();
assertThat(accountService).isNotNull();
assertThat(tradeService).isNotNull();
assertThat(marketDataService).isNotNull();
assertThat(accountService instanceof KunaAccountService);
assertThat(tradeService instanceof KunaTradeService);
assertThat(marketDataService instanceof KunaMarketDataService);
}
Aggregations