
estonlabs.cxtl.exchanges.gateio.api.v4.GateIOExchangeFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cxtl Show documentation
Show all versions of cxtl Show documentation
CXTL – Crypto eXchange Trading Library
The newest version!
package estonlabs.cxtl.exchanges.gateio.api.v4;
import estonlabs.cxtl.common.AbstractExchangeFactory;
import estonlabs.cxtl.common.EnvironmentType;
import estonlabs.cxtl.exchanges.a.specification.domain.Exchange;
import estonlabs.cxtl.exchanges.a.specification.lib.ExchangeDataInterface;
import estonlabs.cxtl.exchanges.gateio.api.v4.domain.CancelRequest;
import estonlabs.cxtl.exchanges.gateio.api.v4.domain.GateIOTicker;
import estonlabs.cxtl.exchanges.gateio.api.v4.domain.OrderQuery;
import estonlabs.cxtl.exchanges.gateio.api.v4.domain.OrderRequest;
import java.net.Proxy;
import java.net.URI;
import java.util.List;
import java.util.Map;
public class GateIOExchangeFactory extends AbstractExchangeFactory {
public static final URI PROD = URI.create("https://api.gateio.ws");
public static Map> ENVIRONMENTS = Map.of(
EnvironmentType.PROD, List.of(PROD)
);
private final URI baseURI;
public GateIOExchangeFactory(URI baseURI) {
super(Exchange.MEXC, ENVIRONMENTS);
this.baseURI = baseURI;
}
@Override
protected GateIOExchangeFactory me() {
return this;
}
@Override
public GateIOCex buildCex() {
return new GateIOCex(createJsonRestClient(baseURI), metricsLogger);
}
@Override
public GateIOCex buildCex(Proxy httpProxy) {
return new GateIOCex(createJsonRestClient(baseURI, httpProxy), metricsLogger);
}
@Override
public GateIOCex buildEdi() {
return buildCex();
}
@Override
public GateIOCex buildEdi(Proxy httpProxy) {
return buildCex(httpProxy);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy