com.xeiam.xchange.examples.quoine.trade.QuoineOrdersListDemo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-examples Show documentation
Show all versions of xchange-examples Show documentation
Provides a set of examples that demonstrate how to use XChange in client applications
The newest version!
package com.xeiam.xchange.examples.quoine.trade;
import java.io.IOException;
import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.examples.quoine.QuoineExamplesUtils;
import com.xeiam.xchange.quoine.dto.trade.QuoineOrdersList;
import com.xeiam.xchange.quoine.service.polling.QuoineTradeServiceRaw;
import com.xeiam.xchange.service.polling.trade.PollingTradeService;
public class QuoineOrdersListDemo {
public static void main(String[] args) throws IOException {
Exchange exchange = QuoineExamplesUtils.createExchange();
PollingTradeService tradeService = exchange.getPollingTradeService();
raw((QuoineTradeServiceRaw) tradeService);
}
private static void raw(QuoineTradeServiceRaw tradeServiceRaw) throws IOException {
// list orders
QuoineOrdersList quoineOrdersList = tradeServiceRaw.listQuoineOrders("BTCUSD");
System.out.println(quoineOrdersList.toString());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy