Skip to content

Commit fbb4039

Browse files
committed
add more status enum for LedgerRecord; add auto_size in FuturesOrder
1 parent ffcc6ce commit fbb4039

13 files changed

Lines changed: 108 additions & 21 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 v4
44

5-
- API version: 4.22.1
6-
- SDK version: 6.22.1
5+
- API version: 4.22.2
6+
- SDK version: 6.22.2
77

88
Welcome to Gate.io API
99

@@ -67,7 +67,7 @@ Add this dependency to your project's POM:
6767
<dependency>
6868
<groupId>io.gate</groupId>
6969
<artifactId>gate-api</artifactId>
70-
<version>6.22.1</version>
70+
<version>6.22.2</version>
7171
<scope>compile</scope>
7272
</dependency>
7373
```
@@ -77,7 +77,7 @@ Add this dependency to your project's POM:
7777
Add this dependency to your project's build file:
7878

7979
```groovy
80-
compile "io.gate:gate-api:6.22.1"
80+
compile "io.gate:gate-api:6.22.2"
8181
```
8282

8383
### Others
@@ -90,7 +90,7 @@ mvn clean package
9090

9191
Then manually install the following JARs:
9292

93-
* `target/gate-api-6.22.1.jar`
93+
* `target/gate-api-6.22.2.jar`
9494
* `target/lib/*.jar`
9595

9696
## Getting Started

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 = '6.22.1'
6+
version = '6.22.2'
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 := "6.22.1",
5+
version := "6.22.2",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/FuturesOrder.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Name | Type | Description | Notes
2929
**tkfr** | **String** | Taker fee | [optional] [readonly]
3030
**mkfr** | **String** | Maker fee | [optional] [readonly]
3131
**refu** | **Integer** | Reference user ID | [optional] [readonly]
32+
**autoSize** | [**AutoSizeEnum**](#AutoSizeEnum) | Set side to close dual-mode position. &#x60;close_long&#x60; closes the long side; while &#x60;close_short&#x60; the short one. Note &#x60;size&#x60; also needs to be set to 0 | [optional]
3233

3334
## Enum: FinishAsEnum
3435

@@ -58,3 +59,10 @@ GTC | &quot;gtc&quot;
5859
IOC | &quot;ioc&quot;
5960
POC | &quot;poc&quot;
6061

62+
## Enum: AutoSizeEnum
63+
64+
Name | Value
65+
---- | -----
66+
LONG | &quot;close_long&quot;
67+
SHORT | &quot;close_short&quot;
68+

docs/LedgerRecord.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
1212
**currency** | **String** | Currency name |
1313
**address** | **String** | Withdrawal address. Required for withdrawals | [optional]
1414
**memo** | **String** | Additional remarks with regards to the withdrawal | [optional]
15-
**status** | [**StatusEnum**](#StatusEnum) | Record status. - DONE: done - CANCEL: cancelled - REQUEST: requesting - MANUAL: pending manual approval - BCODE: GateCode operation | [optional] [readonly]
15+
**status** | [**StatusEnum**](#StatusEnum) | Record status. - DONE: done - CANCEL: cancelled - REQUEST: requesting - MANUAL: pending manual approval - BCODE: GateCode operation - EXTPEND: pending confirm after sending - FAIL: pending confirm when fail | [optional] [readonly]
1616
**chain** | **String** | Name of the chain used in withdrawals | [optional]
1717

1818
## Enum: StatusEnum
@@ -24,4 +24,6 @@ CANCEL | &quot;CANCEL&quot;
2424
REQUEST | &quot;REQUEST&quot;
2525
MANUAL | &quot;MANUAL&quot;
2626
BCODE | &quot;BCODE&quot;
27+
EXTPEND | &quot;EXTPEND&quot;
28+
FAIL | &quot;FAIL&quot;
2729

docs/SpotApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ Name | Type | Description | Notes
871871
872872
List orders
873873

874-
Spot and margin orders are returned by default. If cross margin orders are needed, &#x60;account&#x60; must be set to &#x60;cross_margin&#x60; When &#x60;status&#x60; is &#x60;open&#x60;, i.e., listing open orders, only pagination parameters &#x60;page&#x60; and &#x60;limit&#x60; are supported and &#x60;limit&#x60; cannot be larger than 100. Query by &#x60;side&#x60; and time range parameters &#x60;from&#x60; and &#x60;to&#x60; are not supported. When &#x60;status&#x60; is &#x60;finished&#x60;, i.e., listing finished orders, pagination parameters, time range parameters &#x60;from&#x60; and &#x60;to&#x60;, and &#x60;side&#x60; parameters are all supported.
874+
Spot and margin orders are returned by default. If cross margin orders are needed, &#x60;account&#x60; must be set to &#x60;cross_margin&#x60; When &#x60;status&#x60; is &#x60;open&#x60;, i.e., listing open orders, only pagination parameters &#x60;page&#x60; and &#x60;limit&#x60; are supported and &#x60;limit&#x60; cannot be larger than 100. Query by &#x60;side&#x60; and time range parameters &#x60;from&#x60; and &#x60;to&#x60; are not supported. When &#x60;status&#x60; is &#x60;finished&#x60;, i.e., listing finished orders, pagination parameters, time range parameters &#x60;from&#x60; and &#x60;to&#x60;, and &#x60;side&#x60; parameters are all supported. Time range parameters are handled as order finish time.
875875

876876
### Example
877877

@@ -1324,7 +1324,7 @@ Name | Type | Description | Notes
13241324
13251325
List personal trading history
13261326

1327-
Spot and margin trades are queried by default. If cross margin trades are needed, &#x60;account&#x60; must be set to &#x60;cross_margin&#x60; You can also set &#x60;from&#x60; and(or) &#x60;to&#x60; to query by time range
1327+
Spot and margin trades are queried by default. If cross margin trades are needed, &#x60;account&#x60; must be set to &#x60;cross_margin&#x60; You can also set &#x60;from&#x60; and(or) &#x60;to&#x60; to query by time range Time range parameters are handled as order finish time.
13281328

13291329
### Example
13301330

docs/TotalBalance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# TotalBalance
33

4-
用户总资产信息
4+
User's balance in all accounts
55

66
## Properties
77

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>6.22.1</version>
8+
<version>6.22.2</version>
99
<url>https://github.com/openapitools/openapi-generator</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/6.22.1/java");
116+
setUserAgent("OpenAPI-Generator/6.22.2/java");
117117

118118
authentications = new HashMap<String, Authentication>();
119119
}

src/main/java/io/gate/gateapi/api/SpotApi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1990,7 +1990,7 @@ public okhttp3.Call executeAsync(final ApiCallback<List<Order>> _callback) throw
19901990

19911991
/**
19921992
* List orders
1993-
* Spot and margin orders are returned by default. If cross margin orders are needed, &#x60;account&#x60; must be set to &#x60;cross_margin&#x60; When &#x60;status&#x60; is &#x60;open&#x60;, i.e., listing open orders, only pagination parameters &#x60;page&#x60; and &#x60;limit&#x60; are supported and &#x60;limit&#x60; cannot be larger than 100. Query by &#x60;side&#x60; and time range parameters &#x60;from&#x60; and &#x60;to&#x60; are not supported. When &#x60;status&#x60; is &#x60;finished&#x60;, i.e., listing finished orders, pagination parameters, time range parameters &#x60;from&#x60; and &#x60;to&#x60;, and &#x60;side&#x60; parameters are all supported.
1993+
* Spot and margin orders are returned by default. If cross margin orders are needed, &#x60;account&#x60; must be set to &#x60;cross_margin&#x60; When &#x60;status&#x60; is &#x60;open&#x60;, i.e., listing open orders, only pagination parameters &#x60;page&#x60; and &#x60;limit&#x60; are supported and &#x60;limit&#x60; cannot be larger than 100. Query by &#x60;side&#x60; and time range parameters &#x60;from&#x60; and &#x60;to&#x60; are not supported. When &#x60;status&#x60; is &#x60;finished&#x60;, i.e., listing finished orders, pagination parameters, time range parameters &#x60;from&#x60; and &#x60;to&#x60;, and &#x60;side&#x60; parameters are all supported. Time range parameters are handled as order finish time.
19941994
* @param currencyPair Retrieve results with specified currency pair. It is required for open orders, but optional for finished ones. (required)
19951995
* @param status List orders based on status &#x60;open&#x60; - order is waiting to be filled &#x60;finished&#x60; - order has been filled or cancelled (required)
19961996
* @return APIlistOrdersRequest
@@ -2820,7 +2820,7 @@ public okhttp3.Call executeAsync(final ApiCallback<List<Trade>> _callback) throw
28202820

28212821
/**
28222822
* List personal trading history
2823-
* Spot and margin trades are queried by default. If cross margin trades are needed, &#x60;account&#x60; must be set to &#x60;cross_margin&#x60; You can also set &#x60;from&#x60; and(or) &#x60;to&#x60; to query by time range
2823+
* Spot and margin trades are queried by default. If cross margin trades are needed, &#x60;account&#x60; must be set to &#x60;cross_margin&#x60; You can also set &#x60;from&#x60; and(or) &#x60;to&#x60; to query by time range Time range parameters are handled as order finish time.
28242824
* @param currencyPair Retrieve results with specified currency pair. It is required for open orders, but optional for finished ones. (required)
28252825
* @return APIlistMyTradesRequest
28262826
* @http.response.details

0 commit comments

Comments
 (0)