Skip to content

Commit 622e428

Browse files
author
gate
committed
update to v7.2.6
1 parent 1fe9582 commit 622e428

11 files changed

Lines changed: 475 additions & 51 deletions

File tree

README.md

Lines changed: 7 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.4
6-
- SDK version: 7.2.4
5+
- API version: v4.106.6
6+
- SDK version: 7.2.6
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.4</version>
55+
<version>7.2.6</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.4"
65+
compile "io.gate:gate-api:7.2.6"
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.4.jar`
78+
* `target/gate-api-7.2.6.jar`
7979
* `target/lib/*.jar`
8080

8181
To install the API client library to your local Maven repository, simply execute:
@@ -588,11 +588,13 @@ Class | Method | HTTP request | Description
588588
- [OptionsMySettlements](docs/OptionsMySettlements.md)
589589
- [OptionsMyTrade](docs/OptionsMyTrade.md)
590590
- [OptionsOrder](docs/OptionsOrder.md)
591+
- [OptionsOrderBook](docs/OptionsOrderBook.md)
591592
- [OptionsPosition](docs/OptionsPosition.md)
592593
- [OptionsPositionClose](docs/OptionsPositionClose.md)
593594
- [OptionsPositionCloseOrder](docs/OptionsPositionCloseOrder.md)
594595
- [OptionsSettlement](docs/OptionsSettlement.md)
595596
- [OptionsTicker](docs/OptionsTicker.md)
597+
- [OptionsTrade](docs/OptionsTrade.md)
596598
- [OptionsUnderlying](docs/OptionsUnderlying.md)
597599
- [OptionsUnderlyingTicker](docs/OptionsUnderlyingTicker.md)
598600
- [Order](docs/Order.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.4'
6+
version = '7.2.6'
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.4",
5+
version := "7.2.6",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/OptionsApi.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ Name | Type | Description | Notes
521521

522522
<a name="listOptionsOrderBook"></a>
523523
# **listOptionsOrderBook**
524-
> FuturesOrderBook listOptionsOrderBook(contract).interval(interval).limit(limit).withId(withId).execute();
524+
> OptionsOrderBook listOptionsOrderBook(contract).interval(interval).limit(limit).withId(withId).execute();
525525
526526
Query options contract order book
527527

@@ -549,7 +549,7 @@ public class Example {
549549
Integer limit = 10; // Integer | Number of depth levels
550550
Boolean withId = false; // Boolean | Whether to return depth update ID. This ID increments by 1 each time the depth changes
551551
try {
552-
FuturesOrderBook result = apiInstance.listOptionsOrderBook(contract)
552+
OptionsOrderBook result = apiInstance.listOptionsOrderBook(contract)
553553
.interval(interval)
554554
.limit(limit)
555555
.withId(withId)
@@ -579,7 +579,7 @@ Name | Type | Description | Notes
579579

580580
### Return type
581581

582-
[**FuturesOrderBook**](FuturesOrderBook.md)
582+
[**OptionsOrderBook**](OptionsOrderBook.md)
583583

584584
### Authorization
585585

@@ -802,7 +802,7 @@ No authorization required
802802

803803
<a name="listOptionsUnderlyingCandlesticks"></a>
804804
# **listOptionsUnderlyingCandlesticks**
805-
> List&lt;FuturesCandlestick&gt; listOptionsUnderlyingCandlesticks(underlying).limit(limit).from(from).to(to).interval(interval).execute();
805+
> List&lt;OptionsCandlestick&gt; listOptionsUnderlyingCandlesticks(underlying).limit(limit).from(from).to(to).interval(interval).execute();
806806
807807
Underlying index price candlestick chart
808808

@@ -829,7 +829,7 @@ public class Example {
829829
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
830830
String interval = "5m"; // String | Time interval between data points
831831
try {
832-
List<FuturesCandlestick> result = apiInstance.listOptionsUnderlyingCandlesticks(underlying)
832+
List<OptionsCandlestick> result = apiInstance.listOptionsUnderlyingCandlesticks(underlying)
833833
.limit(limit)
834834
.from(from)
835835
.to(to)
@@ -861,7 +861,7 @@ Name | Type | Description | Notes
861861

862862
### Return type
863863

864-
[**List&lt;FuturesCandlestick&gt;**](FuturesCandlestick.md)
864+
[**List&lt;OptionsCandlestick&gt;**](OptionsCandlestick.md)
865865

866866
### Authorization
867867

@@ -879,7 +879,7 @@ No authorization required
879879

880880
<a name="listOptionsTrades"></a>
881881
# **listOptionsTrades**
882-
> List&lt;FuturesTrade&gt; listOptionsTrades().contract(contract).type(type).limit(limit).offset(offset).from(from).to(to).execute();
882+
> List&lt;OptionsTrade&gt; listOptionsTrades().contract(contract).type(type).limit(limit).offset(offset).from(from).to(to).execute();
883883
884884
Market trade records
885885

@@ -907,7 +907,7 @@ public class Example {
907907
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)
908908
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
909909
try {
910-
List<FuturesTrade> result = apiInstance.listOptionsTrades()
910+
List<OptionsTrade> result = apiInstance.listOptionsTrades()
911911
.contract(contract)
912912
.type(type)
913913
.limit(limit)
@@ -942,7 +942,7 @@ Name | Type | Description | Notes
942942

943943
### Return type
944944

945-
[**List&lt;FuturesTrade&gt;**](FuturesTrade.md)
945+
[**List&lt;OptionsTrade&gt;**](OptionsTrade.md)
946946

947947
### Authorization
948948

docs/OptionsOrderBook.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
# OptionsOrderBook
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**id** | **Long** | Order Book ID. Increases by 1 on every order book change. Set &#x60;with_id&#x3D;true&#x60; to include this field in response | [optional]
9+
**current** | **Double** | Response data generation timestamp | [optional]
10+
**update** | **Double** | Order book changed timestamp | [optional]
11+
**asks** | [**List&lt;FuturesOrderBookItem1&gt;**](FuturesOrderBookItem1.md) | Ask Depth |
12+
**bids** | [**List&lt;FuturesOrderBookItem1&gt;**](FuturesOrderBookItem1.md) | Bid Depth |
13+

docs/OptionsTrade.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
# OptionsTrade
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**id** | **Long** | Fill ID | [optional]
9+
**createTime** | **Long** | Fill Time | [optional]
10+
**contract** | **String** | Options contract name | [optional]
11+
**size** | **Long** | Trading size | [optional]
12+
**price** | **String** | 成交价格 (计价货币, 单位:标的对应的期权价格) | [optional]
13+

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>7.2.4</version>
8+
<version>7.2.6</version>
99
<url>https://github.com/gate/gateapi-java.git</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/7.2.4/java");
116+
setUserAgent("OpenAPI-Generator/7.2.6/java");
117117

118118
// Set default X-Gate-Size-Decimal header for futures API
119119
addDefaultHeader("X-Gate-Size-Decimal", "1");

0 commit comments

Comments
 (0)