Skip to content

Commit b09e6df

Browse files
committed
release 4.57.0
1 parent c10eb43 commit b09e6df

80 files changed

Lines changed: 2169 additions & 471 deletions

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: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ APIv4 provides spot, margin and futures trading operations. There are public API
55

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

8-
- API version: 4.56.0
9-
- Package version: 4.56.0
8+
- API version: 4.57.0
9+
- Package version: 4.57.0
1010
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1111
For more information, please visit [https://www.gate.io/page/contacts](https://www.gate.io/page/contacts)
1212

@@ -114,6 +114,8 @@ Class | Method | HTTP request | Description
114114
*EarnUniApi* | [**list_uni_lend_records**](docs/EarnUniApi.md#list_uni_lend_records) | **GET** /earn/uni/lend_records | List records of lending
115115
*EarnUniApi* | [**get_uni_interest**](docs/EarnUniApi.md#get_uni_interest) | **GET** /earn/uni/interests/{currency} | Get the user's total interest income of specified currency
116116
*EarnUniApi* | [**list_uni_interest_records**](docs/EarnUniApi.md#list_uni_interest_records) | **GET** /earn/uni/interest_records | List interest records
117+
*EarnUniApi* | [**switch_interest_reinvest**](docs/EarnUniApi.md#switch_interest_reinvest) | **PUT** /earn/uni/interest_reinvest | Set interest reinvestment toggle
118+
*EarnUniApi* | [**get_uni_interest_status**](docs/EarnUniApi.md#get_uni_interest_status) | **GET** /earn/uni/interest_status/{currency} | query currency interest compounding status
117119
*MarginUniApi* | [**list_uni_currency_pairs**](docs/MarginUniApi.md#list_uni_currency_pairs) | **GET** /margin/uni/currency_pairs | List lending markets
118120
*MarginUniApi* | [**get_uni_currency_pair**](docs/MarginUniApi.md#get_uni_currency_pair) | **GET** /margin/uni/currency_pairs/{currency_pair} | Get detail of lending market
119121
*MarginUniApi* | [**get_margin_uni_estimate_rate**](docs/MarginUniApi.md#get_margin_uni_estimate_rate) | **GET** /margin/uni/estimate_rate | Estimate interest Rate
@@ -146,17 +148,17 @@ Class | Method | HTTP request | Description
146148
*AccountApi* | [**create_stp_group**](docs/AccountApi.md#create_stp_group) | **POST** /account/stp_groups | Create STP Group
147149
*AccountApi* | [**list_stp_groups_users**](docs/AccountApi.md#list_stp_groups_users) | **GET** /account/stp_groups/{stp_id}/users | List users of the STP group
148150
*AccountApi* | [**add_stp_group_users**](docs/AccountApi.md#add_stp_group_users) | **POST** /account/stp_groups/{stp_id}/users | Add users to the STP group
149-
*AccountApi* | [**delete_stp_group_users**](docs/AccountApi.md#delete_stp_group_users) | **DELETE** /account/stp_groups/{stp_id}/users | STP用户组中删除用户
150-
*CollateralLoanApi* | [**list_collateral_loan_orders**](docs/CollateralLoanApi.md#list_collateral_loan_orders) | **GET** /loan/collateral/orders | 查询抵押借币订单列表
151-
*CollateralLoanApi* | [**create_collateral_loan**](docs/CollateralLoanApi.md#create_collateral_loan) | **POST** /loan/collateral/orders | 抵押借币借贷下单
151+
*AccountApi* | [**delete_stp_group_users**](docs/AccountApi.md#delete_stp_group_users) | **DELETE** /account/stp_groups/{stp_id}/users | Delete the user in the STP group
152+
*CollateralLoanApi* | [**list_collateral_loan_orders**](docs/CollateralLoanApi.md#list_collateral_loan_orders) | **GET** /loan/collateral/orders | List Orders
153+
*CollateralLoanApi* | [**create_collateral_loan**](docs/CollateralLoanApi.md#create_collateral_loan) | **POST** /loan/collateral/orders | Place order
152154
*CollateralLoanApi* | [**get_collateral_loan_order_detail**](docs/CollateralLoanApi.md#get_collateral_loan_order_detail) | **GET** /loan/collateral/orders/{order_id} | Get a single order
153-
*CollateralLoanApi* | [**repay_collateral_loan**](docs/CollateralLoanApi.md#repay_collateral_loan) | **POST** /loan/collateral/repay | 抵押借币还款
154-
*CollateralLoanApi* | [**list_repay_records**](docs/CollateralLoanApi.md#list_repay_records) | **GET** /loan/collateral/repay_records | 查询抵押借币还款记录
155-
*CollateralLoanApi* | [**list_collateral_records**](docs/CollateralLoanApi.md#list_collateral_records) | **GET** /loan/collateral/collaterals | 查询质押物调整记录
156-
*CollateralLoanApi* | [**operate_collateral**](docs/CollateralLoanApi.md#operate_collateral) | **POST** /loan/collateral/collaterals | 增加或赎回质押物
157-
*CollateralLoanApi* | [**get_user_total_amount**](docs/CollateralLoanApi.md#get_user_total_amount) | **GET** /loan/collateral/total_amount | 查询用户总借贷与质押数量
158-
*CollateralLoanApi* | [**get_user_ltv_info**](docs/CollateralLoanApi.md#get_user_ltv_info) | **GET** /loan/collateral/ltv | 查询用户质押率和可借剩余币种
159-
*CollateralLoanApi* | [**list_collateral_currencies**](docs/CollateralLoanApi.md#list_collateral_currencies) | **GET** /loan/collateral/currencies | 查询支持的借款币种和抵押币种
155+
*CollateralLoanApi* | [**repay_collateral_loan**](docs/CollateralLoanApi.md#repay_collateral_loan) | **POST** /loan/collateral/repay | Repayment
156+
*CollateralLoanApi* | [**list_repay_records**](docs/CollateralLoanApi.md#list_repay_records) | **GET** /loan/collateral/repay_records | Repayment history
157+
*CollateralLoanApi* | [**list_collateral_records**](docs/CollateralLoanApi.md#list_collateral_records) | **GET** /loan/collateral/collaterals | Query collateral adjustment records
158+
*CollateralLoanApi* | [**operate_collateral**](docs/CollateralLoanApi.md#operate_collateral) | **POST** /loan/collateral/collaterals | Increase or redeem collateral
159+
*CollateralLoanApi* | [**get_user_total_amount**](docs/CollateralLoanApi.md#get_user_total_amount) | **GET** /loan/collateral/total_amount | Query the total borrowing and collateral amount for the user
160+
*CollateralLoanApi* | [**get_user_ltv_info**](docs/CollateralLoanApi.md#get_user_ltv_info) | **GET** /loan/collateral/ltv | Query user's collateralization ratio
161+
*CollateralLoanApi* | [**list_collateral_currencies**](docs/CollateralLoanApi.md#list_collateral_currencies) | **GET** /loan/collateral/currencies | Query supported borrowing and collateral currencies
160162
*DeliveryApi* | [**list_delivery_contracts**](docs/DeliveryApi.md#list_delivery_contracts) | **GET** /delivery/{settle}/contracts | List all futures contracts
161163
*DeliveryApi* | [**get_delivery_contract**](docs/DeliveryApi.md#get_delivery_contract) | **GET** /delivery/{settle}/contracts/{contract} | Get a single contract
162164
*DeliveryApi* | [**list_delivery_order_book**](docs/DeliveryApi.md#list_delivery_order_book) | **GET** /delivery/{settle}/order_book | Futures order book
@@ -320,6 +322,7 @@ Class | Method | HTTP request | Description
320322
*SpotApi* | [**list_my_trades**](docs/SpotApi.md#list_my_trades) | **GET** /spot/my_trades | List personal trading history
321323
*SpotApi* | [**get_system_time**](docs/SpotApi.md#get_system_time) | **GET** /spot/time | Get server current time
322324
*SpotApi* | [**countdown_cancel_all_spot**](docs/SpotApi.md#countdown_cancel_all_spot) | **POST** /spot/countdown_cancel_all | Countdown cancel orders
325+
*SpotApi* | [**amend_batch_orders**](docs/SpotApi.md#amend_batch_orders) | **POST** /spot/amend_batch_orders | Batch modification of orders
323326
*SpotApi* | [**list_spot_price_triggered_orders**](docs/SpotApi.md#list_spot_price_triggered_orders) | **GET** /spot/price_orders | Retrieve running auto order list
324327
*SpotApi* | [**create_spot_price_triggered_order**](docs/SpotApi.md#create_spot_price_triggered_order) | **POST** /spot/price_orders | Create a price-triggered order
325328
*SpotApi* | [**cancel_spot_price_triggered_order_list**](docs/SpotApi.md#cancel_spot_price_triggered_order_list) | **DELETE** /spot/price_orders | Cancel all open orders
@@ -354,8 +357,10 @@ Class | Method | HTTP request | Description
354357
- [AgencyCommissionHistory](docs/AgencyCommissionHistory.md)
355358
- [AgencyTransaction](docs/AgencyTransaction.md)
356359
- [AgencyTransactionHistory](docs/AgencyTransactionHistory.md)
360+
- [AmendOrderResult](docs/AmendOrderResult.md)
357361
- [ApiV4KeyPerm](docs/ApiV4KeyPerm.md)
358362
- [AutoRepaySetting](docs/AutoRepaySetting.md)
363+
- [BatchAmendItem](docs/BatchAmendItem.md)
359364
- [BatchFuturesOrder](docs/BatchFuturesOrder.md)
360365
- [BatchOrder](docs/BatchOrder.md)
361366
- [CancelBatchOrder](docs/CancelBatchOrder.md)
@@ -495,7 +500,9 @@ Class | Method | HTTP request | Description
495500
- [TriggerOrderResponse](docs/TriggerOrderResponse.md)
496501
- [TriggerTime](docs/TriggerTime.md)
497502
- [UniCurrency](docs/UniCurrency.md)
503+
- [UniCurrencyInterest](docs/UniCurrencyInterest.md)
498504
- [UniCurrencyPair](docs/UniCurrencyPair.md)
505+
- [UniInterestMode](docs/UniInterestMode.md)
499506
- [UniInterestRecord](docs/UniInterestRecord.md)
500507
- [UniLend](docs/UniLend.md)
501508
- [UniLendInterest](docs/UniLendInterest.md)

docs/AccountApi.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Method | HTTP request | Description
99
[**create_stp_group**](AccountApi.md#create_stp_group) | **POST** /account/stp_groups | Create STP Group
1010
[**list_stp_groups_users**](AccountApi.md#list_stp_groups_users) | **GET** /account/stp_groups/{stp_id}/users | List users of the STP group
1111
[**add_stp_group_users**](AccountApi.md#add_stp_group_users) | **POST** /account/stp_groups/{stp_id}/users | Add users to the STP group
12-
[**delete_stp_group_users**](AccountApi.md#delete_stp_group_users) | **DELETE** /account/stp_groups/{stp_id}/users | STP用户组中删除用户
12+
[**delete_stp_group_users**](AccountApi.md#delete_stp_group_users) | **DELETE** /account/stp_groups/{stp_id}/users | Delete the user in the STP group
1313

1414

1515
# **get_account_detail**
@@ -356,9 +356,9 @@ Name | Type | Description | Notes
356356
# **delete_stp_group_users**
357357
> list[StpGroupUser] delete_stp_group_users(stp_id, request_body)
358358
359-
STP用户组中删除用户
359+
Delete the user in the STP group
360360

361-
- 只允许创建此STP组的主账号删除STP用户组用户 - 只允许删除当前主账户下的账户,不允许跨主账户
361+
- Only the main account that created this STP group is allowed to delete users from the STP user group - Deletion is limited to accounts under the current main account; cross-account deletion is not permitted
362362

363363
### Example
364364

@@ -388,7 +388,7 @@ stp_id = 1 # int | STP Group ID
388388
request_body = [[1,2,3]] # list[int] | User ID
389389

390390
try:
391-
# STP用户组中删除用户
391+
# Delete the user in the STP group
392392
api_response = api_instance.delete_stp_group_users(stp_id, request_body)
393393
print(api_response)
394394
except GateApiException as ex:
@@ -420,7 +420,7 @@ Name | Type | Description | Notes
420420
### HTTP response details
421421
| Status code | Description | Response headers |
422422
|-------------|-------------|------------------|
423-
**200** | 删除用户成功,返回当前STP组内用户 | - |
423+
**200** | Success | - |
424424

425425
[[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)
426426

docs/AmendOrderResult.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# AmendOrderResult
2+
3+
Batch order modification results
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**order_id** | **str** | Order ID | [optional] [readonly]
8+
**amount** | **str** | Trade amount | [optional] [readonly]
9+
**price** | **str** | Order price | [optional] [readonly]
10+
**amend_text** | **str** | The custom data that the user remarked when amending the order | [optional] [readonly]
11+
**succeeded** | **bool** | Update success status | [optional] [readonly]
12+
**label** | **str** | Error indicator for failed modifications; empty when successful | [optional] [readonly]
13+
**message** | **str** | Error description for failed modifications; empty when successful | [optional] [readonly]
14+
**account** | **str** | Account types, spot - spot account, margin - margin account, portfolio - portfolio margin account, cross_margin - cross margin account.Portfolio margin accounts can only be set to `cross_margin` | [optional] [readonly]
15+
16+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
17+
18+

docs/ApiV4KeyPerm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**name** | **str** | Permission name (all permissions will be removed if no value is passed) - wallet: wallet - spot: spot/margin - futures: perpetual contract - delivery: delivery - earn: earn - options: options | [optional]
6+
**name** | **str** | Permission name (all permissions will be removed if no value is passed) - wallet: wallet - spot: spot/margin - futures: perpetual contract - delivery: delivery - earn: earn - options: options- account: Account - portfolio: Portfolio - loan: Loan | [optional]
77
**read_only** | **bool** | read only | [optional]
88

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

docs/BatchAmendItem.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# BatchAmendItem
2+
3+
Order information that needs to be modified
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**order_id** | **str** | The order ID returned upon successful creation or the custom ID specified by the user during creation (i.e., the 'text' field). |
8+
**currency_pair** | **str** | Currency pair |
9+
**account** | **str** | Default to spot, portfolio, and margin accounts if not specified. Use 'cross_margin' to query cross margin accounts. Only 'cross_margin' can be specified for portfolio margin accounts. | [optional]
10+
**amount** | **str** | trade amount, only one of amount and price can be specified | [optional]
11+
**price** | **str** | trade price, only one of amount and price can be specified | [optional]
12+
**amend_text** | **str** | Custom info during amending order | [optional]
13+
14+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
15+
16+

docs/BatchOrder.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
1616
**status** | **str** | Order status - `open`: to be filled - `closed`: filled - `cancelled`: cancelled | [optional] [readonly]
1717
**currency_pair** | **str** | Currency pair | [optional]
1818
**type** | **str** | Order Type - limit : Limit Order - market : Market Order | [optional] [default to 'limit']
19-
**account** | **str** | Account type. spot - use spot account; margin - use margin account; cross_margin - use cross margin account | [optional] [default to 'spot']
19+
**account** | **str** | Account type. spot - use spot account; margin - use margin account; cross_margin - use cross margin account, portfolio - portfolio account | [optional] [default to 'spot']
2020
**side** | **str** | Order side | [optional]
2121
**amount** | **str** | Trade amount | [optional]
2222
**price** | **str** | Order price | [optional]

docs/CollateralAlign.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**order_id** | **int** | 订单id |
7-
**collateral_currency** | **str** | 质押币种 |
8-
**collateral_amount** | **str** | 质押数量 |
9-
**type** | **str** | 操作类型, append - 补充 , redeem - 提取 |
6+
**order_id** | **int** | Order ID |
7+
**collateral_currency** | **str** | Collateral |
8+
**collateral_amount** | **str** | Collateral amount |
9+
**type** | **str** | Operation types: append - for adding collateral, redeem - for withdrawing collateral |
1010

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

0 commit comments

Comments
 (0)