> getSchemas() {
+ return KlinesResponseDataItemInner.schemas;
+ }
+
+ /**
+ * Set the instance that matches the oneOf child schema, check the instance parameter is valid
+ * against the oneOf child schemas: Long, String
+ *
+ * It could be an instance of the 'oneOf' schemas.
+ */
+ @Override
+ public void setActualInstance(Object instance) {
+ if (instance instanceof String) {
+ super.setActualInstance(instance);
+ return;
+ }
+
+ if (instance instanceof Long) {
+ super.setActualInstance(instance);
+ return;
+ }
+
+ throw new RuntimeException("Invalid instance type. Must be Long, String");
+ }
+
+ /**
+ * Get the actual instance, which can be the following: Long, String
+ *
+ * @return The actual instance (Long, String)
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public Object getActualInstance() {
+ return super.getActualInstance();
+ }
+
+ /**
+ * Get the actual instance of `String`. If the actual instance is not `String`, the
+ * ClassCastException will be thrown.
+ *
+ * @return The actual instance of `String`
+ * @throws ClassCastException if the instance is not `String`
+ */
+ public String getString() throws ClassCastException {
+ return (String) super.getActualInstance();
+ }
+
+ /**
+ * Get the actual instance of `Long`. If the actual instance is not `Long`, the
+ * ClassCastException will be thrown.
+ *
+ * @return The actual instance of `Long`
+ * @throws ClassCastException if the instance is not `Long`
+ */
+ public Long getLong() throws ClassCastException {
+ return (Long) super.getActualInstance();
+ }
+
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to
+ * KlinesResponseDataItemInner
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ // validate oneOf schemas one by one
+ int validCount = 0;
+ ArrayList errorMessages = new ArrayList<>();
+ // validate the json string with String
+ try {
+ if (!jsonElement.getAsJsonPrimitive().isString()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected json element to be of type String in the JSON string but"
+ + " got `%s`",
+ jsonElement.toString()));
+ }
+ validCount++;
+ } catch (Exception e) {
+ errorMessages.add(
+ String.format("Deserialization for String failed with `%s`.", e.getMessage()));
+ // continue to the next one
+ }
+ // validate the json string with Long
+ try {
+ if (!jsonElement.getAsJsonPrimitive().isNumber()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected json element to be of type Number in the JSON string but"
+ + " got `%s`",
+ jsonElement.toString()));
+ }
+ validCount++;
+ } catch (Exception e) {
+ errorMessages.add(
+ String.format("Deserialization for Long failed with `%s`.", e.getMessage()));
+ // continue to the next one
+ }
+ if (validCount != 1) {
+ throw new IOException(
+ String.format(
+ "The JSON string is invalid for KlinesResponseDataItemInner with oneOf"
+ + " schemas: Long, String. %d class(es) match the result, expected"
+ + " 1. Detailed failure message for oneOf schemas: %s. JSON: %s",
+ validCount, errorMessages, jsonElement.toString()));
+ }
+ }
+
+ /**
+ * Create an instance of KlinesResponseDataItemInner given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of KlinesResponseDataItemInner
+ * @throws IOException if the JSON string is invalid with respect to KlinesResponseDataItemInner
+ */
+ public static KlinesResponseDataItemInner fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, KlinesResponseDataItemInner.class);
+ }
+
+ /**
+ * Convert an instance of KlinesResponseDataItemInner to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
diff --git a/clients/alpha/src/main/java/com/binance/connector/client/alpha/rest/model/TickerResponse.java b/clients/alpha/src/main/java/com/binance/connector/client/alpha/rest/model/TickerResponse.java
new file mode 100644
index 00000000..1b4c22b2
--- /dev/null
+++ b/clients/alpha/src/main/java/com/binance/connector/client/alpha/rest/model/TickerResponse.java
@@ -0,0 +1,359 @@
+/*
+ * Binance Alpha REST API
+ * OpenAPI Specification for the Binance Alpha REST API
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package com.binance.connector.client.alpha.rest.model;
+
+import com.binance.connector.client.alpha.rest.JSON;
+import com.google.gson.Gson;
+import com.google.gson.JsonElement;
+import com.google.gson.JsonObject;
+import com.google.gson.TypeAdapter;
+import com.google.gson.TypeAdapterFactory;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.reflect.TypeToken;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.*;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLEncoder;
+import java.nio.charset.StandardCharsets;
+import java.util.HashSet;
+import java.util.Objects;
+import org.hibernate.validator.constraints.*;
+
+/** TickerResponse */
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.12.0")
+public class TickerResponse {
+ public static final String SERIALIZED_NAME_CODE = "code";
+
+ @SerializedName(SERIALIZED_NAME_CODE)
+ @jakarta.annotation.Nullable
+ private String code;
+
+ public static final String SERIALIZED_NAME_MESSAGE = "message";
+
+ @SerializedName(SERIALIZED_NAME_MESSAGE)
+ @jakarta.annotation.Nullable
+ private String message;
+
+ public static final String SERIALIZED_NAME_MESSAGE_DETAIL = "messageDetail";
+
+ @SerializedName(SERIALIZED_NAME_MESSAGE_DETAIL)
+ @jakarta.annotation.Nullable
+ private String messageDetail;
+
+ public static final String SERIALIZED_NAME_DATA = "data";
+
+ @SerializedName(SERIALIZED_NAME_DATA)
+ @jakarta.annotation.Nullable
+ private TickerResponseData data;
+
+ public static final String SERIALIZED_NAME_SUCCESS = "success";
+
+ @SerializedName(SERIALIZED_NAME_SUCCESS)
+ @jakarta.annotation.Nullable
+ private Boolean success;
+
+ public TickerResponse() {}
+
+ public TickerResponse code(@jakarta.annotation.Nullable String code) {
+ this.code = code;
+ return this;
+ }
+
+ /**
+ * Get code
+ *
+ * @return code
+ */
+ @jakarta.annotation.Nullable
+ public String getCode() {
+ return code;
+ }
+
+ public void setCode(@jakarta.annotation.Nullable String code) {
+ this.code = code;
+ }
+
+ public TickerResponse message(@jakarta.annotation.Nullable String message) {
+ this.message = message;
+ return this;
+ }
+
+ /**
+ * Get message
+ *
+ * @return message
+ */
+ @jakarta.annotation.Nullable
+ public String getMessage() {
+ return message;
+ }
+
+ public void setMessage(@jakarta.annotation.Nullable String message) {
+ this.message = message;
+ }
+
+ public TickerResponse messageDetail(@jakarta.annotation.Nullable String messageDetail) {
+ this.messageDetail = messageDetail;
+ return this;
+ }
+
+ /**
+ * Get messageDetail
+ *
+ * @return messageDetail
+ */
+ @jakarta.annotation.Nullable
+ public String getMessageDetail() {
+ return messageDetail;
+ }
+
+ public void setMessageDetail(@jakarta.annotation.Nullable String messageDetail) {
+ this.messageDetail = messageDetail;
+ }
+
+ public TickerResponse data(@jakarta.annotation.Nullable TickerResponseData data) {
+ this.data = data;
+ return this;
+ }
+
+ /**
+ * Get data
+ *
+ * @return data
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public TickerResponseData getData() {
+ return data;
+ }
+
+ public void setData(@jakarta.annotation.Nullable TickerResponseData data) {
+ this.data = data;
+ }
+
+ public TickerResponse success(@jakarta.annotation.Nullable Boolean success) {
+ this.success = success;
+ return this;
+ }
+
+ /**
+ * Get success
+ *
+ * @return success
+ */
+ @jakarta.annotation.Nullable
+ public Boolean getSuccess() {
+ return success;
+ }
+
+ public void setSuccess(@jakarta.annotation.Nullable Boolean success) {
+ this.success = success;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TickerResponse tickerResponse = (TickerResponse) o;
+ return Objects.equals(this.code, tickerResponse.code)
+ && Objects.equals(this.message, tickerResponse.message)
+ && Objects.equals(this.messageDetail, tickerResponse.messageDetail)
+ && Objects.equals(this.data, tickerResponse.data)
+ && Objects.equals(this.success, tickerResponse.success);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(code, message, messageDetail, data, success);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TickerResponse {\n");
+ sb.append(" code: ").append(toIndentedString(code)).append("\n");
+ sb.append(" message: ").append(toIndentedString(message)).append("\n");
+ sb.append(" messageDetail: ").append(toIndentedString(messageDetail)).append("\n");
+ sb.append(" data: ").append(toIndentedString(data)).append("\n");
+ sb.append(" success: ").append(toIndentedString(success)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ public String toUrlQueryString() {
+ StringBuilder sb = new StringBuilder();
+
+ Object codeValue = getCode();
+ String codeValueAsString = "";
+ codeValueAsString = codeValue.toString();
+ sb.append("code=").append(urlEncode(codeValueAsString)).append("");
+ Object messageValue = getMessage();
+ String messageValueAsString = "";
+ messageValueAsString = messageValue.toString();
+ sb.append("message=").append(urlEncode(messageValueAsString)).append("");
+ Object messageDetailValue = getMessageDetail();
+ String messageDetailValueAsString = "";
+ messageDetailValueAsString = messageDetailValue.toString();
+ sb.append("messageDetail=").append(urlEncode(messageDetailValueAsString)).append("");
+ Object dataValue = getData();
+ String dataValueAsString = "";
+ dataValueAsString = dataValue.toString();
+ sb.append("data=").append(urlEncode(dataValueAsString)).append("");
+ Object successValue = getSuccess();
+ String successValueAsString = "";
+ successValueAsString = successValue.toString();
+ sb.append("success=").append(urlEncode(successValueAsString)).append("");
+ return sb.toString();
+ }
+
+ public static String urlEncode(String s) {
+ try {
+ return URLEncoder.encode(s, StandardCharsets.UTF_8.name());
+ } catch (UnsupportedEncodingException e) {
+ throw new RuntimeException(StandardCharsets.UTF_8.name() + " is unsupported", e);
+ }
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first
+ * line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+ public static HashSet openapiFields;
+ public static HashSet openapiRequiredFields;
+
+ static {
+ // a set of all properties/fields (JSON key names)
+ openapiFields = new HashSet();
+ openapiFields.add("code");
+ openapiFields.add("message");
+ openapiFields.add("messageDetail");
+ openapiFields.add("data");
+ openapiFields.add("success");
+
+ // a set of required properties/fields (JSON key names)
+ openapiRequiredFields = new HashSet();
+ }
+
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to TickerResponse
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!TickerResponse.openapiRequiredFields
+ .isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(
+ String.format(
+ "The required field(s) %s in TickerResponse is not found in the"
+ + " empty JSON string",
+ TickerResponse.openapiRequiredFields.toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull())
+ && !jsonObj.get("code").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `code` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("code").toString()));
+ }
+ if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull())
+ && !jsonObj.get("message").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `message` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("message").toString()));
+ }
+ if ((jsonObj.get("messageDetail") != null && !jsonObj.get("messageDetail").isJsonNull())
+ && !jsonObj.get("messageDetail").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `messageDetail` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("messageDetail").toString()));
+ }
+ // validate the optional field `data`
+ if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) {
+ TickerResponseData.validateJsonElement(jsonObj.get("data"));
+ }
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!TickerResponse.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'TickerResponse' and its subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter =
+ gson.getDelegateAdapter(this, TypeToken.get(TickerResponse.class));
+
+ return (TypeAdapter)
+ new TypeAdapter() {
+ @Override
+ public void write(JsonWriter out, TickerResponse value) throws IOException {
+ JsonElement obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public TickerResponse read(JsonReader in) throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ // validateJsonElement(jsonElement);
+ return thisAdapter.fromJsonTree(jsonElement);
+ }
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of TickerResponse given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of TickerResponse
+ * @throws IOException if the JSON string is invalid with respect to TickerResponse
+ */
+ public static TickerResponse fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, TickerResponse.class);
+ }
+
+ /**
+ * Convert an instance of TickerResponse to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
diff --git a/clients/alpha/src/main/java/com/binance/connector/client/alpha/rest/model/TickerResponseData.java b/clients/alpha/src/main/java/com/binance/connector/client/alpha/rest/model/TickerResponseData.java
new file mode 100644
index 00000000..51263c06
--- /dev/null
+++ b/clients/alpha/src/main/java/com/binance/connector/client/alpha/rest/model/TickerResponseData.java
@@ -0,0 +1,794 @@
+/*
+ * Binance Alpha REST API
+ * OpenAPI Specification for the Binance Alpha REST API
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package com.binance.connector.client.alpha.rest.model;
+
+import com.binance.connector.client.alpha.rest.JSON;
+import com.google.gson.Gson;
+import com.google.gson.JsonElement;
+import com.google.gson.JsonObject;
+import com.google.gson.TypeAdapter;
+import com.google.gson.TypeAdapterFactory;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.reflect.TypeToken;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import jakarta.validation.constraints.*;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLEncoder;
+import java.nio.charset.StandardCharsets;
+import java.util.HashSet;
+import java.util.Objects;
+import org.hibernate.validator.constraints.*;
+
+/** TickerResponseData */
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.12.0")
+public class TickerResponseData {
+ public static final String SERIALIZED_NAME_SYMBOL = "symbol";
+
+ @SerializedName(SERIALIZED_NAME_SYMBOL)
+ @jakarta.annotation.Nullable
+ private String symbol;
+
+ public static final String SERIALIZED_NAME_PRICE_CHANGE = "priceChange";
+
+ @SerializedName(SERIALIZED_NAME_PRICE_CHANGE)
+ @jakarta.annotation.Nullable
+ private String priceChange;
+
+ public static final String SERIALIZED_NAME_PRICE_CHANGE_PERCENT = "priceChangePercent";
+
+ @SerializedName(SERIALIZED_NAME_PRICE_CHANGE_PERCENT)
+ @jakarta.annotation.Nullable
+ private String priceChangePercent;
+
+ public static final String SERIALIZED_NAME_WEIGHTED_AVG_PRICE = "weightedAvgPrice";
+
+ @SerializedName(SERIALIZED_NAME_WEIGHTED_AVG_PRICE)
+ @jakarta.annotation.Nullable
+ private String weightedAvgPrice;
+
+ public static final String SERIALIZED_NAME_LAST_PRICE = "lastPrice";
+
+ @SerializedName(SERIALIZED_NAME_LAST_PRICE)
+ @jakarta.annotation.Nullable
+ private String lastPrice;
+
+ public static final String SERIALIZED_NAME_LAST_QTY = "lastQty";
+
+ @SerializedName(SERIALIZED_NAME_LAST_QTY)
+ @jakarta.annotation.Nullable
+ private String lastQty;
+
+ public static final String SERIALIZED_NAME_OPEN_PRICE = "openPrice";
+
+ @SerializedName(SERIALIZED_NAME_OPEN_PRICE)
+ @jakarta.annotation.Nullable
+ private String openPrice;
+
+ public static final String SERIALIZED_NAME_HIGH_PRICE = "highPrice";
+
+ @SerializedName(SERIALIZED_NAME_HIGH_PRICE)
+ @jakarta.annotation.Nullable
+ private String highPrice;
+
+ public static final String SERIALIZED_NAME_LOW_PRICE = "lowPrice";
+
+ @SerializedName(SERIALIZED_NAME_LOW_PRICE)
+ @jakarta.annotation.Nullable
+ private String lowPrice;
+
+ public static final String SERIALIZED_NAME_VOLUME = "volume";
+
+ @SerializedName(SERIALIZED_NAME_VOLUME)
+ @jakarta.annotation.Nullable
+ private String volume;
+
+ public static final String SERIALIZED_NAME_QUOTE_VOLUME = "quoteVolume";
+
+ @SerializedName(SERIALIZED_NAME_QUOTE_VOLUME)
+ @jakarta.annotation.Nullable
+ private String quoteVolume;
+
+ public static final String SERIALIZED_NAME_OPEN_TIME = "openTime";
+
+ @SerializedName(SERIALIZED_NAME_OPEN_TIME)
+ @jakarta.annotation.Nullable
+ private Long openTime;
+
+ public static final String SERIALIZED_NAME_CLOSE_TIME = "closeTime";
+
+ @SerializedName(SERIALIZED_NAME_CLOSE_TIME)
+ @jakarta.annotation.Nullable
+ private Long closeTime;
+
+ public static final String SERIALIZED_NAME_FIRST_ID = "firstId";
+
+ @SerializedName(SERIALIZED_NAME_FIRST_ID)
+ @jakarta.annotation.Nullable
+ private Long firstId;
+
+ public static final String SERIALIZED_NAME_LAST_ID = "lastId";
+
+ @SerializedName(SERIALIZED_NAME_LAST_ID)
+ @jakarta.annotation.Nullable
+ private Long lastId;
+
+ public static final String SERIALIZED_NAME_COUNT = "count";
+
+ @SerializedName(SERIALIZED_NAME_COUNT)
+ @jakarta.annotation.Nullable
+ private Long count;
+
+ public TickerResponseData() {}
+
+ public TickerResponseData symbol(@jakarta.annotation.Nullable String symbol) {
+ this.symbol = symbol;
+ return this;
+ }
+
+ /**
+ * Get symbol
+ *
+ * @return symbol
+ */
+ @jakarta.annotation.Nullable
+ public String getSymbol() {
+ return symbol;
+ }
+
+ public void setSymbol(@jakarta.annotation.Nullable String symbol) {
+ this.symbol = symbol;
+ }
+
+ public TickerResponseData priceChange(@jakarta.annotation.Nullable String priceChange) {
+ this.priceChange = priceChange;
+ return this;
+ }
+
+ /**
+ * Get priceChange
+ *
+ * @return priceChange
+ */
+ @jakarta.annotation.Nullable
+ public String getPriceChange() {
+ return priceChange;
+ }
+
+ public void setPriceChange(@jakarta.annotation.Nullable String priceChange) {
+ this.priceChange = priceChange;
+ }
+
+ public TickerResponseData priceChangePercent(
+ @jakarta.annotation.Nullable String priceChangePercent) {
+ this.priceChangePercent = priceChangePercent;
+ return this;
+ }
+
+ /**
+ * Get priceChangePercent
+ *
+ * @return priceChangePercent
+ */
+ @jakarta.annotation.Nullable
+ public String getPriceChangePercent() {
+ return priceChangePercent;
+ }
+
+ public void setPriceChangePercent(@jakarta.annotation.Nullable String priceChangePercent) {
+ this.priceChangePercent = priceChangePercent;
+ }
+
+ public TickerResponseData weightedAvgPrice(
+ @jakarta.annotation.Nullable String weightedAvgPrice) {
+ this.weightedAvgPrice = weightedAvgPrice;
+ return this;
+ }
+
+ /**
+ * Get weightedAvgPrice
+ *
+ * @return weightedAvgPrice
+ */
+ @jakarta.annotation.Nullable
+ public String getWeightedAvgPrice() {
+ return weightedAvgPrice;
+ }
+
+ public void setWeightedAvgPrice(@jakarta.annotation.Nullable String weightedAvgPrice) {
+ this.weightedAvgPrice = weightedAvgPrice;
+ }
+
+ public TickerResponseData lastPrice(@jakarta.annotation.Nullable String lastPrice) {
+ this.lastPrice = lastPrice;
+ return this;
+ }
+
+ /**
+ * Get lastPrice
+ *
+ * @return lastPrice
+ */
+ @jakarta.annotation.Nullable
+ public String getLastPrice() {
+ return lastPrice;
+ }
+
+ public void setLastPrice(@jakarta.annotation.Nullable String lastPrice) {
+ this.lastPrice = lastPrice;
+ }
+
+ public TickerResponseData lastQty(@jakarta.annotation.Nullable String lastQty) {
+ this.lastQty = lastQty;
+ return this;
+ }
+
+ /**
+ * Get lastQty
+ *
+ * @return lastQty
+ */
+ @jakarta.annotation.Nullable
+ public String getLastQty() {
+ return lastQty;
+ }
+
+ public void setLastQty(@jakarta.annotation.Nullable String lastQty) {
+ this.lastQty = lastQty;
+ }
+
+ public TickerResponseData openPrice(@jakarta.annotation.Nullable String openPrice) {
+ this.openPrice = openPrice;
+ return this;
+ }
+
+ /**
+ * Get openPrice
+ *
+ * @return openPrice
+ */
+ @jakarta.annotation.Nullable
+ public String getOpenPrice() {
+ return openPrice;
+ }
+
+ public void setOpenPrice(@jakarta.annotation.Nullable String openPrice) {
+ this.openPrice = openPrice;
+ }
+
+ public TickerResponseData highPrice(@jakarta.annotation.Nullable String highPrice) {
+ this.highPrice = highPrice;
+ return this;
+ }
+
+ /**
+ * Get highPrice
+ *
+ * @return highPrice
+ */
+ @jakarta.annotation.Nullable
+ public String getHighPrice() {
+ return highPrice;
+ }
+
+ public void setHighPrice(@jakarta.annotation.Nullable String highPrice) {
+ this.highPrice = highPrice;
+ }
+
+ public TickerResponseData lowPrice(@jakarta.annotation.Nullable String lowPrice) {
+ this.lowPrice = lowPrice;
+ return this;
+ }
+
+ /**
+ * Get lowPrice
+ *
+ * @return lowPrice
+ */
+ @jakarta.annotation.Nullable
+ public String getLowPrice() {
+ return lowPrice;
+ }
+
+ public void setLowPrice(@jakarta.annotation.Nullable String lowPrice) {
+ this.lowPrice = lowPrice;
+ }
+
+ public TickerResponseData volume(@jakarta.annotation.Nullable String volume) {
+ this.volume = volume;
+ return this;
+ }
+
+ /**
+ * Get volume
+ *
+ * @return volume
+ */
+ @jakarta.annotation.Nullable
+ public String getVolume() {
+ return volume;
+ }
+
+ public void setVolume(@jakarta.annotation.Nullable String volume) {
+ this.volume = volume;
+ }
+
+ public TickerResponseData quoteVolume(@jakarta.annotation.Nullable String quoteVolume) {
+ this.quoteVolume = quoteVolume;
+ return this;
+ }
+
+ /**
+ * Get quoteVolume
+ *
+ * @return quoteVolume
+ */
+ @jakarta.annotation.Nullable
+ public String getQuoteVolume() {
+ return quoteVolume;
+ }
+
+ public void setQuoteVolume(@jakarta.annotation.Nullable String quoteVolume) {
+ this.quoteVolume = quoteVolume;
+ }
+
+ public TickerResponseData openTime(@jakarta.annotation.Nullable Long openTime) {
+ this.openTime = openTime;
+ return this;
+ }
+
+ /**
+ * Get openTime
+ *
+ * @return openTime
+ */
+ @jakarta.annotation.Nullable
+ public Long getOpenTime() {
+ return openTime;
+ }
+
+ public void setOpenTime(@jakarta.annotation.Nullable Long openTime) {
+ this.openTime = openTime;
+ }
+
+ public TickerResponseData closeTime(@jakarta.annotation.Nullable Long closeTime) {
+ this.closeTime = closeTime;
+ return this;
+ }
+
+ /**
+ * Get closeTime
+ *
+ * @return closeTime
+ */
+ @jakarta.annotation.Nullable
+ public Long getCloseTime() {
+ return closeTime;
+ }
+
+ public void setCloseTime(@jakarta.annotation.Nullable Long closeTime) {
+ this.closeTime = closeTime;
+ }
+
+ public TickerResponseData firstId(@jakarta.annotation.Nullable Long firstId) {
+ this.firstId = firstId;
+ return this;
+ }
+
+ /**
+ * Get firstId
+ *
+ * @return firstId
+ */
+ @jakarta.annotation.Nullable
+ public Long getFirstId() {
+ return firstId;
+ }
+
+ public void setFirstId(@jakarta.annotation.Nullable Long firstId) {
+ this.firstId = firstId;
+ }
+
+ public TickerResponseData lastId(@jakarta.annotation.Nullable Long lastId) {
+ this.lastId = lastId;
+ return this;
+ }
+
+ /**
+ * Get lastId
+ *
+ * @return lastId
+ */
+ @jakarta.annotation.Nullable
+ public Long getLastId() {
+ return lastId;
+ }
+
+ public void setLastId(@jakarta.annotation.Nullable Long lastId) {
+ this.lastId = lastId;
+ }
+
+ public TickerResponseData count(@jakarta.annotation.Nullable Long count) {
+ this.count = count;
+ return this;
+ }
+
+ /**
+ * Get count
+ *
+ * @return count
+ */
+ @jakarta.annotation.Nullable
+ public Long getCount() {
+ return count;
+ }
+
+ public void setCount(@jakarta.annotation.Nullable Long count) {
+ this.count = count;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TickerResponseData tickerResponseData = (TickerResponseData) o;
+ return Objects.equals(this.symbol, tickerResponseData.symbol)
+ && Objects.equals(this.priceChange, tickerResponseData.priceChange)
+ && Objects.equals(this.priceChangePercent, tickerResponseData.priceChangePercent)
+ && Objects.equals(this.weightedAvgPrice, tickerResponseData.weightedAvgPrice)
+ && Objects.equals(this.lastPrice, tickerResponseData.lastPrice)
+ && Objects.equals(this.lastQty, tickerResponseData.lastQty)
+ && Objects.equals(this.openPrice, tickerResponseData.openPrice)
+ && Objects.equals(this.highPrice, tickerResponseData.highPrice)
+ && Objects.equals(this.lowPrice, tickerResponseData.lowPrice)
+ && Objects.equals(this.volume, tickerResponseData.volume)
+ && Objects.equals(this.quoteVolume, tickerResponseData.quoteVolume)
+ && Objects.equals(this.openTime, tickerResponseData.openTime)
+ && Objects.equals(this.closeTime, tickerResponseData.closeTime)
+ && Objects.equals(this.firstId, tickerResponseData.firstId)
+ && Objects.equals(this.lastId, tickerResponseData.lastId)
+ && Objects.equals(this.count, tickerResponseData.count);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ symbol,
+ priceChange,
+ priceChangePercent,
+ weightedAvgPrice,
+ lastPrice,
+ lastQty,
+ openPrice,
+ highPrice,
+ lowPrice,
+ volume,
+ quoteVolume,
+ openTime,
+ closeTime,
+ firstId,
+ lastId,
+ count);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TickerResponseData {\n");
+ sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n");
+ sb.append(" priceChange: ").append(toIndentedString(priceChange)).append("\n");
+ sb.append(" priceChangePercent: ")
+ .append(toIndentedString(priceChangePercent))
+ .append("\n");
+ sb.append(" weightedAvgPrice: ").append(toIndentedString(weightedAvgPrice)).append("\n");
+ sb.append(" lastPrice: ").append(toIndentedString(lastPrice)).append("\n");
+ sb.append(" lastQty: ").append(toIndentedString(lastQty)).append("\n");
+ sb.append(" openPrice: ").append(toIndentedString(openPrice)).append("\n");
+ sb.append(" highPrice: ").append(toIndentedString(highPrice)).append("\n");
+ sb.append(" lowPrice: ").append(toIndentedString(lowPrice)).append("\n");
+ sb.append(" volume: ").append(toIndentedString(volume)).append("\n");
+ sb.append(" quoteVolume: ").append(toIndentedString(quoteVolume)).append("\n");
+ sb.append(" openTime: ").append(toIndentedString(openTime)).append("\n");
+ sb.append(" closeTime: ").append(toIndentedString(closeTime)).append("\n");
+ sb.append(" firstId: ").append(toIndentedString(firstId)).append("\n");
+ sb.append(" lastId: ").append(toIndentedString(lastId)).append("\n");
+ sb.append(" count: ").append(toIndentedString(count)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ public String toUrlQueryString() {
+ StringBuilder sb = new StringBuilder();
+
+ Object symbolValue = getSymbol();
+ String symbolValueAsString = "";
+ symbolValueAsString = symbolValue.toString();
+ sb.append("symbol=").append(urlEncode(symbolValueAsString)).append("");
+ Object priceChangeValue = getPriceChange();
+ String priceChangeValueAsString = "";
+ priceChangeValueAsString = priceChangeValue.toString();
+ sb.append("priceChange=").append(urlEncode(priceChangeValueAsString)).append("");
+ Object priceChangePercentValue = getPriceChangePercent();
+ String priceChangePercentValueAsString = "";
+ priceChangePercentValueAsString = priceChangePercentValue.toString();
+ sb.append("priceChangePercent=")
+ .append(urlEncode(priceChangePercentValueAsString))
+ .append("");
+ Object weightedAvgPriceValue = getWeightedAvgPrice();
+ String weightedAvgPriceValueAsString = "";
+ weightedAvgPriceValueAsString = weightedAvgPriceValue.toString();
+ sb.append("weightedAvgPrice=").append(urlEncode(weightedAvgPriceValueAsString)).append("");
+ Object lastPriceValue = getLastPrice();
+ String lastPriceValueAsString = "";
+ lastPriceValueAsString = lastPriceValue.toString();
+ sb.append("lastPrice=").append(urlEncode(lastPriceValueAsString)).append("");
+ Object lastQtyValue = getLastQty();
+ String lastQtyValueAsString = "";
+ lastQtyValueAsString = lastQtyValue.toString();
+ sb.append("lastQty=").append(urlEncode(lastQtyValueAsString)).append("");
+ Object openPriceValue = getOpenPrice();
+ String openPriceValueAsString = "";
+ openPriceValueAsString = openPriceValue.toString();
+ sb.append("openPrice=").append(urlEncode(openPriceValueAsString)).append("");
+ Object highPriceValue = getHighPrice();
+ String highPriceValueAsString = "";
+ highPriceValueAsString = highPriceValue.toString();
+ sb.append("highPrice=").append(urlEncode(highPriceValueAsString)).append("");
+ Object lowPriceValue = getLowPrice();
+ String lowPriceValueAsString = "";
+ lowPriceValueAsString = lowPriceValue.toString();
+ sb.append("lowPrice=").append(urlEncode(lowPriceValueAsString)).append("");
+ Object volumeValue = getVolume();
+ String volumeValueAsString = "";
+ volumeValueAsString = volumeValue.toString();
+ sb.append("volume=").append(urlEncode(volumeValueAsString)).append("");
+ Object quoteVolumeValue = getQuoteVolume();
+ String quoteVolumeValueAsString = "";
+ quoteVolumeValueAsString = quoteVolumeValue.toString();
+ sb.append("quoteVolume=").append(urlEncode(quoteVolumeValueAsString)).append("");
+ Object openTimeValue = getOpenTime();
+ String openTimeValueAsString = "";
+ openTimeValueAsString = openTimeValue.toString();
+ sb.append("openTime=").append(urlEncode(openTimeValueAsString)).append("");
+ Object closeTimeValue = getCloseTime();
+ String closeTimeValueAsString = "";
+ closeTimeValueAsString = closeTimeValue.toString();
+ sb.append("closeTime=").append(urlEncode(closeTimeValueAsString)).append("");
+ Object firstIdValue = getFirstId();
+ String firstIdValueAsString = "";
+ firstIdValueAsString = firstIdValue.toString();
+ sb.append("firstId=").append(urlEncode(firstIdValueAsString)).append("");
+ Object lastIdValue = getLastId();
+ String lastIdValueAsString = "";
+ lastIdValueAsString = lastIdValue.toString();
+ sb.append("lastId=").append(urlEncode(lastIdValueAsString)).append("");
+ Object countValue = getCount();
+ String countValueAsString = "";
+ countValueAsString = countValue.toString();
+ sb.append("count=").append(urlEncode(countValueAsString)).append("");
+ return sb.toString();
+ }
+
+ public static String urlEncode(String s) {
+ try {
+ return URLEncoder.encode(s, StandardCharsets.UTF_8.name());
+ } catch (UnsupportedEncodingException e) {
+ throw new RuntimeException(StandardCharsets.UTF_8.name() + " is unsupported", e);
+ }
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first
+ * line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+ public static HashSet openapiFields;
+ public static HashSet openapiRequiredFields;
+
+ static {
+ // a set of all properties/fields (JSON key names)
+ openapiFields = new HashSet();
+ openapiFields.add("symbol");
+ openapiFields.add("priceChange");
+ openapiFields.add("priceChangePercent");
+ openapiFields.add("weightedAvgPrice");
+ openapiFields.add("lastPrice");
+ openapiFields.add("lastQty");
+ openapiFields.add("openPrice");
+ openapiFields.add("highPrice");
+ openapiFields.add("lowPrice");
+ openapiFields.add("volume");
+ openapiFields.add("quoteVolume");
+ openapiFields.add("openTime");
+ openapiFields.add("closeTime");
+ openapiFields.add("firstId");
+ openapiFields.add("lastId");
+ openapiFields.add("count");
+
+ // a set of required properties/fields (JSON key names)
+ openapiRequiredFields = new HashSet();
+ }
+
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to TickerResponseData
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!TickerResponseData.openapiRequiredFields
+ .isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(
+ String.format(
+ "The required field(s) %s in TickerResponseData is not found in the"
+ + " empty JSON string",
+ TickerResponseData.openapiRequiredFields.toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ if ((jsonObj.get("symbol") != null && !jsonObj.get("symbol").isJsonNull())
+ && !jsonObj.get("symbol").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `symbol` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("symbol").toString()));
+ }
+ if ((jsonObj.get("priceChange") != null && !jsonObj.get("priceChange").isJsonNull())
+ && !jsonObj.get("priceChange").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `priceChange` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("priceChange").toString()));
+ }
+ if ((jsonObj.get("priceChangePercent") != null
+ && !jsonObj.get("priceChangePercent").isJsonNull())
+ && !jsonObj.get("priceChangePercent").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `priceChangePercent` to be a primitive type in the"
+ + " JSON string but got `%s`",
+ jsonObj.get("priceChangePercent").toString()));
+ }
+ if ((jsonObj.get("weightedAvgPrice") != null
+ && !jsonObj.get("weightedAvgPrice").isJsonNull())
+ && !jsonObj.get("weightedAvgPrice").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `weightedAvgPrice` to be a primitive type in the"
+ + " JSON string but got `%s`",
+ jsonObj.get("weightedAvgPrice").toString()));
+ }
+ if ((jsonObj.get("lastPrice") != null && !jsonObj.get("lastPrice").isJsonNull())
+ && !jsonObj.get("lastPrice").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `lastPrice` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("lastPrice").toString()));
+ }
+ if ((jsonObj.get("lastQty") != null && !jsonObj.get("lastQty").isJsonNull())
+ && !jsonObj.get("lastQty").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `lastQty` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("lastQty").toString()));
+ }
+ if ((jsonObj.get("openPrice") != null && !jsonObj.get("openPrice").isJsonNull())
+ && !jsonObj.get("openPrice").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `openPrice` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("openPrice").toString()));
+ }
+ if ((jsonObj.get("highPrice") != null && !jsonObj.get("highPrice").isJsonNull())
+ && !jsonObj.get("highPrice").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `highPrice` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("highPrice").toString()));
+ }
+ if ((jsonObj.get("lowPrice") != null && !jsonObj.get("lowPrice").isJsonNull())
+ && !jsonObj.get("lowPrice").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `lowPrice` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("lowPrice").toString()));
+ }
+ if ((jsonObj.get("volume") != null && !jsonObj.get("volume").isJsonNull())
+ && !jsonObj.get("volume").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `volume` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("volume").toString()));
+ }
+ if ((jsonObj.get("quoteVolume") != null && !jsonObj.get("quoteVolume").isJsonNull())
+ && !jsonObj.get("quoteVolume").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `quoteVolume` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("quoteVolume").toString()));
+ }
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!TickerResponseData.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'TickerResponseData' and its subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter =
+ gson.getDelegateAdapter(this, TypeToken.get(TickerResponseData.class));
+
+ return (TypeAdapter)
+ new TypeAdapter() {
+ @Override
+ public void write(JsonWriter out, TickerResponseData value)
+ throws IOException {
+ JsonElement obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public TickerResponseData read(JsonReader in) throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ // validateJsonElement(jsonElement);
+ return thisAdapter.fromJsonTree(jsonElement);
+ }
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of TickerResponseData given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of TickerResponseData
+ * @throws IOException if the JSON string is invalid with respect to TickerResponseData
+ */
+ public static TickerResponseData fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, TickerResponseData.class);
+ }
+
+ /**
+ * Convert an instance of TickerResponseData to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
diff --git a/clients/alpha/src/main/java/com/binance/connector/client/alpha/rest/model/TokenListResponse.java b/clients/alpha/src/main/java/com/binance/connector/client/alpha/rest/model/TokenListResponse.java
new file mode 100644
index 00000000..5010a9ff
--- /dev/null
+++ b/clients/alpha/src/main/java/com/binance/connector/client/alpha/rest/model/TokenListResponse.java
@@ -0,0 +1,392 @@
+/*
+ * Binance Alpha REST API
+ * OpenAPI Specification for the Binance Alpha REST API
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package com.binance.connector.client.alpha.rest.model;
+
+import com.binance.connector.client.alpha.rest.JSON;
+import com.google.gson.Gson;
+import com.google.gson.JsonArray;
+import com.google.gson.JsonElement;
+import com.google.gson.JsonObject;
+import com.google.gson.TypeAdapter;
+import com.google.gson.TypeAdapterFactory;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.reflect.TypeToken;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.*;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLEncoder;
+import java.nio.charset.StandardCharsets;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Objects;
+import java.util.stream.Collectors;
+import org.hibernate.validator.constraints.*;
+
+/** TokenListResponse */
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.12.0")
+public class TokenListResponse {
+ public static final String SERIALIZED_NAME_CODE = "code";
+
+ @SerializedName(SERIALIZED_NAME_CODE)
+ @jakarta.annotation.Nullable
+ private String code;
+
+ public static final String SERIALIZED_NAME_MESSAGE = "message";
+
+ @SerializedName(SERIALIZED_NAME_MESSAGE)
+ @jakarta.annotation.Nullable
+ private String message;
+
+ public static final String SERIALIZED_NAME_MESSAGE_DETAIL = "messageDetail";
+
+ @SerializedName(SERIALIZED_NAME_MESSAGE_DETAIL)
+ @jakarta.annotation.Nullable
+ private String messageDetail;
+
+ public static final String SERIALIZED_NAME_SUCCESS = "success";
+
+ @SerializedName(SERIALIZED_NAME_SUCCESS)
+ @jakarta.annotation.Nullable
+ private Boolean success;
+
+ public static final String SERIALIZED_NAME_DATA = "data";
+
+ @SerializedName(SERIALIZED_NAME_DATA)
+ @jakarta.annotation.Nullable
+ private List<@Valid TokenListResponseDataInner> data;
+
+ public TokenListResponse() {}
+
+ public TokenListResponse code(@jakarta.annotation.Nullable String code) {
+ this.code = code;
+ return this;
+ }
+
+ /**
+ * Get code
+ *
+ * @return code
+ */
+ @jakarta.annotation.Nullable
+ public String getCode() {
+ return code;
+ }
+
+ public void setCode(@jakarta.annotation.Nullable String code) {
+ this.code = code;
+ }
+
+ public TokenListResponse message(@jakarta.annotation.Nullable String message) {
+ this.message = message;
+ return this;
+ }
+
+ /**
+ * Get message
+ *
+ * @return message
+ */
+ @jakarta.annotation.Nullable
+ public String getMessage() {
+ return message;
+ }
+
+ public void setMessage(@jakarta.annotation.Nullable String message) {
+ this.message = message;
+ }
+
+ public TokenListResponse messageDetail(@jakarta.annotation.Nullable String messageDetail) {
+ this.messageDetail = messageDetail;
+ return this;
+ }
+
+ /**
+ * Get messageDetail
+ *
+ * @return messageDetail
+ */
+ @jakarta.annotation.Nullable
+ public String getMessageDetail() {
+ return messageDetail;
+ }
+
+ public void setMessageDetail(@jakarta.annotation.Nullable String messageDetail) {
+ this.messageDetail = messageDetail;
+ }
+
+ public TokenListResponse success(@jakarta.annotation.Nullable Boolean success) {
+ this.success = success;
+ return this;
+ }
+
+ /**
+ * Get success
+ *
+ * @return success
+ */
+ @jakarta.annotation.Nullable
+ public Boolean getSuccess() {
+ return success;
+ }
+
+ public void setSuccess(@jakarta.annotation.Nullable Boolean success) {
+ this.success = success;
+ }
+
+ public TokenListResponse data(
+ @jakarta.annotation.Nullable List<@Valid TokenListResponseDataInner> data) {
+ this.data = data;
+ return this;
+ }
+
+ public TokenListResponse addDataItem(TokenListResponseDataInner dataItem) {
+ if (this.data == null) {
+ this.data = new ArrayList<>();
+ }
+ this.data.add(dataItem);
+ return this;
+ }
+
+ /**
+ * Get data
+ *
+ * @return data
+ */
+ @jakarta.annotation.Nullable
+ @Valid
+ public List<@Valid TokenListResponseDataInner> getData() {
+ return data;
+ }
+
+ public void setData(@jakarta.annotation.Nullable List<@Valid TokenListResponseDataInner> data) {
+ this.data = data;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TokenListResponse tokenListResponse = (TokenListResponse) o;
+ return Objects.equals(this.code, tokenListResponse.code)
+ && Objects.equals(this.message, tokenListResponse.message)
+ && Objects.equals(this.messageDetail, tokenListResponse.messageDetail)
+ && Objects.equals(this.success, tokenListResponse.success)
+ && Objects.equals(this.data, tokenListResponse.data);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(code, message, messageDetail, success, data);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TokenListResponse {\n");
+ sb.append(" code: ").append(toIndentedString(code)).append("\n");
+ sb.append(" message: ").append(toIndentedString(message)).append("\n");
+ sb.append(" messageDetail: ").append(toIndentedString(messageDetail)).append("\n");
+ sb.append(" success: ").append(toIndentedString(success)).append("\n");
+ sb.append(" data: ").append(toIndentedString(data)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ public String toUrlQueryString() {
+ StringBuilder sb = new StringBuilder();
+
+ Object codeValue = getCode();
+ String codeValueAsString = "";
+ codeValueAsString = codeValue.toString();
+ sb.append("code=").append(urlEncode(codeValueAsString)).append("");
+ Object messageValue = getMessage();
+ String messageValueAsString = "";
+ messageValueAsString = messageValue.toString();
+ sb.append("message=").append(urlEncode(messageValueAsString)).append("");
+ Object messageDetailValue = getMessageDetail();
+ String messageDetailValueAsString = "";
+ messageDetailValueAsString = messageDetailValue.toString();
+ sb.append("messageDetail=").append(urlEncode(messageDetailValueAsString)).append("");
+ Object successValue = getSuccess();
+ String successValueAsString = "";
+ successValueAsString = successValue.toString();
+ sb.append("success=").append(urlEncode(successValueAsString)).append("");
+ Object dataValue = getData();
+ String dataValueAsString = "";
+ dataValueAsString =
+ (String)
+ ((Collection) dataValue)
+ .stream().map(Object::toString).collect(Collectors.joining(","));
+ sb.append("data=").append(urlEncode(dataValueAsString)).append("");
+ return sb.toString();
+ }
+
+ public static String urlEncode(String s) {
+ try {
+ return URLEncoder.encode(s, StandardCharsets.UTF_8.name());
+ } catch (UnsupportedEncodingException e) {
+ throw new RuntimeException(StandardCharsets.UTF_8.name() + " is unsupported", e);
+ }
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first
+ * line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+ public static HashSet openapiFields;
+ public static HashSet openapiRequiredFields;
+
+ static {
+ // a set of all properties/fields (JSON key names)
+ openapiFields = new HashSet();
+ openapiFields.add("code");
+ openapiFields.add("message");
+ openapiFields.add("messageDetail");
+ openapiFields.add("success");
+ openapiFields.add("data");
+
+ // a set of required properties/fields (JSON key names)
+ openapiRequiredFields = new HashSet();
+ }
+
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to TokenListResponse
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!TokenListResponse.openapiRequiredFields
+ .isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(
+ String.format(
+ "The required field(s) %s in TokenListResponse is not found in the"
+ + " empty JSON string",
+ TokenListResponse.openapiRequiredFields.toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ if ((jsonObj.get("code") != null && !jsonObj.get("code").isJsonNull())
+ && !jsonObj.get("code").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `code` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("code").toString()));
+ }
+ if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull())
+ && !jsonObj.get("message").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `message` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("message").toString()));
+ }
+ if ((jsonObj.get("messageDetail") != null && !jsonObj.get("messageDetail").isJsonNull())
+ && !jsonObj.get("messageDetail").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `messageDetail` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("messageDetail").toString()));
+ }
+ if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) {
+ JsonArray jsonArraydata = jsonObj.getAsJsonArray("data");
+ if (jsonArraydata != null) {
+ // ensure the json data is an array
+ if (!jsonObj.get("data").isJsonArray()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `data` to be an array in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("data").toString()));
+ }
+
+ // validate the optional field `data` (array)
+ for (int i = 0; i < jsonArraydata.size(); i++) {
+ TokenListResponseDataInner.validateJsonElement(jsonArraydata.get(i));
+ }
+ ;
+ }
+ }
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!TokenListResponse.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'TokenListResponse' and its subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter =
+ gson.getDelegateAdapter(this, TypeToken.get(TokenListResponse.class));
+
+ return (TypeAdapter)
+ new TypeAdapter() {
+ @Override
+ public void write(JsonWriter out, TokenListResponse value)
+ throws IOException {
+ JsonElement obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public TokenListResponse read(JsonReader in) throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ // validateJsonElement(jsonElement);
+ return thisAdapter.fromJsonTree(jsonElement);
+ }
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of TokenListResponse given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of TokenListResponse
+ * @throws IOException if the JSON string is invalid with respect to TokenListResponse
+ */
+ public static TokenListResponse fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, TokenListResponse.class);
+ }
+
+ /**
+ * Convert an instance of TokenListResponse to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
diff --git a/clients/alpha/src/main/java/com/binance/connector/client/alpha/rest/model/TokenListResponseDataInner.java b/clients/alpha/src/main/java/com/binance/connector/client/alpha/rest/model/TokenListResponseDataInner.java
new file mode 100644
index 00000000..89751c01
--- /dev/null
+++ b/clients/alpha/src/main/java/com/binance/connector/client/alpha/rest/model/TokenListResponseDataInner.java
@@ -0,0 +1,1617 @@
+/*
+ * Binance Alpha REST API
+ * OpenAPI Specification for the Binance Alpha REST API
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package com.binance.connector.client.alpha.rest.model;
+
+import com.binance.connector.client.alpha.rest.JSON;
+import com.google.gson.Gson;
+import com.google.gson.JsonElement;
+import com.google.gson.JsonObject;
+import com.google.gson.TypeAdapter;
+import com.google.gson.TypeAdapterFactory;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.reflect.TypeToken;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import jakarta.validation.constraints.*;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLEncoder;
+import java.nio.charset.StandardCharsets;
+import java.util.HashSet;
+import java.util.Objects;
+import org.hibernate.validator.constraints.*;
+
+/** TokenListResponseDataInner */
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.12.0")
+public class TokenListResponseDataInner {
+ public static final String SERIALIZED_NAME_TOKEN_ID = "tokenId";
+
+ @SerializedName(SERIALIZED_NAME_TOKEN_ID)
+ @jakarta.annotation.Nullable
+ private String tokenId;
+
+ public static final String SERIALIZED_NAME_CHAIN_ID = "chainId";
+
+ @SerializedName(SERIALIZED_NAME_CHAIN_ID)
+ @jakarta.annotation.Nullable
+ private String chainId;
+
+ public static final String SERIALIZED_NAME_CHAIN_ICON_URL = "chainIconUrl";
+
+ @SerializedName(SERIALIZED_NAME_CHAIN_ICON_URL)
+ @jakarta.annotation.Nullable
+ private String chainIconUrl;
+
+ public static final String SERIALIZED_NAME_CHAIN_NAME = "chainName";
+
+ @SerializedName(SERIALIZED_NAME_CHAIN_NAME)
+ @jakarta.annotation.Nullable
+ private String chainName;
+
+ public static final String SERIALIZED_NAME_CONTRACT_ADDRESS = "contractAddress";
+
+ @SerializedName(SERIALIZED_NAME_CONTRACT_ADDRESS)
+ @jakarta.annotation.Nullable
+ private String contractAddress;
+
+ public static final String SERIALIZED_NAME_NAME = "name";
+
+ @SerializedName(SERIALIZED_NAME_NAME)
+ @jakarta.annotation.Nullable
+ private String name;
+
+ public static final String SERIALIZED_NAME_SYMBOL = "symbol";
+
+ @SerializedName(SERIALIZED_NAME_SYMBOL)
+ @jakarta.annotation.Nullable
+ private String symbol;
+
+ public static final String SERIALIZED_NAME_ICON_URL = "iconUrl";
+
+ @SerializedName(SERIALIZED_NAME_ICON_URL)
+ @jakarta.annotation.Nullable
+ private String iconUrl;
+
+ public static final String SERIALIZED_NAME_PRICE = "price";
+
+ @SerializedName(SERIALIZED_NAME_PRICE)
+ @jakarta.annotation.Nullable
+ private String price;
+
+ public static final String SERIALIZED_NAME_PERCENT_CHANGE24H = "percentChange24h";
+
+ @SerializedName(SERIALIZED_NAME_PERCENT_CHANGE24H)
+ @jakarta.annotation.Nullable
+ private String percentChange24h;
+
+ public static final String SERIALIZED_NAME_VOLUME24H = "volume24h";
+
+ @SerializedName(SERIALIZED_NAME_VOLUME24H)
+ @jakarta.annotation.Nullable
+ private String volume24h;
+
+ public static final String SERIALIZED_NAME_MARKET_CAP = "marketCap";
+
+ @SerializedName(SERIALIZED_NAME_MARKET_CAP)
+ @jakarta.annotation.Nullable
+ private String marketCap;
+
+ public static final String SERIALIZED_NAME_FDV = "fdv";
+
+ @SerializedName(SERIALIZED_NAME_FDV)
+ @jakarta.annotation.Nullable
+ private String fdv;
+
+ public static final String SERIALIZED_NAME_LIQUIDITY = "liquidity";
+
+ @SerializedName(SERIALIZED_NAME_LIQUIDITY)
+ @jakarta.annotation.Nullable
+ private String liquidity;
+
+ public static final String SERIALIZED_NAME_TOTAL_SUPPLY = "totalSupply";
+
+ @SerializedName(SERIALIZED_NAME_TOTAL_SUPPLY)
+ @jakarta.annotation.Nullable
+ private String totalSupply;
+
+ public static final String SERIALIZED_NAME_CIRCULATING_SUPPLY = "circulatingSupply";
+
+ @SerializedName(SERIALIZED_NAME_CIRCULATING_SUPPLY)
+ @jakarta.annotation.Nullable
+ private String circulatingSupply;
+
+ public static final String SERIALIZED_NAME_HOLDERS = "holders";
+
+ @SerializedName(SERIALIZED_NAME_HOLDERS)
+ @jakarta.annotation.Nullable
+ private String holders;
+
+ public static final String SERIALIZED_NAME_DECIMALS = "decimals";
+
+ @SerializedName(SERIALIZED_NAME_DECIMALS)
+ @jakarta.annotation.Nullable
+ private Long decimals;
+
+ public static final String SERIALIZED_NAME_LISTING_CEX = "listingCex";
+
+ @SerializedName(SERIALIZED_NAME_LISTING_CEX)
+ @jakarta.annotation.Nullable
+ private Boolean listingCex;
+
+ public static final String SERIALIZED_NAME_HOT_TAG = "hotTag";
+
+ @SerializedName(SERIALIZED_NAME_HOT_TAG)
+ @jakarta.annotation.Nullable
+ private Boolean hotTag;
+
+ public static final String SERIALIZED_NAME_CEX_COIN_NAME = "cexCoinName";
+
+ @SerializedName(SERIALIZED_NAME_CEX_COIN_NAME)
+ @jakarta.annotation.Nullable
+ private String cexCoinName;
+
+ public static final String SERIALIZED_NAME_CAN_TRANSFER = "canTransfer";
+
+ @SerializedName(SERIALIZED_NAME_CAN_TRANSFER)
+ @jakarta.annotation.Nullable
+ private Boolean canTransfer;
+
+ public static final String SERIALIZED_NAME_DENOMINATION = "denomination";
+
+ @SerializedName(SERIALIZED_NAME_DENOMINATION)
+ @jakarta.annotation.Nullable
+ private Long denomination;
+
+ public static final String SERIALIZED_NAME_OFFLINE = "offline";
+
+ @SerializedName(SERIALIZED_NAME_OFFLINE)
+ @jakarta.annotation.Nullable
+ private Boolean offline;
+
+ public static final String SERIALIZED_NAME_TRADE_DECIMAL = "tradeDecimal";
+
+ @SerializedName(SERIALIZED_NAME_TRADE_DECIMAL)
+ @jakarta.annotation.Nullable
+ private Long tradeDecimal;
+
+ public static final String SERIALIZED_NAME_ALPHA_ID = "alphaId";
+
+ @SerializedName(SERIALIZED_NAME_ALPHA_ID)
+ @jakarta.annotation.Nullable
+ private String alphaId;
+
+ public static final String SERIALIZED_NAME_OFFSELL = "offsell";
+
+ @SerializedName(SERIALIZED_NAME_OFFSELL)
+ @jakarta.annotation.Nullable
+ private Boolean offsell;
+
+ public static final String SERIALIZED_NAME_PRICE_HIGH24H = "priceHigh24h";
+
+ @SerializedName(SERIALIZED_NAME_PRICE_HIGH24H)
+ @jakarta.annotation.Nullable
+ private String priceHigh24h;
+
+ public static final String SERIALIZED_NAME_PRICE_LOW24H = "priceLow24h";
+
+ @SerializedName(SERIALIZED_NAME_PRICE_LOW24H)
+ @jakarta.annotation.Nullable
+ private String priceLow24h;
+
+ public static final String SERIALIZED_NAME_COUNT24H = "count24h";
+
+ @SerializedName(SERIALIZED_NAME_COUNT24H)
+ @jakarta.annotation.Nullable
+ private String count24h;
+
+ public static final String SERIALIZED_NAME_ONLINE_TGE = "onlineTge";
+
+ @SerializedName(SERIALIZED_NAME_ONLINE_TGE)
+ @jakarta.annotation.Nullable
+ private Boolean onlineTge;
+
+ public static final String SERIALIZED_NAME_ONLINE_AIRDROP = "onlineAirdrop";
+
+ @SerializedName(SERIALIZED_NAME_ONLINE_AIRDROP)
+ @jakarta.annotation.Nullable
+ private Boolean onlineAirdrop;
+
+ public static final String SERIALIZED_NAME_SCORE = "score";
+
+ @SerializedName(SERIALIZED_NAME_SCORE)
+ @jakarta.annotation.Nullable
+ private Long score;
+
+ public static final String SERIALIZED_NAME_CEX_OFF_DISPLAY = "cexOffDisplay";
+
+ @SerializedName(SERIALIZED_NAME_CEX_OFF_DISPLAY)
+ @jakarta.annotation.Nullable
+ private Boolean cexOffDisplay;
+
+ public static final String SERIALIZED_NAME_STOCK_STATE = "stockState";
+
+ @SerializedName(SERIALIZED_NAME_STOCK_STATE)
+ @jakarta.annotation.Nullable
+ private Boolean stockState;
+
+ public static final String SERIALIZED_NAME_LISTING_TIME = "listingTime";
+
+ @SerializedName(SERIALIZED_NAME_LISTING_TIME)
+ @jakarta.annotation.Nullable
+ private Long listingTime;
+
+ public static final String SERIALIZED_NAME_MUL_POINT = "mulPoint";
+
+ @SerializedName(SERIALIZED_NAME_MUL_POINT)
+ @jakarta.annotation.Nullable
+ private Long mulPoint;
+
+ public static final String SERIALIZED_NAME_BN_EXCLUSIVE_STATE = "bnExclusiveState";
+
+ @SerializedName(SERIALIZED_NAME_BN_EXCLUSIVE_STATE)
+ @jakarta.annotation.Nullable
+ private Boolean bnExclusiveState;
+
+ public TokenListResponseDataInner() {}
+
+ public TokenListResponseDataInner tokenId(@jakarta.annotation.Nullable String tokenId) {
+ this.tokenId = tokenId;
+ return this;
+ }
+
+ /**
+ * Get tokenId
+ *
+ * @return tokenId
+ */
+ @jakarta.annotation.Nullable
+ public String getTokenId() {
+ return tokenId;
+ }
+
+ public void setTokenId(@jakarta.annotation.Nullable String tokenId) {
+ this.tokenId = tokenId;
+ }
+
+ public TokenListResponseDataInner chainId(@jakarta.annotation.Nullable String chainId) {
+ this.chainId = chainId;
+ return this;
+ }
+
+ /**
+ * Get chainId
+ *
+ * @return chainId
+ */
+ @jakarta.annotation.Nullable
+ public String getChainId() {
+ return chainId;
+ }
+
+ public void setChainId(@jakarta.annotation.Nullable String chainId) {
+ this.chainId = chainId;
+ }
+
+ public TokenListResponseDataInner chainIconUrl(
+ @jakarta.annotation.Nullable String chainIconUrl) {
+ this.chainIconUrl = chainIconUrl;
+ return this;
+ }
+
+ /**
+ * Get chainIconUrl
+ *
+ * @return chainIconUrl
+ */
+ @jakarta.annotation.Nullable
+ public String getChainIconUrl() {
+ return chainIconUrl;
+ }
+
+ public void setChainIconUrl(@jakarta.annotation.Nullable String chainIconUrl) {
+ this.chainIconUrl = chainIconUrl;
+ }
+
+ public TokenListResponseDataInner chainName(@jakarta.annotation.Nullable String chainName) {
+ this.chainName = chainName;
+ return this;
+ }
+
+ /**
+ * Get chainName
+ *
+ * @return chainName
+ */
+ @jakarta.annotation.Nullable
+ public String getChainName() {
+ return chainName;
+ }
+
+ public void setChainName(@jakarta.annotation.Nullable String chainName) {
+ this.chainName = chainName;
+ }
+
+ public TokenListResponseDataInner contractAddress(
+ @jakarta.annotation.Nullable String contractAddress) {
+ this.contractAddress = contractAddress;
+ return this;
+ }
+
+ /**
+ * Get contractAddress
+ *
+ * @return contractAddress
+ */
+ @jakarta.annotation.Nullable
+ public String getContractAddress() {
+ return contractAddress;
+ }
+
+ public void setContractAddress(@jakarta.annotation.Nullable String contractAddress) {
+ this.contractAddress = contractAddress;
+ }
+
+ public TokenListResponseDataInner name(@jakarta.annotation.Nullable String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get name
+ *
+ * @return name
+ */
+ @jakarta.annotation.Nullable
+ public String getName() {
+ return name;
+ }
+
+ public void setName(@jakarta.annotation.Nullable String name) {
+ this.name = name;
+ }
+
+ public TokenListResponseDataInner symbol(@jakarta.annotation.Nullable String symbol) {
+ this.symbol = symbol;
+ return this;
+ }
+
+ /**
+ * Get symbol
+ *
+ * @return symbol
+ */
+ @jakarta.annotation.Nullable
+ public String getSymbol() {
+ return symbol;
+ }
+
+ public void setSymbol(@jakarta.annotation.Nullable String symbol) {
+ this.symbol = symbol;
+ }
+
+ public TokenListResponseDataInner iconUrl(@jakarta.annotation.Nullable String iconUrl) {
+ this.iconUrl = iconUrl;
+ return this;
+ }
+
+ /**
+ * Get iconUrl
+ *
+ * @return iconUrl
+ */
+ @jakarta.annotation.Nullable
+ public String getIconUrl() {
+ return iconUrl;
+ }
+
+ public void setIconUrl(@jakarta.annotation.Nullable String iconUrl) {
+ this.iconUrl = iconUrl;
+ }
+
+ public TokenListResponseDataInner price(@jakarta.annotation.Nullable String price) {
+ this.price = price;
+ return this;
+ }
+
+ /**
+ * Get price
+ *
+ * @return price
+ */
+ @jakarta.annotation.Nullable
+ public String getPrice() {
+ return price;
+ }
+
+ public void setPrice(@jakarta.annotation.Nullable String price) {
+ this.price = price;
+ }
+
+ public TokenListResponseDataInner percentChange24h(
+ @jakarta.annotation.Nullable String percentChange24h) {
+ this.percentChange24h = percentChange24h;
+ return this;
+ }
+
+ /**
+ * Get percentChange24h
+ *
+ * @return percentChange24h
+ */
+ @jakarta.annotation.Nullable
+ public String getPercentChange24h() {
+ return percentChange24h;
+ }
+
+ public void setPercentChange24h(@jakarta.annotation.Nullable String percentChange24h) {
+ this.percentChange24h = percentChange24h;
+ }
+
+ public TokenListResponseDataInner volume24h(@jakarta.annotation.Nullable String volume24h) {
+ this.volume24h = volume24h;
+ return this;
+ }
+
+ /**
+ * Get volume24h
+ *
+ * @return volume24h
+ */
+ @jakarta.annotation.Nullable
+ public String getVolume24h() {
+ return volume24h;
+ }
+
+ public void setVolume24h(@jakarta.annotation.Nullable String volume24h) {
+ this.volume24h = volume24h;
+ }
+
+ public TokenListResponseDataInner marketCap(@jakarta.annotation.Nullable String marketCap) {
+ this.marketCap = marketCap;
+ return this;
+ }
+
+ /**
+ * Get marketCap
+ *
+ * @return marketCap
+ */
+ @jakarta.annotation.Nullable
+ public String getMarketCap() {
+ return marketCap;
+ }
+
+ public void setMarketCap(@jakarta.annotation.Nullable String marketCap) {
+ this.marketCap = marketCap;
+ }
+
+ public TokenListResponseDataInner fdv(@jakarta.annotation.Nullable String fdv) {
+ this.fdv = fdv;
+ return this;
+ }
+
+ /**
+ * Get fdv
+ *
+ * @return fdv
+ */
+ @jakarta.annotation.Nullable
+ public String getFdv() {
+ return fdv;
+ }
+
+ public void setFdv(@jakarta.annotation.Nullable String fdv) {
+ this.fdv = fdv;
+ }
+
+ public TokenListResponseDataInner liquidity(@jakarta.annotation.Nullable String liquidity) {
+ this.liquidity = liquidity;
+ return this;
+ }
+
+ /**
+ * Get liquidity
+ *
+ * @return liquidity
+ */
+ @jakarta.annotation.Nullable
+ public String getLiquidity() {
+ return liquidity;
+ }
+
+ public void setLiquidity(@jakarta.annotation.Nullable String liquidity) {
+ this.liquidity = liquidity;
+ }
+
+ public TokenListResponseDataInner totalSupply(@jakarta.annotation.Nullable String totalSupply) {
+ this.totalSupply = totalSupply;
+ return this;
+ }
+
+ /**
+ * Get totalSupply
+ *
+ * @return totalSupply
+ */
+ @jakarta.annotation.Nullable
+ public String getTotalSupply() {
+ return totalSupply;
+ }
+
+ public void setTotalSupply(@jakarta.annotation.Nullable String totalSupply) {
+ this.totalSupply = totalSupply;
+ }
+
+ public TokenListResponseDataInner circulatingSupply(
+ @jakarta.annotation.Nullable String circulatingSupply) {
+ this.circulatingSupply = circulatingSupply;
+ return this;
+ }
+
+ /**
+ * Get circulatingSupply
+ *
+ * @return circulatingSupply
+ */
+ @jakarta.annotation.Nullable
+ public String getCirculatingSupply() {
+ return circulatingSupply;
+ }
+
+ public void setCirculatingSupply(@jakarta.annotation.Nullable String circulatingSupply) {
+ this.circulatingSupply = circulatingSupply;
+ }
+
+ public TokenListResponseDataInner holders(@jakarta.annotation.Nullable String holders) {
+ this.holders = holders;
+ return this;
+ }
+
+ /**
+ * Get holders
+ *
+ * @return holders
+ */
+ @jakarta.annotation.Nullable
+ public String getHolders() {
+ return holders;
+ }
+
+ public void setHolders(@jakarta.annotation.Nullable String holders) {
+ this.holders = holders;
+ }
+
+ public TokenListResponseDataInner decimals(@jakarta.annotation.Nullable Long decimals) {
+ this.decimals = decimals;
+ return this;
+ }
+
+ /**
+ * Get decimals
+ *
+ * @return decimals
+ */
+ @jakarta.annotation.Nullable
+ public Long getDecimals() {
+ return decimals;
+ }
+
+ public void setDecimals(@jakarta.annotation.Nullable Long decimals) {
+ this.decimals = decimals;
+ }
+
+ public TokenListResponseDataInner listingCex(@jakarta.annotation.Nullable Boolean listingCex) {
+ this.listingCex = listingCex;
+ return this;
+ }
+
+ /**
+ * Get listingCex
+ *
+ * @return listingCex
+ */
+ @jakarta.annotation.Nullable
+ public Boolean getListingCex() {
+ return listingCex;
+ }
+
+ public void setListingCex(@jakarta.annotation.Nullable Boolean listingCex) {
+ this.listingCex = listingCex;
+ }
+
+ public TokenListResponseDataInner hotTag(@jakarta.annotation.Nullable Boolean hotTag) {
+ this.hotTag = hotTag;
+ return this;
+ }
+
+ /**
+ * Get hotTag
+ *
+ * @return hotTag
+ */
+ @jakarta.annotation.Nullable
+ public Boolean getHotTag() {
+ return hotTag;
+ }
+
+ public void setHotTag(@jakarta.annotation.Nullable Boolean hotTag) {
+ this.hotTag = hotTag;
+ }
+
+ public TokenListResponseDataInner cexCoinName(@jakarta.annotation.Nullable String cexCoinName) {
+ this.cexCoinName = cexCoinName;
+ return this;
+ }
+
+ /**
+ * Get cexCoinName
+ *
+ * @return cexCoinName
+ */
+ @jakarta.annotation.Nullable
+ public String getCexCoinName() {
+ return cexCoinName;
+ }
+
+ public void setCexCoinName(@jakarta.annotation.Nullable String cexCoinName) {
+ this.cexCoinName = cexCoinName;
+ }
+
+ public TokenListResponseDataInner canTransfer(
+ @jakarta.annotation.Nullable Boolean canTransfer) {
+ this.canTransfer = canTransfer;
+ return this;
+ }
+
+ /**
+ * Get canTransfer
+ *
+ * @return canTransfer
+ */
+ @jakarta.annotation.Nullable
+ public Boolean getCanTransfer() {
+ return canTransfer;
+ }
+
+ public void setCanTransfer(@jakarta.annotation.Nullable Boolean canTransfer) {
+ this.canTransfer = canTransfer;
+ }
+
+ public TokenListResponseDataInner denomination(@jakarta.annotation.Nullable Long denomination) {
+ this.denomination = denomination;
+ return this;
+ }
+
+ /**
+ * Get denomination
+ *
+ * @return denomination
+ */
+ @jakarta.annotation.Nullable
+ public Long getDenomination() {
+ return denomination;
+ }
+
+ public void setDenomination(@jakarta.annotation.Nullable Long denomination) {
+ this.denomination = denomination;
+ }
+
+ public TokenListResponseDataInner offline(@jakarta.annotation.Nullable Boolean offline) {
+ this.offline = offline;
+ return this;
+ }
+
+ /**
+ * Get offline
+ *
+ * @return offline
+ */
+ @jakarta.annotation.Nullable
+ public Boolean getOffline() {
+ return offline;
+ }
+
+ public void setOffline(@jakarta.annotation.Nullable Boolean offline) {
+ this.offline = offline;
+ }
+
+ public TokenListResponseDataInner tradeDecimal(@jakarta.annotation.Nullable Long tradeDecimal) {
+ this.tradeDecimal = tradeDecimal;
+ return this;
+ }
+
+ /**
+ * Get tradeDecimal
+ *
+ * @return tradeDecimal
+ */
+ @jakarta.annotation.Nullable
+ public Long getTradeDecimal() {
+ return tradeDecimal;
+ }
+
+ public void setTradeDecimal(@jakarta.annotation.Nullable Long tradeDecimal) {
+ this.tradeDecimal = tradeDecimal;
+ }
+
+ public TokenListResponseDataInner alphaId(@jakarta.annotation.Nullable String alphaId) {
+ this.alphaId = alphaId;
+ return this;
+ }
+
+ /**
+ * Get alphaId
+ *
+ * @return alphaId
+ */
+ @jakarta.annotation.Nullable
+ public String getAlphaId() {
+ return alphaId;
+ }
+
+ public void setAlphaId(@jakarta.annotation.Nullable String alphaId) {
+ this.alphaId = alphaId;
+ }
+
+ public TokenListResponseDataInner offsell(@jakarta.annotation.Nullable Boolean offsell) {
+ this.offsell = offsell;
+ return this;
+ }
+
+ /**
+ * Get offsell
+ *
+ * @return offsell
+ */
+ @jakarta.annotation.Nullable
+ public Boolean getOffsell() {
+ return offsell;
+ }
+
+ public void setOffsell(@jakarta.annotation.Nullable Boolean offsell) {
+ this.offsell = offsell;
+ }
+
+ public TokenListResponseDataInner priceHigh24h(
+ @jakarta.annotation.Nullable String priceHigh24h) {
+ this.priceHigh24h = priceHigh24h;
+ return this;
+ }
+
+ /**
+ * Get priceHigh24h
+ *
+ * @return priceHigh24h
+ */
+ @jakarta.annotation.Nullable
+ public String getPriceHigh24h() {
+ return priceHigh24h;
+ }
+
+ public void setPriceHigh24h(@jakarta.annotation.Nullable String priceHigh24h) {
+ this.priceHigh24h = priceHigh24h;
+ }
+
+ public TokenListResponseDataInner priceLow24h(@jakarta.annotation.Nullable String priceLow24h) {
+ this.priceLow24h = priceLow24h;
+ return this;
+ }
+
+ /**
+ * Get priceLow24h
+ *
+ * @return priceLow24h
+ */
+ @jakarta.annotation.Nullable
+ public String getPriceLow24h() {
+ return priceLow24h;
+ }
+
+ public void setPriceLow24h(@jakarta.annotation.Nullable String priceLow24h) {
+ this.priceLow24h = priceLow24h;
+ }
+
+ public TokenListResponseDataInner count24h(@jakarta.annotation.Nullable String count24h) {
+ this.count24h = count24h;
+ return this;
+ }
+
+ /**
+ * Get count24h
+ *
+ * @return count24h
+ */
+ @jakarta.annotation.Nullable
+ public String getCount24h() {
+ return count24h;
+ }
+
+ public void setCount24h(@jakarta.annotation.Nullable String count24h) {
+ this.count24h = count24h;
+ }
+
+ public TokenListResponseDataInner onlineTge(@jakarta.annotation.Nullable Boolean onlineTge) {
+ this.onlineTge = onlineTge;
+ return this;
+ }
+
+ /**
+ * Get onlineTge
+ *
+ * @return onlineTge
+ */
+ @jakarta.annotation.Nullable
+ public Boolean getOnlineTge() {
+ return onlineTge;
+ }
+
+ public void setOnlineTge(@jakarta.annotation.Nullable Boolean onlineTge) {
+ this.onlineTge = onlineTge;
+ }
+
+ public TokenListResponseDataInner onlineAirdrop(
+ @jakarta.annotation.Nullable Boolean onlineAirdrop) {
+ this.onlineAirdrop = onlineAirdrop;
+ return this;
+ }
+
+ /**
+ * Get onlineAirdrop
+ *
+ * @return onlineAirdrop
+ */
+ @jakarta.annotation.Nullable
+ public Boolean getOnlineAirdrop() {
+ return onlineAirdrop;
+ }
+
+ public void setOnlineAirdrop(@jakarta.annotation.Nullable Boolean onlineAirdrop) {
+ this.onlineAirdrop = onlineAirdrop;
+ }
+
+ public TokenListResponseDataInner score(@jakarta.annotation.Nullable Long score) {
+ this.score = score;
+ return this;
+ }
+
+ /**
+ * Get score
+ *
+ * @return score
+ */
+ @jakarta.annotation.Nullable
+ public Long getScore() {
+ return score;
+ }
+
+ public void setScore(@jakarta.annotation.Nullable Long score) {
+ this.score = score;
+ }
+
+ public TokenListResponseDataInner cexOffDisplay(
+ @jakarta.annotation.Nullable Boolean cexOffDisplay) {
+ this.cexOffDisplay = cexOffDisplay;
+ return this;
+ }
+
+ /**
+ * Get cexOffDisplay
+ *
+ * @return cexOffDisplay
+ */
+ @jakarta.annotation.Nullable
+ public Boolean getCexOffDisplay() {
+ return cexOffDisplay;
+ }
+
+ public void setCexOffDisplay(@jakarta.annotation.Nullable Boolean cexOffDisplay) {
+ this.cexOffDisplay = cexOffDisplay;
+ }
+
+ public TokenListResponseDataInner stockState(@jakarta.annotation.Nullable Boolean stockState) {
+ this.stockState = stockState;
+ return this;
+ }
+
+ /**
+ * Get stockState
+ *
+ * @return stockState
+ */
+ @jakarta.annotation.Nullable
+ public Boolean getStockState() {
+ return stockState;
+ }
+
+ public void setStockState(@jakarta.annotation.Nullable Boolean stockState) {
+ this.stockState = stockState;
+ }
+
+ public TokenListResponseDataInner listingTime(@jakarta.annotation.Nullable Long listingTime) {
+ this.listingTime = listingTime;
+ return this;
+ }
+
+ /**
+ * Get listingTime
+ *
+ * @return listingTime
+ */
+ @jakarta.annotation.Nullable
+ public Long getListingTime() {
+ return listingTime;
+ }
+
+ public void setListingTime(@jakarta.annotation.Nullable Long listingTime) {
+ this.listingTime = listingTime;
+ }
+
+ public TokenListResponseDataInner mulPoint(@jakarta.annotation.Nullable Long mulPoint) {
+ this.mulPoint = mulPoint;
+ return this;
+ }
+
+ /**
+ * Get mulPoint
+ *
+ * @return mulPoint
+ */
+ @jakarta.annotation.Nullable
+ public Long getMulPoint() {
+ return mulPoint;
+ }
+
+ public void setMulPoint(@jakarta.annotation.Nullable Long mulPoint) {
+ this.mulPoint = mulPoint;
+ }
+
+ public TokenListResponseDataInner bnExclusiveState(
+ @jakarta.annotation.Nullable Boolean bnExclusiveState) {
+ this.bnExclusiveState = bnExclusiveState;
+ return this;
+ }
+
+ /**
+ * Get bnExclusiveState
+ *
+ * @return bnExclusiveState
+ */
+ @jakarta.annotation.Nullable
+ public Boolean getBnExclusiveState() {
+ return bnExclusiveState;
+ }
+
+ public void setBnExclusiveState(@jakarta.annotation.Nullable Boolean bnExclusiveState) {
+ this.bnExclusiveState = bnExclusiveState;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TokenListResponseDataInner tokenListResponseDataInner = (TokenListResponseDataInner) o;
+ return Objects.equals(this.tokenId, tokenListResponseDataInner.tokenId)
+ && Objects.equals(this.chainId, tokenListResponseDataInner.chainId)
+ && Objects.equals(this.chainIconUrl, tokenListResponseDataInner.chainIconUrl)
+ && Objects.equals(this.chainName, tokenListResponseDataInner.chainName)
+ && Objects.equals(this.contractAddress, tokenListResponseDataInner.contractAddress)
+ && Objects.equals(this.name, tokenListResponseDataInner.name)
+ && Objects.equals(this.symbol, tokenListResponseDataInner.symbol)
+ && Objects.equals(this.iconUrl, tokenListResponseDataInner.iconUrl)
+ && Objects.equals(this.price, tokenListResponseDataInner.price)
+ && Objects.equals(
+ this.percentChange24h, tokenListResponseDataInner.percentChange24h)
+ && Objects.equals(this.volume24h, tokenListResponseDataInner.volume24h)
+ && Objects.equals(this.marketCap, tokenListResponseDataInner.marketCap)
+ && Objects.equals(this.fdv, tokenListResponseDataInner.fdv)
+ && Objects.equals(this.liquidity, tokenListResponseDataInner.liquidity)
+ && Objects.equals(this.totalSupply, tokenListResponseDataInner.totalSupply)
+ && Objects.equals(
+ this.circulatingSupply, tokenListResponseDataInner.circulatingSupply)
+ && Objects.equals(this.holders, tokenListResponseDataInner.holders)
+ && Objects.equals(this.decimals, tokenListResponseDataInner.decimals)
+ && Objects.equals(this.listingCex, tokenListResponseDataInner.listingCex)
+ && Objects.equals(this.hotTag, tokenListResponseDataInner.hotTag)
+ && Objects.equals(this.cexCoinName, tokenListResponseDataInner.cexCoinName)
+ && Objects.equals(this.canTransfer, tokenListResponseDataInner.canTransfer)
+ && Objects.equals(this.denomination, tokenListResponseDataInner.denomination)
+ && Objects.equals(this.offline, tokenListResponseDataInner.offline)
+ && Objects.equals(this.tradeDecimal, tokenListResponseDataInner.tradeDecimal)
+ && Objects.equals(this.alphaId, tokenListResponseDataInner.alphaId)
+ && Objects.equals(this.offsell, tokenListResponseDataInner.offsell)
+ && Objects.equals(this.priceHigh24h, tokenListResponseDataInner.priceHigh24h)
+ && Objects.equals(this.priceLow24h, tokenListResponseDataInner.priceLow24h)
+ && Objects.equals(this.count24h, tokenListResponseDataInner.count24h)
+ && Objects.equals(this.onlineTge, tokenListResponseDataInner.onlineTge)
+ && Objects.equals(this.onlineAirdrop, tokenListResponseDataInner.onlineAirdrop)
+ && Objects.equals(this.score, tokenListResponseDataInner.score)
+ && Objects.equals(this.cexOffDisplay, tokenListResponseDataInner.cexOffDisplay)
+ && Objects.equals(this.stockState, tokenListResponseDataInner.stockState)
+ && Objects.equals(this.listingTime, tokenListResponseDataInner.listingTime)
+ && Objects.equals(this.mulPoint, tokenListResponseDataInner.mulPoint)
+ && Objects.equals(
+ this.bnExclusiveState, tokenListResponseDataInner.bnExclusiveState);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ tokenId,
+ chainId,
+ chainIconUrl,
+ chainName,
+ contractAddress,
+ name,
+ symbol,
+ iconUrl,
+ price,
+ percentChange24h,
+ volume24h,
+ marketCap,
+ fdv,
+ liquidity,
+ totalSupply,
+ circulatingSupply,
+ holders,
+ decimals,
+ listingCex,
+ hotTag,
+ cexCoinName,
+ canTransfer,
+ denomination,
+ offline,
+ tradeDecimal,
+ alphaId,
+ offsell,
+ priceHigh24h,
+ priceLow24h,
+ count24h,
+ onlineTge,
+ onlineAirdrop,
+ score,
+ cexOffDisplay,
+ stockState,
+ listingTime,
+ mulPoint,
+ bnExclusiveState);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TokenListResponseDataInner {\n");
+ sb.append(" tokenId: ").append(toIndentedString(tokenId)).append("\n");
+ sb.append(" chainId: ").append(toIndentedString(chainId)).append("\n");
+ sb.append(" chainIconUrl: ").append(toIndentedString(chainIconUrl)).append("\n");
+ sb.append(" chainName: ").append(toIndentedString(chainName)).append("\n");
+ sb.append(" contractAddress: ").append(toIndentedString(contractAddress)).append("\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n");
+ sb.append(" iconUrl: ").append(toIndentedString(iconUrl)).append("\n");
+ sb.append(" price: ").append(toIndentedString(price)).append("\n");
+ sb.append(" percentChange24h: ").append(toIndentedString(percentChange24h)).append("\n");
+ sb.append(" volume24h: ").append(toIndentedString(volume24h)).append("\n");
+ sb.append(" marketCap: ").append(toIndentedString(marketCap)).append("\n");
+ sb.append(" fdv: ").append(toIndentedString(fdv)).append("\n");
+ sb.append(" liquidity: ").append(toIndentedString(liquidity)).append("\n");
+ sb.append(" totalSupply: ").append(toIndentedString(totalSupply)).append("\n");
+ sb.append(" circulatingSupply: ").append(toIndentedString(circulatingSupply)).append("\n");
+ sb.append(" holders: ").append(toIndentedString(holders)).append("\n");
+ sb.append(" decimals: ").append(toIndentedString(decimals)).append("\n");
+ sb.append(" listingCex: ").append(toIndentedString(listingCex)).append("\n");
+ sb.append(" hotTag: ").append(toIndentedString(hotTag)).append("\n");
+ sb.append(" cexCoinName: ").append(toIndentedString(cexCoinName)).append("\n");
+ sb.append(" canTransfer: ").append(toIndentedString(canTransfer)).append("\n");
+ sb.append(" denomination: ").append(toIndentedString(denomination)).append("\n");
+ sb.append(" offline: ").append(toIndentedString(offline)).append("\n");
+ sb.append(" tradeDecimal: ").append(toIndentedString(tradeDecimal)).append("\n");
+ sb.append(" alphaId: ").append(toIndentedString(alphaId)).append("\n");
+ sb.append(" offsell: ").append(toIndentedString(offsell)).append("\n");
+ sb.append(" priceHigh24h: ").append(toIndentedString(priceHigh24h)).append("\n");
+ sb.append(" priceLow24h: ").append(toIndentedString(priceLow24h)).append("\n");
+ sb.append(" count24h: ").append(toIndentedString(count24h)).append("\n");
+ sb.append(" onlineTge: ").append(toIndentedString(onlineTge)).append("\n");
+ sb.append(" onlineAirdrop: ").append(toIndentedString(onlineAirdrop)).append("\n");
+ sb.append(" score: ").append(toIndentedString(score)).append("\n");
+ sb.append(" cexOffDisplay: ").append(toIndentedString(cexOffDisplay)).append("\n");
+ sb.append(" stockState: ").append(toIndentedString(stockState)).append("\n");
+ sb.append(" listingTime: ").append(toIndentedString(listingTime)).append("\n");
+ sb.append(" mulPoint: ").append(toIndentedString(mulPoint)).append("\n");
+ sb.append(" bnExclusiveState: ").append(toIndentedString(bnExclusiveState)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ public String toUrlQueryString() {
+ StringBuilder sb = new StringBuilder();
+
+ Object tokenIdValue = getTokenId();
+ String tokenIdValueAsString = "";
+ tokenIdValueAsString = tokenIdValue.toString();
+ sb.append("tokenId=").append(urlEncode(tokenIdValueAsString)).append("");
+ Object chainIdValue = getChainId();
+ String chainIdValueAsString = "";
+ chainIdValueAsString = chainIdValue.toString();
+ sb.append("chainId=").append(urlEncode(chainIdValueAsString)).append("");
+ Object chainIconUrlValue = getChainIconUrl();
+ String chainIconUrlValueAsString = "";
+ chainIconUrlValueAsString = chainIconUrlValue.toString();
+ sb.append("chainIconUrl=").append(urlEncode(chainIconUrlValueAsString)).append("");
+ Object chainNameValue = getChainName();
+ String chainNameValueAsString = "";
+ chainNameValueAsString = chainNameValue.toString();
+ sb.append("chainName=").append(urlEncode(chainNameValueAsString)).append("");
+ Object contractAddressValue = getContractAddress();
+ String contractAddressValueAsString = "";
+ contractAddressValueAsString = contractAddressValue.toString();
+ sb.append("contractAddress=").append(urlEncode(contractAddressValueAsString)).append("");
+ Object nameValue = getName();
+ String nameValueAsString = "";
+ nameValueAsString = nameValue.toString();
+ sb.append("name=").append(urlEncode(nameValueAsString)).append("");
+ Object symbolValue = getSymbol();
+ String symbolValueAsString = "";
+ symbolValueAsString = symbolValue.toString();
+ sb.append("symbol=").append(urlEncode(symbolValueAsString)).append("");
+ Object iconUrlValue = getIconUrl();
+ String iconUrlValueAsString = "";
+ iconUrlValueAsString = iconUrlValue.toString();
+ sb.append("iconUrl=").append(urlEncode(iconUrlValueAsString)).append("");
+ Object priceValue = getPrice();
+ String priceValueAsString = "";
+ priceValueAsString = priceValue.toString();
+ sb.append("price=").append(urlEncode(priceValueAsString)).append("");
+ Object percentChange24hValue = getPercentChange24h();
+ String percentChange24hValueAsString = "";
+ percentChange24hValueAsString = percentChange24hValue.toString();
+ sb.append("percentChange24h=").append(urlEncode(percentChange24hValueAsString)).append("");
+ Object volume24hValue = getVolume24h();
+ String volume24hValueAsString = "";
+ volume24hValueAsString = volume24hValue.toString();
+ sb.append("volume24h=").append(urlEncode(volume24hValueAsString)).append("");
+ Object marketCapValue = getMarketCap();
+ String marketCapValueAsString = "";
+ marketCapValueAsString = marketCapValue.toString();
+ sb.append("marketCap=").append(urlEncode(marketCapValueAsString)).append("");
+ Object fdvValue = getFdv();
+ String fdvValueAsString = "";
+ fdvValueAsString = fdvValue.toString();
+ sb.append("fdv=").append(urlEncode(fdvValueAsString)).append("");
+ Object liquidityValue = getLiquidity();
+ String liquidityValueAsString = "";
+ liquidityValueAsString = liquidityValue.toString();
+ sb.append("liquidity=").append(urlEncode(liquidityValueAsString)).append("");
+ Object totalSupplyValue = getTotalSupply();
+ String totalSupplyValueAsString = "";
+ totalSupplyValueAsString = totalSupplyValue.toString();
+ sb.append("totalSupply=").append(urlEncode(totalSupplyValueAsString)).append("");
+ Object circulatingSupplyValue = getCirculatingSupply();
+ String circulatingSupplyValueAsString = "";
+ circulatingSupplyValueAsString = circulatingSupplyValue.toString();
+ sb.append("circulatingSupply=")
+ .append(urlEncode(circulatingSupplyValueAsString))
+ .append("");
+ Object holdersValue = getHolders();
+ String holdersValueAsString = "";
+ holdersValueAsString = holdersValue.toString();
+ sb.append("holders=").append(urlEncode(holdersValueAsString)).append("");
+ Object decimalsValue = getDecimals();
+ String decimalsValueAsString = "";
+ decimalsValueAsString = decimalsValue.toString();
+ sb.append("decimals=").append(urlEncode(decimalsValueAsString)).append("");
+ Object listingCexValue = getListingCex();
+ String listingCexValueAsString = "";
+ listingCexValueAsString = listingCexValue.toString();
+ sb.append("listingCex=").append(urlEncode(listingCexValueAsString)).append("");
+ Object hotTagValue = getHotTag();
+ String hotTagValueAsString = "";
+ hotTagValueAsString = hotTagValue.toString();
+ sb.append("hotTag=").append(urlEncode(hotTagValueAsString)).append("");
+ Object cexCoinNameValue = getCexCoinName();
+ String cexCoinNameValueAsString = "";
+ cexCoinNameValueAsString = cexCoinNameValue.toString();
+ sb.append("cexCoinName=").append(urlEncode(cexCoinNameValueAsString)).append("");
+ Object canTransferValue = getCanTransfer();
+ String canTransferValueAsString = "";
+ canTransferValueAsString = canTransferValue.toString();
+ sb.append("canTransfer=").append(urlEncode(canTransferValueAsString)).append("");
+ Object denominationValue = getDenomination();
+ String denominationValueAsString = "";
+ denominationValueAsString = denominationValue.toString();
+ sb.append("denomination=").append(urlEncode(denominationValueAsString)).append("");
+ Object offlineValue = getOffline();
+ String offlineValueAsString = "";
+ offlineValueAsString = offlineValue.toString();
+ sb.append("offline=").append(urlEncode(offlineValueAsString)).append("");
+ Object tradeDecimalValue = getTradeDecimal();
+ String tradeDecimalValueAsString = "";
+ tradeDecimalValueAsString = tradeDecimalValue.toString();
+ sb.append("tradeDecimal=").append(urlEncode(tradeDecimalValueAsString)).append("");
+ Object alphaIdValue = getAlphaId();
+ String alphaIdValueAsString = "";
+ alphaIdValueAsString = alphaIdValue.toString();
+ sb.append("alphaId=").append(urlEncode(alphaIdValueAsString)).append("");
+ Object offsellValue = getOffsell();
+ String offsellValueAsString = "";
+ offsellValueAsString = offsellValue.toString();
+ sb.append("offsell=").append(urlEncode(offsellValueAsString)).append("");
+ Object priceHigh24hValue = getPriceHigh24h();
+ String priceHigh24hValueAsString = "";
+ priceHigh24hValueAsString = priceHigh24hValue.toString();
+ sb.append("priceHigh24h=").append(urlEncode(priceHigh24hValueAsString)).append("");
+ Object priceLow24hValue = getPriceLow24h();
+ String priceLow24hValueAsString = "";
+ priceLow24hValueAsString = priceLow24hValue.toString();
+ sb.append("priceLow24h=").append(urlEncode(priceLow24hValueAsString)).append("");
+ Object count24hValue = getCount24h();
+ String count24hValueAsString = "";
+ count24hValueAsString = count24hValue.toString();
+ sb.append("count24h=").append(urlEncode(count24hValueAsString)).append("");
+ Object onlineTgeValue = getOnlineTge();
+ String onlineTgeValueAsString = "";
+ onlineTgeValueAsString = onlineTgeValue.toString();
+ sb.append("onlineTge=").append(urlEncode(onlineTgeValueAsString)).append("");
+ Object onlineAirdropValue = getOnlineAirdrop();
+ String onlineAirdropValueAsString = "";
+ onlineAirdropValueAsString = onlineAirdropValue.toString();
+ sb.append("onlineAirdrop=").append(urlEncode(onlineAirdropValueAsString)).append("");
+ Object scoreValue = getScore();
+ String scoreValueAsString = "";
+ scoreValueAsString = scoreValue.toString();
+ sb.append("score=").append(urlEncode(scoreValueAsString)).append("");
+ Object cexOffDisplayValue = getCexOffDisplay();
+ String cexOffDisplayValueAsString = "";
+ cexOffDisplayValueAsString = cexOffDisplayValue.toString();
+ sb.append("cexOffDisplay=").append(urlEncode(cexOffDisplayValueAsString)).append("");
+ Object stockStateValue = getStockState();
+ String stockStateValueAsString = "";
+ stockStateValueAsString = stockStateValue.toString();
+ sb.append("stockState=").append(urlEncode(stockStateValueAsString)).append("");
+ Object listingTimeValue = getListingTime();
+ String listingTimeValueAsString = "";
+ listingTimeValueAsString = listingTimeValue.toString();
+ sb.append("listingTime=").append(urlEncode(listingTimeValueAsString)).append("");
+ Object mulPointValue = getMulPoint();
+ String mulPointValueAsString = "";
+ mulPointValueAsString = mulPointValue.toString();
+ sb.append("mulPoint=").append(urlEncode(mulPointValueAsString)).append("");
+ Object bnExclusiveStateValue = getBnExclusiveState();
+ String bnExclusiveStateValueAsString = "";
+ bnExclusiveStateValueAsString = bnExclusiveStateValue.toString();
+ sb.append("bnExclusiveState=").append(urlEncode(bnExclusiveStateValueAsString)).append("");
+ return sb.toString();
+ }
+
+ public static String urlEncode(String s) {
+ try {
+ return URLEncoder.encode(s, StandardCharsets.UTF_8.name());
+ } catch (UnsupportedEncodingException e) {
+ throw new RuntimeException(StandardCharsets.UTF_8.name() + " is unsupported", e);
+ }
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first
+ * line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+ public static HashSet openapiFields;
+ public static HashSet openapiRequiredFields;
+
+ static {
+ // a set of all properties/fields (JSON key names)
+ openapiFields = new HashSet();
+ openapiFields.add("tokenId");
+ openapiFields.add("chainId");
+ openapiFields.add("chainIconUrl");
+ openapiFields.add("chainName");
+ openapiFields.add("contractAddress");
+ openapiFields.add("name");
+ openapiFields.add("symbol");
+ openapiFields.add("iconUrl");
+ openapiFields.add("price");
+ openapiFields.add("percentChange24h");
+ openapiFields.add("volume24h");
+ openapiFields.add("marketCap");
+ openapiFields.add("fdv");
+ openapiFields.add("liquidity");
+ openapiFields.add("totalSupply");
+ openapiFields.add("circulatingSupply");
+ openapiFields.add("holders");
+ openapiFields.add("decimals");
+ openapiFields.add("listingCex");
+ openapiFields.add("hotTag");
+ openapiFields.add("cexCoinName");
+ openapiFields.add("canTransfer");
+ openapiFields.add("denomination");
+ openapiFields.add("offline");
+ openapiFields.add("tradeDecimal");
+ openapiFields.add("alphaId");
+ openapiFields.add("offsell");
+ openapiFields.add("priceHigh24h");
+ openapiFields.add("priceLow24h");
+ openapiFields.add("count24h");
+ openapiFields.add("onlineTge");
+ openapiFields.add("onlineAirdrop");
+ openapiFields.add("score");
+ openapiFields.add("cexOffDisplay");
+ openapiFields.add("stockState");
+ openapiFields.add("listingTime");
+ openapiFields.add("mulPoint");
+ openapiFields.add("bnExclusiveState");
+
+ // a set of required properties/fields (JSON key names)
+ openapiRequiredFields = new HashSet();
+ }
+
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to TokenListResponseDataInner
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!TokenListResponseDataInner.openapiRequiredFields
+ .isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(
+ String.format(
+ "The required field(s) %s in TokenListResponseDataInner is not"
+ + " found in the empty JSON string",
+ TokenListResponseDataInner.openapiRequiredFields.toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ if ((jsonObj.get("tokenId") != null && !jsonObj.get("tokenId").isJsonNull())
+ && !jsonObj.get("tokenId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `tokenId` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("tokenId").toString()));
+ }
+ if ((jsonObj.get("chainId") != null && !jsonObj.get("chainId").isJsonNull())
+ && !jsonObj.get("chainId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `chainId` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("chainId").toString()));
+ }
+ if ((jsonObj.get("chainIconUrl") != null && !jsonObj.get("chainIconUrl").isJsonNull())
+ && !jsonObj.get("chainIconUrl").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `chainIconUrl` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("chainIconUrl").toString()));
+ }
+ if ((jsonObj.get("chainName") != null && !jsonObj.get("chainName").isJsonNull())
+ && !jsonObj.get("chainName").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `chainName` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("chainName").toString()));
+ }
+ if ((jsonObj.get("contractAddress") != null && !jsonObj.get("contractAddress").isJsonNull())
+ && !jsonObj.get("contractAddress").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `contractAddress` to be a primitive type in the"
+ + " JSON string but got `%s`",
+ jsonObj.get("contractAddress").toString()));
+ }
+ if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull())
+ && !jsonObj.get("name").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `name` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("name").toString()));
+ }
+ if ((jsonObj.get("symbol") != null && !jsonObj.get("symbol").isJsonNull())
+ && !jsonObj.get("symbol").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `symbol` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("symbol").toString()));
+ }
+ if ((jsonObj.get("iconUrl") != null && !jsonObj.get("iconUrl").isJsonNull())
+ && !jsonObj.get("iconUrl").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `iconUrl` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("iconUrl").toString()));
+ }
+ if ((jsonObj.get("price") != null && !jsonObj.get("price").isJsonNull())
+ && !jsonObj.get("price").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `price` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("price").toString()));
+ }
+ if ((jsonObj.get("percentChange24h") != null
+ && !jsonObj.get("percentChange24h").isJsonNull())
+ && !jsonObj.get("percentChange24h").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `percentChange24h` to be a primitive type in the"
+ + " JSON string but got `%s`",
+ jsonObj.get("percentChange24h").toString()));
+ }
+ if ((jsonObj.get("volume24h") != null && !jsonObj.get("volume24h").isJsonNull())
+ && !jsonObj.get("volume24h").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `volume24h` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("volume24h").toString()));
+ }
+ if ((jsonObj.get("marketCap") != null && !jsonObj.get("marketCap").isJsonNull())
+ && !jsonObj.get("marketCap").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `marketCap` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("marketCap").toString()));
+ }
+ if ((jsonObj.get("fdv") != null && !jsonObj.get("fdv").isJsonNull())
+ && !jsonObj.get("fdv").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `fdv` to be a primitive type in the JSON string but"
+ + " got `%s`",
+ jsonObj.get("fdv").toString()));
+ }
+ if ((jsonObj.get("liquidity") != null && !jsonObj.get("liquidity").isJsonNull())
+ && !jsonObj.get("liquidity").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `liquidity` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("liquidity").toString()));
+ }
+ if ((jsonObj.get("totalSupply") != null && !jsonObj.get("totalSupply").isJsonNull())
+ && !jsonObj.get("totalSupply").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `totalSupply` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("totalSupply").toString()));
+ }
+ if ((jsonObj.get("circulatingSupply") != null
+ && !jsonObj.get("circulatingSupply").isJsonNull())
+ && !jsonObj.get("circulatingSupply").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `circulatingSupply` to be a primitive type in the"
+ + " JSON string but got `%s`",
+ jsonObj.get("circulatingSupply").toString()));
+ }
+ if ((jsonObj.get("holders") != null && !jsonObj.get("holders").isJsonNull())
+ && !jsonObj.get("holders").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `holders` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("holders").toString()));
+ }
+ if ((jsonObj.get("cexCoinName") != null && !jsonObj.get("cexCoinName").isJsonNull())
+ && !jsonObj.get("cexCoinName").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `cexCoinName` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("cexCoinName").toString()));
+ }
+ if ((jsonObj.get("alphaId") != null && !jsonObj.get("alphaId").isJsonNull())
+ && !jsonObj.get("alphaId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `alphaId` to be a primitive type in the JSON string"
+ + " but got `%s`",
+ jsonObj.get("alphaId").toString()));
+ }
+ if ((jsonObj.get("priceHigh24h") != null && !jsonObj.get("priceHigh24h").isJsonNull())
+ && !jsonObj.get("priceHigh24h").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `priceHigh24h` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("priceHigh24h").toString()));
+ }
+ if ((jsonObj.get("priceLow24h") != null && !jsonObj.get("priceLow24h").isJsonNull())
+ && !jsonObj.get("priceLow24h").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `priceLow24h` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("priceLow24h").toString()));
+ }
+ if ((jsonObj.get("count24h") != null && !jsonObj.get("count24h").isJsonNull())
+ && !jsonObj.get("count24h").isJsonPrimitive()) {
+ throw new IllegalArgumentException(
+ String.format(
+ "Expected the field `count24h` to be a primitive type in the JSON"
+ + " string but got `%s`",
+ jsonObj.get("count24h").toString()));
+ }
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!TokenListResponseDataInner.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'TokenListResponseDataInner' and its
+ // subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter =
+ gson.getDelegateAdapter(this, TypeToken.get(TokenListResponseDataInner.class));
+
+ return (TypeAdapter)
+ new TypeAdapter() {
+ @Override
+ public void write(JsonWriter out, TokenListResponseDataInner value)
+ throws IOException {
+ JsonElement obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public TokenListResponseDataInner read(JsonReader in) throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ // validateJsonElement(jsonElement);
+ return thisAdapter.fromJsonTree(jsonElement);
+ }
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of TokenListResponseDataInner given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of TokenListResponseDataInner
+ * @throws IOException if the JSON string is invalid with respect to TokenListResponseDataInner
+ */
+ public static TokenListResponseDataInner fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, TokenListResponseDataInner.class);
+ }
+
+ /**
+ * Convert an instance of TokenListResponseDataInner to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
diff --git a/clients/alpha/src/test/java/com/binance/connector/client/alpha/rest/api/MarketDataApiTest.java b/clients/alpha/src/test/java/com/binance/connector/client/alpha/rest/api/MarketDataApiTest.java
new file mode 100644
index 00000000..020cc774
--- /dev/null
+++ b/clients/alpha/src/test/java/com/binance/connector/client/alpha/rest/api/MarketDataApiTest.java
@@ -0,0 +1,211 @@
+/*
+ * Binance Alpha REST API
+ * OpenAPI Specification for the Binance Alpha REST API
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package com.binance.connector.client.alpha.rest.api;
+
+import static org.junit.Assert.assertEquals;
+
+import com.binance.connector.client.alpha.rest.model.AggregatedTradesResponse;
+import com.binance.connector.client.alpha.rest.model.GetExchangeInfoResponse;
+import com.binance.connector.client.alpha.rest.model.KlinesResponse;
+import com.binance.connector.client.alpha.rest.model.TickerResponse;
+import com.binance.connector.client.alpha.rest.model.TokenListResponse;
+import com.binance.connector.client.common.ApiClient;
+import com.binance.connector.client.common.ApiException;
+import com.binance.connector.client.common.ApiResponse;
+import com.binance.connector.client.common.auth.BinanceAuthenticationFactory;
+import com.binance.connector.client.common.auth.SignatureAuthentication;
+import com.binance.connector.client.common.configuration.ClientConfiguration;
+import com.binance.connector.client.common.configuration.SignatureConfiguration;
+import com.binance.connector.client.common.sign.HmacSignatureGenerator;
+import com.binance.connector.client.common.sign.SignatureGenerator;
+import jakarta.validation.constraints.*;
+import okhttp3.Call;
+import okhttp3.Request;
+import org.bouncycastle.crypto.CryptoException;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import org.mockito.ArgumentCaptor;
+import org.mockito.Mockito;
+
+/** API tests for MarketDataApi */
+public class MarketDataApiTest {
+
+ private MarketDataApi api;
+ private ApiClient apiClientSpy;
+ private SignatureGenerator signatureGeneratorSpy;
+
+ @BeforeEach
+ public void initApiClient() throws ApiException {
+ ClientConfiguration clientConfiguration = new ClientConfiguration();
+ clientConfiguration.setUrl("http://localhost:8080");
+ SignatureConfiguration signatureConfiguration = new SignatureConfiguration();
+ signatureConfiguration.setApiKey("apiKey");
+ signatureConfiguration.setSecretKey("secretKey");
+ clientConfiguration.setSignatureConfiguration(signatureConfiguration);
+
+ HmacSignatureGenerator signatureGenerator =
+ new HmacSignatureGenerator(signatureConfiguration.getSecretKey());
+ signatureGeneratorSpy = Mockito.spy(signatureGenerator);
+ SignatureAuthentication signatureAuthentication =
+ new SignatureAuthentication(
+ signatureConfiguration.getApiKey(), signatureGeneratorSpy);
+ SignatureAuthentication authenticationSpy = Mockito.spy(signatureAuthentication);
+ Mockito.doReturn("1736393892000").when(authenticationSpy).buildTimestamp();
+
+ BinanceAuthenticationFactory factoryMock = Mockito.mock(BinanceAuthenticationFactory.class);
+ Mockito.doReturn(authenticationSpy)
+ .when(factoryMock)
+ .getAuthentication(signatureConfiguration);
+
+ ApiClient apiClient = new ApiClient(clientConfiguration, factoryMock);
+
+ apiClientSpy = Mockito.spy(apiClient);
+ Mockito.doReturn(new ApiResponse<>(200, null))
+ .when(apiClientSpy)
+ .execute(Mockito.any(), Mockito.any(java.lang.reflect.Type.class));
+ Mockito.doReturn(new ApiResponse<>(200, null)).when(apiClientSpy).execute(Mockito.any());
+ Mockito.doReturn("1736393892000").when(apiClientSpy).buildTimestamp();
+
+ api = new MarketDataApi(apiClientSpy);
+ }
+
+ /**
+ * Aggregated Trades
+ *
+ * Retrieves compressed, aggregated historical trades for a specific symbol. Useful for
+ * recent trade history. Weight: 0
+ *
+ * @throws ApiException if the Api call fails
+ */
+ @Test
+ public void aggregatedTradesTest() throws ApiException, CryptoException {
+ String symbol = "";
+ Long fromId = 1L;
+ Long startTime = 1623319461670L;
+ Long endTime = 1641782889000L;
+ Long limit = 500L;
+ ApiResponse response =
+ api.aggregatedTrades(symbol, fromId, startTime, endTime, limit);
+
+ ArgumentCaptor