com.binance.api.client.domain.general.RateLimit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of binance-api-client Show documentation
Show all versions of binance-api-client Show documentation
Java implementation for Binance API
package com.binance.api.client.domain.general;
import com.binance.api.client.constant.BinanceApiConstants;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* Rate limits.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class RateLimit {
private RateLimitType rateLimitType;
private RateLimitInterval interval;
private Integer limit;
public RateLimitType getRateLimitType() {
return rateLimitType;
}
public void setRateLimitType(RateLimitType rateLimitType) {
this.rateLimitType = rateLimitType;
}
public RateLimitInterval getInterval() {
return interval;
}
public void setInterval(RateLimitInterval interval) {
this.interval = interval;
}
public Integer getLimit() {
return limit;
}
public void setLimit(Integer limit) {
this.limit = limit;
}
@Override
public String toString() {
return new ToStringBuilder(this, BinanceApiConstants.TO_STRING_BUILDER_STYLE)
.append("rateLimitType", rateLimitType)
.append("interval", interval)
.append("limit", limit)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy