Skip to content

Commit b3ec14a

Browse files
author
gate
committed
update to v7.2.144
1 parent 5101ef0 commit b3ec14a

84 files changed

Lines changed: 2773 additions & 380 deletions

File tree

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: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
Gate API
44

5-
- API version: v4.106.132
6-
- SDK version: 7.2.132
5+
- API version: v4.106.144
6+
- SDK version: 7.2.144
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>7.2.132</version>
55+
<version>7.2.144</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:7.2.132"
65+
compile "io.gate:gate-api:7.2.144"
6666
```
6767

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

7676
Then manually install the following JARs:
7777

78-
* `target/gate-api-7.2.132.jar`
78+
* `target/gate-api-7.2.144.jar`
7979
* `target/lib/*.jar`
8080

8181
To install the API client library to your local Maven repository, simply execute:
@@ -162,6 +162,7 @@ Class | Method | HTTP request | Description
162162
*AlphaApi* | [**listAlphaCurrencies**](docs/AlphaApi.md#listAlphaCurrencies) | **GET** /alpha/currencies | Query currency information
163163
*AlphaApi* | [**listAlphaTickers**](docs/AlphaApi.md#listAlphaTickers) | **GET** /alpha/tickers | Query currency ticker
164164
*AlphaApi* | [**listAlphaTokens**](docs/AlphaApi.md#listAlphaTokens) | **GET** /alpha/tokens | Query Token Information
165+
*AnnouncementApi* | [**listAnnouncementArticles**](docs/AnnouncementApi.md#listAnnouncementArticles) | **POST** /ann/list_article | List announcement articles
165166
*AssetswapApi* | [**listAssetSwapAssets**](docs/AssetswapApi.md#listAssetSwapAssets) | **GET** /asset-swap/asset/list | Portfolio optimization — currency list
166167
*AssetswapApi* | [**getAssetSwapConfig**](docs/AssetswapApi.md#getAssetSwapConfig) | **GET** /asset-swap/config | Portfolio optimization — configuration
167168
*AssetswapApi* | [**evaluateAssetSwap**](docs/AssetswapApi.md#evaluateAssetSwap) | **GET** /asset-swap/evaluate | Portfolio optimization — valuation
@@ -660,6 +661,11 @@ Class | Method | HTTP request | Description
660661
- [AlphaCurrency](docs/AlphaCurrency.md)
661662
- [AlphaTicker](docs/AlphaTicker.md)
662663
- [AmendOptionsOrderRequest](docs/AmendOptionsOrderRequest.md)
664+
- [AnnouncementArticle](docs/AnnouncementArticle.md)
665+
- [AnnouncementArticleLanguage](docs/AnnouncementArticleLanguage.md)
666+
- [AnnouncementArticleListData](docs/AnnouncementArticleListData.md)
667+
- [AnnouncementArticleListRequest](docs/AnnouncementArticleListRequest.md)
668+
- [AnnouncementArticleListResponse](docs/AnnouncementArticleListResponse.md)
663669
- [ApiResponseAssetSwapConfig](docs/ApiResponseAssetSwapConfig.md)
664670
- [ApiResponseAssetSwapEvaluate](docs/ApiResponseAssetSwapEvaluate.md)
665671
- [ApiResponseAssetSwapListAssets](docs/ApiResponseAssetSwapListAssets.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 = '7.2.132'
6+
version = '7.2.144'
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 := "7.2.132",
5+
version := "7.2.144",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/AccountKeyInfoPerms.md

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

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**name** | **String** | Permission function name (no value will be cleared) - &#x60;wallet&#x60;: wallet - &#x60;spot&#x60;: spot/margin - &#x60;futures&#x60;: perpetual contract - &#x60;delivery&#x60;: delivery contract - &#x60;earn&#x60;: earn - &#x60;custody&#x60;: custody - &#x60;options&#x60;: options - &#x60;account&#x60;: account information - &#x60;loan&#x60;: lending - &#x60;margin&#x60;: margin - &#x60;unified&#x60;: unified account - &#x60;copy&#x60;: copy trading- &#x60;pilot&#x60;: pilot - &#x60;otc&#x60;: otc - &#x60;alpha&#x60;: alpha - &#x60;crossx&#x60;: cross-exchange | [optional]
8+
**name** | **String** | Permission function name (cleared if no value is provided) - &#x60;wallet&#x60;: wallet - &#x60;spot&#x60;: spot/margin - &#x60;futures&#x60;: perpetual contract - &#x60;delivery&#x60;: delivery contract - &#x60;earn&#x60;: earn - &#x60;custody&#x60;: custody - &#x60;options&#x60;: options - &#x60;account&#x60;: account information - &#x60;loan&#x60;: lending - &#x60;margin&#x60;: margin - &#x60;unified&#x60;: unified account - &#x60;copy&#x60;: copy trading - &#x60;pilot&#x60;: pilot - &#x60;otc&#x60;: otc - &#x60;alpha&#x60;: alpha - &#x60;crossx&#x60;: cross-exchange - &#x60;tradfi_spot&#x60;: stocks - &#x60;cfd&#x60;: CFD - &#x60;cfd_copy&#x60;: CFD lead trading - &#x60;stock_copy&#x60;: stock lead trading - &#x60;sub_accounts&#x60;: sub-accounts | [optional]
99
**readOnly** | **Boolean** | Read Only | [optional]
1010

docs/AnnouncementApi.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# AnnouncementApi
2+
3+
All URIs are relative to *https://api.gateio.ws/api/v4*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**listAnnouncementArticles**](AnnouncementApi.md#listAnnouncementArticles) | **POST** /ann/list_article | List announcement articles
8+
9+
10+
<a name="listAnnouncementArticles"></a>
11+
# **listAnnouncementArticles**
12+
> AnnouncementArticleListResponse listAnnouncementArticles(announcementArticleListRequest)
13+
14+
List announcement articles
15+
16+
Query announcement articles with pagination and filters for title, category, language, time, and other criteria. Send query parameters in the JSON request body. Both page and size are optional and must be strings when provided. No API key is required.
17+
18+
### Example
19+
20+
```java
21+
// Import classes:
22+
import io.gate.gateapi.ApiClient;
23+
import io.gate.gateapi.ApiException;
24+
import io.gate.gateapi.Configuration;
25+
import io.gate.gateapi.GateApiException;
26+
import io.gate.gateapi.models.*;
27+
import io.gate.gateapi.api.AnnouncementApi;
28+
29+
public class Example {
30+
public static void main(String[] args) {
31+
ApiClient defaultClient = Configuration.getDefaultApiClient();
32+
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
33+
34+
AnnouncementApi apiInstance = new AnnouncementApi(defaultClient);
35+
AnnouncementArticleListRequest announcementArticleListRequest = new AnnouncementArticleListRequest(); // AnnouncementArticleListRequest |
36+
try {
37+
AnnouncementArticleListResponse result = apiInstance.listAnnouncementArticles(announcementArticleListRequest);
38+
System.out.println(result);
39+
} catch (GateApiException e) {
40+
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
41+
e.printStackTrace();
42+
} catch (ApiException e) {
43+
System.err.println("Exception when calling AnnouncementApi#listAnnouncementArticles");
44+
System.err.println("Status code: " + e.getCode());
45+
System.err.println("Response headers: " + e.getResponseHeaders());
46+
e.printStackTrace();
47+
}
48+
}
49+
}
50+
```
51+
52+
### Parameters
53+
54+
Name | Type | Description | Notes
55+
------------- | ------------- | ------------- | -------------
56+
**announcementArticleListRequest** | [**AnnouncementArticleListRequest**](AnnouncementArticleListRequest.md)| |
57+
58+
### Return type
59+
60+
[**AnnouncementArticleListResponse**](AnnouncementArticleListResponse.md)
61+
62+
### Authorization
63+
64+
No authorization required
65+
66+
### HTTP request headers
67+
68+
- **Content-Type**: application/json
69+
- **Accept**: application/json
70+
71+
### HTTP response details
72+
| Status code | Description | Response headers |
73+
|-------------|-------------|------------------|
74+
**200** | Announcement article list response | - |
75+

docs/AnnouncementArticle.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
# AnnouncementArticle
3+
4+
Announcement article
5+
6+
## Properties
7+
8+
Name | Type | Description | Notes
9+
------------ | ------------- | ------------- | -------------
10+
**id** | **Integer** | Announcement article ID. |
11+
**title** | **String** | Article title |
12+
**brief** | **String** | Article summary |
13+
**created** | **String** | Article creation time, returned as a string. |
14+
**updated** | **String** | Article update time, returned as a string. |
15+
**releaseTime** | **String** | Article publication time, returned as a string. |
16+
**views** | **Integer** | View count |
17+
**author** | **String** | Author |
18+
**authorId** | **Integer** | Article author ID. |
19+
**tags** | **String** | Article tags |
20+
**cate** | **String** | Category to which the article belongs. |
21+
**isTop** | **Integer** | Pinned status indicator for the article. |
22+
**cateId** | **Integer** | ID of the category to which the article belongs. |
23+
**source** | **String** | Article source |
24+
**contentLangList** | [**List&lt;AnnouncementArticleLanguage&gt;**](AnnouncementArticleLanguage.md) | Languages supported by the article, with the code and name of each language. |
25+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
# AnnouncementArticleLanguage
3+
4+
Announcement article language
5+
6+
## Properties
7+
8+
Name | Type | Description | Notes
9+
------------ | ------------- | ------------- | -------------
10+
**code** | **String** | Language code, for example \&quot;cn\&quot;. |
11+
**name** | **String** | Language name |
12+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
# AnnouncementArticleListData
3+
4+
Announcement articles and total count
5+
6+
## Properties
7+
8+
Name | Type | Description | Notes
9+
------------ | ------------- | ------------- | -------------
10+
**list** | [**List&lt;AnnouncementArticle&gt;**](AnnouncementArticle.md) | Announcement article list |
11+
**total** | **Integer** | Total number of announcement articles. |
12+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
# AnnouncementArticleListRequest
3+
4+
Announcement article list query
5+
6+
## Properties
7+
8+
Name | Type | Description | Notes
9+
------------ | ------------- | ------------- | -------------
10+
**titleQuery** | **String** | Article title to use when querying announcements. | [optional]
11+
**page** | **String** | Page number. Optional. Pass as a string, for example \&quot;1\&quot;. | [optional]
12+
**size** | **String** | Number of articles to return per page. Optional. Pass as a string, for example \&quot;5\&quot;. | [optional]
13+
**tags** | **String** | Article tags | [optional]
14+
**timer** | **String** | Query announcements from the last N days, with N passed as a string. For example, on the 10th, pass \&quot;10\&quot; to query announcements from the 1st through the 10th. | [optional]
15+
**cateName** | **String** | Announcement category name. | [optional]
16+
**cateLevel** | **String** | Category level, passed as a string: \&quot;1\&quot; or \&quot;2\&quot;. | [optional]
17+
**subWebsiteId** | **String** | Subsite ID, passed as a string: \&quot;0\&quot; for the main site or \&quot;177\&quot; for the Turkey site. Defaults to \&quot;0\&quot;. | [optional]
18+
**pinned** | **Integer** | Whether to include pinned articles: 1 to include them or 0 to exclude them. Defaults to 1. | [optional]
19+
**updateAfter** | **Integer** | Query announcement articles updated after this timestamp. | [optional]
20+
**lang** | **String** | Language code, for example \&quot;cn\&quot;. | [optional]
21+
**filterEmptyContent** | **Integer** | Whether to exclude articles with empty content in the current language: 0 to keep them or 1 to exclude them. Defaults to 1. | [optional]
22+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
# AnnouncementArticleListResponse
3+
4+
Announcement article list response
5+
6+
## Properties
7+
8+
Name | Type | Description | Notes
9+
------------ | ------------- | ------------- | -------------
10+
**code** | **Integer** | Business status code |
11+
**data** | [**AnnouncementArticleListData**](AnnouncementArticleListData.md) | |
12+
**message** | **String** | Response message |
13+
**version** | **String** | Response version |
14+

0 commit comments

Comments
 (0)