org.knowm.xchange.examples.poloniex.PoloniexMetaDataDemo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-examples Show documentation
Show all versions of xchange-examples Show documentation
Provides a set of examples that demonstrate how to use XChange in client applications
The newest version!
package org.knowm.xchange.examples.poloniex;
import java.io.IOException;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.ExchangeFactory;
import org.knowm.xchange.dto.meta.ExchangeMetaData;
import org.knowm.xchange.poloniex.PoloniexExchange;
public class PoloniexMetaDataDemo {
public static void main(String[] args) throws IOException {
// Use the factory to get Poloniex exchange API using default settings
Exchange anx = ExchangeFactory.INSTANCE.createExchange(PoloniexExchange.class);
ExchangeMetaData exchangeMetaData = anx.getExchangeMetaData();
System.out.println(exchangeMetaData.toJSONString());
System.out.println(
"private poll delay ms: "
+ ExchangeMetaData.getPollDelayMillis(exchangeMetaData.getPrivateRateLimits()));
System.out.println(
"public poll delay ms: "
+ ExchangeMetaData.getPollDelayMillis(exchangeMetaData.getPublicRateLimits()));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy