io.contek.invoker.binancefutures.api.rest.user.PostStream Maven / Gradle / Ivy
package io.contek.invoker.binancefutures.api.rest.user;
import com.google.common.collect.ImmutableList;
import io.contek.invoker.binancefutures.api.rest.user.PostStream.Response;
import io.contek.invoker.commons.api.actor.IActor;
import io.contek.invoker.commons.api.actor.ratelimit.RateLimitQuota;
import io.contek.invoker.commons.api.rest.RestContext;
import io.contek.invoker.commons.api.rest.RestMethod;
import io.contek.invoker.commons.api.rest.RestParams;
import javax.annotation.concurrent.NotThreadSafe;
import javax.annotation.concurrent.ThreadSafe;
import static io.contek.invoker.binancefutures.api.ApiFactory.RateLimits.ONE_REST_REQUEST;
import static io.contek.invoker.commons.api.rest.RestMethod.POST;
@ThreadSafe
public final class PostStream extends UserRestRequest {
PostStream(IActor actor, RestContext context) {
super(actor, context);
}
@Override
protected RestMethod getMethod() {
return POST;
}
@Override
protected Class getResponseType() {
return Response.class;
}
@Override
protected String getEndpointPath() {
return "/fapi/v1/userDataStream";
}
@Override
protected RestParams getParams() {
return RestParams.empty();
}
@Override
protected ImmutableList getRequiredQuotas() {
return ONE_REST_REQUEST;
}
@NotThreadSafe
public static final class Response {
public String listenKey;
}
}