Skip to content

Commit ba3ed9a

Browse files
author
gate
committed
update to v7.2.4
1 parent e800052 commit ba3ed9a

69 files changed

Lines changed: 515 additions & 253 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: 3 additions & 2 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.106.0
8-
- Package version: 7.2.0
7+
- API version: v4.106.4
8+
- Package version: 7.2.4
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

@@ -390,6 +390,7 @@ Class | Method | HTTP request | Description
390390
*WalletApi* | [**convert_small_balance**](docs/WalletApi.md#convert_small_balance) | **POST** /wallet/small_balance | Convert small balance currency
391391
*WalletApi* | [**list_small_balance_history**](docs/WalletApi.md#list_small_balance_history) | **GET** /wallet/small_balance_history | Get convertible small balance currency history
392392
*WalletApi* | [**list_push_orders**](docs/WalletApi.md#list_push_orders) | **GET** /wallet/push | Get UID transfer history
393+
*WalletApi* | [**get_low_cap_exchange_list**](docs/WalletApi.md#get_low_cap_exchange_list) | **GET** /wallet/getLowCapExchangeList | Retrieve the list of low-liquidity or low-cap tokens
393394
*WithdrawalApi* | [**withdraw**](docs/WithdrawalApi.md#withdraw) | **POST** /withdrawals | Withdraw
394395
*WithdrawalApi* | [**withdraw_push_order**](docs/WithdrawalApi.md#withdraw_push_order) | **POST** /withdrawals/push | UID transfer
395396
*WithdrawalApi* | [**cancel_withdrawal**](docs/WithdrawalApi.md#cancel_withdrawal) | **DELETE** /withdrawals/{withdrawal_id} | Cancel withdrawal with specified ID

docs/Contract.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**name** | **str** | Futures contract | [optional]
88
**type** | **str** | Contract type: inverse - inverse contract, direct - direct contract | [optional]
9-
**quanto_multiplier** | **str** | Multiplier used in converting from invoicing to settlement currency | [optional]
9+
**quanto_multiplier** | **str** | The contract multiplier indicates how many units of the underlying asset the face value of one contract represents. | [optional]
1010
**leverage_min** | **str** | Minimum leverage | [optional]
1111
**leverage_max** | **str** | Maximum leverage | [optional]
12-
**maintenance_rate** | **str** | Maintenance rate of margin | [optional]
13-
**mark_type** | **str** | Mark price type: internal - internal trading price, index - external index price | [optional]
12+
**maintenance_rate** | **str** | The maintenance margin rate of the first tier of risk limit sheet | [optional]
13+
**mark_type** | **str** | Deprecated | [optional]
1414
**mark_price** | **str** | Current mark price | [optional]
1515
**index_price** | **str** | Current index price | [optional]
1616
**last_price** | **str** | Last trading price | [optional]
@@ -39,11 +39,12 @@ Name | Type | Description | Notes
3939
**enable_bonus** | **bool** | Whether bonus is enabled | [optional]
4040
**enable_credit** | **bool** | Whether portfolio margin account is enabled | [optional]
4141
**create_time** | **float** | Created time of the contract | [optional]
42-
**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]
42+
**funding_cap_ratio** | **str** | Deprecated | [optional]
4343
**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]
4545
**delisting_time** | **int** | Timestamp when contract enters reduce-only state | [optional]
4646
**delisted_time** | **int** | Contract delisting time | [optional]
47+
**funding_rate_limit** | **str** | Upper and lower limits of funding rate | [optional]
4748

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

docs/CreateUniLoan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Borrow or repay
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**currency** | **str** | Currency |
8-
**type** | **str** | Type: `borrow` - borrow, `repay` - repay |
8+
**type** | **str** | Loan Type margin: margin borrowing |
99
**amount** | **str** | Borrow or repayment amount |
1010
**repaid_all** | **bool** | Full repayment. For repayment operations only. When `true`, overrides `amount` and repays the full amount | [optional]
1111
**currency_pair** | **str** | Currency pair |

docs/CurrencyPair.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Name | Type | Description | Notes
2323
**type** | **str** | Trading pair type, normal: normal, premarket: pre-market | [optional]
2424
**trade_url** | **str** | Transaction link | [optional]
2525
**st_tag** | **bool** | Whether the trading pair is in ST risk assessment, false - No, true - Yes | [optional]
26+
**up_rate** | **str** | Maximum Quote Rise Percentage | [optional]
27+
**down_rate** | **str** | Maximum Quote Decline Percentage | [optional]
2628

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

docs/DeliveryAccount.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**total** | **str** | total is the balance after the user's accumulated deposit, withdraw, profit and loss (including realized profit and loss, fund, fee and referral rebate), excluding unrealized profit and loss. total = SUM(history_dnw, history_pnl, history_fee, history_refr, history_fund) | [optional]
6+
**total** | **str** | Balance, only applicable to classic contract account.The balance is the sum of all historical fund flows, including historical transfers in and out, closing settlements, and transaction fee expenses, but does not include upl of positions.total = SUM(history_dnw, history_pnl, history_fee, history_refr, history_fund) | [optional]
77
**unrealised_pnl** | **str** | Unrealized PNL | [optional]
8-
**position_margin** | **str** | Position margin | [optional]
9-
**order_margin** | **str** | Order margin of unfinished orders | [optional]
8+
**position_margin** | **str** | Deprecated | [optional]
9+
**order_margin** | **str** | initial margin of all open orders | [optional]
1010
**available** | **str** | 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]
1111
**point** | **str** | Point card amount | [optional]
1212
**currency** | **str** | Settlement currency | [optional]
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
1515
**position_initial_margin** | **str** | Initial margin occupied by positions, applicable to unified account mode | [optional]
1616
**maintenance_margin** | **str** | Maintenance margin occupied by positions, applicable to new classic account margin mode and unified account mode | [optional]
1717
**bonus** | **str** | Bonus | [optional]
18-
**enable_evolved_classic** | **bool** | Classic account margin mode, true-new mode, false-old mode | [optional]
18+
**enable_evolved_classic** | **bool** | Deprecated | [optional]
1919
**cross_order_margin** | **str** | Cross margin order margin, applicable to new classic account margin mode | [optional]
2020
**cross_initial_margin** | **str** | Cross margin initial margin, applicable to new classic account margin mode | [optional]
2121
**cross_maintenance_margin** | **str** | Cross margin maintenance margin, applicable to new classic account margin mode | [optional]
@@ -25,8 +25,8 @@ Name | Type | Description | Notes
2525
**cross_mmr** | **str** | Cross margin maintenance margin rate, applicable to new classic account margin mode | [optional]
2626
**cross_imr** | **str** | Cross margin initial margin rate, applicable to new classic account margin mode | [optional]
2727
**isolated_position_margin** | **str** | Isolated position margin, applicable to new classic account margin mode | [optional]
28-
**enable_new_dual_mode** | **bool** | Whether to open a new two-way position mode | [optional]
29-
**margin_mode** | **int** | Margin mode, 0-classic margin mode, 1-cross-currency margin mode, 2-combined margin mode | [optional]
28+
**enable_new_dual_mode** | **bool** | Deprecated | [optional]
29+
**margin_mode** | **int** | Margin mode of the account 0: classic future account or Classic Spot Margin Mode of unified account; 1: Multi-Currency Margin Mode; 2: Portoforlio Margin Mode; 3: Single-Currency Margin Mode | [optional]
3030
**enable_tiered_mm** | **bool** | Whether to enable tiered maintenance margin calculation | [optional]
3131
**history** | [**FuturesAccountHistory**](FuturesAccountHistory.md) | | [optional]
3232

docs/DeliveryContract.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ Name | Type | Description | Notes
88
**underlying** | **str** | Underlying | [optional]
99
**cycle** | **str** | Cycle type, e.g. WEEKLY, QUARTERLY | [optional]
1010
**type** | **str** | Contract type: inverse - inverse contract, direct - direct contract | [optional]
11-
**quanto_multiplier** | **str** | Multiplier used in converting from invoicing to settlement currency | [optional]
11+
**quanto_multiplier** | **str** | The contract multiplier indicates how many units of the underlying asset the face value of one contract represents. | [optional]
1212
**leverage_min** | **str** | Minimum leverage | [optional]
1313
**leverage_max** | **str** | Maximum leverage | [optional]
14-
**maintenance_rate** | **str** | Maintenance rate of margin | [optional]
15-
**mark_type** | **str** | Mark price type: internal - internal trading price, index - external index price | [optional]
14+
**maintenance_rate** | **str** | The maintenance margin rate of the first tier of risk limit sheet | [optional]
15+
**mark_type** | **str** | Deprecated | [optional]
1616
**mark_price** | **str** | Current mark price | [optional]
1717
**index_price** | **str** | Current index price | [optional]
1818
**last_price** | **str** | Last trading price | [optional]

docs/DeliveryLimitRiskTiers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
**tier** | **int** | Tier | [optional]
88
**risk_limit** | **str** | Position risk limit | [optional]
99
**initial_rate** | **str** | Initial margin rate | [optional]
10-
**maintenance_rate** | **str** | Maintenance margin rate | [optional]
10+
**maintenance_rate** | **str** | The maintenance margin rate of the first tier of risk limit sheet | [optional]
1111
**leverage_max** | **str** | Maximum leverage | [optional]
1212
**contract** | **str** | Market, only visible when market pagination is requested | [optional]
1313
**deduction** | **str** | Maintenance margin quick calculation deduction amount | [optional]

docs/DeliveryOrder.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Name | Type | Description | Notes
2222
**tif** | **str** | 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] [default to 'gtc']
2323
**left** | **int** | Unfilled quantity | [optional] [readonly]
2424
**fill_price** | **str** | Fill price | [optional] [readonly]
25-
**text** | **str** | Custom order information. If not empty, must follow the rules below: 1. Prefixed with `t-` 2. No longer than 28 bytes without `t-` prefix 3. Can only include 0-9, A-Z, a-z, underscore(_), hyphen(-) or dot(.) In addition to user-defined information, the following are internal reserved fields that identify the order source: - web: Web - api: API call - app: Mobile app - auto_deleveraging: Automatic deleveraging - liquidation: Forced liquidation of positions under the old classic mode - liq-xxx: a. Forced liquidation of positions under the new classic mode, including isolated margin, one-way cross margin, and non-hedged positions under two-way cross margin. b. Forced liquidation of isolated positions under the unified account single-currency margin mode - hedge-liq-xxx: Forced liquidation of hedged positions under the new classic mode two-way cross margin, i.e., simultaneously closing long and short positions - pm_liquidate: Forced liquidation under unified account multi-currency margin mode - comb_margin_liquidate: Forced liquidation under unified account portfolio margin mode - scm_liquidate: Forced liquidation of positions under unified account single-currency margin mode - insurance: Insurance | [optional]
25+
**text** | **str** | 订单自定义信息,用户可以用该字段设置自定义 ID,用户自定义字段必须满足以下条件: 1. 必须以 `t-` 开头 2. 不计算 `t-` ,长度不能超过 28 字节 3. 输入内容只能包含数字、字母、下划线(_)、中划线(-) 或者点(.) 除用户自定义信息以外,以下为内部保留字段,标识订单来源: - web: 网页 - api: API 调用 - app: 移动端 - auto_deleveraging: 自动减仓 - liquidation: ⽼经典模式仓位强制平仓 - liq-xxx: a. 新经典模式仓位强制平仓,包含逐仓、单向全仓、双向全仓⾮对冲仓位强平。 b. 统⼀账户单币种保证金模式逐仓强制平仓 - hedge-liq-xxx: 新经典模式双向全仓对冲部分强制平仓,即同时平多空仓位 - pm_liquidate: 统⼀账户跨币种保证金模式强制平仓 - comb_margin_liquidate: 统⼀账户组合保证金模式强制平仓 - scm_liquidate: 统⼀账户单币种保证金模式仓位强制平仓 - insurance: 保险 | [optional]
2626
**tkfr** | **str** | Taker fee | [optional] [readonly]
2727
**mkfr** | **str** | Maker fee | [optional] [readonly]
2828
**refu** | **int** | Referrer user ID | [optional] [readonly]

docs/DeliveryPosition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
1010
**leverage** | **str** | Position leverage. 0 means cross margin; positive number means isolated margin | [optional]
1111
**risk_limit** | **str** | Position risk limit | [optional]
1212
**leverage_max** | **str** | Maximum leverage under current risk limit | [optional] [readonly]
13-
**maintenance_rate** | **str** | Maintenance rate under current risk limit | [optional] [readonly]
13+
**maintenance_rate** | **str** | The maintenance margin rate of the first tier of risk limit sheet | [optional] [readonly]
1414
**value** | **str** | Position value calculated in settlement currency | [optional] [readonly]
1515
**margin** | **str** | Position margin | [optional]
1616
**entry_price** | **str** | Entry price | [optional] [readonly]

docs/DeliveryTicker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
1919
**funding_rate** | **str** | Funding rate | [optional]
2020
**funding_rate_indicative** | **str** | Indicative Funding rate in next period. (deprecated. use `funding_rate`) | [optional]
2121
**index_price** | **str** | Index price | [optional]
22-
**quanto_base_rate** | **str** | Exchange rate of base currency and settlement currency in Quanto contract. Does not exists in contracts of other types | [optional]
22+
**quanto_base_rate** | **str** | Deprecated | [optional]
2323
**basis_rate** | **str** | Basis rate | [optional]
2424
**basis_value** | **str** | Basis value | [optional]
2525
**lowest_ask** | **str** | Recent lowest ask | [optional]

0 commit comments

Comments
 (0)