From 81d6944006805487b1e983692498482ecaef0233 Mon Sep 17 00:00:00 2001 From: gateio Date: Thu, 11 Sep 2025 06:23:59 +0000 Subject: [PATCH 1/2] update to v7.1.7 --- README.md | 6 +- docs/Contract.md | 4 +- docs/ContractStat.md | 1 + docs/DeliveryApi.md | 22 +-- docs/EarnApi.md | 4 +- docs/FindCoin.md | 3 +- docs/FuturesAccount.md | 1 + docs/FuturesAccountBook.md | 2 +- docs/FuturesApi.md | 36 +++-- docs/FuturesOrder.md | 3 + docs/FuturesOrderAmendment.md | 1 + docs/FuturesTicker.md | 5 + docs/MultiCollateralLoanApi.md | 4 +- docs/MultiLoanRepayItem.md | 2 +- docs/Position.md | 1 + docs/RebateApi.md | 6 +- docs/SpotApi.md | 4 +- docs/SubAccount.md | 2 +- docs/SwapCoinStruct.md | 4 +- docs/UnifiedApi.md | 6 +- gate_api/__init__.py | 2 +- gate_api/api/delivery_api.py | 24 ++-- gate_api/api/earn_api.py | 6 +- gate_api/api/futures_api.py | 46 +++++-- gate_api/api/multi_collateral_loan_api.py | 4 +- gate_api/api/rebate_api.py | 5 + gate_api/api/spot_api.py | 4 +- gate_api/api/unified_api.py | 4 +- gate_api/api_client.py | 2 +- gate_api/configuration.py | 4 +- gate_api/models/contract.py | 68 +++++++++- gate_api/models/contract_stat.py | 36 ++++- gate_api/models/find_coin.py | 36 +---- gate_api/models/futures_account.py | 32 ++++- gate_api/models/futures_account_book.py | 4 +- gate_api/models/futures_order.py | 92 ++++++++++++- gate_api/models/futures_order_amendment.py | 36 ++++- gate_api/models/futures_ticker.py | 148 ++++++++++++++++++++- gate_api/models/multi_loan_repay_item.py | 5 +- gate_api/models/position.py | 36 ++++- gate_api/models/sub_account.py | 4 +- gate_api/models/swap_coin_struct.py | 8 +- setup.py | 2 +- 43 files changed, 569 insertions(+), 156 deletions(-) diff --git a/README.md b/README.md index b276beb..d185462 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ APIv4 provides operations related to spot, margin, and contract trading, includi This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: v4.104.3 -- Package version: 6.104.3 +- API version: v4.105.7 +- Package version: 7.1.7 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://www.gate.com/page/contacts](https://www.gate.com/page/contacts) @@ -148,7 +148,7 @@ Class | Method | HTTP request | Description *UnifiedApi* | [**get_unified_mode**](docs/UnifiedApi.md#get_unified_mode) | **GET** /unified/unified_mode | Query mode of the unified account *UnifiedApi* | [**set_unified_mode**](docs/UnifiedApi.md#set_unified_mode) | **PUT** /unified/unified_mode | Set unified account mode *UnifiedApi* | [**get_unified_estimate_rate**](docs/UnifiedApi.md#get_unified_estimate_rate) | **GET** /unified/estimate_rate | Query unified account estimated interest rate -*UnifiedApi* | [**list_currency_discount_tiers**](docs/UnifiedApi.md#list_currency_discount_tiers) | **GET** /unified/currency_discount_tiers | Query unified account tiered discount +*UnifiedApi* | [**list_currency_discount_tiers**](docs/UnifiedApi.md#list_currency_discount_tiers) | **GET** /unified/currency_discount_tiers | Query unified account tiered *UnifiedApi* | [**list_loan_margin_tiers**](docs/UnifiedApi.md#list_loan_margin_tiers) | **GET** /unified/loan_margin_tiers | Query unified account tiered loan margin *UnifiedApi* | [**calculate_portfolio_margin**](docs/UnifiedApi.md#calculate_portfolio_margin) | **POST** /unified/portfolio_calculator | Portfolio margin calculator *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 diff --git a/docs/Contract.md b/docs/Contract.md index 55d18e6..d7adc71 100644 --- a/docs/Contract.md +++ b/docs/Contract.md @@ -40,8 +40,10 @@ Name | Type | Description | Notes **enable_credit** | **bool** | Whether portfolio margin account is enabled | [optional] **create_time** | **float** | Created time of the contract | [optional] **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] -**status** | **str** | Contract status types include: prelaunch (pre-launch), trading (active), delisting (delisting), delisted (delisted) | [optional] +**status** | **str** | Contract status types include: prelaunch (pre-launch), trading (active), delisting (delisting), delisted (delisted), circuit_breaker (circuit breaker) | [optional] **launch_time** | **int** | Contract expiry timestamp | [optional] +**delisting_time** | **int** | Timestamp when contract enters reduce-only state | [optional] +**delisted_time** | **int** | Contract delisting time | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ContractStat.md b/docs/ContractStat.md index 162ca4f..f20a520 100644 --- a/docs/ContractStat.md +++ b/docs/ContractStat.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **open_interest_usd** | **float** | Total open interest volume (quote currency) | [optional] **top_lsr_account** | **float** | Top trader long/short account ratio | [optional] **top_lsr_size** | **float** | Top trader long/short position ratio | [optional] +**mark_price** | **float** | Mark price | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DeliveryApi.md b/docs/DeliveryApi.md index 5c4e4c5..88ac2c5 100644 --- a/docs/DeliveryApi.md +++ b/docs/DeliveryApi.md @@ -244,7 +244,7 @@ api_instance = gate_api.DeliveryApi(api_client) settle = 'usdt' # str | Settle currency contract = 'BTC_USDT_20200814' # str | Futures contract limit = 100 # int | Maximum number of records returned in a single list (optional) (default to 100) -last_id = '12345' # str | 以上个列表的最后一条记录的 ID 作为下个列表的起点。 该字段不再继续支持,新的请求请使用 `from` 和 `to` 字段来限定时间范围 (optional) +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) _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) to = 1546935600 # int | Specify end time in Unix seconds, default to current time. (optional) @@ -265,7 +265,7 @@ Name | Type | Description | Notes **settle** | **str**| Settle currency | **contract** | **str**| Futures contract | **limit** | **int**| Maximum number of records returned in a single list | [optional] [default to 100] - **last_id** | **str**| 以上个列表的最后一条记录的 ID 作为下个列表的起点。 该字段不再继续支持,新的请求请使用 `from` 和 `to` 字段来限定时间范围 | [optional] + **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] **_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] **to** | **int**| Specify end time in Unix seconds, default to current time. | [optional] @@ -316,7 +316,7 @@ contract = 'BTC_USDT_20200814' # str | Futures contract _from = 1546905600 # int | Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified (optional) 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) 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) -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') +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') try: # Futures market K-line chart @@ -337,7 +337,7 @@ Name | Type | Description | Notes **_from** | **int**| Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified | [optional] **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] **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] - **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'] + **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'] ### Return type @@ -579,7 +579,7 @@ settle = 'usdt' # str | Settle currency limit = 100 # int | Maximum number of records returned in a single list (optional) (default to 100) _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) 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) -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) +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) try: # Query futures account change history @@ -599,7 +599,7 @@ Name | Type | Description | Notes **limit** | **int**| Maximum number of records returned in a single list | [optional] [default to 100] **_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] **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] - **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] + **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] ### Return type @@ -1006,7 +1006,7 @@ status = 'open' # str | Query order list based on status contract = 'BTC_USDT_20200814' # str | Futures contract (optional) limit = 100 # int | Maximum number of records returned in a single list (optional) (default to 100) offset = 0 # int | List offset, starting from 0 (optional) (default to 0) -last_id = '12345' # str | Specify the currency name to query in batches, and support up to 100 pass parameters at a time (optional) +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) count_total = 0 # int | Whether to return total number matched, defaults to 0 (no return) (optional) (default to 0) try: @@ -1028,7 +1028,7 @@ Name | Type | Description | Notes **contract** | **str**| Futures contract | [optional] **limit** | **int**| Maximum number of records returned in a single list | [optional] [default to 100] **offset** | **int**| List offset, starting from 0 | [optional] [default to 0] - **last_id** | **str**| Specify the currency name to query in batches, and support up to 100 pass parameters at a time | [optional] + **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] **count_total** | **int**| Whether to return total number matched, defaults to 0 (no return) | [optional] [default to 0] ### Return type @@ -1369,7 +1369,7 @@ contract = 'BTC_USDT_20200814' # str | Futures contract (optional) order = 12345 # int | Futures order ID, return related data only if specified (optional) limit = 100 # int | Maximum number of records returned in a single list (optional) (default to 100) offset = 0 # int | List offset, starting from 0 (optional) (default to 0) -last_id = '12345' # str | Specify the currency name to query in batches, and support up to 100 pass parameters at a time (optional) +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) count_total = 0 # int | Whether to return total number matched, defaults to 0 (no return) (optional) (default to 0) try: @@ -1391,7 +1391,7 @@ Name | Type | Description | Notes **order** | **int**| Futures order ID, return related data only if specified | [optional] **limit** | **int**| Maximum number of records returned in a single list | [optional] [default to 100] **offset** | **int**| List offset, starting from 0 | [optional] [default to 0] - **last_id** | **str**| Specify the currency name to query in batches, and support up to 100 pass parameters at a time | [optional] + **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] **count_total** | **int**| Whether to return total number matched, defaults to 0 (no return) | [optional] [default to 0] ### Return type @@ -1636,7 +1636,7 @@ Name | Type | Description | Notes Query risk limit tiers -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. +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. ### Example diff --git a/docs/EarnApi.md b/docs/EarnApi.md index 66e0d67..a2b83b8 100644 --- a/docs/EarnApi.md +++ b/docs/EarnApi.md @@ -548,7 +548,7 @@ void (empty response body) [[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) # **find_coin** -> list[str] find_coin(find_coin) +> object find_coin(find_coin) Staking coins @@ -596,7 +596,7 @@ Name | Type | Description | Notes ### Return type -**list[str]** +**object** ### Authorization diff --git a/docs/FindCoin.md b/docs/FindCoin.md index 6895a4d..784880a 100644 --- a/docs/FindCoin.md +++ b/docs/FindCoin.md @@ -3,8 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**coin** | **str** | Currency | [optional] -**cointype** | **str** | Token Type: swap-Voucher, lock-Locked | [optional] +**cointype** | **str** | Currency type: swap - voucher; lock - locked position; debt - US Treasury bond. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/FuturesAccount.md b/docs/FuturesAccount.md index c99c403..590e0c8 100644 --- a/docs/FuturesAccount.md +++ b/docs/FuturesAccount.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **point** | **str** | Point card amount | [optional] **currency** | **str** | Settlement currency | [optional] **in_dual_mode** | **bool** | Whether dual mode is enabled | [optional] +**position_mode** | **str** | Position mode: single - one-way, dual - dual-side, split - sub-positions (in_dual_mode is deprecated) | [optional] **enable_credit** | **bool** | Whether portfolio margin account mode is enabled | [optional] **position_initial_margin** | **str** | Initial margin occupied by positions, applicable to unified account mode | [optional] **maintenance_margin** | **str** | Maintenance margin occupied by positions, applicable to new classic account margin mode and unified account mode | [optional] diff --git a/docs/FuturesAccountBook.md b/docs/FuturesAccountBook.md index 1c1f738..0056f17 100644 --- a/docs/FuturesAccountBook.md +++ b/docs/FuturesAccountBook.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **time** | **float** | Change time | [optional] **change** | **str** | Change amount | [optional] **balance** | **str** | Balance after change | [optional] -**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] +**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] **text** | **str** | Comment | [optional] **contract** | **str** | Futures contract, the field is only available for data after 2023-10-30 | [optional] **trade_id** | **str** | trade id | [optional] diff --git a/docs/FuturesApi.md b/docs/FuturesApi.md index 5756618..75ce6fe 100644 --- a/docs/FuturesApi.md +++ b/docs/FuturesApi.md @@ -317,7 +317,7 @@ No authorization required [[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) # **list_futures_candlesticks** -> list[FuturesCandlestick] list_futures_candlesticks(settle, contract, _from=_from, to=to, limit=limit, interval=interval) +> list[FuturesCandlestick] list_futures_candlesticks(settle, contract, _from=_from, to=to, limit=limit, interval=interval, timezone=timezone) Futures market K-line chart @@ -344,10 +344,11 @@ _from = 1546905600 # int | Start time of candlesticks, formatted in Unix timesta 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) 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) interval = '5m' # str | Interval time between data points. Note that `1w` means natural week(Mon-Sun), while `7d` means every 7d since unix 0. 30d represents a natural month, not 30 days (optional) (default to '5m') +timezone = 'utc0' # str | Time zone: all/utc0/utc8, default utc0 (optional) (default to 'utc0') try: # Futures market K-line chart - api_response = api_instance.list_futures_candlesticks(settle, contract, _from=_from, to=to, limit=limit, interval=interval) + api_response = api_instance.list_futures_candlesticks(settle, contract, _from=_from, to=to, limit=limit, interval=interval, timezone=timezone) print(api_response) except GateApiException as ex: print("Gate api exception, label: %s, message: %s\n" % (ex.label, ex.message)) @@ -365,6 +366,7 @@ Name | Type | Description | Notes **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] **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] **interval** | **str**| Interval time between data points. Note that `1w` means natural week(Mon-Sun), while `7d` means every 7d since unix 0. 30d represents a natural month, not 30 days | [optional] [default to '5m'] + **timezone** | **str**| Time zone: all/utc0/utc8, default utc0 | [optional] [default to 'utc0'] ### Return type @@ -773,7 +775,7 @@ No authorization required Query liquidation order history -The time interval between from and to is maximum 3600. Some private fields are not returned by public interfaces, refer to field descriptions for detailsThe time interval between from and to is maximum 3600. Some private fields are not returned by public interfaces, refer to field descriptions for interfaces, refer to field descriptions for details +The time interval between from and to is maximum 3600. Some private fields are not returned by public interfaces, refer to field descriptions for details ### Example @@ -841,7 +843,7 @@ No authorization required Query risk limit tiers -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. +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. ### Example @@ -1006,7 +1008,7 @@ limit = 100 # int | Maximum number of records returned in a single list (optiona offset = 0 # int | List offset, starting from 0 (optional) (default to 0) _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) 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) -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 - bonus_offset: bouns deduction (optional) +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 - bonus_offset: Trial fund deduction (optional) try: # Query futures account change history @@ -1028,7 +1030,7 @@ Name | Type | Description | Notes **offset** | **int**| List offset, starting from 0 | [optional] [default to 0] **_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] **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] - **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] + **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] ### Return type @@ -1264,7 +1266,7 @@ Name | Type | Description | Notes [[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) # **update_position_leverage** -> Position update_position_leverage(settle, contract, leverage, cross_leverage_limit=cross_leverage_limit) +> Position update_position_leverage(settle, contract, leverage, cross_leverage_limit=cross_leverage_limit, pid=pid) Update position leverage @@ -1296,10 +1298,11 @@ settle = 'usdt' # str | Settle currency contract = 'BTC_USDT' # str | Futures contract leverage = '10' # str | New position leverage cross_leverage_limit = '10' # str | Cross margin leverage (valid only when `leverage` is 0) (optional) +pid = 1 # int | Product ID (optional) try: # Update position leverage - api_response = api_instance.update_position_leverage(settle, contract, leverage, cross_leverage_limit=cross_leverage_limit) + api_response = api_instance.update_position_leverage(settle, contract, leverage, cross_leverage_limit=cross_leverage_limit, pid=pid) print(api_response) except GateApiException as ex: print("Gate api exception, label: %s, message: %s\n" % (ex.label, ex.message)) @@ -1315,6 +1318,7 @@ Name | Type | Description | Notes **contract** | **str**| Futures contract | **leverage** | **str**| New position leverage | **cross_leverage_limit** | **str**| Cross margin leverage (valid only when `leverage` is 0) | [optional] + **pid** | **int**| Product ID | [optional] ### Return type @@ -1938,7 +1942,7 @@ status = 'open' # str | Query order list based on status contract = 'BTC_USDT' # str | Futures contract, return related data only if specified (optional) limit = 100 # int | Maximum number of records returned in a single list (optional) (default to 100) offset = 0 # int | List offset, starting from 0 (optional) (default to 0) -last_id = '12345' # str | Specify the currency name to query in batches, and support up to 100 pass parameters at a time (optional) +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) try: # Query futures order list @@ -1959,7 +1963,7 @@ Name | Type | Description | Notes **contract** | **str**| Futures contract, return related data only if specified | [optional] **limit** | **int**| Maximum number of records returned in a single list | [optional] [default to 100] **offset** | **int**| List offset, starting from 0 | [optional] [default to 0] - **last_id** | **str**| Specify the currency name to query in batches, and support up to 100 pass parameters at a time | [optional] + **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] ### Return type @@ -2055,7 +2059,7 @@ Name | Type | Description | Notes [[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) # **cancel_futures_orders** -> list[FuturesOrder] cancel_futures_orders(settle, contract, x_gate_exptime=x_gate_exptime, side=side) +> list[FuturesOrder] cancel_futures_orders(settle, contract, x_gate_exptime=x_gate_exptime, side=side, exclude_reduce_only=exclude_reduce_only, text=text) Cancel all orders with 'open' status @@ -2088,11 +2092,13 @@ api_instance = gate_api.FuturesApi(api_client) settle = 'usdt' # str | Settle currency contract = 'BTC_USDT' # str | Futures contract x_gate_exptime = '1689560679123' # str | Specify the expiration time (milliseconds); if the GATE receives the request time greater than the expiration time, the request will be rejected (optional) -side = 'ask' # str | Specify all buy orders or all sell orders, both are included if not specified. Set to bid, set to ask to cancel all sell ordersspecified. Set to bid, set to ask to cancel all sell ordersspecified. Set to bid, set to ask to cancel all sell orders (optional) +side = 'ask' # str | Specify all buy orders or all sell orders, both are included if not specified. Set to bid to cancel all buy orders, set to ask to cancel all sell orders (optional) +exclude_reduce_only = False # bool | Whether to exclude reduce-only orders (optional) (default to False) +text = 'cancel by user' # str | Remark for order cancellation (optional) try: # Cancel all orders with 'open' status - api_response = api_instance.cancel_futures_orders(settle, contract, x_gate_exptime=x_gate_exptime, side=side) + api_response = api_instance.cancel_futures_orders(settle, contract, x_gate_exptime=x_gate_exptime, side=side, exclude_reduce_only=exclude_reduce_only, text=text) print(api_response) except GateApiException as ex: print("Gate api exception, label: %s, message: %s\n" % (ex.label, ex.message)) @@ -2107,7 +2113,9 @@ Name | Type | Description | Notes **settle** | **str**| Settle currency | **contract** | **str**| Futures contract | **x_gate_exptime** | **str**| Specify the expiration time (milliseconds); if the GATE receives the request time greater than the expiration time, the request will be rejected | [optional] - **side** | **str**| Specify all buy orders or all sell orders, both are included if not specified. Set to bid, set to ask to cancel all sell ordersspecified. Set to bid, set to ask to cancel all sell ordersspecified. Set to bid, set to ask to cancel all sell orders | [optional] + **side** | **str**| Specify all buy orders or all sell orders, both are included if not specified. Set to bid to cancel all buy orders, set to ask to cancel all sell orders | [optional] + **exclude_reduce_only** | **bool**| Whether to exclude reduce-only orders | [optional] [default to False] + **text** | **str**| Remark for order cancellation | [optional] ### Return type diff --git a/docs/FuturesOrder.md b/docs/FuturesOrder.md index 89c6a9d..1d0de6a 100644 --- a/docs/FuturesOrder.md +++ b/docs/FuturesOrder.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **id** | **int** | Futures order ID | [optional] [readonly] **user** | **int** | User ID | [optional] [readonly] **create_time** | **float** | Creation time of order | [optional] [readonly] +**update_time** | **float** | OrderUpdateTime | [optional] [readonly] **finish_time** | **float** | Order finished time. Not returned if order is open | [optional] [readonly] **finish_as** | **str** | How the order was finished: - filled: all filled - cancelled: manually cancelled - liquidated: cancelled because of liquidation - ioc: time in force is `IOC`, finish immediately - auto_deleveraged: finished by ADL - reduce_only: cancelled because of increasing position while `reduce-only` 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] **status** | **str** | Order status - `open`: Pending - `finished`: Completed | [optional] [readonly] @@ -30,6 +31,8 @@ Name | Type | Description | Notes **stp_id** | **int** | Orders between users in the same `stp_id` group are not allowed to be self-traded 1. If the `stp_id` of two orders being matched is non-zero and equal, they will not be executed. Instead, the corresponding strategy will be executed based on the `stp_act` of the taker. 2. `stp_id` returns `0` by default for orders that have not been set for `STP group` | [optional] [readonly] **stp_act** | **str** | Self-Trading Prevention Action. Users can use this field to set self-trade prevention strategies 1. After users join the `STP Group`, they can pass `stp_act` to limit the user's self-trade prevention strategy. If `stp_act` is not passed, the default is `cn` strategy. 2. When the user does not join the `STP group`, an error will be returned when passing the `stp_act` parameter. 3. If the user did not use `stp_act` when placing the order, `stp_act` will return '-' - cn: Cancel newest, cancel new orders and keep old ones - co: Cancel oldest, cancel old orders and keep new ones - cb: Cancel both, both old and new orders will be cancelled | [optional] **amend_text** | **str** | The custom data that the user remarked when amending the order | [optional] [readonly] +**limit_vip** | **int** | Counterparty user's VIP level for limit order fills. Current order will only match with orders whose VIP level is less than or equal to the specified level. Only 11~16 are supported; default is 0 | [optional] +**pid** | **int** | Position ID | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/FuturesOrderAmendment.md b/docs/FuturesOrderAmendment.md index 0cc8dd7..4e3bce2 100644 --- a/docs/FuturesOrderAmendment.md +++ b/docs/FuturesOrderAmendment.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **size** | **int** | New order size, including filled part. - If new size is less than or equal to filled size, the order will be cancelled. - Order side must be identical to the original one. - Close order size cannot be changed. - For reduce only orders, increasing size may leads to other reduce only orders being cancelled. - If price is not changed, decreasing size will not change its precedence in order book, while increasing will move it to the last at current price. | [optional] **price** | **str** | New order price | [optional] **amend_text** | **str** | Custom info during order amendment | [optional] +**text** | **str** | Internal users can modify information in the text field. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/FuturesTicker.md b/docs/FuturesTicker.md index 2c9ba71..d0f8511 100644 --- a/docs/FuturesTicker.md +++ b/docs/FuturesTicker.md @@ -24,6 +24,11 @@ Name | Type | Description | Notes **lowest_size** | **str** | The latest seller's lowest price order quantity | [optional] **highest_bid** | **str** | Recent highest bid | [optional] **highest_size** | **str** | The latest buyer's highest price order volume | [optional] +**change_utc0** | **str** | Percentage change at utc0. Negative values indicate a drop, e.g., -7.45% | [optional] +**change_utc8** | **str** | Percentage change at utc8. Negative values indicate a drop, e.g., -7.45% | [optional] +**change_price** | **str** | 24h change amount. Negative values indicate a drop, e.g., -7.45 | [optional] +**change_utc0_price** | **str** | Change amount at utc0. Negative values indicate a drop, e.g., -7.45 | [optional] +**change_utc8_price** | **str** | Change amount at utc8. Negative values indicate a drop, e.g., -7.45 | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/MultiCollateralLoanApi.md b/docs/MultiCollateralLoanApi.md index 8cc3516..ab66f2a 100644 --- a/docs/MultiCollateralLoanApi.md +++ b/docs/MultiCollateralLoanApi.md @@ -50,7 +50,7 @@ api_instance = gate_api.MultiCollateralLoanApi(api_client) page = 1 # int | Page number (optional) (default to 1) limit = 10 # int | Maximum number of records returned in a single list (optional) (default to 10) sort = 'ltv_asc' # str | Sort type: `time_desc` - Created time descending (default), `ltv_asc` - Collateral ratio ascending, `ltv_desc` - Collateral ratio descending. (optional) -order_type = 'current' # str | Order type: current - Query current orders, fixed - Query fixed orders, defaults to current orders if not specifiedOrder type: current - Query current orders, fixed - Query fixed orders, defaults to current orders if not specified (optional) +order_type = 'current' # str | Order type: current - Query current orders, fixed - Query fixed orders, defaults to current orders if not specified (optional) try: # Query multi-currency collateral order list @@ -69,7 +69,7 @@ Name | Type | Description | Notes **page** | **int**| Page number | [optional] [default to 1] **limit** | **int**| Maximum number of records returned in a single list | [optional] [default to 10] **sort** | **str**| Sort type: `time_desc` - Created time descending (default), `ltv_asc` - Collateral ratio ascending, `ltv_desc` - Collateral ratio descending. | [optional] - **order_type** | **str**| Order type: current - Query current orders, fixed - Query fixed orders, defaults to current orders if not specifiedOrder type: current - Query current orders, fixed - Query fixed orders, defaults to current orders if not specified | [optional] + **order_type** | **str**| Order type: current - Query current orders, fixed - Query fixed orders, defaults to current orders if not specified | [optional] ### Return type diff --git a/docs/MultiLoanRepayItem.md b/docs/MultiLoanRepayItem.md index d8ab1d1..f381f48 100644 --- a/docs/MultiLoanRepayItem.md +++ b/docs/MultiLoanRepayItem.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **currency** | **str** | Repayment currency | [optional] **amount** | **str** | Size | [optional] -**repaid_all** | **bool** | Repayment method, set to true for full repayment, false for partial repayment | [optional] +**repaid_all** | **bool** | Repayment method, set to true for full repayment, false for partial repayment | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Position.md b/docs/Position.md index 642582b..5c4065b 100644 --- a/docs/Position.md +++ b/docs/Position.md @@ -37,6 +37,7 @@ Name | Type | Description | Notes **open_time** | **int** | First Open Time | [optional] **risk_limit_table** | **str** | Risk limit table ID | [optional] [readonly] **average_maintenance_rate** | **str** | Average maintenance margin rate | [optional] [readonly] +**pid** | **int** | Sub-account position ID | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RebateApi.md b/docs/RebateApi.md index 45593ba..f7e8f50 100644 --- a/docs/RebateApi.md +++ b/docs/RebateApi.md @@ -95,7 +95,7 @@ Name | Type | Description | Notes [[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) # **agency_commissions_history** -> list[AgencyCommissionHistory] agency_commissions_history(currency=currency, user_id=user_id, _from=_from, to=to, limit=limit, offset=offset) +> list[AgencyCommissionHistory] agency_commissions_history(currency=currency, commission_type=commission_type, user_id=user_id, _from=_from, to=to, limit=limit, offset=offset) Broker obtains rebate history of recommended users @@ -126,6 +126,7 @@ api_client = gate_api.ApiClient(configuration) # Create an instance of the API class api_instance = gate_api.RebateApi(api_client) currency = 'BTC' # str | Specify the currency. If not specified, returns all currencies (optional) +commission_type = 1 # int | Rebate type: 1 - Direct rebate, 2 - Indirect rebate, 3 - Self rebate (optional) user_id = 10003 # int | User ID. If not specified, all user records will be returned (optional) _from = 1602120000 # int | Start time for querying records, defaults to 7 days before current time if not specified (optional) to = 1602123600 # int | End timestamp for the query, defaults to current time if not specified (optional) @@ -134,7 +135,7 @@ offset = 0 # int | List offset, starting from 0 (optional) (default to 0) try: # Broker obtains rebate history of recommended users - api_response = api_instance.agency_commissions_history(currency=currency, user_id=user_id, _from=_from, to=to, limit=limit, offset=offset) + api_response = api_instance.agency_commissions_history(currency=currency, commission_type=commission_type, user_id=user_id, _from=_from, to=to, limit=limit, offset=offset) print(api_response) except GateApiException as ex: print("Gate api exception, label: %s, message: %s\n" % (ex.label, ex.message)) @@ -147,6 +148,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **currency** | **str**| Specify the currency. If not specified, returns all currencies | [optional] + **commission_type** | **int**| Rebate type: 1 - Direct rebate, 2 - Indirect rebate, 3 - Self rebate | [optional] **user_id** | **int**| User ID. If not specified, all user records will be returned | [optional] **_from** | **int**| Start time for querying records, defaults to 7 days before current time if not specified | [optional] **to** | **int**| End timestamp for the query, defaults to current time if not specified | [optional] diff --git a/docs/SpotApi.md b/docs/SpotApi.md index b9dad8b..9b2c765 100644 --- a/docs/SpotApi.md +++ b/docs/SpotApi.md @@ -416,7 +416,7 @@ api_client = gate_api.ApiClient(configuration) api_instance = gate_api.SpotApi(api_client) currency_pair = 'BTC_USDT' # str | Currency pair limit = 100 # int | Maximum number of items returned in list. Default: 100, minimum: 1, maximum: 1000 (optional) (default to 100) -last_id = '12345' # str | Specify the currency name to query in batches, and support up to 100 pass parameters at a time (optional) +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) reverse = False # bool | Whether to retrieve data less than `last_id`. Default returns records greater than `last_id`. Set to `true` to trace back market trade records, `false` to get latest trades. No effect when `last_id` is not set. (optional) (default to False) _from = 1627706330 # int | Start timestamp for the query (optional) to = 1635329650 # int | End timestamp for the query, defaults to current time if not specified (optional) @@ -438,7 +438,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **currency_pair** | **str**| Currency pair | **limit** | **int**| Maximum number of items returned in list. Default: 100, minimum: 1, maximum: 1000 | [optional] [default to 100] - **last_id** | **str**| Specify the currency name to query in batches, and support up to 100 pass parameters at a time | [optional] + **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] **reverse** | **bool**| Whether to retrieve data less than `last_id`. Default returns records greater than `last_id`. Set to `true` to trace back market trade records, `false` to get latest trades. No effect when `last_id` is not set. | [optional] [default to False] **_from** | **int**| Start timestamp for the query | [optional] **to** | **int**| End timestamp for the query, defaults to current time if not specified | [optional] diff --git a/docs/SubAccount.md b/docs/SubAccount.md index 5a26c92..4778a33 100644 --- a/docs/SubAccount.md +++ b/docs/SubAccount.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **remark** | **str** | Remark | [optional] -**login_name** | **str** | 子账户登陆名:仅支持字母、数字、下划线,不可包含其他非法字符。 | +**login_name** | **str** | Sub-account login name: Only letters, numbers and underscores are supported, cannot contain other invalid characters | **password** | **str** | The sub-account's password. (Default: the same as main account's password) | [optional] **email** | **str** | The sub-account's email address. (Default: the same as main account's email address) | [optional] **state** | **int** | Sub-account status: 1-normal, 2-locked | [optional] [readonly] diff --git a/docs/SwapCoinStruct.md b/docs/SwapCoinStruct.md index 00ba132..15735e1 100644 --- a/docs/SwapCoinStruct.md +++ b/docs/SwapCoinStruct.md @@ -8,11 +8,11 @@ Name | Type | Description | Notes **uid** | **int** | User ID | [optional] **coin** | **str** | Currency | [optional] **type** | **int** | Type 0-Staking 1-Redemption | [optional] -**subtype** | **str** | 子类型 | [optional] +**subtype** | **str** | SubType | [optional] **amount** | **str** | Amount | [optional] **exchange_rate** | **str** | Exchange ratio | [optional] **exchange_amount** | **str** | Redemption Amount | [optional] -**update_stamp** | **int** | 更新时间戳 | [optional] +**update_stamp** | **int** | UpdateTimestamp | [optional] **create_stamp** | **int** | Transaction timestamp | [optional] **status** | **int** | status 1-success | [optional] **protocol_type** | **int** | DEFI Protocol Type | [optional] diff --git a/docs/UnifiedApi.md b/docs/UnifiedApi.md index 1c46f6a..5c23e08 100644 --- a/docs/UnifiedApi.md +++ b/docs/UnifiedApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**get_unified_mode**](UnifiedApi.md#get_unified_mode) | **GET** /unified/unified_mode | Query mode of the unified account [**set_unified_mode**](UnifiedApi.md#set_unified_mode) | **PUT** /unified/unified_mode | Set unified account mode [**get_unified_estimate_rate**](UnifiedApi.md#get_unified_estimate_rate) | **GET** /unified/estimate_rate | Query unified account estimated interest rate -[**list_currency_discount_tiers**](UnifiedApi.md#list_currency_discount_tiers) | **GET** /unified/currency_discount_tiers | Query unified account tiered discount +[**list_currency_discount_tiers**](UnifiedApi.md#list_currency_discount_tiers) | **GET** /unified/currency_discount_tiers | Query unified account tiered [**list_loan_margin_tiers**](UnifiedApi.md#list_loan_margin_tiers) | **GET** /unified/loan_margin_tiers | Query unified account tiered loan margin [**calculate_portfolio_margin**](UnifiedApi.md#calculate_portfolio_margin) | **POST** /unified/portfolio_calculator | Portfolio margin calculator [**get_user_leverage_currency_config**](UnifiedApi.md#get_user_leverage_currency_config) | **GET** /unified/leverage/user_currency_config | Maximum and minimum currency leverage that can be set @@ -929,7 +929,7 @@ Name | Type | Description | Notes # **list_currency_discount_tiers** > list[UnifiedDiscount] list_currency_discount_tiers() -Query unified account tiered discount +Query unified account tiered ### Example @@ -948,7 +948,7 @@ api_client = gate_api.ApiClient(configuration) api_instance = gate_api.UnifiedApi(api_client) try: - # Query unified account tiered discount + # Query unified account tiered api_response = api_instance.list_currency_discount_tiers() print(api_response) except GateApiException as ex: diff --git a/gate_api/__init__.py b/gate_api/__init__.py index 74a5f6b..327ad77 100644 --- a/gate_api/__init__.py +++ b/gate_api/__init__.py @@ -14,7 +14,7 @@ from __future__ import absolute_import -__version__ = "6.104.3" +__version__ = "7.1.7" # import apis into sdk package from gate_api.api.earn_uni_api import EarnUniApi diff --git a/gate_api/api/delivery_api.py b/gate_api/api/delivery_api.py index 744e9e4..4979aa5 100644 --- a/gate_api/api/delivery_api.py +++ b/gate_api/api/delivery_api.py @@ -423,7 +423,7 @@ def list_delivery_trades(self, settle, contract, **kwargs): # noqa: E501 :param str settle: Settle currency (required) :param str contract: Futures contract (required) :param int limit: Maximum number of records returned in a single list - :param str last_id: 以上个列表的最后一条记录的 ID 作为下个列表的起点。 该字段不再继续支持,新的请求请使用 `from` 和 `to` 字段来限定时间范围 + :param str last_id: 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 :param int _from: 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. :param int to: Specify end time in Unix seconds, default to current time. :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -452,7 +452,7 @@ def list_delivery_trades_with_http_info(self, settle, contract, **kwargs): # no :param str settle: Settle currency (required) :param str contract: Futures contract (required) :param int limit: Maximum number of records returned in a single list - :param str last_id: 以上个列表的最后一条记录的 ID 作为下个列表的起点。 该字段不再继续支持,新的请求请使用 `from` 和 `to` 字段来限定时间范围 + :param str last_id: 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 :param int _from: 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. :param int to: Specify end time in Unix seconds, default to current time. :param _return_http_data_only: response data without head status code @@ -571,7 +571,7 @@ def list_delivery_candlesticks(self, settle, contract, **kwargs): # noqa: E501 :param int _from: Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified :param int to: 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 :param int limit: 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. - :param str interval: 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 + :param str interval: Time interval between data points, note that 1w represents a natural week, 7d time is aligned with Unix initial time :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -601,7 +601,7 @@ def list_delivery_candlesticks_with_http_info(self, settle, contract, **kwargs): :param int _from: Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified :param int to: 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 :param int limit: 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. - :param str interval: 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 + :param str interval: Time interval between data points, note that 1w represents a natural week, 7d time is aligned with Unix initial time :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -1064,7 +1064,7 @@ def list_delivery_account_book(self, settle, **kwargs): # noqa: E501 :param int limit: Maximum number of records returned in a single list :param int _from: 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) :param int to: Termination Timestamp Specify the end time. If not specified, it defaults to the current time, and the time format is a Unix timestamp - :param str type: 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 + :param str type: 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 :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -1092,7 +1092,7 @@ def list_delivery_account_book_with_http_info(self, settle, **kwargs): # noqa: :param int limit: Maximum number of records returned in a single list :param int _from: 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) :param int to: Termination Timestamp Specify the end time. If not specified, it defaults to the current time, and the time format is a Unix timestamp - :param str type: 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 + :param str type: 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 :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -1825,7 +1825,7 @@ def list_delivery_orders(self, settle, status, **kwargs): # noqa: E501 :param str contract: Futures contract :param int limit: Maximum number of records returned in a single list :param int offset: List offset, starting from 0 - :param str last_id: Specify the currency name to query in batches, and support up to 100 pass parameters at a time + :param str last_id: 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 :param int count_total: Whether to return total number matched, defaults to 0 (no return) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response @@ -1856,7 +1856,7 @@ def list_delivery_orders_with_http_info(self, settle, status, **kwargs): # noqa :param str contract: Futures contract :param int limit: Maximum number of records returned in a single list :param int offset: List offset, starting from 0 - :param str last_id: Specify the currency name to query in batches, and support up to 100 pass parameters at a time + :param str last_id: 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 :param int count_total: Whether to return total number matched, defaults to 0 (no return) :param _return_http_data_only: response data without head status code and headers @@ -2477,7 +2477,7 @@ def get_my_delivery_trades(self, settle, **kwargs): # noqa: E501 :param int order: Futures order ID, return related data only if specified :param int limit: Maximum number of records returned in a single list :param int offset: List offset, starting from 0 - :param str last_id: Specify the currency name to query in batches, and support up to 100 pass parameters at a time + :param str last_id: 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 :param int count_total: Whether to return total number matched, defaults to 0 (no return) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response @@ -2507,7 +2507,7 @@ def get_my_delivery_trades_with_http_info(self, settle, **kwargs): # noqa: E501 :param int order: Futures order ID, return related data only if specified :param int limit: Maximum number of records returned in a single list :param int offset: List offset, starting from 0 - :param str last_id: Specify the currency name to query in batches, and support up to 100 pass parameters at a time + :param str last_id: 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 :param int count_total: Whether to return total number matched, defaults to 0 (no return) :param _return_http_data_only: response data without head status code and headers @@ -3002,7 +3002,7 @@ def list_delivery_settlements_with_http_info(self, settle, **kwargs): # noqa: E def list_delivery_risk_limit_tiers(self, settle, **kwargs): # noqa: E501 """Query risk limit tiers # noqa: E501 - 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. # noqa: E501 + 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. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_delivery_risk_limit_tiers(settle, async_req=True) @@ -3030,7 +3030,7 @@ def list_delivery_risk_limit_tiers(self, settle, **kwargs): # noqa: E501 def list_delivery_risk_limit_tiers_with_http_info(self, settle, **kwargs): # noqa: E501 """Query risk limit tiers # noqa: E501 - 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. # noqa: E501 + 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. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_delivery_risk_limit_tiers_with_http_info(settle, async_req=True) diff --git a/gate_api/api/earn_api.py b/gate_api/api/earn_api.py index 8f7b083..2076555 100644 --- a/gate_api/api/earn_api.py +++ b/gate_api/api/earn_api.py @@ -993,7 +993,7 @@ def find_coin(self, find_coin, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :rtype: list[str] + :rtype: object :return: If the method is called asynchronously, returns the request thread. """ @@ -1019,7 +1019,7 @@ def find_coin_with_http_info(self, find_coin, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :rtype: tuple(list[str], status_code(int), headers(HTTPHeaderDict)) + :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict)) :return: If the method is called asynchronously, returns the request thread. """ @@ -1084,7 +1084,7 @@ def find_coin_with_http_info(self, find_coin, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='list[str]', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 diff --git a/gate_api/api/futures_api.py b/gate_api/api/futures_api.py index 94301a7..5d20be4 100644 --- a/gate_api/api/futures_api.py +++ b/gate_api/api/futures_api.py @@ -595,6 +595,7 @@ def list_futures_candlesticks(self, settle, contract, **kwargs): # noqa: E501 :param int to: 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 :param int limit: 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. :param str interval: Interval time between data points. Note that `1w` means natural week(Mon-Sun), while `7d` means every 7d since unix 0. 30d represents a natural month, not 30 days + :param str timezone: Time zone: all/utc0/utc8, default utc0 :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -625,6 +626,7 @@ def list_futures_candlesticks_with_http_info(self, settle, contract, **kwargs): :param int to: 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 :param int limit: 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. :param str interval: Interval time between data points. Note that `1w` means natural week(Mon-Sun), while `7d` means every 7d since unix 0. 30d represents a natural month, not 30 days + :param str timezone: Time zone: all/utc0/utc8, default utc0 :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -647,7 +649,8 @@ def list_futures_candlesticks_with_http_info(self, settle, contract, **kwargs): '_from', 'to', 'limit', - 'interval' + 'interval', + 'timezone' ] all_params.extend( [ @@ -694,6 +697,8 @@ def list_futures_candlesticks_with_http_info(self, settle, contract, **kwargs): query_params.append(('limit', local_var_params['limit'])) # noqa: E501 if 'interval' in local_var_params and local_var_params['interval'] is not None: # noqa: E501 query_params.append(('interval', local_var_params['interval'])) # noqa: E501 + if 'timezone' in local_var_params and local_var_params['timezone'] is not None: # noqa: E501 + query_params.append(('timezone', local_var_params['timezone'])) # noqa: E501 header_params = {} @@ -1511,7 +1516,7 @@ def get_index_constituents_with_http_info(self, settle, index, **kwargs): # noq def list_liquidated_orders(self, settle, **kwargs): # noqa: E501 """Query liquidation order history # noqa: E501 - The time interval between from and to is maximum 3600. Some private fields are not returned by public interfaces, refer to field descriptions for detailsThe time interval between from and to is maximum 3600. Some private fields are not returned by public interfaces, refer to field descriptions for interfaces, refer to field descriptions for details # noqa: E501 + The time interval between from and to is maximum 3600. Some private fields are not returned by public interfaces, refer to field descriptions for details # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_liquidated_orders(settle, async_req=True) @@ -1540,7 +1545,7 @@ def list_liquidated_orders(self, settle, **kwargs): # noqa: E501 def list_liquidated_orders_with_http_info(self, settle, **kwargs): # noqa: E501 """Query liquidation order history # noqa: E501 - The time interval between from and to is maximum 3600. Some private fields are not returned by public interfaces, refer to field descriptions for detailsThe time interval between from and to is maximum 3600. Some private fields are not returned by public interfaces, refer to field descriptions for interfaces, refer to field descriptions for details # noqa: E501 + The time interval between from and to is maximum 3600. Some private fields are not returned by public interfaces, refer to field descriptions for details # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_liquidated_orders_with_http_info(settle, async_req=True) @@ -1649,7 +1654,7 @@ def list_liquidated_orders_with_http_info(self, settle, **kwargs): # noqa: E501 def list_futures_risk_limit_tiers(self, settle, **kwargs): # noqa: E501 """Query risk limit tiers # noqa: E501 - 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. # noqa: E501 + 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. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_futures_risk_limit_tiers(settle, async_req=True) @@ -1677,7 +1682,7 @@ def list_futures_risk_limit_tiers(self, settle, **kwargs): # noqa: E501 def list_futures_risk_limit_tiers_with_http_info(self, settle, **kwargs): # noqa: E501 """Query risk limit tiers # noqa: E501 - 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. # noqa: E501 + 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. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_futures_risk_limit_tiers_with_http_info(settle, async_req=True) @@ -1909,7 +1914,7 @@ def list_futures_account_book(self, settle, **kwargs): # noqa: E501 :param int offset: List offset, starting from 0 :param int _from: 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) :param int to: Termination Timestamp Specify the end time. If not specified, it defaults to the current time, and the time format is a Unix timestamp - :param str type: 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 + :param str type: 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 :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -1940,7 +1945,7 @@ def list_futures_account_book_with_http_info(self, settle, **kwargs): # noqa: E :param int offset: List offset, starting from 0 :param int _from: 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) :param int to: Termination Timestamp Specify the end time. If not specified, it defaults to the current time, and the time format is a Unix timestamp - :param str type: 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 + :param str type: 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 :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -2440,6 +2445,7 @@ def update_position_leverage(self, settle, contract, leverage, **kwargs): # noq :param str contract: Futures contract (required) :param str leverage: New position leverage (required) :param str cross_leverage_limit: Cross margin leverage (valid only when `leverage` is 0) + :param int pid: Product ID :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -2467,6 +2473,7 @@ def update_position_leverage_with_http_info(self, settle, contract, leverage, ** :param str contract: Futures contract (required) :param str leverage: New position leverage (required) :param str cross_leverage_limit: Cross margin leverage (valid only when `leverage` is 0) + :param int pid: Product ID :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -2487,7 +2494,8 @@ def update_position_leverage_with_http_info(self, settle, contract, leverage, ** 'settle', 'contract', 'leverage', - 'cross_leverage_limit' + 'cross_leverage_limit', + 'pid' ] all_params.extend( [ @@ -2532,6 +2540,8 @@ def update_position_leverage_with_http_info(self, settle, contract, leverage, ** query_params.append(('leverage', local_var_params['leverage'])) # noqa: E501 if 'cross_leverage_limit' in local_var_params and local_var_params['cross_leverage_limit'] is not None: # noqa: E501 query_params.append(('cross_leverage_limit', local_var_params['cross_leverage_limit'])) # noqa: E501 + if 'pid' in local_var_params and local_var_params['pid'] is not None: # noqa: E501 + query_params.append(('pid', local_var_params['pid'])) # noqa: E501 header_params = {} @@ -3605,7 +3615,7 @@ def list_futures_orders(self, settle, status, **kwargs): # noqa: E501 :param str contract: Futures contract, return related data only if specified :param int limit: Maximum number of records returned in a single list :param int offset: List offset, starting from 0 - :param str last_id: Specify the currency name to query in batches, and support up to 100 pass parameters at a time + :param str last_id: 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 :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -3635,7 +3645,7 @@ def list_futures_orders_with_http_info(self, settle, status, **kwargs): # noqa: :param str contract: Futures contract, return related data only if specified :param int limit: Maximum number of records returned in a single list :param int offset: List offset, starting from 0 - :param str last_id: Specify the currency name to query in batches, and support up to 100 pass parameters at a time + :param str last_id: 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 :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -3884,7 +3894,9 @@ def cancel_futures_orders(self, settle, contract, **kwargs): # noqa: E501 :param str settle: Settle currency (required) :param str contract: Futures contract (required) :param str x_gate_exptime: Specify the expiration time (milliseconds); if the GATE receives the request time greater than the expiration time, the request will be rejected - :param str side: Specify all buy orders or all sell orders, both are included if not specified. Set to bid, set to ask to cancel all sell ordersspecified. Set to bid, set to ask to cancel all sell ordersspecified. Set to bid, set to ask to cancel all sell orders + :param str side: Specify all buy orders or all sell orders, both are included if not specified. Set to bid to cancel all buy orders, set to ask to cancel all sell orders + :param bool exclude_reduce_only: Whether to exclude reduce-only orders + :param str text: Remark for order cancellation :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -3912,7 +3924,9 @@ def cancel_futures_orders_with_http_info(self, settle, contract, **kwargs): # n :param str settle: Settle currency (required) :param str contract: Futures contract (required) :param str x_gate_exptime: Specify the expiration time (milliseconds); if the GATE receives the request time greater than the expiration time, the request will be rejected - :param str side: Specify all buy orders or all sell orders, both are included if not specified. Set to bid, set to ask to cancel all sell ordersspecified. Set to bid, set to ask to cancel all sell ordersspecified. Set to bid, set to ask to cancel all sell orders + :param str side: Specify all buy orders or all sell orders, both are included if not specified. Set to bid to cancel all buy orders, set to ask to cancel all sell orders + :param bool exclude_reduce_only: Whether to exclude reduce-only orders + :param str text: Remark for order cancellation :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -3933,7 +3947,9 @@ def cancel_futures_orders_with_http_info(self, settle, contract, **kwargs): # n 'settle', 'contract', 'x_gate_exptime', - 'side' + 'side', + 'exclude_reduce_only', + 'text' ] all_params.extend( [ @@ -3972,6 +3988,10 @@ def cancel_futures_orders_with_http_info(self, settle, contract, **kwargs): # n query_params.append(('contract', local_var_params['contract'])) # noqa: E501 if 'side' in local_var_params and local_var_params['side'] is not None: # noqa: E501 query_params.append(('side', local_var_params['side'])) # noqa: E501 + if 'exclude_reduce_only' in local_var_params and local_var_params['exclude_reduce_only'] is not None: # noqa: E501 + query_params.append(('exclude_reduce_only', local_var_params['exclude_reduce_only'])) # noqa: E501 + if 'text' in local_var_params and local_var_params['text'] is not None: # noqa: E501 + query_params.append(('text', local_var_params['text'])) # noqa: E501 header_params = {} if 'x_gate_exptime' in local_var_params: diff --git a/gate_api/api/multi_collateral_loan_api.py b/gate_api/api/multi_collateral_loan_api.py index 75a6582..4578f3f 100644 --- a/gate_api/api/multi_collateral_loan_api.py +++ b/gate_api/api/multi_collateral_loan_api.py @@ -48,7 +48,7 @@ def list_multi_collateral_orders(self, **kwargs): # noqa: E501 :param int page: Page number :param int limit: Maximum number of records returned in a single list :param str sort: Sort type: `time_desc` - Created time descending (default), `ltv_asc` - Collateral ratio ascending, `ltv_desc` - Collateral ratio descending. - :param str order_type: Order type: current - Query current orders, fixed - Query fixed orders, defaults to current orders if not specifiedOrder type: current - Query current orders, fixed - Query fixed orders, defaults to current orders if not specified + :param str order_type: Order type: current - Query current orders, fixed - Query fixed orders, defaults to current orders if not specified :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -75,7 +75,7 @@ def list_multi_collateral_orders_with_http_info(self, **kwargs): # noqa: E501 :param int page: Page number :param int limit: Maximum number of records returned in a single list :param str sort: Sort type: `time_desc` - Created time descending (default), `ltv_asc` - Collateral ratio ascending, `ltv_desc` - Collateral ratio descending. - :param str order_type: Order type: current - Query current orders, fixed - Query fixed orders, defaults to current orders if not specifiedOrder type: current - Query current orders, fixed - Query fixed orders, defaults to current orders if not specified + :param str order_type: Order type: current - Query current orders, fixed - Query fixed orders, defaults to current orders if not specified :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will diff --git a/gate_api/api/rebate_api.py b/gate_api/api/rebate_api.py index fda77e3..f04f15e 100644 --- a/gate_api/api/rebate_api.py +++ b/gate_api/api/rebate_api.py @@ -188,6 +188,7 @@ def agency_commissions_history(self, **kwargs): # noqa: E501 :param bool async_req: execute request asynchronously :param str currency: Specify the currency. If not specified, returns all currencies + :param int commission_type: Rebate type: 1 - Direct rebate, 2 - Indirect rebate, 3 - Self rebate :param int user_id: User ID. If not specified, all user records will be returned :param int _from: Start time for querying records, defaults to 7 days before current time if not specified :param int to: End timestamp for the query, defaults to current time if not specified @@ -218,6 +219,7 @@ def agency_commissions_history_with_http_info(self, **kwargs): # noqa: E501 :param bool async_req: execute request asynchronously :param str currency: Specify the currency. If not specified, returns all currencies + :param int commission_type: Rebate type: 1 - Direct rebate, 2 - Indirect rebate, 3 - Self rebate :param int user_id: User ID. If not specified, all user records will be returned :param int _from: Start time for querying records, defaults to 7 days before current time if not specified :param int to: End timestamp for the query, defaults to current time if not specified @@ -241,6 +243,7 @@ def agency_commissions_history_with_http_info(self, **kwargs): # noqa: E501 all_params = [ 'currency', + 'commission_type', 'user_id', '_from', 'to', @@ -278,6 +281,8 @@ def agency_commissions_history_with_http_info(self, **kwargs): # noqa: E501 query_params = [] if 'currency' in local_var_params and local_var_params['currency'] is not None: # noqa: E501 query_params.append(('currency', local_var_params['currency'])) # noqa: E501 + if 'commission_type' in local_var_params and local_var_params['commission_type'] is not None: # noqa: E501 + query_params.append(('commission_type', local_var_params['commission_type'])) # noqa: E501 if 'user_id' in local_var_params and local_var_params['user_id'] is not None: # noqa: E501 query_params.append(('user_id', local_var_params['user_id'])) # noqa: E501 if '_from' in local_var_params and local_var_params['_from'] is not None: # noqa: E501 diff --git a/gate_api/api/spot_api.py b/gate_api/api/spot_api.py index eb9e8ef..1894742 100644 --- a/gate_api/api/spot_api.py +++ b/gate_api/api/spot_api.py @@ -726,7 +726,7 @@ def list_trades(self, currency_pair, **kwargs): # noqa: E501 :param bool async_req: execute request asynchronously :param str currency_pair: Currency pair (required) :param int limit: Maximum number of items returned in list. Default: 100, minimum: 1, maximum: 1000 - :param str last_id: Specify the currency name to query in batches, and support up to 100 pass parameters at a time + :param str last_id: 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 :param bool reverse: Whether to retrieve data less than `last_id`. Default returns records greater than `last_id`. Set to `true` to trace back market trade records, `false` to get latest trades. No effect when `last_id` is not set. :param int _from: Start timestamp for the query :param int to: End timestamp for the query, defaults to current time if not specified @@ -757,7 +757,7 @@ def list_trades_with_http_info(self, currency_pair, **kwargs): # noqa: E501 :param bool async_req: execute request asynchronously :param str currency_pair: Currency pair (required) :param int limit: Maximum number of items returned in list. Default: 100, minimum: 1, maximum: 1000 - :param str last_id: Specify the currency name to query in batches, and support up to 100 pass parameters at a time + :param str last_id: 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 :param bool reverse: Whether to retrieve data less than `last_id`. Default returns records greater than `last_id`. Set to `true` to trace back market trade records, `false` to get latest trades. No effect when `last_id` is not set. :param int _from: Start timestamp for the query :param int to: End timestamp for the query, defaults to current time if not specified diff --git a/gate_api/api/unified_api.py b/gate_api/api/unified_api.py index dee5225..a6deb68 100644 --- a/gate_api/api/unified_api.py +++ b/gate_api/api/unified_api.py @@ -1567,7 +1567,7 @@ def get_unified_estimate_rate_with_http_info(self, currencies, **kwargs): # noq collection_formats=collection_formats) def list_currency_discount_tiers(self, **kwargs): # noqa: E501 - """Query unified account tiered discount # noqa: E501 + """Query unified account tiered # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -1590,7 +1590,7 @@ def list_currency_discount_tiers(self, **kwargs): # noqa: E501 return self.list_currency_discount_tiers_with_http_info(**kwargs) # noqa: E501 def list_currency_discount_tiers_with_http_info(self, **kwargs): # noqa: E501 - """Query unified account tiered discount # noqa: E501 + """Query unified account tiered # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/gate_api/api_client.py b/gate_api/api_client.py index a285388..896c0ca 100644 --- a/gate_api/api_client.py +++ b/gate_api/api_client.py @@ -83,7 +83,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/6.104.3/python' + self.user_agent = 'OpenAPI-Generator/7.1.7/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/gate_api/configuration.py b/gate_api/configuration.py index 02d9420..0d66245 100644 --- a/gate_api/configuration.py +++ b/gate_api/configuration.py @@ -313,8 +313,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: v4.104.3\n"\ - "SDK Package Version: 6.104.3".\ + "Version of the API: v4.105.7\n"\ + "SDK Package Version: 7.1.7".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/gate_api/models/contract.py b/gate_api/models/contract.py index a69cde8..557f6ce 100644 --- a/gate_api/models/contract.py +++ b/gate_api/models/contract.py @@ -70,7 +70,9 @@ class Contract(object): 'create_time': 'float', 'funding_cap_ratio': 'str', 'status': 'str', - 'launch_time': 'int' + 'launch_time': 'int', + 'delisting_time': 'int', + 'delisted_time': 'int' } attribute_map = { @@ -111,11 +113,13 @@ class Contract(object): 'create_time': 'create_time', 'funding_cap_ratio': 'funding_cap_ratio', 'status': 'status', - 'launch_time': 'launch_time' + 'launch_time': 'launch_time', + 'delisting_time': 'delisting_time', + 'delisted_time': 'delisted_time' } - def __init__(self, name=None, type=None, quanto_multiplier=None, leverage_min=None, leverage_max=None, maintenance_rate=None, mark_type=None, mark_price=None, index_price=None, last_price=None, maker_fee_rate=None, taker_fee_rate=None, order_price_round=None, mark_price_round=None, funding_rate=None, funding_interval=None, funding_next_apply=None, risk_limit_base=None, risk_limit_step=None, risk_limit_max=None, order_size_min=None, order_size_max=None, order_price_deviate=None, ref_discount_rate=None, ref_rebate_rate=None, orderbook_id=None, trade_id=None, trade_size=None, position_size=None, config_change_time=None, in_delisting=None, orders_limit=None, enable_bonus=None, enable_credit=None, create_time=None, funding_cap_ratio=None, status=None, launch_time=None, local_vars_configuration=None): # noqa: E501 - # type: (str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, int, float, str, str, str, int, int, str, str, str, int, int, int, int, float, bool, int, bool, bool, float, str, str, int, Configuration) -> None + def __init__(self, name=None, type=None, quanto_multiplier=None, leverage_min=None, leverage_max=None, maintenance_rate=None, mark_type=None, mark_price=None, index_price=None, last_price=None, maker_fee_rate=None, taker_fee_rate=None, order_price_round=None, mark_price_round=None, funding_rate=None, funding_interval=None, funding_next_apply=None, risk_limit_base=None, risk_limit_step=None, risk_limit_max=None, order_size_min=None, order_size_max=None, order_price_deviate=None, ref_discount_rate=None, ref_rebate_rate=None, orderbook_id=None, trade_id=None, trade_size=None, position_size=None, config_change_time=None, in_delisting=None, orders_limit=None, enable_bonus=None, enable_credit=None, create_time=None, funding_cap_ratio=None, status=None, launch_time=None, delisting_time=None, delisted_time=None, local_vars_configuration=None): # noqa: E501 + # type: (str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, int, float, str, str, str, int, int, str, str, str, int, int, int, int, float, bool, int, bool, bool, float, str, str, int, int, int, Configuration) -> None """Contract - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -159,6 +163,8 @@ def __init__(self, name=None, type=None, quanto_multiplier=None, leverage_min=No self._funding_cap_ratio = None self._status = None self._launch_time = None + self._delisting_time = None + self._delisted_time = None self.discriminator = None if name is not None: @@ -237,6 +243,10 @@ def __init__(self, name=None, type=None, quanto_multiplier=None, leverage_min=No self.status = status if launch_time is not None: self.launch_time = launch_time + if delisting_time is not None: + self.delisting_time = delisting_time + if delisted_time is not None: + self.delisted_time = delisted_time @property def name(self): @@ -1082,7 +1092,7 @@ def funding_cap_ratio(self, funding_cap_ratio): def status(self): """Gets the status of this Contract. # noqa: E501 - Contract status types include: prelaunch (pre-launch), trading (active), delisting (delisting), delisted (delisted) # noqa: E501 + Contract status types include: prelaunch (pre-launch), trading (active), delisting (delisting), delisted (delisted), circuit_breaker (circuit breaker) # noqa: E501 :return: The status of this Contract. # noqa: E501 :rtype: str @@ -1093,7 +1103,7 @@ def status(self): def status(self, status): """Sets the status of this Contract. - Contract status types include: prelaunch (pre-launch), trading (active), delisting (delisting), delisted (delisted) # noqa: E501 + Contract status types include: prelaunch (pre-launch), trading (active), delisting (delisting), delisted (delisted), circuit_breaker (circuit breaker) # noqa: E501 :param status: The status of this Contract. # noqa: E501 :type: str @@ -1124,6 +1134,52 @@ def launch_time(self, launch_time): self._launch_time = launch_time + @property + def delisting_time(self): + """Gets the delisting_time of this Contract. # noqa: E501 + + Timestamp when contract enters reduce-only state # noqa: E501 + + :return: The delisting_time of this Contract. # noqa: E501 + :rtype: int + """ + return self._delisting_time + + @delisting_time.setter + def delisting_time(self, delisting_time): + """Sets the delisting_time of this Contract. + + Timestamp when contract enters reduce-only state # noqa: E501 + + :param delisting_time: The delisting_time of this Contract. # noqa: E501 + :type: int + """ + + self._delisting_time = delisting_time + + @property + def delisted_time(self): + """Gets the delisted_time of this Contract. # noqa: E501 + + Contract delisting time # noqa: E501 + + :return: The delisted_time of this Contract. # noqa: E501 + :rtype: int + """ + return self._delisted_time + + @delisted_time.setter + def delisted_time(self, delisted_time): + """Sets the delisted_time of this Contract. + + Contract delisting time # noqa: E501 + + :param delisted_time: The delisted_time of this Contract. # noqa: E501 + :type: int + """ + + self._delisted_time = delisted_time + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/gate_api/models/contract_stat.py b/gate_api/models/contract_stat.py index bcdd22e..cac370c 100644 --- a/gate_api/models/contract_stat.py +++ b/gate_api/models/contract_stat.py @@ -45,7 +45,8 @@ class ContractStat(object): 'open_interest': 'int', 'open_interest_usd': 'float', 'top_lsr_account': 'float', - 'top_lsr_size': 'float' + 'top_lsr_size': 'float', + 'mark_price': 'float' } attribute_map = { @@ -61,11 +62,12 @@ class ContractStat(object): 'open_interest': 'open_interest', 'open_interest_usd': 'open_interest_usd', 'top_lsr_account': 'top_lsr_account', - 'top_lsr_size': 'top_lsr_size' + 'top_lsr_size': 'top_lsr_size', + 'mark_price': 'mark_price' } - def __init__(self, time=None, lsr_taker=None, lsr_account=None, long_liq_size=None, long_liq_amount=None, long_liq_usd=None, short_liq_size=None, short_liq_amount=None, short_liq_usd=None, open_interest=None, open_interest_usd=None, top_lsr_account=None, top_lsr_size=None, local_vars_configuration=None): # noqa: E501 - # type: (int, float, float, int, float, float, int, float, float, int, float, float, float, Configuration) -> None + def __init__(self, time=None, lsr_taker=None, lsr_account=None, long_liq_size=None, long_liq_amount=None, long_liq_usd=None, short_liq_size=None, short_liq_amount=None, short_liq_usd=None, open_interest=None, open_interest_usd=None, top_lsr_account=None, top_lsr_size=None, mark_price=None, local_vars_configuration=None): # noqa: E501 + # type: (int, float, float, int, float, float, int, float, float, int, float, float, float, float, Configuration) -> None """ContractStat - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -84,6 +86,7 @@ def __init__(self, time=None, lsr_taker=None, lsr_account=None, long_liq_size=No self._open_interest_usd = None self._top_lsr_account = None self._top_lsr_size = None + self._mark_price = None self.discriminator = None if time is not None: @@ -112,6 +115,8 @@ def __init__(self, time=None, lsr_taker=None, lsr_account=None, long_liq_size=No self.top_lsr_account = top_lsr_account if top_lsr_size is not None: self.top_lsr_size = top_lsr_size + if mark_price is not None: + self.mark_price = mark_price @property def time(self): @@ -412,6 +417,29 @@ def top_lsr_size(self, top_lsr_size): self._top_lsr_size = top_lsr_size + @property + def mark_price(self): + """Gets the mark_price of this ContractStat. # noqa: E501 + + Mark price # noqa: E501 + + :return: The mark_price of this ContractStat. # noqa: E501 + :rtype: float + """ + return self._mark_price + + @mark_price.setter + def mark_price(self, mark_price): + """Sets the mark_price of this ContractStat. + + Mark price # noqa: E501 + + :param mark_price: The mark_price of this ContractStat. # noqa: E501 + :type: float + """ + + self._mark_price = mark_price + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/gate_api/models/find_coin.py b/gate_api/models/find_coin.py index cb94999..a73037a 100644 --- a/gate_api/models/find_coin.py +++ b/gate_api/models/find_coin.py @@ -33,59 +33,31 @@ class FindCoin(object): and the value is json key in definition. """ openapi_types = { - 'coin': 'str', 'cointype': 'str' } attribute_map = { - 'coin': 'coin', 'cointype': 'cointype' } - def __init__(self, coin=None, cointype=None, local_vars_configuration=None): # noqa: E501 - # type: (str, str, Configuration) -> None + def __init__(self, cointype=None, local_vars_configuration=None): # noqa: E501 + # type: (str, Configuration) -> None """FindCoin - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration - self._coin = None self._cointype = None self.discriminator = None - if coin is not None: - self.coin = coin if cointype is not None: self.cointype = cointype - @property - def coin(self): - """Gets the coin of this FindCoin. # noqa: E501 - - Currency # noqa: E501 - - :return: The coin of this FindCoin. # noqa: E501 - :rtype: str - """ - return self._coin - - @coin.setter - def coin(self, coin): - """Sets the coin of this FindCoin. - - Currency # noqa: E501 - - :param coin: The coin of this FindCoin. # noqa: E501 - :type: str - """ - - self._coin = coin - @property def cointype(self): """Gets the cointype of this FindCoin. # noqa: E501 - Token Type: swap-Voucher, lock-Locked # noqa: E501 + Currency type: swap - voucher; lock - locked position; debt - US Treasury bond. # noqa: E501 :return: The cointype of this FindCoin. # noqa: E501 :rtype: str @@ -96,7 +68,7 @@ def cointype(self): def cointype(self, cointype): """Sets the cointype of this FindCoin. - Token Type: swap-Voucher, lock-Locked # noqa: E501 + Currency type: swap - voucher; lock - locked position; debt - US Treasury bond. # noqa: E501 :param cointype: The cointype of this FindCoin. # noqa: E501 :type: str diff --git a/gate_api/models/futures_account.py b/gate_api/models/futures_account.py index 62fb2fc..6855e9f 100644 --- a/gate_api/models/futures_account.py +++ b/gate_api/models/futures_account.py @@ -41,6 +41,7 @@ class FuturesAccount(object): 'point': 'str', 'currency': 'str', 'in_dual_mode': 'bool', + 'position_mode': 'str', 'enable_credit': 'bool', 'position_initial_margin': 'str', 'maintenance_margin': 'str', @@ -70,6 +71,7 @@ class FuturesAccount(object): 'point': 'point', 'currency': 'currency', 'in_dual_mode': 'in_dual_mode', + 'position_mode': 'position_mode', 'enable_credit': 'enable_credit', 'position_initial_margin': 'position_initial_margin', 'maintenance_margin': 'maintenance_margin', @@ -90,8 +92,8 @@ class FuturesAccount(object): 'history': 'history' } - def __init__(self, total=None, unrealised_pnl=None, position_margin=None, order_margin=None, available=None, point=None, currency=None, in_dual_mode=None, enable_credit=None, position_initial_margin=None, maintenance_margin=None, bonus=None, enable_evolved_classic=None, cross_order_margin=None, cross_initial_margin=None, cross_maintenance_margin=None, cross_unrealised_pnl=None, cross_available=None, cross_margin_balance=None, cross_mmr=None, cross_imr=None, isolated_position_margin=None, enable_new_dual_mode=None, margin_mode=None, enable_tiered_mm=None, history=None, local_vars_configuration=None): # noqa: E501 - # type: (str, str, str, str, str, str, str, bool, bool, str, str, str, bool, str, str, str, str, str, str, str, str, str, bool, int, bool, FuturesAccountHistory, Configuration) -> None + def __init__(self, total=None, unrealised_pnl=None, position_margin=None, order_margin=None, available=None, point=None, currency=None, in_dual_mode=None, position_mode=None, enable_credit=None, position_initial_margin=None, maintenance_margin=None, bonus=None, enable_evolved_classic=None, cross_order_margin=None, cross_initial_margin=None, cross_maintenance_margin=None, cross_unrealised_pnl=None, cross_available=None, cross_margin_balance=None, cross_mmr=None, cross_imr=None, isolated_position_margin=None, enable_new_dual_mode=None, margin_mode=None, enable_tiered_mm=None, history=None, local_vars_configuration=None): # noqa: E501 + # type: (str, str, str, str, str, str, str, bool, str, bool, str, str, str, bool, str, str, str, str, str, str, str, str, str, bool, int, bool, FuturesAccountHistory, Configuration) -> None """FuturesAccount - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -105,6 +107,7 @@ def __init__(self, total=None, unrealised_pnl=None, position_margin=None, order_ self._point = None self._currency = None self._in_dual_mode = None + self._position_mode = None self._enable_credit = None self._position_initial_margin = None self._maintenance_margin = None @@ -141,6 +144,8 @@ def __init__(self, total=None, unrealised_pnl=None, position_margin=None, order_ self.currency = currency if in_dual_mode is not None: self.in_dual_mode = in_dual_mode + if position_mode is not None: + self.position_mode = position_mode if enable_credit is not None: self.enable_credit = enable_credit if position_initial_margin is not None: @@ -362,6 +367,29 @@ def in_dual_mode(self, in_dual_mode): self._in_dual_mode = in_dual_mode + @property + def position_mode(self): + """Gets the position_mode of this FuturesAccount. # noqa: E501 + + Position mode: single - one-way, dual - dual-side, split - sub-positions (in_dual_mode is deprecated) # noqa: E501 + + :return: The position_mode of this FuturesAccount. # noqa: E501 + :rtype: str + """ + return self._position_mode + + @position_mode.setter + def position_mode(self, position_mode): + """Sets the position_mode of this FuturesAccount. + + Position mode: single - one-way, dual - dual-side, split - sub-positions (in_dual_mode is deprecated) # noqa: E501 + + :param position_mode: The position_mode of this FuturesAccount. # noqa: E501 + :type: str + """ + + self._position_mode = position_mode + @property def enable_credit(self): """Gets the enable_credit of this FuturesAccount. # noqa: E501 diff --git a/gate_api/models/futures_account_book.py b/gate_api/models/futures_account_book.py index f4dafab..ff4e125 100644 --- a/gate_api/models/futures_account_book.py +++ b/gate_api/models/futures_account_book.py @@ -161,7 +161,7 @@ def balance(self, balance): def type(self): """Gets the type of this FuturesAccountBook. # noqa: E501 - 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 # noqa: E501 + 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 # noqa: E501 :return: The type of this FuturesAccountBook. # noqa: E501 :rtype: str @@ -172,7 +172,7 @@ def type(self): def type(self, type): """Sets the type of this FuturesAccountBook. - 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 # noqa: E501 + 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 # noqa: E501 :param type: The type of this FuturesAccountBook. # noqa: E501 :type: str diff --git a/gate_api/models/futures_order.py b/gate_api/models/futures_order.py index 368dd3b..0f60281 100644 --- a/gate_api/models/futures_order.py +++ b/gate_api/models/futures_order.py @@ -36,6 +36,7 @@ class FuturesOrder(object): 'id': 'int', 'user': 'int', 'create_time': 'float', + 'update_time': 'float', 'finish_time': 'float', 'finish_as': 'str', 'status': 'str', @@ -58,13 +59,16 @@ class FuturesOrder(object): 'auto_size': 'str', 'stp_id': 'int', 'stp_act': 'str', - 'amend_text': 'str' + 'amend_text': 'str', + 'limit_vip': 'int', + 'pid': 'int' } attribute_map = { 'id': 'id', 'user': 'user', 'create_time': 'create_time', + 'update_time': 'update_time', 'finish_time': 'finish_time', 'finish_as': 'finish_as', 'status': 'status', @@ -87,11 +91,13 @@ class FuturesOrder(object): 'auto_size': 'auto_size', 'stp_id': 'stp_id', 'stp_act': 'stp_act', - 'amend_text': 'amend_text' + 'amend_text': 'amend_text', + 'limit_vip': 'limit_vip', + 'pid': 'pid' } - def __init__(self, id=None, user=None, create_time=None, finish_time=None, finish_as=None, status=None, contract=None, size=None, iceberg=None, price=None, close=False, is_close=None, reduce_only=False, is_reduce_only=None, is_liq=None, tif='gtc', left=None, fill_price=None, text=None, tkfr=None, mkfr=None, refu=None, auto_size=None, stp_id=None, stp_act=None, amend_text=None, local_vars_configuration=None): # noqa: E501 - # type: (int, int, float, float, str, str, str, int, int, str, bool, bool, bool, bool, bool, str, int, str, str, str, str, int, str, int, str, str, Configuration) -> None + def __init__(self, id=None, user=None, create_time=None, update_time=None, finish_time=None, finish_as=None, status=None, contract=None, size=None, iceberg=None, price=None, close=False, is_close=None, reduce_only=False, is_reduce_only=None, is_liq=None, tif='gtc', left=None, fill_price=None, text=None, tkfr=None, mkfr=None, refu=None, auto_size=None, stp_id=None, stp_act=None, amend_text=None, limit_vip=None, pid=None, local_vars_configuration=None): # noqa: E501 + # type: (int, int, float, float, float, str, str, str, int, int, str, bool, bool, bool, bool, bool, str, int, str, str, str, str, int, str, int, str, str, int, int, Configuration) -> None """FuturesOrder - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -100,6 +106,7 @@ def __init__(self, id=None, user=None, create_time=None, finish_time=None, finis self._id = None self._user = None self._create_time = None + self._update_time = None self._finish_time = None self._finish_as = None self._status = None @@ -123,6 +130,8 @@ def __init__(self, id=None, user=None, create_time=None, finish_time=None, finis self._stp_id = None self._stp_act = None self._amend_text = None + self._limit_vip = None + self._pid = None self.discriminator = None if id is not None: @@ -131,6 +140,8 @@ def __init__(self, id=None, user=None, create_time=None, finish_time=None, finis self.user = user if create_time is not None: self.create_time = create_time + if update_time is not None: + self.update_time = update_time if finish_time is not None: self.finish_time = finish_time if finish_as is not None: @@ -175,6 +186,10 @@ def __init__(self, id=None, user=None, create_time=None, finish_time=None, finis self.stp_act = stp_act if amend_text is not None: self.amend_text = amend_text + if limit_vip is not None: + self.limit_vip = limit_vip + if pid is not None: + self.pid = pid @property def id(self): @@ -245,6 +260,29 @@ def create_time(self, create_time): self._create_time = create_time + @property + def update_time(self): + """Gets the update_time of this FuturesOrder. # noqa: E501 + + OrderUpdateTime # noqa: E501 + + :return: The update_time of this FuturesOrder. # noqa: E501 + :rtype: float + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this FuturesOrder. + + OrderUpdateTime # noqa: E501 + + :param update_time: The update_time of this FuturesOrder. # noqa: E501 + :type: float + """ + + self._update_time = update_time + @property def finish_time(self): """Gets the finish_time of this FuturesOrder. # noqa: E501 @@ -808,6 +846,52 @@ def amend_text(self, amend_text): self._amend_text = amend_text + @property + def limit_vip(self): + """Gets the limit_vip of this FuturesOrder. # noqa: E501 + + Counterparty user's VIP level for limit order fills. Current order will only match with orders whose VIP level is less than or equal to the specified level. Only 11~16 are supported; default is 0 # noqa: E501 + + :return: The limit_vip of this FuturesOrder. # noqa: E501 + :rtype: int + """ + return self._limit_vip + + @limit_vip.setter + def limit_vip(self, limit_vip): + """Sets the limit_vip of this FuturesOrder. + + Counterparty user's VIP level for limit order fills. Current order will only match with orders whose VIP level is less than or equal to the specified level. Only 11~16 are supported; default is 0 # noqa: E501 + + :param limit_vip: The limit_vip of this FuturesOrder. # noqa: E501 + :type: int + """ + + self._limit_vip = limit_vip + + @property + def pid(self): + """Gets the pid of this FuturesOrder. # noqa: E501 + + Position ID # noqa: E501 + + :return: The pid of this FuturesOrder. # noqa: E501 + :rtype: int + """ + return self._pid + + @pid.setter + def pid(self, pid): + """Sets the pid of this FuturesOrder. + + Position ID # noqa: E501 + + :param pid: The pid of this FuturesOrder. # noqa: E501 + :type: int + """ + + self._pid = pid + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/gate_api/models/futures_order_amendment.py b/gate_api/models/futures_order_amendment.py index 920a9c9..1232631 100644 --- a/gate_api/models/futures_order_amendment.py +++ b/gate_api/models/futures_order_amendment.py @@ -35,17 +35,19 @@ class FuturesOrderAmendment(object): openapi_types = { 'size': 'int', 'price': 'str', - 'amend_text': 'str' + 'amend_text': 'str', + 'text': 'str' } attribute_map = { 'size': 'size', 'price': 'price', - 'amend_text': 'amend_text' + 'amend_text': 'amend_text', + 'text': 'text' } - def __init__(self, size=None, price=None, amend_text=None, local_vars_configuration=None): # noqa: E501 - # type: (int, str, str, Configuration) -> None + def __init__(self, size=None, price=None, amend_text=None, text=None, local_vars_configuration=None): # noqa: E501 + # type: (int, str, str, str, Configuration) -> None """FuturesOrderAmendment - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -54,6 +56,7 @@ def __init__(self, size=None, price=None, amend_text=None, local_vars_configurat self._size = None self._price = None self._amend_text = None + self._text = None self.discriminator = None if size is not None: @@ -62,6 +65,8 @@ def __init__(self, size=None, price=None, amend_text=None, local_vars_configurat self.price = price if amend_text is not None: self.amend_text = amend_text + if text is not None: + self.text = text @property def size(self): @@ -132,6 +137,29 @@ def amend_text(self, amend_text): self._amend_text = amend_text + @property + def text(self): + """Gets the text of this FuturesOrderAmendment. # noqa: E501 + + Internal users can modify information in the text field. # noqa: E501 + + :return: The text of this FuturesOrderAmendment. # noqa: E501 + :rtype: str + """ + return self._text + + @text.setter + def text(self, text): + """Sets the text of this FuturesOrderAmendment. + + Internal users can modify information in the text field. # noqa: E501 + + :param text: The text of this FuturesOrderAmendment. # noqa: E501 + :type: str + """ + + self._text = text + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/gate_api/models/futures_ticker.py b/gate_api/models/futures_ticker.py index 8035c43..37acc8e 100644 --- a/gate_api/models/futures_ticker.py +++ b/gate_api/models/futures_ticker.py @@ -53,7 +53,12 @@ class FuturesTicker(object): 'lowest_ask': 'str', 'lowest_size': 'str', 'highest_bid': 'str', - 'highest_size': 'str' + 'highest_size': 'str', + 'change_utc0': 'str', + 'change_utc8': 'str', + 'change_price': 'str', + 'change_utc0_price': 'str', + 'change_utc8_price': 'str' } attribute_map = { @@ -77,11 +82,16 @@ class FuturesTicker(object): 'lowest_ask': 'lowest_ask', 'lowest_size': 'lowest_size', 'highest_bid': 'highest_bid', - 'highest_size': 'highest_size' + 'highest_size': 'highest_size', + 'change_utc0': 'change_utc0', + 'change_utc8': 'change_utc8', + 'change_price': 'change_price', + 'change_utc0_price': 'change_utc0_price', + 'change_utc8_price': 'change_utc8_price' } - def __init__(self, contract=None, last=None, change_percentage=None, total_size=None, low_24h=None, high_24h=None, volume_24h=None, volume_24h_btc=None, volume_24h_usd=None, volume_24h_base=None, volume_24h_quote=None, volume_24h_settle=None, mark_price=None, funding_rate=None, funding_rate_indicative=None, index_price=None, quanto_base_rate=None, lowest_ask=None, lowest_size=None, highest_bid=None, highest_size=None, local_vars_configuration=None): # noqa: E501 - # type: (str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, Configuration) -> None + def __init__(self, contract=None, last=None, change_percentage=None, total_size=None, low_24h=None, high_24h=None, volume_24h=None, volume_24h_btc=None, volume_24h_usd=None, volume_24h_base=None, volume_24h_quote=None, volume_24h_settle=None, mark_price=None, funding_rate=None, funding_rate_indicative=None, index_price=None, quanto_base_rate=None, lowest_ask=None, lowest_size=None, highest_bid=None, highest_size=None, change_utc0=None, change_utc8=None, change_price=None, change_utc0_price=None, change_utc8_price=None, local_vars_configuration=None): # noqa: E501 + # type: (str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, Configuration) -> None """FuturesTicker - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -108,6 +118,11 @@ def __init__(self, contract=None, last=None, change_percentage=None, total_size= self._lowest_size = None self._highest_bid = None self._highest_size = None + self._change_utc0 = None + self._change_utc8 = None + self._change_price = None + self._change_utc0_price = None + self._change_utc8_price = None self.discriminator = None if contract is not None: @@ -152,6 +167,16 @@ def __init__(self, contract=None, last=None, change_percentage=None, total_size= self.highest_bid = highest_bid if highest_size is not None: self.highest_size = highest_size + if change_utc0 is not None: + self.change_utc0 = change_utc0 + if change_utc8 is not None: + self.change_utc8 = change_utc8 + if change_price is not None: + self.change_price = change_price + if change_utc0_price is not None: + self.change_utc0_price = change_utc0_price + if change_utc8_price is not None: + self.change_utc8_price = change_utc8_price @property def contract(self): @@ -636,6 +661,121 @@ def highest_size(self, highest_size): self._highest_size = highest_size + @property + def change_utc0(self): + """Gets the change_utc0 of this FuturesTicker. # noqa: E501 + + Percentage change at utc0. Negative values indicate a drop, e.g., -7.45% # noqa: E501 + + :return: The change_utc0 of this FuturesTicker. # noqa: E501 + :rtype: str + """ + return self._change_utc0 + + @change_utc0.setter + def change_utc0(self, change_utc0): + """Sets the change_utc0 of this FuturesTicker. + + Percentage change at utc0. Negative values indicate a drop, e.g., -7.45% # noqa: E501 + + :param change_utc0: The change_utc0 of this FuturesTicker. # noqa: E501 + :type: str + """ + + self._change_utc0 = change_utc0 + + @property + def change_utc8(self): + """Gets the change_utc8 of this FuturesTicker. # noqa: E501 + + Percentage change at utc8. Negative values indicate a drop, e.g., -7.45% # noqa: E501 + + :return: The change_utc8 of this FuturesTicker. # noqa: E501 + :rtype: str + """ + return self._change_utc8 + + @change_utc8.setter + def change_utc8(self, change_utc8): + """Sets the change_utc8 of this FuturesTicker. + + Percentage change at utc8. Negative values indicate a drop, e.g., -7.45% # noqa: E501 + + :param change_utc8: The change_utc8 of this FuturesTicker. # noqa: E501 + :type: str + """ + + self._change_utc8 = change_utc8 + + @property + def change_price(self): + """Gets the change_price of this FuturesTicker. # noqa: E501 + + 24h change amount. Negative values indicate a drop, e.g., -7.45 # noqa: E501 + + :return: The change_price of this FuturesTicker. # noqa: E501 + :rtype: str + """ + return self._change_price + + @change_price.setter + def change_price(self, change_price): + """Sets the change_price of this FuturesTicker. + + 24h change amount. Negative values indicate a drop, e.g., -7.45 # noqa: E501 + + :param change_price: The change_price of this FuturesTicker. # noqa: E501 + :type: str + """ + + self._change_price = change_price + + @property + def change_utc0_price(self): + """Gets the change_utc0_price of this FuturesTicker. # noqa: E501 + + Change amount at utc0. Negative values indicate a drop, e.g., -7.45 # noqa: E501 + + :return: The change_utc0_price of this FuturesTicker. # noqa: E501 + :rtype: str + """ + return self._change_utc0_price + + @change_utc0_price.setter + def change_utc0_price(self, change_utc0_price): + """Sets the change_utc0_price of this FuturesTicker. + + Change amount at utc0. Negative values indicate a drop, e.g., -7.45 # noqa: E501 + + :param change_utc0_price: The change_utc0_price of this FuturesTicker. # noqa: E501 + :type: str + """ + + self._change_utc0_price = change_utc0_price + + @property + def change_utc8_price(self): + """Gets the change_utc8_price of this FuturesTicker. # noqa: E501 + + Change amount at utc8. Negative values indicate a drop, e.g., -7.45 # noqa: E501 + + :return: The change_utc8_price of this FuturesTicker. # noqa: E501 + :rtype: str + """ + return self._change_utc8_price + + @change_utc8_price.setter + def change_utc8_price(self, change_utc8_price): + """Sets the change_utc8_price of this FuturesTicker. + + Change amount at utc8. Negative values indicate a drop, e.g., -7.45 # noqa: E501 + + :param change_utc8_price: The change_utc8_price of this FuturesTicker. # noqa: E501 + :type: str + """ + + self._change_utc8_price = change_utc8_price + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/gate_api/models/multi_loan_repay_item.py b/gate_api/models/multi_loan_repay_item.py index 8ca2267..40d09f8 100644 --- a/gate_api/models/multi_loan_repay_item.py +++ b/gate_api/models/multi_loan_repay_item.py @@ -60,8 +60,7 @@ def __init__(self, currency=None, amount=None, repaid_all=None, local_vars_confi self.currency = currency if amount is not None: self.amount = amount - if repaid_all is not None: - self.repaid_all = repaid_all + self.repaid_all = repaid_all @property def currency(self): @@ -129,6 +128,8 @@ def repaid_all(self, repaid_all): :param repaid_all: The repaid_all of this MultiLoanRepayItem. # noqa: E501 :type: bool """ + if self.local_vars_configuration.client_side_validation and repaid_all is None: # noqa: E501 + raise ValueError("Invalid value for `repaid_all`, must not be `None`") # noqa: E501 self._repaid_all = repaid_all diff --git a/gate_api/models/position.py b/gate_api/models/position.py index e14210a..2951397 100644 --- a/gate_api/models/position.py +++ b/gate_api/models/position.py @@ -65,7 +65,8 @@ class Position(object): 'update_id': 'int', 'open_time': 'int', 'risk_limit_table': 'str', - 'average_maintenance_rate': 'str' + 'average_maintenance_rate': 'str', + 'pid': 'int' } attribute_map = { @@ -101,11 +102,12 @@ class Position(object): 'update_id': 'update_id', 'open_time': 'open_time', 'risk_limit_table': 'risk_limit_table', - 'average_maintenance_rate': 'average_maintenance_rate' + 'average_maintenance_rate': 'average_maintenance_rate', + 'pid': 'pid' } - def __init__(self, user=None, contract=None, size=None, leverage=None, risk_limit=None, leverage_max=None, maintenance_rate=None, value=None, margin=None, entry_price=None, liq_price=None, mark_price=None, initial_margin=None, maintenance_margin=None, unrealised_pnl=None, realised_pnl=None, pnl_pnl=None, pnl_fund=None, pnl_fee=None, history_pnl=None, last_close_pnl=None, realised_point=None, history_point=None, adl_ranking=None, pending_orders=None, close_order=None, mode=None, cross_leverage_limit=None, update_time=None, update_id=None, open_time=None, risk_limit_table=None, average_maintenance_rate=None, local_vars_configuration=None): # noqa: E501 - # type: (int, str, int, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, int, int, PositionCloseOrder, str, str, int, int, int, str, str, Configuration) -> None + def __init__(self, user=None, contract=None, size=None, leverage=None, risk_limit=None, leverage_max=None, maintenance_rate=None, value=None, margin=None, entry_price=None, liq_price=None, mark_price=None, initial_margin=None, maintenance_margin=None, unrealised_pnl=None, realised_pnl=None, pnl_pnl=None, pnl_fund=None, pnl_fee=None, history_pnl=None, last_close_pnl=None, realised_point=None, history_point=None, adl_ranking=None, pending_orders=None, close_order=None, mode=None, cross_leverage_limit=None, update_time=None, update_id=None, open_time=None, risk_limit_table=None, average_maintenance_rate=None, pid=None, local_vars_configuration=None): # noqa: E501 + # type: (int, str, int, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, int, int, PositionCloseOrder, str, str, int, int, int, str, str, int, Configuration) -> None """Position - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -144,6 +146,7 @@ def __init__(self, user=None, contract=None, size=None, leverage=None, risk_limi self._open_time = None self._risk_limit_table = None self._average_maintenance_rate = None + self._pid = None self.discriminator = None if user is not None: @@ -211,6 +214,8 @@ def __init__(self, user=None, contract=None, size=None, leverage=None, risk_limi self.risk_limit_table = risk_limit_table if average_maintenance_rate is not None: self.average_maintenance_rate = average_maintenance_rate + if pid is not None: + self.pid = pid @property def user(self): @@ -975,6 +980,29 @@ def average_maintenance_rate(self, average_maintenance_rate): self._average_maintenance_rate = average_maintenance_rate + @property + def pid(self): + """Gets the pid of this Position. # noqa: E501 + + Sub-account position ID # noqa: E501 + + :return: The pid of this Position. # noqa: E501 + :rtype: int + """ + return self._pid + + @pid.setter + def pid(self, pid): + """Sets the pid of this Position. + + Sub-account position ID # noqa: E501 + + :param pid: The pid of this Position. # noqa: E501 + :type: int + """ + + self._pid = pid + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/gate_api/models/sub_account.py b/gate_api/models/sub_account.py index cd60537..ad8b79e 100644 --- a/gate_api/models/sub_account.py +++ b/gate_api/models/sub_account.py @@ -114,7 +114,7 @@ def remark(self, remark): def login_name(self): """Gets the login_name of this SubAccount. # noqa: E501 - 子账户登陆名:仅支持字母、数字、下划线,不可包含其他非法字符。 # noqa: E501 + Sub-account login name: Only letters, numbers and underscores are supported, cannot contain other invalid characters # noqa: E501 :return: The login_name of this SubAccount. # noqa: E501 :rtype: str @@ -125,7 +125,7 @@ def login_name(self): def login_name(self, login_name): """Sets the login_name of this SubAccount. - 子账户登陆名:仅支持字母、数字、下划线,不可包含其他非法字符。 # noqa: E501 + Sub-account login name: Only letters, numbers and underscores are supported, cannot contain other invalid characters # noqa: E501 :param login_name: The login_name of this SubAccount. # noqa: E501 :type: str diff --git a/gate_api/models/swap_coin_struct.py b/gate_api/models/swap_coin_struct.py index 39631ff..8a7ae01 100644 --- a/gate_api/models/swap_coin_struct.py +++ b/gate_api/models/swap_coin_struct.py @@ -242,7 +242,7 @@ def type(self, type): def subtype(self): """Gets the subtype of this SwapCoinStruct. # noqa: E501 - 子类型 # noqa: E501 + SubType # noqa: E501 :return: The subtype of this SwapCoinStruct. # noqa: E501 :rtype: str @@ -253,7 +253,7 @@ def subtype(self): def subtype(self, subtype): """Sets the subtype of this SwapCoinStruct. - 子类型 # noqa: E501 + SubType # noqa: E501 :param subtype: The subtype of this SwapCoinStruct. # noqa: E501 :type: str @@ -334,7 +334,7 @@ def exchange_amount(self, exchange_amount): def update_stamp(self): """Gets the update_stamp of this SwapCoinStruct. # noqa: E501 - 更新时间戳 # noqa: E501 + UpdateTimestamp # noqa: E501 :return: The update_stamp of this SwapCoinStruct. # noqa: E501 :rtype: int @@ -345,7 +345,7 @@ def update_stamp(self): def update_stamp(self, update_stamp): """Sets the update_stamp of this SwapCoinStruct. - 更新时间戳 # noqa: E501 + UpdateTimestamp # noqa: E501 :param update_stamp: The update_stamp of this SwapCoinStruct. # noqa: E501 :type: int diff --git a/setup.py b/setup.py index a3e56cb..f3c71f5 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "gate-api" -VERSION = "6.104.3" +VERSION = "7.1.7" # To install the library, run the following # # python setup.py install From 8f8096dee105ef98cebf44f47535e5f2184cca17 Mon Sep 17 00:00:00 2001 From: gateio Date: Thu, 11 Sep 2025 06:47:33 +0000 Subject: [PATCH 2/2] update to v7.1.8 --- README.md | 4 ++-- gate_api/__init__.py | 2 +- gate_api/api_client.py | 2 +- gate_api/configuration.py | 4 ++-- setup.py | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d185462..802396f 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ APIv4 provides operations related to spot, margin, and contract trading, includi This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: v4.105.7 -- Package version: 7.1.7 +- API version: v4.105.8 +- Package version: 7.1.8 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://www.gate.com/page/contacts](https://www.gate.com/page/contacts) diff --git a/gate_api/__init__.py b/gate_api/__init__.py index 327ad77..060b069 100644 --- a/gate_api/__init__.py +++ b/gate_api/__init__.py @@ -14,7 +14,7 @@ from __future__ import absolute_import -__version__ = "7.1.7" +__version__ = "7.1.8" # import apis into sdk package from gate_api.api.earn_uni_api import EarnUniApi diff --git a/gate_api/api_client.py b/gate_api/api_client.py index 896c0ca..5d90c48 100644 --- a/gate_api/api_client.py +++ b/gate_api/api_client.py @@ -83,7 +83,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/7.1.7/python' + self.user_agent = 'OpenAPI-Generator/7.1.8/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/gate_api/configuration.py b/gate_api/configuration.py index 0d66245..e1a45a1 100644 --- a/gate_api/configuration.py +++ b/gate_api/configuration.py @@ -313,8 +313,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: v4.105.7\n"\ - "SDK Package Version: 7.1.7".\ + "Version of the API: v4.105.8\n"\ + "SDK Package Version: 7.1.8".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/setup.py b/setup.py index f3c71f5..d0fc88e 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "gate-api" -VERSION = "7.1.7" +VERSION = "7.1.8" # To install the library, run the following # # python setup.py install