estonlabs.cxtl.exchanges.mexc.spot.v3.MEXCStreamFactory 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
package estonlabs.cxtl.exchanges.mexc.spot.v3;
import estonlabs.cxtl.common.AbstractStreamFactory;
import estonlabs.cxtl.common.auth.Credentials;
import estonlabs.cxtl.common.codec.Codec;
import estonlabs.cxtl.common.codec.JacksonCodec;
import estonlabs.cxtl.common.stream.core.WebsocketConnection;
import estonlabs.cxtl.exchanges.a.specification.domain.Exchange;
import estonlabs.cxtl.exchanges.mexc.spot.v3.domain.WSListenKey;
import estonlabs.cxtl.exchanges.mexc.spot.v3.domain.enums.WSMethod;
import lombok.NonNull;
import lombok.SneakyThrows;
import java.net.URI;
import java.util.concurrent.TimeUnit;
public class MEXCStreamFactory extends AbstractStreamFactory {
public static final URI PROD = URI.create("wss://wbs.mexc.com/ws");
public static final MEXCOutboundMessage PING = new MEXCOutboundMessage().setMethod(WSMethod.PING);
private static final Codec