Skip to content

Commit ee157c6

Browse files
author
gate
committed
update to v7.2.57
1 parent ccc5456 commit ee157c6

7 files changed

Lines changed: 15 additions & 90 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
Gate API
44

5-
- API version: v4.106.56
6-
- SDK version: 7.2.56
5+
- API version: v4.106.57
6+
- SDK version: 7.2.57
77

88
Welcome to Gate API
99
APIv4 provides operations related to spot, margin, and contract trading, including public interfaces for querying market data and authenticated private interfaces for implementing API-based automated trading.
@@ -52,7 +52,7 @@ Add this dependency to your project's POM:
5252
<dependency>
5353
<groupId>io.gate</groupId>
5454
<artifactId>gate-api</artifactId>
55-
<version>7.2.56</version>
55+
<version>7.2.57</version>
5656
<scope>compile</scope>
5757
</dependency>
5858
```
@@ -62,7 +62,7 @@ Add this dependency to your project's POM:
6262
Add this dependency to your project's build file:
6363

6464
```groovy
65-
compile "io.gate:gate-api:7.2.56"
65+
compile "io.gate:gate-api:7.2.57"
6666
```
6767

6868
### Others
@@ -75,7 +75,7 @@ mvn clean package
7575

7676
Then manually install the following JARs:
7777

78-
* `target/gate-api-7.2.56.jar`
78+
* `target/gate-api-7.2.57.jar`
7979
* `target/lib/*.jar`
8080

8181
To install the API client library to your local Maven repository, simply execute:

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'eclipse'
33
apply plugin: 'java'
44

55
group = 'io.gate'
6-
version = '7.2.56'
6+
version = '7.2.57'
77

88
buildscript {
99
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "io.gate",
44
name := "gate-api",
5-
version := "7.2.56",
5+
version := "7.2.57",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/PartnerDataAggregated.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
1212
**tradingUserCount** | **String** | 交易人数,字符串形式(与线上 JSON 序列化一致) 仅在 business_type&#x3D;0(全部)时返回具体数值,其他业务类型返回 null |
1313
**timeRangeDesc** | **String** | Time range description |
1414
**businessType** | [**BusinessTypeEnum**](#BusinessTypeEnum) | Business Type |
15-
**businessTypeDesc** | [**BusinessTypeDescEnum**](#BusinessTypeDescEnum) | Business type description |
15+
**businessTypeDesc** | **String** | 业务类型描述,可取值:全部, 现货, 合约, Alpha, Web3, Perps(DEX), Exchange All, Web3 All, TradFi |
1616

1717
## Enum: BusinessTypeEnum
1818

@@ -28,17 +28,3 @@ NUMBER_6 | 6
2828
NUMBER_7 | 7
2929
NUMBER_8 | 8
3030

31-
## Enum: BusinessTypeDescEnum
32-
33-
Name | Value
34-
---- | -----
35-
_ | &quot;全部&quot;
36-
_ | &quot;现货&quot;
37-
_ | &quot;合约&quot;
38-
ALPHA | &quot;Alpha&quot;
39-
WEB3 | &quot;Web3&quot;
40-
PERPS_DEX_ | &quot;Perps(DEX)&quot;
41-
EXCHANGE_ALL | &quot;Exchange All&quot;
42-
WEB3_ALL | &quot;Web3 All&quot;
43-
TRADFI | &quot;TradFi&quot;
44-

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>gate-api</artifactId>
66
<packaging>jar</packaging>
77
<name>gate-api</name>
8-
<version>7.2.56</version>
8+
<version>7.2.57</version>
99
<url>https://github.com/gate/gateapi-java.git</url>
1010
<description>Java client for gateapi</description>
1111
<scm>

src/main/java/io/gate/gateapi/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ private void init() {
113113
json = new JSON();
114114

115115
// Set default User-Agent.
116-
setUserAgent("OpenAPI-Generator/7.2.56/java");
116+
setUserAgent("OpenAPI-Generator/7.2.57/java");
117117

118118
// Set default X-Gate-Size-Decimal header for futures API
119119
addDefaultHeader("X-Gate-Size-Decimal", "1");

src/main/java/io/gate/gateapi/models/PartnerDataAggregated.java

Lines changed: 5 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -112,70 +112,9 @@ public BusinessTypeEnum read(final JsonReader jsonReader) throws IOException {
112112
@SerializedName(SERIALIZED_NAME_BUSINESS_TYPE)
113113
private BusinessTypeEnum businessType;
114114

115-
/**
116-
* Business type description
117-
*/
118-
@JsonAdapter(BusinessTypeDescEnum.Adapter.class)
119-
public enum BusinessTypeDescEnum {
120-
_("全部"),
121-
122-
_("现货"),
123-
124-
_("合约"),
125-
126-
ALPHA("Alpha"),
127-
128-
WEB3("Web3"),
129-
130-
PERPS_DEX_("Perps(DEX)"),
131-
132-
EXCHANGE_ALL("Exchange All"),
133-
134-
WEB3_ALL("Web3 All"),
135-
136-
TRADFI("TradFi");
137-
138-
private String value;
139-
140-
BusinessTypeDescEnum(String value) {
141-
this.value = value;
142-
}
143-
144-
public String getValue() {
145-
return value;
146-
}
147-
148-
@Override
149-
public String toString() {
150-
return String.valueOf(value);
151-
}
152-
153-
public static BusinessTypeDescEnum fromValue(String value) {
154-
for (BusinessTypeDescEnum b : BusinessTypeDescEnum.values()) {
155-
if (b.value.equals(value)) {
156-
return b;
157-
}
158-
}
159-
throw new IllegalArgumentException("Unexpected value '" + value + "'");
160-
}
161-
162-
public static class Adapter extends TypeAdapter<BusinessTypeDescEnum> {
163-
@Override
164-
public void write(final JsonWriter jsonWriter, final BusinessTypeDescEnum enumeration) throws IOException {
165-
jsonWriter.value(enumeration.getValue());
166-
}
167-
168-
@Override
169-
public BusinessTypeDescEnum read(final JsonReader jsonReader) throws IOException {
170-
String value = jsonReader.nextString();
171-
return BusinessTypeDescEnum.fromValue(value);
172-
}
173-
}
174-
}
175-
176115
public static final String SERIALIZED_NAME_BUSINESS_TYPE_DESC = "business_type_desc";
177116
@SerializedName(SERIALIZED_NAME_BUSINESS_TYPE_DESC)
178-
private BusinessTypeDescEnum businessTypeDesc;
117+
private String businessTypeDesc;
179118

180119

181120
public PartnerDataAggregated rebateAmount(String rebateAmount) {
@@ -313,22 +252,22 @@ public void setBusinessType(BusinessTypeEnum businessType) {
313252
this.businessType = businessType;
314253
}
315254

316-
public PartnerDataAggregated businessTypeDesc(BusinessTypeDescEnum businessTypeDesc) {
255+
public PartnerDataAggregated businessTypeDesc(String businessTypeDesc) {
317256

318257
this.businessTypeDesc = businessTypeDesc;
319258
return this;
320259
}
321260

322261
/**
323-
* Business type description
262+
* 业务类型描述,可取值:全部, 现货, 合约, Alpha, Web3, Perps(DEX), Exchange All, Web3 All, TradFi
324263
* @return businessTypeDesc
325264
**/
326-
public BusinessTypeDescEnum getBusinessTypeDesc() {
265+
public String getBusinessTypeDesc() {
327266
return businessTypeDesc;
328267
}
329268

330269

331-
public void setBusinessTypeDesc(BusinessTypeDescEnum businessTypeDesc) {
270+
public void setBusinessTypeDesc(String businessTypeDesc) {
332271
this.businessTypeDesc = businessTypeDesc;
333272
}
334273
@Override

0 commit comments

Comments
 (0)