You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,8 @@
2
2
3
3
Gate API v4
4
4
5
-
- API version: 4.16.0
6
-
- SDK version: 5.16.0
5
+
- API version: 4.16.1
6
+
- SDK version: 5.16.1
7
7
8
8
APIv4 provides spot, margin and futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
9
9
@@ -65,7 +65,7 @@ Add this dependency to your project's POM:
65
65
<dependency>
66
66
<groupId>io.gate</groupId>
67
67
<artifactId>gate-api</artifactId>
68
-
<version>5.16.0</version>
68
+
<version>5.16.1</version>
69
69
<scope>compile</scope>
70
70
</dependency>
71
71
```
@@ -75,7 +75,7 @@ Add this dependency to your project's POM:
Integer limit =100; // Integer | Maximum number of records returned in one list
275
275
String lastId ="12345"; // String | Specify list staring point using the id of last record in previous list-query results This parameter is deprecated. Use `from` and `to` instead to limit time range
276
276
Long from =1546905600L; // Long | Specify starting time in Unix seconds. If not specified, `to` and `limit` will be used to limit response items. If items between `from` and `to` are more than `limit`, only `limit` number will be returned.
Long from =1546905600L; // Long | Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified
356
356
Long to =1546935600L; // Long | End time of candlesticks, formatted in Unix timestamp in seconds. Default to current time
357
357
Integer limit =100; // Integer | Maximum recent data points returned. `limit` is conflicted with `from` and `to`. If either `from` or `to` is specified, request will be rejected.
**dualMode** | [**DualModeEnum**](#DualModeEnum) | Position mode, including: - `single`: dual mode is not enabled- `dual_long`: long position in dual mode- `dual_short`: short position in dual mode | [optional]
31
+
**mode** | [**ModeEnum**](#ModeEnum) | Position mode, including: - `single`: dual mode is not enabled- `dual_long`: long position in dual mode- `dual_short`: short position in dual mode | [optional]
Copy file name to clipboardExpand all lines: src/main/java/io/gate/gateapi/models/Position.java
+22-22Lines changed: 22 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -111,8 +111,8 @@ public class Position {
111
111
/**
112
112
* Position mode, including: - `single`: dual mode is not enabled- `dual_long`: long position in dual mode- `dual_short`: short position in dual mode
113
113
*/
114
-
@JsonAdapter(DualModeEnum.Adapter.class)
115
-
publicenumDualModeEnum {
114
+
@JsonAdapter(ModeEnum.Adapter.class)
115
+
publicenumModeEnum {
116
116
SINGLE("single"),
117
117
118
118
DUAL_LONG("dual_long"),
@@ -121,7 +121,7 @@ public enum DualModeEnum {
121
121
122
122
privateStringvalue;
123
123
124
-
DualModeEnum(Stringvalue) {
124
+
ModeEnum(Stringvalue) {
125
125
this.value = value;
126
126
}
127
127
@@ -134,32 +134,32 @@ public String toString() {
134
134
returnString.valueOf(value);
135
135
}
136
136
137
-
publicstaticDualModeEnumfromValue(Stringvalue) {
138
-
for (DualModeEnumb : DualModeEnum.values()) {
137
+
publicstaticModeEnumfromValue(Stringvalue) {
138
+
for (ModeEnumb : ModeEnum.values()) {
139
139
if (b.value.equals(value)) {
140
140
returnb;
141
141
}
142
142
}
143
143
thrownewIllegalArgumentException("Unexpected value '" + value + "'");
@@ -412,24 +412,24 @@ public void setCloseOrder(PositionCloseOrder closeOrder) {
412
412
this.closeOrder = closeOrder;
413
413
}
414
414
415
-
publicPositiondualMode(DualModeEnumdualMode) {
415
+
publicPositionmode(ModeEnummode) {
416
416
417
-
this.dualMode = dualMode;
417
+
this.mode = mode;
418
418
returnthis;
419
419
}
420
420
421
421
/**
422
422
* Position mode, including: - `single`: dual mode is not enabled- `dual_long`: long position in dual mode- `dual_short`: short position in dual mode
423
-
* @return dualMode
423
+
* @return mode
424
424
**/
425
425
@javax.annotation.Nullable
426
-
publicDualModeEnumgetDualMode() {
427
-
returndualMode;
426
+
publicModeEnumgetMode() {
427
+
returnmode;
428
428
}
429
429
430
430
431
-
publicvoidsetDualMode(DualModeEnumdualMode) {
432
-
this.dualMode = dualMode;
431
+
publicvoidsetMode(ModeEnummode) {
432
+
this.mode = mode;
433
433
}
434
434
@Override
435
435
publicbooleanequals(java.lang.Objecto) {
@@ -461,12 +461,12 @@ public boolean equals(java.lang.Object o) {
0 commit comments