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

org.knowm.xchange.examples.bitflyer.BitflyerDemoUtils 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.bitflyer;

import org.knowm.xchange.Exchange;
import org.knowm.xchange.ExchangeFactory;
import org.knowm.xchange.ExchangeSpecification;
import org.knowm.xchange.bitflyer.BitflyerExchange;

public class BitflyerDemoUtils {

  public static Exchange createExchange() {

    // Use the factory to get BitFlyer exchange API using default settings
    Exchange exchange = ExchangeFactory.INSTANCE.createExchange(BitflyerExchange.class);

    ExchangeSpecification bfxSpec = exchange.getDefaultExchangeSpecification();

    bfxSpec.setApiKey("");
    bfxSpec.setSecretKey("");

    exchange.applySpecification(bfxSpec);

    return exchange;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy