All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.knowm.xchange.examples.quoine.trade.QuoineOrderDetailsDemo Maven / Gradle / Ivy

Go to download

Provides a set of examples that demonstrate how to use XChange in client applications

The newest version!
package org.knowm.xchange.examples.quoine.trade;

import java.io.IOException;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.examples.quoine.QuoineExamplesUtils;
import org.knowm.xchange.quoine.dto.trade.QuoineOrderDetailsResponse;
import org.knowm.xchange.quoine.service.QuoineTradeServiceRaw;
import org.knowm.xchange.service.trade.TradeService;

public class QuoineOrderDetailsDemo {

  public static void main(String[] args) throws IOException {

    Exchange exchange = QuoineExamplesUtils.createExchange();
    TradeService tradeService = exchange.getTradeService();

    raw((QuoineTradeServiceRaw) tradeService);
  }

  private static void raw(QuoineTradeServiceRaw tradeServiceRaw) throws IOException {

    // get order details
    QuoineOrderDetailsResponse QuoineOrderDetailsResponse =
        tradeServiceRaw.getQuoineOrderDetails("52364");
    System.out.println(QuoineOrderDetailsResponse.toString());
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy