Skip to content

Commit fb00af3

Browse files
author
gate
committed
update to v7.2.0
1 parent dbebaae commit fb00af3

75 files changed

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

33
Gate API
44

5-
- API version: v4.105.30
6-
- SDK version: 7.1.30
5+
- API version: v4.106.0
6+
- SDK version: 7.2.0
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.1.30</version>
55+
<version>7.2.0</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.1.30"
65+
compile "io.gate:gate-api:7.2.0"
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.1.30.jar`
78+
* `target/gate-api-7.2.0.jar`
7979
* `target/lib/*.jar`
8080

8181
To install the API client library to your local Maven repository, simply execute:
@@ -487,10 +487,20 @@ Class | Method | HTTP request | Description
487487
- [CurrencyPair](docs/CurrencyPair.md)
488488
- [CurrencyQuota](docs/CurrencyQuota.md)
489489
- [DebitFee](docs/DebitFee.md)
490+
- [DeliveryAccount](docs/DeliveryAccount.md)
491+
- [DeliveryAccountBook](docs/DeliveryAccountBook.md)
490492
- [DeliveryCandlestick](docs/DeliveryCandlestick.md)
491493
- [DeliveryContract](docs/DeliveryContract.md)
494+
- [DeliveryLimitRiskTiers](docs/DeliveryLimitRiskTiers.md)
495+
- [DeliveryLiquidate](docs/DeliveryLiquidate.md)
496+
- [DeliveryMyTrade](docs/DeliveryMyTrade.md)
497+
- [DeliveryOrder](docs/DeliveryOrder.md)
498+
- [DeliveryOrderBook](docs/DeliveryOrderBook.md)
499+
- [DeliveryPosition](docs/DeliveryPosition.md)
500+
- [DeliveryPositionClose](docs/DeliveryPositionClose.md)
492501
- [DeliverySettlement](docs/DeliverySettlement.md)
493502
- [DeliveryTicker](docs/DeliveryTicker.md)
503+
- [DeliveryTrade](docs/DeliveryTrade.md)
494504
- [DepositAddress](docs/DepositAddress.md)
495505
- [DepositRecord](docs/DepositRecord.md)
496506
- [DualGetOrders](docs/DualGetOrders.md)
@@ -523,6 +533,7 @@ Class | Method | HTTP request | Description
523533
- [FuturesOrderAmendment](docs/FuturesOrderAmendment.md)
524534
- [FuturesOrderBook](docs/FuturesOrderBook.md)
525535
- [FuturesOrderBookItem](docs/FuturesOrderBookItem.md)
536+
- [FuturesOrderBookItem1](docs/FuturesOrderBookItem1.md)
526537
- [FuturesPositionCrossMode](docs/FuturesPositionCrossMode.md)
527538
- [FuturesPremiumIndex](docs/FuturesPremiumIndex.md)
528539
- [FuturesPriceTrigger](docs/FuturesPriceTrigger.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.1.30'
6+
version = '7.2.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 := "7.1.30",
5+
version := "7.2.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/AccountApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ Name | Type | Description | Notes
356356
357357
Query users in the STP user group
358358

359-
Only the main account that created this STP group can query the account ID list in the current STP group
359+
Only the main account that created this STP group can query the account ID list of the current STP group
360360

361361
### Example
362362

docs/AccountDetail.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ Name | Type | Description | Notes
1212
**userId** | **Long** | User ID | [optional]
1313
**tier** | **Long** | User VIP level | [optional]
1414
**key** | [**AccountDetailKey**](AccountDetailKey.md) | | [optional]
15-
**copyTradingRole** | **Integer** | User role: 0 - Normal user, 1 - Copy trading leader, 2 - Follower, 3 - Both leader and follower | [optional]
15+
**copyTradingRole** | **Integer** | User role: 0 - Normal user 1 - Copy trading leader 2 - Copy trading follower 3 - Both leader and follower | [optional]
1616

docs/BatchAmendOrderReq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
1010
**orderId** | **Long** | Order id, order_id and text must contain at least one | [optional]
1111
**text** | **String** | User-defined order text, at least one of order_id and text must be passed | [optional]
12-
**size** | **Long** | New order size, including filled size. - If less than or equal to the filled quantity, the order will be cancelled. - The new order side must be identical to the original one. - Close order size cannot be modified. - For reduce-only orders, increasing the size may cancel other reduce-only orders. - If the price is not modified, decreasing the size will not affect the depth queue, while increasing the size will place it at the end of the current price level. | [optional]
12+
**size** | **String** | New order size, including filled size. - If less than or equal to the filled quantity, the order will be cancelled. - The new order side must be identical to the original one. - Close order size cannot be modified. - For reduce-only orders, increasing the size may cancel other reduce-only orders. - If the price is not modified, decreasing the size will not affect the depth queue, while increasing the size will place it at the end of the current price level. | [optional]
1313
**price** | **String** | New order price | [optional]
1414
**amendText** | **String** | Custom info during order amendment | [optional]
1515

docs/BatchFuturesOrder.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ Name | Type | Description | Notes
1717
**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 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;: Pending - &#x60;finished&#x60;: Completed | [optional] [readonly]
1919
**contract** | **String** | Futures contract | [optional]
20-
**size** | **Long** | Required. Trading quantity. Positive for buy, negative for sell. Set to 0 for close position orders. | [optional]
21-
**iceberg** | **Long** | Display size for iceberg orders. 0 for non-iceberg orders. Note that hidden portions are charged taker fees. | [optional]
20+
**size** | **String** | Required. Trading quantity. Positive for buy, negative for sell. Set to 0 for close position orders. | [optional]
21+
**iceberg** | **String** | Display size for iceberg orders. 0 for non-iceberg orders. Note that hidden portions are charged taker fees. | [optional]
2222
**price** | **String** | Order price. Price of 0 with &#x60;tif&#x60; set to &#x60;ioc&#x60; represents a market order. | [optional]
2323
**close** | **Boolean** | Set as &#x60;true&#x60; to close the position, with &#x60;size&#x60; set to 0 | [optional]
2424
**isClose** | **Boolean** | Is the order to close position | [optional] [readonly]
2525
**reduceOnly** | **Boolean** | Set as &#x60;true&#x60; to be reduce-only order | [optional]
2626
**isReduceOnly** | **Boolean** | Is the order reduce-only | [optional] [readonly]
2727
**isLiq** | **Boolean** | Is the order for liquidation | [optional] [readonly]
2828
**tif** | [**TifEnum**](#TifEnum) | 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]
29-
**left** | **Long** | Unfilled quantity | [optional] [readonly]
29+
**left** | **String** | Unfilled quantity | [optional] [readonly]
3030
**fillPrice** | **String** | Fill price | [optional] [readonly]
3131
**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(.) Besides user defined information, reserved contents are listed below, denoting how the order is created: - web: from web - api: from API - app: from mobile phones - auto_deleveraging: from ADL - liquidation: from liquidation - insurance: from insurance | [optional]
3232
**tkfr** | **String** | Taker fee | [optional] [readonly]

docs/Contract.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ Name | Type | Description | Notes
2727
**riskLimitBase** | **String** | Base risk limit (deprecated) | [optional]
2828
**riskLimitStep** | **String** | Risk limit adjustment step (deprecated) | [optional]
2929
**riskLimitMax** | **String** | Maximum risk limit allowed by the contract (deprecated). It is recommended to use /futures/{settle}/risk_limit_tiers to query risk limits | [optional]
30-
**orderSizeMin** | **Long** | Minimum order size allowed by the contract | [optional]
31-
**orderSizeMax** | **Long** | Maximum order size allowed by the contract | [optional]
30+
**orderSizeMin** | **String** | Minimum order size allowed by the contract | [optional]
31+
**orderSizeMax** | **String** | Maximum order size allowed by the contract | [optional]
3232
**orderPriceDeviate** | **String** | Maximum allowed deviation between order price and current mark price. The order price &#x60;order_price&#x60; must satisfy the following condition: abs(order_price - mark_price) &lt;&#x3D; mark_price * order_price_deviate | [optional]
3333
**refDiscountRate** | **String** | Trading fee discount for referred users | [optional]
3434
**refRebateRate** | **String** | Commission rate for referrers | [optional]
3535
**orderbookId** | **Long** | Orderbook update ID | [optional]
3636
**tradeId** | **Long** | Current trade ID | [optional]
37-
**tradeSize** | **Long** | Historical cumulative trading volume | [optional]
38-
**positionSize** | **Long** | Current total long position size | [optional]
37+
**tradeSize** | **String** | Historical cumulative trading volume | [optional]
38+
**positionSize** | **String** | Current total long position size | [optional]
3939
**configChangeTime** | **Double** | Last configuration update time | [optional]
4040
**inDelisting** | **Boolean** | &#x60;in_delisting&#x3D;true&#x60; and position_size&gt;0 indicates the contract is in delisting transition period &#x60;in_delisting&#x3D;true&#x60; and position_size&#x3D;0 indicates the contract is delisted | [optional]
4141
**ordersLimit** | **Integer** | Maximum number of pending orders | [optional]

docs/ContractStat.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**time** | **Long** | Stat timestamp | [optional]
9-
**lsrTaker** | [**BigDecimal**](BigDecimal.md) | Long/short taker ratio | [optional]
10-
**lsrAccount** | [**BigDecimal**](BigDecimal.md) | Long/short position user ratio | [optional]
11-
**longLiqSize** | **Long** | Long liquidation size (contracts) | [optional]
9+
**lsrTaker** | **Double** | Long/short taker ratio | [optional]
10+
**lsrAccount** | **Double** | Long/short position user ratio | [optional]
11+
**longLiqSize** | **String** | Long liquidation size (contracts) | [optional]
1212
**longLiqAmount** | **Double** | Long liquidation amount (base currency) | [optional]
1313
**longLiqUsd** | **Double** | Long liquidation volume (quote currency) | [optional]
14-
**shortLiqSize** | **Long** | Short liquidation size (contracts) | [optional]
14+
**shortLiqSize** | **String** | Short liquidation size (contracts) | [optional]
1515
**shortLiqAmount** | **Double** | Short liquidation amount (base currency) | [optional]
1616
**shortLiqUsd** | **Double** | Short liquidation volume (quote currency) | [optional]
17-
**openInterest** | **Long** | Total open interest size (contracts) | [optional]
17+
**openInterest** | **String** | Total open interest size (contracts) | [optional]
1818
**openInterestUsd** | **Double** | Total open interest volume (quote currency) | [optional]
1919
**topLsrAccount** | **Double** | Top trader long/short account ratio | [optional]
20-
**topLsrSize** | **Double** | Top trader long/short position ratio | [optional]
20+
**topLsrSize** | **String** | Top trader long/short position ratio | [optional]
2121
**markPrice** | **Double** | Mark price | [optional]
2222

docs/DeliveryAccount.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
# DeliveryAccount
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**total** | **String** | total is the balance after the user&#39;s accumulated deposit, withdraw, profit and loss (including realized profit and loss, fund, fee and referral rebate), excluding unrealized profit and loss. total &#x3D; SUM(history_dnw, history_pnl, history_fee, history_refr, history_fund) | [optional]
9+
**unrealisedPnl** | **String** | Unrealized PNL | [optional]
10+
**positionMargin** | **String** | Position margin | [optional]
11+
**orderMargin** | **String** | Order margin of unfinished orders | [optional]
12+
**available** | **String** | Available amount for transfer or trading, which includes credit limits under the unified account (includes experience funds; experience funds cannot be transferred, so when transferring, the transfer amount must deduct experience funds) | [optional]
13+
**point** | **String** | Point card amount | [optional]
14+
**currency** | **String** | Settlement currency | [optional]
15+
**inDualMode** | **Boolean** | Whether Hedge Mode is enabled | [optional]
16+
**enableCredit** | **Boolean** | Whether portfolio margin account mode is enabled | [optional]
17+
**positionInitialMargin** | **String** | Initial margin occupied by positions, applicable to unified account mode | [optional]
18+
**maintenanceMargin** | **String** | Maintenance margin occupied by positions, applicable to new classic account margin mode and unified account mode | [optional]
19+
**bonus** | **String** | Bonus | [optional]
20+
**enableEvolvedClassic** | **Boolean** | Classic account margin mode, true-new mode, false-old mode | [optional]
21+
**crossOrderMargin** | **String** | Cross margin order margin, applicable to new classic account margin mode | [optional]
22+
**crossInitialMargin** | **String** | Cross margin initial margin, applicable to new classic account margin mode | [optional]
23+
**crossMaintenanceMargin** | **String** | Cross margin maintenance margin, applicable to new classic account margin mode | [optional]
24+
**crossUnrealisedPnl** | **String** | Cross margin unrealized P&amp;L, applicable to new classic account margin mode | [optional]
25+
**crossAvailable** | **String** | Cross margin available balance, applicable to new classic account margin mode | [optional]
26+
**crossMarginBalance** | **String** | Cross margin balance, applicable to new classic account margin mode | [optional]
27+
**crossMmr** | **String** | Cross margin maintenance margin rate, applicable to new classic account margin mode | [optional]
28+
**crossImr** | **String** | Cross margin initial margin rate, applicable to new classic account margin mode | [optional]
29+
**isolatedPositionMargin** | **String** | Isolated position margin, applicable to new classic account margin mode | [optional]
30+
**enableNewDualMode** | **Boolean** | Whether to open a new two-way position mode | [optional]
31+
**marginMode** | **Integer** | Margin mode, 0-classic margin mode, 1-cross-currency margin mode, 2-combined margin mode | [optional]
32+
**enableTieredMm** | **Boolean** | Whether to enable tiered maintenance margin calculation | [optional]
33+
**history** | [**FuturesAccountHistory**](FuturesAccountHistory.md) | | [optional]
34+

0 commit comments

Comments
 (0)