Skip to content

Commit aa6c50f

Browse files
author
gateio
committed
update to v6.93.0
1 parent df48ce1 commit aa6c50f

21 files changed

Lines changed: 628 additions & 272 deletions

README.md

Lines changed: 7 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.92.2
6-
- SDK version: 6.92.2
5+
- API version: 4.93.0
6+
- SDK version: 6.93.0
77

88
Welcome to Gate.io API
99

@@ -53,7 +53,7 @@ Add this dependency to your project's POM:
5353
<dependency>
5454
<groupId>io.gate</groupId>
5555
<artifactId>gate-api</artifactId>
56-
<version>6.92.2</version>
56+
<version>6.93.0</version>
5757
<scope>compile</scope>
5858
</dependency>
5959
```
@@ -63,7 +63,7 @@ Add this dependency to your project's POM:
6363
Add this dependency to your project's build file:
6464

6565
```groovy
66-
compile "io.gate:gate-api:6.92.2"
66+
compile "io.gate:gate-api:6.93.0"
6767
```
6868

6969
### Others
@@ -76,7 +76,7 @@ mvn clean package
7676

7777
Then manually install the following JARs:
7878

79-
* `target/gate-api-6.92.2.jar`
79+
* `target/gate-api-6.93.0.jar`
8080
* `target/lib/*.jar`
8181

8282
To install the API client library to your local Maven repository, simply execute:
@@ -190,6 +190,7 @@ Class | Method | HTTP request | Description
190190
*DeliveryApi* | [**getPriceTriggeredDeliveryOrder**](docs/DeliveryApi.md#getPriceTriggeredDeliveryOrder) | **GET** /delivery/{settle}/price_orders/{order_id} | Get a price-triggered order
191191
*DeliveryApi* | [**cancelPriceTriggeredDeliveryOrder**](docs/DeliveryApi.md#cancelPriceTriggeredDeliveryOrder) | **DELETE** /delivery/{settle}/price_orders/{order_id} | cancel a price-triggered order
192192
*EarnApi* | [**swapETH2**](docs/EarnApi.md#swapETH2) | **POST** /earn/staking/eth2/swap | ETH2 swap
193+
*EarnApi* | [**rateListETH2**](docs/EarnApi.md#rateListETH2) | **GET** /earn/staking/eth2/rate_records | ETH2 historical rate of return query
193194
*EarnApi* | [**listDualInvestmentPlans**](docs/EarnApi.md#listDualInvestmentPlans) | **GET** /earn/dual/investment_plan | Dual Investment product list
194195
*EarnApi* | [**listDualOrders**](docs/EarnApi.md#listDualOrders) | **GET** /earn/dual/orders | Dual Investment order list
195196
*EarnApi* | [**placeDualOrder**](docs/EarnApi.md#placeDualOrder) | **POST** /earn/dual/orders | Place Dual Investment order
@@ -485,6 +486,7 @@ Class | Method | HTTP request | Description
485486
- [DepositAddress](docs/DepositAddress.md)
486487
- [DualGetOrders](docs/DualGetOrders.md)
487488
- [DualGetPlans](docs/DualGetPlans.md)
489+
- [Eth2RateList](docs/Eth2RateList.md)
488490
- [Eth2Swap](docs/Eth2Swap.md)
489491
- [FlashSwapCurrencyPair](docs/FlashSwapCurrencyPair.md)
490492
- [FlashSwapOrder](docs/FlashSwapOrder.md)

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

docs/DualGetOrders.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ Name | Type | Description | Notes
2121
**apyDisplay** | **String** | APY | [optional]
2222
**apySettlement** | **String** | Settlement APY | [optional]
2323
**deliveryTime** | **Integer** | Settlement time | [optional]
24+
**text** | **String** | Custom order information | [optional]
2425

docs/EarnApi.md

Lines changed: 94 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ All URIs are relative to *https://api.gateio.ws/api/v4*
55
Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**swapETH2**](EarnApi.md#swapETH2) | **POST** /earn/staking/eth2/swap | ETH2 swap
8+
[**rateListETH2**](EarnApi.md#rateListETH2) | **GET** /earn/staking/eth2/rate_records | ETH2 historical rate of return query
89
[**listDualInvestmentPlans**](EarnApi.md#listDualInvestmentPlans) | **GET** /earn/dual/investment_plan | Dual Investment product list
910
[**listDualOrders**](EarnApi.md#listDualOrders) | **GET** /earn/dual/orders | Dual Investment order list
1011
[**placeDualOrder**](EarnApi.md#placeDualOrder) | **POST** /earn/dual/orders | Place Dual Investment order
@@ -80,9 +81,75 @@ null (empty response body)
8081
|-------------|-------------|------------------|
8182
**200** | swap success | - |
8283

84+
<a name="rateListETH2"></a>
85+
# **rateListETH2**
86+
> List&lt;Eth2RateList&gt; rateListETH2()
87+
88+
ETH2 historical rate of return query
89+
90+
Check the ETH earnings rate record for the last 31 days
91+
92+
### Example
93+
94+
```java
95+
// Import classes:
96+
import io.gate.gateapi.ApiClient;
97+
import io.gate.gateapi.ApiException;
98+
import io.gate.gateapi.Configuration;
99+
import io.gate.gateapi.GateApiException;
100+
import io.gate.gateapi.auth.*;
101+
import io.gate.gateapi.models.*;
102+
import io.gate.gateapi.api.EarnApi;
103+
104+
public class Example {
105+
public static void main(String[] args) {
106+
ApiClient defaultClient = Configuration.getDefaultApiClient();
107+
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
108+
109+
// Configure APIv4 authorization: apiv4
110+
defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
111+
112+
EarnApi apiInstance = new EarnApi(defaultClient);
113+
try {
114+
List<Eth2RateList> result = apiInstance.rateListETH2();
115+
System.out.println(result);
116+
} catch (GateApiException e) {
117+
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
118+
e.printStackTrace();
119+
} catch (ApiException e) {
120+
System.err.println("Exception when calling EarnApi#rateListETH2");
121+
System.err.println("Status code: " + e.getCode());
122+
System.err.println("Response headers: " + e.getResponseHeaders());
123+
e.printStackTrace();
124+
}
125+
}
126+
}
127+
```
128+
129+
### Parameters
130+
This endpoint does not need any parameter.
131+
132+
### Return type
133+
134+
[**List&lt;Eth2RateList&gt;**](Eth2RateList.md)
135+
136+
### Authorization
137+
138+
[apiv4](../README.md#apiv4)
139+
140+
### HTTP request headers
141+
142+
- **Content-Type**: Not defined
143+
- **Accept**: application/json
144+
145+
### HTTP response details
146+
| Status code | Description | Response headers |
147+
|-------------|-------------|------------------|
148+
**200** | Successful | - |
149+
83150
<a name="listDualInvestmentPlans"></a>
84151
# **listDualInvestmentPlans**
85-
> List&lt;DualGetPlans&gt; listDualInvestmentPlans()
152+
> List&lt;DualGetPlans&gt; listDualInvestmentPlans().planId(planId).execute();
86153
87154
Dual Investment product list
88155

@@ -103,8 +170,11 @@ public class Example {
103170
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
104171

105172
EarnApi apiInstance = new EarnApi(defaultClient);
173+
Long planId = 1L; // Long | Financial project id
106174
try {
107-
List<DualGetPlans> result = apiInstance.listDualInvestmentPlans();
175+
List<DualGetPlans> result = apiInstance.listDualInvestmentPlans()
176+
.planId(planId)
177+
.execute();
108178
System.out.println(result);
109179
} catch (GateApiException e) {
110180
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
@@ -120,7 +190,10 @@ public class Example {
120190
```
121191

122192
### Parameters
123-
This endpoint does not need any parameter.
193+
194+
Name | Type | Description | Notes
195+
------------- | ------------- | ------------- | -------------
196+
**planId** | **Long**| Financial project id | [optional]
124197

125198
### Return type
126199

@@ -142,7 +215,7 @@ No authorization required
142215

143216
<a name="listDualOrders"></a>
144217
# **listDualOrders**
145-
> List&lt;DualGetOrders&gt; listDualOrders()
218+
> List&lt;DualGetOrders&gt; listDualOrders().from(from).to(to).page(page).limit(limit).execute();
146219
147220
Dual Investment order list
148221

@@ -167,8 +240,17 @@ public class Example {
167240
defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
168241

169242
EarnApi apiInstance = new EarnApi(defaultClient);
243+
Long from = 1740727000L; // Long | Start checkout time
244+
Long to = 1740729000L; // Long | End settlement time
245+
Integer page = 1; // Integer | Page number
246+
Integer limit = 100; // Integer | Maximum number of records to be returned in a single list
170247
try {
171-
List<DualGetOrders> result = apiInstance.listDualOrders();
248+
List<DualGetOrders> result = apiInstance.listDualOrders()
249+
.from(from)
250+
.to(to)
251+
.page(page)
252+
.limit(limit)
253+
.execute();
172254
System.out.println(result);
173255
} catch (GateApiException e) {
174256
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
@@ -184,7 +266,13 @@ public class Example {
184266
```
185267

186268
### Parameters
187-
This endpoint does not need any parameter.
269+
270+
Name | Type | Description | Notes
271+
------------- | ------------- | ------------- | -------------
272+
**from** | **Long**| Start checkout time | [optional]
273+
**to** | **Long**| End settlement time | [optional]
274+
**page** | **Integer**| Page number | [optional] [default to 1]
275+
**limit** | **Integer**| Maximum number of records to be returned in a single list | [optional] [default to 100]
188276

189277
### Return type
190278

docs/Eth2RateList.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
# Eth2RateList
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**dateTime** | **Long** | Date and Time Stamp | [optional]
9+
**date** | **String** | Date | [optional]
10+
**rate** | **String** | percentage | [optional]
11+

docs/LedgerRecord.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,6 @@ Name | Type | Description | Notes
1313
**currency** | **String** | Currency name |
1414
**address** | **String** | Withdrawal address. Required for withdrawals | [optional]
1515
**memo** | **String** | Additional remarks with regards to the withdrawal | [optional]
16-
**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 - INVALID: invalid order - VERIFY: verifying - PROCES: processing - PEND: pending - DMOVE: required manual approval - SPLITPEND: the order is automatically split due to large amount | [optional] [readonly]
16+
**status** | **String** | 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 - INVALID: invalid order - VERIFY: verifying - PROCES: processing - PEND: pending - DMOVE: required manual approval | [optional] [readonly]
1717
**chain** | **String** | Name of the chain used in withdrawals |
1818

19-
## Enum: StatusEnum
20-
21-
Name | Value
22-
---- | -----
23-
DONE | &quot;DONE&quot;
24-
CANCEL | &quot;CANCEL&quot;
25-
REQUEST | &quot;REQUEST&quot;
26-
MANUAL | &quot;MANUAL&quot;
27-
BCODE | &quot;BCODE&quot;
28-
EXTPEND | &quot;EXTPEND&quot;
29-
FAIL | &quot;FAIL&quot;
30-
INVALID | &quot;INVALID&quot;
31-
VERIFY | &quot;VERIFY&quot;
32-
PROCES | &quot;PROCES&quot;
33-
PEND | &quot;PEND&quot;
34-
DMOVE | &quot;DMOVE&quot;
35-
SPLITPEND | &quot;SPLITPEND&quot;
36-

docs/PlaceDualInvestmentOrder.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ Name | Type | Description | Notes
1111
**copies** | **String** | The number of copies is mutually exclusive with the amount field and will be deprecated soon. It is recommended to use the amount parameter. | [optional]
1212
**isMax** | **Integer** | Whether to purchase at the maximum. Mutually exclusive with the amount field. Will be deprecated soon. It is recommended to use the amount parameter. | [optional]
1313
**amount** | **String** | Subscription amount, mutually exclusive with the copies field |
14+
**text** | **String** | User defined information. If not empty, must follow the rules below: 1. prefixed with &#x60;t-&#x60; 2. no longer than 28 bytes without &#x60;t-&#x60; prefix 3. can only include 0-9, A-Z, a-z, underscore(_), hyphen(-) or dot(.) | [optional]
1415

docs/SpotApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Method | HTTP request | Description
4444
4545
List all currencies&#39; details
4646

47-
Currency has two forms: 1. Only currency name, e.g., BTC, USDT 2. &#x60;&lt;currency&gt;_&lt;chain&gt;&#x60;, e.g., &#x60;HT_ETH&#x60; The latter one occurs when one currency has multiple chains. Currency detail contains a &#x60;chain&#x60; field whatever the form is. To retrieve all chains of one currency, you can use use all the details which has the name of the currency or name starting with &#x60;&lt;currency&gt;_&#x60;.
47+
When a currency corresponds to multiple chains, you can query the information of multiple chains through the &#x60;chains&#x60; field, such as the charging and recharge status, identification, etc. of the chain.
4848

4949
### Example
5050

docs/UnifiedBalance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
1919
**crossBalance** | **String** | Full margin balance is valid in single currency margin mode, and is 0 in other modes such as cross currency margin/combined margin mode | [optional]
2020
**isoBalance** | **String** | Isolated margin balance is valid in single-currency margin mode and is 0 in other modes such as cross-currency margin/combined margin mode | [optional]
2121
**im** | **String** | Full-position initial margin is valid in single-currency margin mode and is 0 in other modes such as cross-currency margin/combined margin mode | [optional]
22-
**mm** | **String** | Full-position maintenance margin rate is valid in single-currency margin mode and is 0 in other modes such as cross-currency margin/combined margin mode | [optional]
22+
**mm** | **String** | The full position maintains margin, which is valid in the single currency margin mode, and other cross-currency margin combination margin mode is 0. | [optional]
2323
**imr** | **String** | Full-position initial margin rate is valid in single-currency margin mode and is 0 in other modes such as cross-currency margin/combined margin mode | [optional]
2424
**mmr** | **String** | Full-position maintenance margin rate is valid in single-currency margin mode and is 0 in other modes such as cross-currency margin/combined margin mode | [optional]
2525
**marginBalance** | **String** | Full margin balance is valid in single currency margin mode and is 0 in other modes such as cross currency margin/combined margin mode | [optional]

0 commit comments

Comments
 (0)