org.knowm.xchange.examples.bitmex.BitmexDemoUtils Maven / Gradle / Ivy
package org.knowm.xchange.examples.bitmex;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.ExchangeFactory;
import org.knowm.xchange.ExchangeSpecification;
import org.knowm.xchange.bitmex.BitmexExchange;
public class BitmexDemoUtils {
public static Exchange createExchange() {
// Use the factory to get Bitmex exchange API using default settings
Exchange bitmex = ExchangeFactory.INSTANCE.createExchange(BitmexExchange.class);
ExchangeSpecification bitmexSpec = bitmex.getDefaultExchangeSpecification();
// bitmexSpec.setApiKey("");
// bitmexSpec.setSecretKey("");
bitmex.applySpecification(bitmexSpec);
return bitmex;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy