Skip to content

Commit 81d6944

Browse files
author
gateio
committed
update to v7.1.7
1 parent 744afea commit 81d6944

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+569
-156
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ APIv4 provides operations related to spot, margin, and contract trading, includi
44

55
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
66

7-
- API version: v4.104.3
8-
- Package version: 6.104.3
7+
- API version: v4.105.7
8+
- Package version: 7.1.7
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010
For more information, please visit [https://www.gate.com/page/contacts](https://www.gate.com/page/contacts)
1111

@@ -148,7 +148,7 @@ Class | Method | HTTP request | Description
148148
*UnifiedApi* | [**get_unified_mode**](docs/UnifiedApi.md#get_unified_mode) | **GET** /unified/unified_mode | Query mode of the unified account
149149
*UnifiedApi* | [**set_unified_mode**](docs/UnifiedApi.md#set_unified_mode) | **PUT** /unified/unified_mode | Set unified account mode
150150
*UnifiedApi* | [**get_unified_estimate_rate**](docs/UnifiedApi.md#get_unified_estimate_rate) | **GET** /unified/estimate_rate | Query unified account estimated interest rate
151-
*UnifiedApi* | [**list_currency_discount_tiers**](docs/UnifiedApi.md#list_currency_discount_tiers) | **GET** /unified/currency_discount_tiers | Query unified account tiered discount
151+
*UnifiedApi* | [**list_currency_discount_tiers**](docs/UnifiedApi.md#list_currency_discount_tiers) | **GET** /unified/currency_discount_tiers | Query unified account tiered
152152
*UnifiedApi* | [**list_loan_margin_tiers**](docs/UnifiedApi.md#list_loan_margin_tiers) | **GET** /unified/loan_margin_tiers | Query unified account tiered loan margin
153153
*UnifiedApi* | [**calculate_portfolio_margin**](docs/UnifiedApi.md#calculate_portfolio_margin) | **POST** /unified/portfolio_calculator | Portfolio margin calculator
154154
*UnifiedApi* | [**get_user_leverage_currency_config**](docs/UnifiedApi.md#get_user_leverage_currency_config) | **GET** /unified/leverage/user_currency_config | Maximum and minimum currency leverage that can be set

docs/Contract.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ Name | Type | Description | Notes
4040
**enable_credit** | **bool** | Whether portfolio margin account is enabled | [optional]
4141
**create_time** | **float** | Created time of the contract | [optional]
4242
**funding_cap_ratio** | **str** | The factor for the maximum of the funding rate. Maximum of funding rate = (1/market maximum leverage - maintenance margin rate) * funding_cap_ratio | [optional]
43-
**status** | **str** | Contract status types include: prelaunch (pre-launch), trading (active), delisting (delisting), delisted (delisted) | [optional]
43+
**status** | **str** | Contract status types include: prelaunch (pre-launch), trading (active), delisting (delisting), delisted (delisted), circuit_breaker (circuit breaker) | [optional]
4444
**launch_time** | **int** | Contract expiry timestamp | [optional]
45+
**delisting_time** | **int** | Timestamp when contract enters reduce-only state | [optional]
46+
**delisted_time** | **int** | Contract delisting time | [optional]
4547

4648
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
4749

docs/ContractStat.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
1616
**open_interest_usd** | **float** | Total open interest volume (quote currency) | [optional]
1717
**top_lsr_account** | **float** | Top trader long/short account ratio | [optional]
1818
**top_lsr_size** | **float** | Top trader long/short position ratio | [optional]
19+
**mark_price** | **float** | Mark price | [optional]
1920

2021
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2122

docs/DeliveryApi.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ api_instance = gate_api.DeliveryApi(api_client)
244244
settle = 'usdt' # str | Settle currency
245245
contract = 'BTC_USDT_20200814' # str | Futures contract
246246
limit = 100 # int | Maximum number of records returned in a single list (optional) (default to 100)
247-
last_id = '12345' # str | 以上个列表的最后一条记录的 ID 作为下个列表的起点。 该字段不再继续支持,新的请求请使用 `from` 和 `to` 字段来限定时间范围 (optional)
247+
last_id = '12345' # str | Use the ID of the last record in the previous list as the starting point for the next list.This field is no longer supported. For new requests, please use the fromand tofields to specify the time rang (optional)
248248
_from = 1546905600 # int | Specify starting time in Unix seconds. If not specified, `to` and `limit` will be used to limit response items. If items between `from` and `to` are more than `limit`, only `limit` number will be returned. (optional)
249249
to = 1546935600 # int | Specify end time in Unix seconds, default to current time. (optional)
250250

@@ -265,7 +265,7 @@ Name | Type | Description | Notes
265265
**settle** | **str**| Settle currency |
266266
**contract** | **str**| Futures contract |
267267
**limit** | **int**| Maximum number of records returned in a single list | [optional] [default to 100]
268-
**last_id** | **str**| 以上个列表的最后一条记录的 ID 作为下个列表的起点。 该字段不再继续支持,新的请求请使用 `from``to` 字段来限定时间范围 | [optional]
268+
**last_id** | **str**| Use the ID of the last record in the previous list as the starting point for the next list.This field is no longer supported. For new requests, please use the fromand tofields to specify the time rang | [optional]
269269
**_from** | **int**| Specify starting time in Unix seconds. If not specified, `to` and `limit` will be used to limit response items. If items between `from` and `to` are more than `limit`, only `limit` number will be returned. | [optional]
270270
**to** | **int**| Specify end time in Unix seconds, default to current time. | [optional]
271271

@@ -316,7 +316,7 @@ contract = 'BTC_USDT_20200814' # str | Futures contract
316316
_from = 1546905600 # int | Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified (optional)
317317
to = 1546935600 # int | Specify the end time of the K-line chart, defaults to current time if not specified, note that the time format is Unix timestamp with second precision (optional)
318318
limit = 100 # int | Maximum number of recent data points to return. `limit` conflicts with `from` and `to`. If either `from` or `to` is specified, request will be rejected. (optional) (default to 100)
319-
interval = '5m' # str | Time interval between data points, note that 1w represents a natural week, 7d time is aligned with Unix initial timeTime interval between data points, note that 1w represents a natural week, 7d time is aligned with Unix initial timeweek, 7d time is aligned with Unix initial time (optional) (default to '5m')
319+
interval = '5m' # str | Time interval between data points, note that 1w represents a natural week, 7d time is aligned with Unix initial time (optional) (default to '5m')
320320

321321
try:
322322
# Futures market K-line chart
@@ -337,7 +337,7 @@ Name | Type | Description | Notes
337337
**_from** | **int**| Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified | [optional]
338338
**to** | **int**| Specify the end time of the K-line chart, defaults to current time if not specified, note that the time format is Unix timestamp with second precision | [optional]
339339
**limit** | **int**| Maximum number of recent data points to return. `limit` conflicts with `from` and `to`. If either `from` or `to` is specified, request will be rejected. | [optional] [default to 100]
340-
**interval** | **str**| Time interval between data points, note that 1w represents a natural week, 7d time is aligned with Unix initial timeTime interval between data points, note that 1w represents a natural week, 7d time is aligned with Unix initial timeweek, 7d time is aligned with Unix initial time | [optional] [default to '5m']
340+
**interval** | **str**| Time interval between data points, note that 1w represents a natural week, 7d time is aligned with Unix initial time | [optional] [default to '5m']
341341

342342
### Return type
343343

@@ -579,7 +579,7 @@ settle = 'usdt' # str | Settle currency
579579
limit = 100 # int | Maximum number of records returned in a single list (optional) (default to 100)
580580
_from = 1547706332 # int | 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) (optional)
581581
to = 1547706332 # int | Termination Timestamp Specify the end time. If not specified, it defaults to the current time, and the time format is a Unix timestamp (optional)
582-
type = 'dnw' # str | Changing Type: - dnw: Deposit & Withdraw - pnl: Profit & Loss by reducing position - fee: Trading fee - refr: Referrer rebate - fund: Funding - point_dnw: point_fee: POINT Trading fee - point_refr: POINT Referrer rebate (optional)
582+
type = 'dnw' # str | Change types: - dnw: Deposit and withdrawal - pnl: Profit and loss from position reduction - fee: Trading fees - refr: Referrer rebates - fund: Funding fees - point_dnw: Point card deposit and withdrawal - point_fee: Point card trading fees - point_refr: Point card referrer rebates (optional)
583583

584584
try:
585585
# Query futures account change history
@@ -599,7 +599,7 @@ Name | Type | Description | Notes
599599
**limit** | **int**| Maximum number of records returned in a single list | [optional] [default to 100]
600600
**_from** | **int**| 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) | [optional]
601601
**to** | **int**| Termination Timestamp Specify the end time. If not specified, it defaults to the current time, and the time format is a Unix timestamp | [optional]
602-
**type** | **str**| Changing Type: - dnw: Deposit & Withdraw - pnl: Profit & Loss by reducing position - fee: Trading fee - refr: Referrer rebate - fund: Funding - point_dnw: point_fee: POINT Trading fee - point_refr: POINT Referrer rebate | [optional]
602+
**type** | **str**| Change types: - dnw: Deposit and withdrawal - pnl: Profit and loss from position reduction - fee: Trading fees - refr: Referrer rebates - fund: Funding fees - point_dnw: Point card deposit and withdrawal - point_fee: Point card trading fees - point_refr: Point card referrer rebates | [optional]
603603

604604
### Return type
605605

@@ -1006,7 +1006,7 @@ status = 'open' # str | Query order list based on status
10061006
contract = 'BTC_USDT_20200814' # str | Futures contract (optional)
10071007
limit = 100 # int | Maximum number of records returned in a single list (optional) (default to 100)
10081008
offset = 0 # int | List offset, starting from 0 (optional) (default to 0)
1009-
last_id = '12345' # str | Specify the currency name to query in batches, and support up to 100 pass parameters at a time (optional)
1009+
last_id = '12345' # str | Use the ID of the last record in the previous list as the starting point for the next list Operations based on custom IDs can only be checked when orders are pending. After orders are completed (filled/cancelled), they can be checked within 1 hour after completion. After expiration, only order IDs can be used (optional)
10101010
count_total = 0 # int | Whether to return total number matched, defaults to 0 (no return) (optional) (default to 0)
10111011

10121012
try:
@@ -1028,7 +1028,7 @@ Name | Type | Description | Notes
10281028
**contract** | **str**| Futures contract | [optional]
10291029
**limit** | **int**| Maximum number of records returned in a single list | [optional] [default to 100]
10301030
**offset** | **int**| List offset, starting from 0 | [optional] [default to 0]
1031-
**last_id** | **str**| Specify the currency name to query in batches, and support up to 100 pass parameters at a time | [optional]
1031+
**last_id** | **str**| Use the ID of the last record in the previous list as the starting point for the next list Operations based on custom IDs can only be checked when orders are pending. After orders are completed (filled/cancelled), they can be checked within 1 hour after completion. After expiration, only order IDs can be used | [optional]
10321032
**count_total** | **int**| Whether to return total number matched, defaults to 0 (no return) | [optional] [default to 0]
10331033

10341034
### Return type
@@ -1369,7 +1369,7 @@ contract = 'BTC_USDT_20200814' # str | Futures contract (optional)
13691369
order = 12345 # int | Futures order ID, return related data only if specified (optional)
13701370
limit = 100 # int | Maximum number of records returned in a single list (optional) (default to 100)
13711371
offset = 0 # int | List offset, starting from 0 (optional) (default to 0)
1372-
last_id = '12345' # str | Specify the currency name to query in batches, and support up to 100 pass parameters at a time (optional)
1372+
last_id = '12345' # str | Use the ID of the last record in the previous list as the starting point for the next list Operations based on custom IDs can only be checked when orders are pending. After orders are completed (filled/cancelled), they can be checked within 1 hour after completion. After expiration, only order IDs can be used (optional)
13731373
count_total = 0 # int | Whether to return total number matched, defaults to 0 (no return) (optional) (default to 0)
13741374

13751375
try:
@@ -1391,7 +1391,7 @@ Name | Type | Description | Notes
13911391
**order** | **int**| Futures order ID, return related data only if specified | [optional]
13921392
**limit** | **int**| Maximum number of records returned in a single list | [optional] [default to 100]
13931393
**offset** | **int**| List offset, starting from 0 | [optional] [default to 0]
1394-
**last_id** | **str**| Specify the currency name to query in batches, and support up to 100 pass parameters at a time | [optional]
1394+
**last_id** | **str**| Use the ID of the last record in the previous list as the starting point for the next list Operations based on custom IDs can only be checked when orders are pending. After orders are completed (filled/cancelled), they can be checked within 1 hour after completion. After expiration, only order IDs can be used | [optional]
13951395
**count_total** | **int**| Whether to return total number matched, defaults to 0 (no return) | [optional] [default to 0]
13961396

13971397
### Return type
@@ -1636,7 +1636,7 @@ Name | Type | Description | Notes
16361636
16371637
Query risk limit tiers
16381638

1639-
When the 'contract' parameter is not passed, the default is to query the risk limits for the top 100 markets.'Limit' and 'offset' correspond to pagination queries at the market level, not to the length of the returned array. This only takes effect empty.
1639+
When the 'contract' parameter is not passed, the default is to query the risk limits for the top 100 markets. 'Limit' and 'offset' correspond to pagination queries at the market level, not to the length of the returned array. This only takes effect when the contract parameter is empty.
16401640

16411641
### Example
16421642

docs/EarnApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ void (empty response body)
548548
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
549549

550550
# **find_coin**
551-
> list[str] find_coin(find_coin)
551+
> object find_coin(find_coin)
552552
553553
Staking coins
554554

@@ -596,7 +596,7 @@ Name | Type | Description | Notes
596596

597597
### Return type
598598

599-
**list[str]**
599+
**object**
600600

601601
### Authorization
602602

docs/FindCoin.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**coin** | **str** | Currency | [optional]
7-
**cointype** | **str** | Token Type: swap-Voucher, lock-Locked | [optional]
6+
**cointype** | **str** | Currency type: swap - voucher; lock - locked position; debt - US Treasury bond. | [optional]
87

98
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
109

docs/FuturesAccount.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**point** | **str** | Point card amount | [optional]
1212
**currency** | **str** | Settlement currency | [optional]
1313
**in_dual_mode** | **bool** | Whether dual mode is enabled | [optional]
14+
**position_mode** | **str** | Position mode: single - one-way, dual - dual-side, split - sub-positions (in_dual_mode is deprecated) | [optional]
1415
**enable_credit** | **bool** | Whether portfolio margin account mode is enabled | [optional]
1516
**position_initial_margin** | **str** | Initial margin occupied by positions, applicable to unified account mode | [optional]
1617
**maintenance_margin** | **str** | Maintenance margin occupied by positions, applicable to new classic account margin mode and unified account mode | [optional]

docs/FuturesAccountBook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
66
**time** | **float** | Change time | [optional]
77
**change** | **str** | Change amount | [optional]
88
**balance** | **str** | Balance after change | [optional]
9-
**type** | **str** | Changing Type: - dnw: Deposit & Withdraw - pnl: Profit & Loss by reducing position - fee: Trading fee - refr: Referrer rebate - fund: Funding - point_dnw: point_fee: POINT Trading fee - point_refr: POINT Referrer rebate - bonus_offset: bouns deduction | [optional]
9+
**type** | **str** | Change types: - dnw: Deposit and withdrawal - pnl: Profit and loss from position reduction - fee: Trading fees - refr: Referrer rebates - fund: Funding fees - point_dnw: Point card deposit and withdrawal - point_fee: Point card trading fees - point_refr: Point card referrer rebates - bonus_offset: Trial fund deduction | [optional]
1010
**text** | **str** | Comment | [optional]
1111
**contract** | **str** | Futures contract, the field is only available for data after 2023-10-30 | [optional]
1212
**trade_id** | **str** | trade id | [optional]

0 commit comments

Comments
 (0)