Package com.xeiam.xchange.examples.poloniex

Source Code of com.xeiam.xchange.examples.poloniex.PoloniexExamplesUtils

package com.xeiam.xchange.examples.poloniex;

import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.ExchangeFactory;
import com.xeiam.xchange.ExchangeSpecification;
import com.xeiam.xchange.poloniex.PoloniexExchange;

/**
* @author Zach Holmes
*/

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);
  }
}
TOP

Related Classes of com.xeiam.xchange.examples.poloniex.PoloniexExamplesUtils

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.