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
+59-6Lines changed: 59 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
# gate-api
2
2
3
3
Gate API v4
4
-
- API version: 1.3.0
4
+
- API version: 4.5.0
5
5
6
-
APIv4 futures provides all sorts of futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
6
+
APIv4 provides spot, margin and futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
7
7
8
8
For more information, please visit [https://gate.io/page/contacts](https://gate.io/page/contacts)
9
9
@@ -40,7 +40,7 @@ Add this dependency to your project's POM:
40
40
<dependency>
41
41
<groupId>io.gate</groupId>
42
42
<artifactId>gate-api</artifactId>
43
-
<version>1.3.0</version>
43
+
<version>4.5.0</version>
44
44
<scope>compile</scope>
45
45
</dependency>
46
46
```
@@ -50,7 +50,7 @@ Add this dependency to your project's POM:
50
50
Add this dependency to your project's build file:
51
51
52
52
```groovy
53
-
compile "io.gate:gate-api:1.3.0"
53
+
compile "io.gate:gate-api:4.5.0"
54
54
```
55
55
56
56
### Others
@@ -63,7 +63,7 @@ mvn clean package
63
63
64
64
Then manually install the following JARs:
65
65
66
-
*`target/gate-api-1.3.0.jar`
66
+
*`target/gate-api-4.5.0.jar`
67
67
*`target/lib/*.jar`
68
68
69
69
## Getting Started
@@ -101,17 +101,21 @@ public class FuturesApiExample {
101
101
102
102
## Documentation for API Endpoints
103
103
104
-
All URIs are relative to *https://fx-api.gateio.ws/api/v4*
104
+
All URIs are relative to *https://api.gateio.ws/api/v4*
*FuturesApi* | [**cancelPriceTriggeredOrder**](docs/FuturesApi.md#cancelPriceTriggeredOrder) | **DELETE** /futures/price_orders/{order_id} | Cancel a single order
111
+
*FuturesApi* | [**cancelPriceTriggeredOrderList**](docs/FuturesApi.md#cancelPriceTriggeredOrderList) | **DELETE** /futures/price_orders | Cancel all open orders
110
112
*FuturesApi* | [**createOrder**](docs/FuturesApi.md#createOrder) | **POST** /futures/orders | Create a futures order
113
+
*FuturesApi* | [**createPriceTriggeredOrder**](docs/FuturesApi.md#createPriceTriggeredOrder) | **POST** /futures/price_orders | Create a price-triggered order
111
114
*FuturesApi* | [**getFuturesContract**](docs/FuturesApi.md#getFuturesContract) | **GET** /futures/contracts/{contract} | Get a single contract
112
115
*FuturesApi* | [**getMyTrades**](docs/FuturesApi.md#getMyTrades) | **GET** /futures/my_trades | List personal trading history
113
116
*FuturesApi* | [**getOrder**](docs/FuturesApi.md#getOrder) | **GET** /futures/orders/{order_id} | Get a single order
114
117
*FuturesApi* | [**getPosition**](docs/FuturesApi.md#getPosition) | **GET** /futures/positions/{contract} | Get single position
118
+
*FuturesApi* | [**getPriceTriggeredOrder**](docs/FuturesApi.md#getPriceTriggeredOrder) | **GET** /futures/price_orders/{order_id} | Get a single order
115
119
*FuturesApi* | [**listFuturesAccountBook**](docs/FuturesApi.md#listFuturesAccountBook) | **GET** /futures/account_book | Query account book
0 commit comments