Examples of ExchangeSpecification


Examples of com.xeiam.xchange.ExchangeSpecification

  @Test
  public void testGetDefaultExchangeSpecification() {

    assertNotNull(defaultExchange);
    ExchangeSpecification specification = defaultExchange.getDefaultExchangeSpecification();
    assertNotNull(specification);
    LOGGER.info(specification.getExchangeName());
    LOGGER.info(specification.getHost());
    LOGGER.info(specification.getSslUri());
    LOGGER.info(specification.getSslUriStreaming());
  }
View Full Code Here

Examples of com.xeiam.xchange.ExchangeSpecification

public class BitMarketExchange extends BaseExchange implements Exchange {

  @Override
  public ExchangeSpecification getDefaultExchangeSpecification() {

    ExchangeSpecification exchangeSpecification = new ExchangeSpecification(this.getClass().getCanonicalName());
    exchangeSpecification.setSslUri("https://www.bitmarket.pl/json");
    exchangeSpecification.setHost("www.bitmarket.pl");
    exchangeSpecification.setPort(80);
    exchangeSpecification.setExchangeName("Bitmarket");
    exchangeSpecification.setExchangeDescription("Bitmarket is a Bitcoin exchange based in Poland.");

    return exchangeSpecification;
  }
View Full Code Here

Examples of com.xeiam.xchange.ExchangeSpecification

  @Test
  public void testTestExchange() {

    assertNotNull(testExchange);
    ExchangeSpecification specification = testExchange.getExchangeSpecification();
    assertNotNull(specification);
    LOGGER.info(specification.getExchangeName());
    LOGGER.info(specification.getHost());
    LOGGER.info(specification.getSslUri());
    LOGGER.info(specification.getSslUriStreaming());
  }
View Full Code Here

Examples of com.xeiam.xchange.ExchangeSpecification

  @Test
  public void testGetExchangeSpecification() {

    assertNotNull(defaultExchange);
    ExchangeSpecification specification = defaultExchange.getExchangeSpecification();
    assertNotNull(specification);
    LOGGER.info(specification.toString());
  }
View Full Code Here

Examples of com.xeiam.xchange.ExchangeSpecification

public class OkCoinDepthDemo {

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

    ExchangeSpecification exSpec = new ExchangeSpecification(OkCoinExchange.class);

    // flag to set Use_Intl (USD) or China (default)
    exSpec.setExchangeSpecificParametersItem("Use_Intl", false);
    Exchange okcoinExchange = ExchangeFactory.INSTANCE.createExchange(exSpec);

    generic(okcoinExchange);
    raw(okcoinExchange);
  }
View Full Code Here

Examples of com.xeiam.xchange.ExchangeSpecification

public class OKCoinTradesDemo {

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

    ExchangeSpecification exSpec = new ExchangeSpecification(OkCoinExchange.class);

    // flag to set Use_Intl (USD) or China (default)
    exSpec.setExchangeSpecificParametersItem("Use_Intl", false);
    Exchange okcoinExchange = ExchangeFactory.INSTANCE.createExchange(exSpec);

    generic(okcoinExchange);
    // raw(okcoinExchange);
  }
View Full Code Here

Examples of com.xeiam.xchange.ExchangeSpecification

public class PoloniexExamplesUtils {

  public static Exchange getExchange() {

    ExchangeSpecification spec = new ExchangeSpecification(PoloniexExchange.class);
    spec.setApiKey("your-api-key-here");
    spec.setSecretKey("your-api-key-here");

    return ExchangeFactory.INSTANCE.createExchange(spec);
  }
View Full Code Here

Examples of com.xeiam.xchange.ExchangeSpecification

public class CoinfloorExchange extends BaseExchange implements Exchange {

  @Override
  public ExchangeSpecification getDefaultExchangeSpecification() {

    ExchangeSpecification exchangeSpecification = new ExchangeSpecification(this.getClass().getCanonicalName());
    exchangeSpecification.setPlainTextUriStreaming("ws://api.coinfloor.co.uk");
    exchangeSpecification.setSslUriStreaming("wss://api.coinfloor.co.uk");
    exchangeSpecification.setHost("coinfloor.co.uk");
    exchangeSpecification.setPort(80);
    exchangeSpecification.setExchangeName("Coinfloor");
    exchangeSpecification.setExchangeDescription("Coinfloor is a company registered in England and Wales registration number 08493818. " + "Coinfloor allows users to trade Bitcoin. "
        + "Coinfloor LTD is registered at 200 Aldergate C/O Buckworth Solicitors EC1A 4HD London, United Kingdom.");

    return exchangeSpecification;
  }
View Full Code Here

Examples of com.xeiam.xchange.ExchangeSpecification

public class CexIODemoUtils {

  public static Exchange createExchange() {

    ExchangeSpecification exSpec = new ExchangeSpecification(CexIOExchange.class);
    exSpec.setUserName("");
    exSpec.setSecretKey("");
    exSpec.setApiKey("");
    exSpec.setSslUri("https://cex.io");
    return ExchangeFactory.INSTANCE.createExchange(exSpec);
  }
View Full Code Here

Examples of com.xeiam.xchange.ExchangeSpecification

  }

  @Override
  public ExchangeSpecification getDefaultExchangeSpecification() {

    ExchangeSpecification exchangeSpecification = new ExchangeSpecification(this.getClass().getCanonicalName());
    exchangeSpecification.setSslUri("https://data.bter.com");
    exchangeSpecification.setHost("bter.com");
    exchangeSpecification.setExchangeName("BTER");

    return exchangeSpecification;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.