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
+6-6Lines changed: 6 additions & 6 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
4
4
5
-
- API version: v4.104.3
6
-
- SDK version: 6.104.3
5
+
- API version: v4.105.7
6
+
- SDK version: 7.1.7
7
7
8
8
Welcome to Gate API
9
9
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:
52
52
<dependency>
53
53
<groupId>io.gate</groupId>
54
54
<artifactId>gate-api</artifactId>
55
-
<version>6.104.3</version>
55
+
<version>7.1.7</version>
56
56
<scope>compile</scope>
57
57
</dependency>
58
58
```
@@ -62,7 +62,7 @@ Add this dependency to your project's POM:
62
62
Add this dependency to your project's build file:
63
63
64
64
```groovy
65
-
compile "io.gate:gate-api:6.104.3"
65
+
compile "io.gate:gate-api:7.1.7"
66
66
```
67
67
68
68
### Others
@@ -75,7 +75,7 @@ mvn clean package
75
75
76
76
Then manually install the following JARs:
77
77
78
-
*`target/gate-api-6.104.3.jar`
78
+
*`target/gate-api-7.1.7.jar`
79
79
*`target/lib/*.jar`
80
80
81
81
To install the API client library to your local Maven repository, simply execute:
*UnifiedApi* | [**getUserLeverageCurrencyConfig**](docs/UnifiedApi.md#getUserLeverageCurrencyConfig) | **GET** /unified/leverage/user_currency_config | Maximum and minimum currency leverage that can be set
**createTime** | **Double** | Created time of the contract | [optional]
45
45
**fundingCapRatio** | **String** | The factor for the maximum of the funding rate. Maximum of funding rate = (1/market maximum leverage - maintenance margin rate) * funding_cap_ratio | [optional]
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
273
273
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.
274
274
Long to =1546935600L; // Long | Specify end time in Unix seconds, default to current time.
275
275
try {
@@ -300,7 +300,7 @@ Name | Type | Description | Notes
**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]
304
304
**from** | **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. | [optional]
305
305
**to** | **Long**| Specify end time in Unix seconds, default to current time. | [optional]
306
306
@@ -352,7 +352,7 @@ public class Example {
352
352
Long from =1546905600L; // Long | Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified
353
353
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
354
354
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
356
356
try {
357
357
List<DeliveryCandlestick> result = apiInstance.listDeliveryCandlesticks(settle, contract)
358
358
.from(from)
@@ -383,7 +383,7 @@ Name | Type | Description | Notes
383
383
**from** | **Long**| Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified | [optional]
384
384
**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]
385
385
**limit** | **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. | [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]
387
387
388
388
### Return type
389
389
@@ -638,7 +638,7 @@ public class Example {
638
638
Integer limit =100; // Integer | Maximum number of records returned in a single list
639
639
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)
640
640
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
642
642
try {
643
643
List<FuturesAccountBook> result = apiInstance.listDeliveryAccountBook(settle)
644
644
.limit(limit)
@@ -668,7 +668,7 @@ Name | Type | Description | Notes
668
668
**limit** | **Integer**| Maximum number of records returned in a single list | [optional][default to 100]
669
669
**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]
670
670
**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 & 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 | [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]
Integer limit =100; // Integer | Maximum number of records returned in a single list
1078
1078
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
1080
1080
Integer countTotal =0; // Integer | Whether to return total number matched, defaults to 0 (no return)
1081
1081
try {
1082
1082
List<FuturesOrder> result = apiInstance.listDeliveryOrders(settle, status)
@@ -1109,7 +1109,7 @@ Name | Type | Description | Notes
**limit** | **Integer**| Maximum number of records returned in a single list | [optional][default to 100]
1111
1111
**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]
1113
1113
**countTotal** | **Integer**| Whether to return total number matched, defaults to 0 (no return) | [optional][default to 0][enum: 0, 1]
1114
1114
1115
1115
### Return type
@@ -1450,7 +1450,7 @@ public class Example {
1450
1450
Long order =12345L; // Long | Futures order ID, return related data only if specified
1451
1451
Integer limit =100; // Integer | Maximum number of records returned in a single list
1452
1452
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
1454
1454
Integer countTotal =0; // Integer | Whether to return total number matched, defaults to 0 (no return)
1455
1455
try {
1456
1456
List<MyFuturesTrade> result = apiInstance.getMyDeliveryTrades(settle)
@@ -1484,7 +1484,7 @@ Name | Type | Description | Notes
1484
1484
**order** | **Long**| Futures order ID, return related data only if specified | [optional]
1485
1485
**limit** | **Integer**| Maximum number of records returned in a single list | [optional][default to 100]
1486
1486
**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]
1488
1488
**countTotal** | **Integer**| Whether to return total number matched, defaults to 0 (no return) | [optional][default to 0][enum: 0, 1]
1489
1489
1490
1490
### Return type
@@ -1742,7 +1742,7 @@ Name | Type | Description | Notes
1742
1742
1743
1743
Query risk limit tiers
1744
1744
1745
-
When the 'contract' parameter is not passed, the default is to query the risk limits for the top 100 markets.'Limit' and 'offset' correspond to pagination queries at the market level, not to the length of the returned array. This only takes effect empty.
1745
+
When the 'contract' parameter is not passed, the default is to query the risk limits for the top 100 markets.'Limit' and 'offset' 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.
0 commit comments