Skip to content

Commit a471a03

Browse files
committed
release 6.78.0
1 parent 3e2855a commit a471a03

243 files changed

Lines changed: 24073 additions & 1201 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: 113 additions & 14 deletions
Large diffs are not rendered by default.

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

docs/AccountApi.md

Lines changed: 142 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Method | HTTP request | Description
1010
[**listSTPGroupsUsers**](AccountApi.md#listSTPGroupsUsers) | **GET** /account/stp_groups/{stp_id}/users | List users of the STP group
1111
[**addSTPGroupUsers**](AccountApi.md#addSTPGroupUsers) | **POST** /account/stp_groups/{stp_id}/users | Add users to the STP group
1212
[**deleteSTPGroupUsers**](AccountApi.md#deleteSTPGroupUsers) | **DELETE** /account/stp_groups/{stp_id}/users | Delete the user in the STP group
13+
[**getDebitFee**](AccountApi.md#getDebitFee) | **GET** /account/debit_fee | Query GT deduction configuration.
14+
[**setDebitFee**](AccountApi.md#setDebitFee) | **POST** /account/debit_fee | Set GT deduction.
1315

1416

1517
<a name="getAccountDetail"></a>
@@ -362,7 +364,7 @@ Name | Type | Description | Notes
362364

363365
<a name="deleteSTPGroupUsers"></a>
364366
# **deleteSTPGroupUsers**
365-
> List&lt;StpGroupUser&gt; deleteSTPGroupUsers(stpId, requestBody)
367+
> List&lt;StpGroupUser&gt; deleteSTPGroupUsers(stpId, userId)
366368
367369
Delete the user in the STP group
368370

@@ -390,9 +392,9 @@ public class Example {
390392

391393
AccountApi apiInstance = new AccountApi(defaultClient);
392394
Long stpId = 1L; // Long | STP Group ID
393-
List<Long> requestBody = Arrays.asList(); // List<Long> | User ID
395+
Long userId = 1L; // Long | STP user ID, multiple can be separated by commas
394396
try {
395-
List<StpGroupUser> result = apiInstance.deleteSTPGroupUsers(stpId, requestBody);
397+
List<StpGroupUser> result = apiInstance.deleteSTPGroupUsers(stpId, userId);
396398
System.out.println(result);
397399
} catch (GateApiException e) {
398400
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
@@ -412,7 +414,7 @@ public class Example {
412414
Name | Type | Description | Notes
413415
------------- | ------------- | ------------- | -------------
414416
**stpId** | **Long**| STP Group ID |
415-
**requestBody** | [**List&lt;Long&gt;**](Long.md)| User ID |
417+
**userId** | **Long**| STP user ID, multiple can be separated by commas |
416418

417419
### Return type
418420

@@ -424,11 +426,146 @@ Name | Type | Description | Notes
424426

425427
### HTTP request headers
426428

427-
- **Content-Type**: application/json
429+
- **Content-Type**: Not defined
430+
- **Accept**: application/json
431+
432+
### HTTP response details
433+
| Status code | Description | Response headers |
434+
|-------------|-------------|------------------|
435+
**200** | Success | - |
436+
437+
<a name="getDebitFee"></a>
438+
# **getDebitFee**
439+
> InlineResponse200 getDebitFee()
440+
441+
Query GT deduction configuration.
442+
443+
Query the current GT deduction configuration for the account.
444+
445+
### Example
446+
447+
```java
448+
// Import classes:
449+
import io.gate.gateapi.ApiClient;
450+
import io.gate.gateapi.ApiException;
451+
import io.gate.gateapi.Configuration;
452+
import io.gate.gateapi.GateApiException;
453+
import io.gate.gateapi.auth.*;
454+
import io.gate.gateapi.models.*;
455+
import io.gate.gateapi.api.AccountApi;
456+
457+
public class Example {
458+
public static void main(String[] args) {
459+
ApiClient defaultClient = Configuration.getDefaultApiClient();
460+
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
461+
462+
// Configure APIv4 authorization: apiv4
463+
defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
464+
465+
AccountApi apiInstance = new AccountApi(defaultClient);
466+
try {
467+
InlineResponse200 result = apiInstance.getDebitFee();
468+
System.out.println(result);
469+
} catch (GateApiException e) {
470+
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
471+
e.printStackTrace();
472+
} catch (ApiException e) {
473+
System.err.println("Exception when calling AccountApi#getDebitFee");
474+
System.err.println("Status code: " + e.getCode());
475+
System.err.println("Response headers: " + e.getResponseHeaders());
476+
e.printStackTrace();
477+
}
478+
}
479+
}
480+
```
481+
482+
### Parameters
483+
This endpoint does not need any parameter.
484+
485+
### Return type
486+
487+
[**InlineResponse200**](InlineResponse200.md)
488+
489+
### Authorization
490+
491+
[apiv4](../README.md#apiv4)
492+
493+
### HTTP request headers
494+
495+
- **Content-Type**: Not defined
428496
- **Accept**: application/json
429497

430498
### HTTP response details
431499
| Status code | Description | Response headers |
432500
|-------------|-------------|------------------|
433501
**200** | Success | - |
434502

503+
<a name="setDebitFee"></a>
504+
# **setDebitFee**
505+
> setDebitFee(inlineObject)
506+
507+
Set GT deduction.
508+
509+
Enable or disable GT deduction for the current account.
510+
511+
### Example
512+
513+
```java
514+
// Import classes:
515+
import io.gate.gateapi.ApiClient;
516+
import io.gate.gateapi.ApiException;
517+
import io.gate.gateapi.Configuration;
518+
import io.gate.gateapi.GateApiException;
519+
import io.gate.gateapi.auth.*;
520+
import io.gate.gateapi.models.*;
521+
import io.gate.gateapi.api.AccountApi;
522+
523+
public class Example {
524+
public static void main(String[] args) {
525+
ApiClient defaultClient = Configuration.getDefaultApiClient();
526+
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
527+
528+
// Configure APIv4 authorization: apiv4
529+
defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
530+
531+
AccountApi apiInstance = new AccountApi(defaultClient);
532+
InlineObject inlineObject = new InlineObject(); // InlineObject |
533+
try {
534+
apiInstance.setDebitFee(inlineObject);
535+
} catch (GateApiException e) {
536+
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
537+
e.printStackTrace();
538+
} catch (ApiException e) {
539+
System.err.println("Exception when calling AccountApi#setDebitFee");
540+
System.err.println("Status code: " + e.getCode());
541+
System.err.println("Response headers: " + e.getResponseHeaders());
542+
e.printStackTrace();
543+
}
544+
}
545+
}
546+
```
547+
548+
### Parameters
549+
550+
Name | Type | Description | Notes
551+
------------- | ------------- | ------------- | -------------
552+
**inlineObject** | [**InlineObject**](InlineObject.md)| |
553+
554+
### Return type
555+
556+
null (empty response body)
557+
558+
### Authorization
559+
560+
[apiv4](../README.md#apiv4)
561+
562+
### HTTP request headers
563+
564+
- **Content-Type**: application/json
565+
- **Accept**: Not defined
566+
567+
### HTTP response details
568+
| Status code | Description | Response headers |
569+
|-------------|-------------|------------------|
570+
**200** | Success | - |
571+

docs/AccountBalance.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
1010
**amount** | **String** | Account total balance amount | [optional]
1111
**currency** | [**CurrencyEnum**](#CurrencyEnum) | Currency | [optional]
12+
**unrealisedPnl** | **String** | Unrealised_pnl, this field will only appear in futures, options, delivery, and total accounts | [optional]
13+
**borrowed** | **String** | Borrowed,this field will only appear in margin and cross_margin accounts | [optional]
1214

1315
## Enum: CurrencyEnum
1416

docs/BatchAmendItem.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ Name | Type | Description | Notes
1313
**amount** | **String** | trade amount, only one of amount and price can be specified | [optional]
1414
**price** | **String** | trade price, only one of amount and price can be specified | [optional]
1515
**amendText** | **String** | Custom info during amending order | [optional]
16+
**actionMode** | **String** | Processing Mode: When placing an order, different fields are returned based on action_mode. This field is only valid during the request and is not included in the response result ACK: Asynchronous mode, only returns key order fields RESULT: No clearing information FULL: Full mode (default) | [optional]
1617

docs/BatchAmendOrderReq.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
# BatchAmendOrderReq
3+
4+
Modify contract order parameters
5+
6+
## Properties
7+
8+
Name | Type | Description | Notes
9+
------------ | ------------- | ------------- | -------------
10+
**orderId** | **Long** | Order id, order_id and text must contain at least one | [optional]
11+
**text** | **String** | User-defined order text, at least one of order_id and text must be passed | [optional]
12+
**size** | **Long** | The new order size, including the executed order size. - If it is less than or equal to the executed quantity, the order will be cancelled. - The new order direction must be consistent with the original one. - The size of the closing order cannot be modified. - For orders that only reduce positions, if the size is increased, other orders that only reduce positions may be kicked out. - If the price is not modified, reducing the size will not affect the depth of the queue, and increasing the size will place it at the end of the current price. | [optional]
13+
**price** | **String** | New order price. | [optional]
14+
**amendText** | **String** | Custom info during amending order | [optional]
15+

docs/BatchFuturesOrder.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
1414
**user** | **Integer** | User ID | [optional] [readonly]
1515
**createTime** | **Double** | Creation time of order | [optional] [readonly]
1616
**finishTime** | **Double** | Order finished time. Not returned if order is open | [optional] [readonly]
17-
**finishAs** | [**FinishAsEnum**](#FinishAsEnum) | How the order was finished. - filled: all filled - cancelled: manually cancelled - liquidated: cancelled because of liquidation - ioc: time in force is &#x60;IOC&#x60;, finish immediately - auto_deleveraged: finished by ADL - reduce_only: cancelled because of increasing position while &#x60;reduce-only&#x60; set- position_closed: cancelled because of position close - stp: cancelled because self trade prevention | [optional] [readonly]
17+
**finishAs** | [**FinishAsEnum**](#FinishAsEnum) | How the order was finished. - filled: all filled - cancelled: manually cancelled - liquidated: cancelled because of liquidation - ioc: time in force is &#x60;IOC&#x60;, finish immediately - auto_deleveraged: finished by ADL - reduce_only: cancelled because of increasing position while &#x60;reduce-only&#x60; set- position_closed: cancelled because of position close - position_closed: canceled because the position was closed - reduce_out: only reduce positions by excluding hard-to-fill orders - stp: cancelled because self trade prevention | [optional] [readonly]
1818
**status** | [**StatusEnum**](#StatusEnum) | Order status - &#x60;open&#x60;: waiting to be traded - &#x60;finished&#x60;: finished | [optional] [readonly]
1919
**contract** | **String** | Futures contract | [optional]
2020
**size** | **Long** | Order size. Specify positive number to make a bid, and negative number to ask | [optional]

docs/BatchOrder.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Batch order details
77

88
Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
10+
**orderId** | **String** | Order ID | [optional]
11+
**amendText** | **String** | The custom data that the user remarked when amending the order | [optional]
1012
**text** | **String** | User defined information. If not empty, must follow the rules below: 1. prefixed with &#x60;t-&#x60; 2. no longer than 28 bytes without &#x60;t-&#x60; prefix 3. can only include 0-9, A-Z, a-z, underscore(_), hyphen(-) or dot(.) | [optional]
1113
**succeeded** | **Boolean** | Whether the batch of orders succeeded | [optional]
1214
**label** | **String** | Error label, if any, otherwise an empty string | [optional]
@@ -26,10 +28,12 @@ Name | Type | Description | Notes
2628
**timeInForce** | [**TimeInForceEnum**](#TimeInForceEnum) | Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee - fok: FillOrKill, fill either completely or none | [optional]
2729
**iceberg** | **String** | Amount to display for the iceberg order. Null or 0 for normal orders. Hiding all amount is not supported. | [optional]
2830
**autoBorrow** | **Boolean** | Used in margin or cross margin trading to allow automatic loan of insufficient amount if balance is not enough. | [optional]
29-
**autoRepay** | **Boolean** | Enable or disable automatic repayment for automatic borrow loan generated by cross margin order. Default is disabled. Note that: 1. This field is only effective for cross margin orders. Margin account does not support setting auto repayment for orders. 2. &#x60;auto_borrow&#x60; and &#x60;auto_repay&#x60; cannot be both set to true in one order. | [optional]
31+
**autoRepay** | **Boolean** | Enable or disable automatic repayment for automatic borrow loan generated by cross margin order. Default is disabled. Note that: 1. This field is only effective for cross margin orders. Margin account does not support setting auto repayment for orders. 2. &#x60;auto_borrow&#x60; and &#x60;auto_repay&#x60; can be both set to true in one order. | [optional]
3032
**left** | **String** | Amount left to fill | [optional] [readonly]
33+
**filledAmount** | **String** | Amount traded to fill | [optional] [readonly]
3134
**fillPrice** | **String** | Total filled in quote currency. Deprecated in favor of &#x60;filled_total&#x60; | [optional] [readonly]
3235
**filledTotal** | **String** | Total filled in quote currency | [optional] [readonly]
36+
**avgDealPrice** | **String** | Average fill price | [optional] [readonly]
3337
**fee** | **String** | Fee deducted | [optional] [readonly]
3438
**feeCurrency** | **String** | Fee currency unit | [optional] [readonly]
3539
**pointFee** | **String** | Points used to deduct fee | [optional] [readonly]

docs/BorrowCurrencyInfo.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
# BorrowCurrencyInfo
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**currency** | **String** | Currency | [optional]
9+
**indexPrice** | **String** | Currency Index Price | [optional]
10+
**leftRepayPrincipal** | **String** | outstanding principal | [optional]
11+
**leftRepayInterest** | **String** | outstanding interest | [optional]
12+
**leftRepayUsdt** | **String** | Value of left total repayments amount in USDT | [optional]
13+

0 commit comments

Comments
 (0)