Skip to content

Commit 08e9a1f

Browse files
author
gateio
committed
update to v7.1.7
1 parent 9a402a4 commit 08e9a1f

43 files changed

Lines changed: 564 additions & 168 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

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

33
Gate API
44

5-
- API version: v4.104.3
6-
- SDK version: 6.104.3
5+
- API version: v4.105.7
6+
- SDK version: 7.1.7
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>6.104.3</version>
55+
<version>7.1.7</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:6.104.3"
65+
compile "io.gate:gate-api:7.1.7"
6666
```
6767

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

7676
Then manually install the following JARs:
7777

78-
* `target/gate-api-6.104.3.jar`
78+
* `target/gate-api-7.1.7.jar`
7979
* `target/lib/*.jar`
8080

8181
To install the API client library to your local Maven repository, simply execute:
@@ -389,7 +389,7 @@ Class | Method | HTTP request | Description
389389
*UnifiedApi* | [**getUnifiedMode**](docs/UnifiedApi.md#getUnifiedMode) | **GET** /unified/unified_mode | Query mode of the unified account
390390
*UnifiedApi* | [**setUnifiedMode**](docs/UnifiedApi.md#setUnifiedMode) | **PUT** /unified/unified_mode | Set unified account mode
391391
*UnifiedApi* | [**getUnifiedEstimateRate**](docs/UnifiedApi.md#getUnifiedEstimateRate) | **GET** /unified/estimate_rate | Query unified account estimated interest rate
392-
*UnifiedApi* | [**listCurrencyDiscountTiers**](docs/UnifiedApi.md#listCurrencyDiscountTiers) | **GET** /unified/currency_discount_tiers | Query unified account tiered discount
392+
*UnifiedApi* | [**listCurrencyDiscountTiers**](docs/UnifiedApi.md#listCurrencyDiscountTiers) | **GET** /unified/currency_discount_tiers | Query unified account tiered
393393
*UnifiedApi* | [**listLoanMarginTiers**](docs/UnifiedApi.md#listLoanMarginTiers) | **GET** /unified/loan_margin_tiers | Query unified account tiered loan margin
394394
*UnifiedApi* | [**calculatePortfolioMargin**](docs/UnifiedApi.md#calculatePortfolioMargin) | **POST** /unified/portfolio_calculator | Portfolio margin calculator
395395
*UnifiedApi* | [**getUserLeverageCurrencyConfig**](docs/UnifiedApi.md#getUserLeverageCurrencyConfig) | **GET** /unified/leverage/user_currency_config | Maximum and minimum currency leverage that can be set

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

docs/Contract.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ Name | Type | Description | Notes
4343
**enableCredit** | **Boolean** | Whether portfolio margin account is enabled | [optional]
4444
**createTime** | **Double** | Created time of the contract | [optional]
4545
**fundingCapRatio** | **String** | The factor for the maximum of the funding rate. Maximum of funding rate &#x3D; (1/market maximum leverage - maintenance margin rate) * funding_cap_ratio | [optional]
46-
**status** | **String** | Contract status types include: prelaunch (pre-launch), trading (active), delisting (delisting), delisted (delisted) | [optional]
46+
**status** | **String** | Contract status types include: prelaunch (pre-launch), trading (active), delisting (delisting), delisted (delisted), circuit_breaker (circuit breaker) | [optional]
4747
**launchTime** | **Long** | Contract expiry timestamp | [optional]
48+
**delistingTime** | **Long** | Timestamp when contract enters reduce-only state | [optional]
49+
**delistedTime** | **Long** | Contract delisting time | [optional]
4850

4951
## Enum: TypeEnum
5052

docs/ContractStat.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ Name | Type | Description | Notes
1818
**openInterestUsd** | **Double** | Total open interest volume (quote currency) | [optional]
1919
**topLsrAccount** | **Double** | Top trader long/short account ratio | [optional]
2020
**topLsrSize** | **Double** | Top trader long/short position ratio | [optional]
21+
**markPrice** | **Double** | Mark price | [optional]
2122

docs/DeliveryApi.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public class Example {
269269
String settle = "usdt"; // String | Settle currency
270270
String contract = "BTC_USDT_20200814"; // String | Futures contract
271271
Integer limit = 100; // Integer | Maximum number of records returned in a single list
272-
String lastId = "12345"; // String | 以上个列表的最后一条记录的 ID 作为下个列表的起点。 该字段不再继续支持,新的请求请使用 `from` 和 `to` 字段来限定时间范围
272+
String lastId = "12345"; // String | Use the ID of the last record in the previous list as the starting point for the next list.This field is no longer supported. For new requests, please use the fromand tofields to specify the time rang
273273
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.
274274
Long to = 1546935600L; // Long | Specify end time in Unix seconds, default to current time.
275275
try {
@@ -300,7 +300,7 @@ Name | Type | Description | Notes
300300
**settle** | **String**| Settle currency | [enum: usdt]
301301
**contract** | **String**| Futures contract |
302302
**limit** | **Integer**| Maximum number of records returned in a single list | [optional] [default to 100]
303-
**lastId** | **String**| 以上个列表的最后一条记录的 ID 作为下个列表的起点。 该字段不再继续支持,新的请求请使用 &#x60;from&#x60;&#x60;to&#x60; 字段来限定时间范围 | [optional]
303+
**lastId** | **String**| Use the ID of the last record in the previous list as the starting point for the next list.This field is no longer supported. For new requests, please use the fromand tofields to specify the time rang | [optional]
304304
**from** | **Long**| Specify starting time in Unix seconds. If not specified, &#x60;to&#x60; and &#x60;limit&#x60; will be used to limit response items. If items between &#x60;from&#x60; and &#x60;to&#x60; are more than &#x60;limit&#x60;, only &#x60;limit&#x60; number will be returned. | [optional]
305305
**to** | **Long**| Specify end time in Unix seconds, default to current time. | [optional]
306306

@@ -352,7 +352,7 @@ public class Example {
352352
Long from = 1546905600L; // Long | Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified
353353
Long to = 1546935600L; // Long | Specify the end time of the K-line chart, defaults to current time if not specified, note that the time format is Unix timestamp with second precision
354354
Integer limit = 100; // Integer | Maximum number of recent data points to return. `limit` conflicts with `from` and `to`. If either `from` or `to` is specified, request will be rejected.
355-
String interval = "5m"; // String | Time interval between data points, note that 1w represents a natural week, 7d time is aligned with Unix initial timeTime interval between data points, note that 1w represents a natural week, 7d time is aligned with Unix initial timeweek, 7d time is aligned with Unix initial time
355+
String interval = "5m"; // String | Time interval between data points, note that 1w represents a natural week, 7d time is aligned with Unix initial time
356356
try {
357357
List<DeliveryCandlestick> result = apiInstance.listDeliveryCandlesticks(settle, contract)
358358
.from(from)
@@ -383,7 +383,7 @@ Name | Type | Description | Notes
383383
**from** | **Long**| Start time of candlesticks, formatted in Unix timestamp in seconds. Default to&#x60;to - 100 * interval&#x60; if not specified | [optional]
384384
**to** | **Long**| Specify the end time of the K-line chart, defaults to current time if not specified, note that the time format is Unix timestamp with second precision | [optional]
385385
**limit** | **Integer**| Maximum number of recent data points to return. &#x60;limit&#x60; conflicts with &#x60;from&#x60; and &#x60;to&#x60;. If either &#x60;from&#x60; or &#x60;to&#x60; is specified, request will be rejected. | [optional] [default to 100]
386-
**interval** | **String**| Time interval between data points, note that 1w represents a natural week, 7d time is aligned with Unix initial timeTime interval between data points, note that 1w represents a natural week, 7d time is aligned with Unix initial timeweek, 7d time is aligned with Unix initial time | [optional] [default to 5m] [enum: 10s, 30s, 1m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 7d, 1w, 30d]
386+
**interval** | **String**| Time interval between data points, note that 1w represents a natural week, 7d time is aligned with Unix initial time | [optional] [default to 5m] [enum: 10s, 30s, 1m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 7d, 1w, 30d]
387387

388388
### Return type
389389

@@ -638,7 +638,7 @@ public class Example {
638638
Integer limit = 100; // Integer | Maximum number of records returned in a single list
639639
Long from = 1547706332L; // Long | Start timestamp Specify start time, time format is Unix timestamp. If not specified, it defaults to (the data start time of the time range actually returned by to and limit)
640640
Long to = 1547706332L; // Long | Termination Timestamp Specify the end time. If not specified, it defaults to the current time, and the time format is a Unix timestamp
641-
String type = "dnw"; // String | Changing Type: - dnw: Deposit & Withdraw - pnl: Profit & Loss by reducing position - fee: Trading fee - refr: Referrer rebate - fund: Funding - point_dnw: point_fee: POINT Trading fee - point_refr: POINT Referrer rebate
641+
String type = "dnw"; // String | Change types: - dnw: Deposit and withdrawal - pnl: Profit and loss from position reduction - fee: Trading fees - refr: Referrer rebates - fund: Funding fees - point_dnw: Point card deposit and withdrawal - point_fee: Point card trading fees - point_refr: Point card referrer rebates
642642
try {
643643
List<FuturesAccountBook> result = apiInstance.listDeliveryAccountBook(settle)
644644
.limit(limit)
@@ -668,7 +668,7 @@ Name | Type | Description | Notes
668668
**limit** | **Integer**| Maximum number of records returned in a single list | [optional] [default to 100]
669669
**from** | **Long**| Start timestamp Specify start time, time format is Unix timestamp. If not specified, it defaults to (the data start time of the time range actually returned by to and limit) | [optional]
670670
**to** | **Long**| Termination Timestamp Specify the end time. If not specified, it defaults to the current time, and the time format is a Unix timestamp | [optional]
671-
**type** | **String**| Changing Type: - dnw: Deposit &amp; Withdraw - pnl: Profit &amp; Loss by reducing position - fee: Trading fee - refr: Referrer rebate - fund: Funding - point_dnw: point_fee: POINT Trading fee - point_refr: POINT Referrer rebate | [optional] [enum: dnw, pnl, fee, refr, fund, point_dnw, point_fee, point_refr]
671+
**type** | **String**| Change types: - dnw: Deposit and withdrawal - pnl: Profit and loss from position reduction - fee: Trading fees - refr: Referrer rebates - fund: Funding fees - point_dnw: Point card deposit and withdrawal - point_fee: Point card trading fees - point_refr: Point card referrer rebates | [optional] [enum: dnw, pnl, fee, refr, fund, point_dnw, point_fee, point_refr]
672672

673673
### Return type
674674

@@ -1076,7 +1076,7 @@ public class Example {
10761076
String contract = "BTC_USDT_20200814"; // String | Futures contract
10771077
Integer limit = 100; // Integer | Maximum number of records returned in a single list
10781078
Integer offset = 0; // Integer | List offset, starting from 0
1079-
String lastId = "12345"; // String | Specify the currency name to query in batches, and support up to 100 pass parameters at a time
1079+
String lastId = "12345"; // String | Use the ID of the last record in the previous list as the starting point for the next list Operations based on custom IDs can only be checked when orders are pending. After orders are completed (filled/cancelled), they can be checked within 1 hour after completion. After expiration, only order IDs can be used
10801080
Integer countTotal = 0; // Integer | Whether to return total number matched, defaults to 0 (no return)
10811081
try {
10821082
List<FuturesOrder> result = apiInstance.listDeliveryOrders(settle, status)
@@ -1109,7 +1109,7 @@ Name | Type | Description | Notes
11091109
**contract** | **String**| Futures contract | [optional]
11101110
**limit** | **Integer**| Maximum number of records returned in a single list | [optional] [default to 100]
11111111
**offset** | **Integer**| List offset, starting from 0 | [optional] [default to 0]
1112-
**lastId** | **String**| Specify the currency name to query in batches, and support up to 100 pass parameters at a time | [optional]
1112+
**lastId** | **String**| Use the ID of the last record in the previous list as the starting point for the next list Operations based on custom IDs can only be checked when orders are pending. After orders are completed (filled/cancelled), they can be checked within 1 hour after completion. After expiration, only order IDs can be used | [optional]
11131113
**countTotal** | **Integer**| Whether to return total number matched, defaults to 0 (no return) | [optional] [default to 0] [enum: 0, 1]
11141114

11151115
### Return type
@@ -1450,7 +1450,7 @@ public class Example {
14501450
Long order = 12345L; // Long | Futures order ID, return related data only if specified
14511451
Integer limit = 100; // Integer | Maximum number of records returned in a single list
14521452
Integer offset = 0; // Integer | List offset, starting from 0
1453-
String lastId = "12345"; // String | Specify the currency name to query in batches, and support up to 100 pass parameters at a time
1453+
String lastId = "12345"; // String | Use the ID of the last record in the previous list as the starting point for the next list Operations based on custom IDs can only be checked when orders are pending. After orders are completed (filled/cancelled), they can be checked within 1 hour after completion. After expiration, only order IDs can be used
14541454
Integer countTotal = 0; // Integer | Whether to return total number matched, defaults to 0 (no return)
14551455
try {
14561456
List<MyFuturesTrade> result = apiInstance.getMyDeliveryTrades(settle)
@@ -1484,7 +1484,7 @@ Name | Type | Description | Notes
14841484
**order** | **Long**| Futures order ID, return related data only if specified | [optional]
14851485
**limit** | **Integer**| Maximum number of records returned in a single list | [optional] [default to 100]
14861486
**offset** | **Integer**| List offset, starting from 0 | [optional] [default to 0]
1487-
**lastId** | **String**| Specify the currency name to query in batches, and support up to 100 pass parameters at a time | [optional]
1487+
**lastId** | **String**| Use the ID of the last record in the previous list as the starting point for the next list Operations based on custom IDs can only be checked when orders are pending. After orders are completed (filled/cancelled), they can be checked within 1 hour after completion. After expiration, only order IDs can be used | [optional]
14881488
**countTotal** | **Integer**| Whether to return total number matched, defaults to 0 (no return) | [optional] [default to 0] [enum: 0, 1]
14891489

14901490
### Return type
@@ -1742,7 +1742,7 @@ Name | Type | Description | Notes
17421742
17431743
Query risk limit tiers
17441744

1745-
When the &#39;contract&#39; parameter is not passed, the default is to query the risk limits for the top 100 markets.&#39;Limit&#39; and &#39;offset&#39; correspond to pagination queries at the market level, not to the length of the returned array. This only takes effect empty.
1745+
When the &#39;contract&#39; parameter is not passed, the default is to query the risk limits for the top 100 markets. &#39;Limit&#39; and &#39;offset&#39; correspond to pagination queries at the market level, not to the length of the returned array. This only takes effect when the contract parameter is empty.
17461746

17471747
### Example
17481748

docs/EarnApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ null (empty response body)
583583

584584
<a name="findCoin"></a>
585585
# **findCoin**
586-
> List&lt;String&gt; findCoin(findCoin)
586+
> Object findCoin(findCoin)
587587
588588
Staking coins
589589

@@ -610,7 +610,7 @@ public class Example {
610610
EarnApi apiInstance = new EarnApi(defaultClient);
611611
FindCoin findCoin = new FindCoin(); // FindCoin |
612612
try {
613-
List<String> result = apiInstance.findCoin(findCoin);
613+
Object result = apiInstance.findCoin(findCoin);
614614
System.out.println(result);
615615
} catch (GateApiException e) {
616616
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
@@ -633,7 +633,7 @@ Name | Type | Description | Notes
633633

634634
### Return type
635635

636-
**List&lt;String&gt;**
636+
**Object**
637637

638638
### Authorization
639639

docs/FindCoin.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**coin** | **String** | Currency | [optional]
9-
**cointype** | **String** | Token Type: swap-Voucher, lock-Locked | [optional]
8+
**cointype** | **String** | Currency type: swap - voucher; lock - locked position; debt - US Treasury bond. | [optional]
109

docs/FuturesAccount.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
1313
**point** | **String** | Point card amount | [optional]
1414
**currency** | **String** | Settlement currency | [optional]
1515
**inDualMode** | **Boolean** | Whether dual mode is enabled | [optional]
16+
**positionMode** | **String** | Position mode: single - one-way, dual - dual-side, split - sub-positions (in_dual_mode is deprecated) | [optional]
1617
**enableCredit** | **Boolean** | Whether portfolio margin account mode is enabled | [optional]
1718
**positionInitialMargin** | **String** | Initial margin occupied by positions, applicable to unified account mode | [optional]
1819
**maintenanceMargin** | **String** | Maintenance margin occupied by positions, applicable to new classic account margin mode and unified account mode | [optional]

docs/FuturesAccountBook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
88
**time** | **Double** | Change time | [optional]
99
**change** | **String** | Change amount | [optional]
1010
**balance** | **String** | Balance after change | [optional]
11-
**type** | [**TypeEnum**](#TypeEnum) | Changing Type: - dnw: Deposit &amp; Withdraw - pnl: Profit &amp; Loss by reducing position - fee: Trading fee - refr: Referrer rebate - fund: Funding - point_dnw: point_fee: POINT Trading fee - point_refr: POINT Referrer rebate - bonus_offset: bouns deduction | [optional]
11+
**type** | [**TypeEnum**](#TypeEnum) | Change types: - dnw: Deposit and withdrawal - pnl: Profit and loss from position reduction - fee: Trading fees - refr: Referrer rebates - fund: Funding fees - point_dnw: Point card deposit and withdrawal - point_fee: Point card trading fees - point_refr: Point card referrer rebates - bonus_offset: Trial fund deduction | [optional]
1212
**text** | **String** | Comment | [optional]
1313
**contract** | **String** | Futures contract, the field is only available for data after 2023-10-30 | [optional]
1414
**tradeId** | **String** | trade id | [optional]

0 commit comments

Comments
 (0)