Skip to content

Commit 6a0553c

Browse files
author
gate
committed
update to v7.2.7
1 parent f84b23c commit 6a0553c

17 files changed

Lines changed: 142 additions & 26 deletions

‎README.md‎

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

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

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

‎docs/BatchFuturesOrder.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Name | Type | Description | Notes
3232
**auto_size** | **str** | Set side to close dual-mode position. `close_long` closes the long side; while `close_short` the short one. Note `size` also needs to be set to 0 | [optional]
3333
**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]
3434
**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]
35+
**market_order_slip_ratio** | **str** | The maximum slippage ratio | [optional]
3536

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

‎docs/Contract.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ Name | Type | Description | Notes
4444
**launch_time** | **int** | Contract expiry timestamp | [optional]
4545
**delisting_time** | **int** | Timestamp when contract enters reduce-only state | [optional]
4646
**delisted_time** | **int** | Contract delisting time | [optional]
47+
**market_order_slip_ratio** | **str** | The maximum slippage allowed for market orders, with the slippage rate calculated based on the latest market price | [optional]
48+
**market_order_size_max** | **str** | The maximum number of contracts supported for market orders, with a default value of 0. When the default value is used, the maximum number of contracts is limited by the `order_size_max` field | [optional]
4749
**funding_rate_limit** | **str** | Upper and lower limits of funding rate | [optional]
4850

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

‎docs/FuturesOrder.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Name | Type | Description | Notes
3434
**pid** | **int** | Position ID | [optional]
3535
**order_value** | **str** | order's value | [optional]
3636
**trade_value** | **str** | trade value | [optional]
37+
**market_order_slip_ratio** | **str** | Custom maximum slippage rate for market orders. If not provided, the default contract settings will be used | [optional]
3738

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

‎docs/InlineResponse2001.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**currency** | **str** | | [optional]
7-
**est_rate** | **str** | Unconverted percentage | [optional]
7+
**est_rate** | **str** | Estimated Annualized Rate, e.g., `est_rate`: `0.8014` represents an annualized rate of 80.14% | [optional]
88

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

‎docs/OptionsTrade.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
**create_time** | **int** | Fill Time | [optional]
88
**contract** | **str** | Options contract name | [optional]
99
**size** | **int** | Trading size | [optional]
10-
**price** | **str** | 成交价格 (计价货币, 单位:标的对应的期权价格) | [optional]
10+
**price** | **str** | Transaction Price (Quoted Currency, Unit: Underlying Option Price) | [optional]
1111

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

‎gate_api/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from __future__ import absolute_import
1616

17-
__version__ = "7.2.6"
17+
__version__ = "7.2.7"
1818

1919
# import apis into sdk package
2020
from gate_api.api.earn_uni_api import EarnUniApi

‎gate_api/api/multi_collateral_loan_api.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1427,7 +1427,7 @@ def get_multi_collateral_current_rate_with_http_info(self, currencies, **kwargs)
14271427
query_params = []
14281428
if 'currencies' in local_var_params and local_var_params['currencies'] is not None: # noqa: E501
14291429
query_params.append(('currencies', local_var_params['currencies'])) # noqa: E501
1430-
collection_formats['currencies'] = 'multi' # noqa: E501
1430+
collection_formats['currencies'] = 'csv' # noqa: E501
14311431
if 'vip_level' in local_var_params and local_var_params['vip_level'] is not None: # noqa: E501
14321432
query_params.append(('vip_level', local_var_params['vip_level'])) # noqa: E501
14331433

‎gate_api/api/unified_api.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def get_unified_borrowable_list_with_http_info(self, currencies, **kwargs): # n
575575
query_params = []
576576
if 'currencies' in local_var_params and local_var_params['currencies'] is not None: # noqa: E501
577577
query_params.append(('currencies', local_var_params['currencies'])) # noqa: E501
578-
collection_formats['currencies'] = 'multi' # noqa: E501
578+
collection_formats['currencies'] = 'csv' # noqa: E501
579579

580580
header_params = {}
581581

@@ -1535,7 +1535,7 @@ def get_unified_estimate_rate_with_http_info(self, currencies, **kwargs): # noq
15351535
query_params = []
15361536
if 'currencies' in local_var_params and local_var_params['currencies'] is not None: # noqa: E501
15371537
query_params.append(('currencies', local_var_params['currencies'])) # noqa: E501
1538-
collection_formats['currencies'] = 'multi' # noqa: E501
1538+
collection_formats['currencies'] = 'csv' # noqa: E501
15391539

15401540
header_params = {}
15411541

‎gate_api/api_client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
8383
self.default_headers[header_name] = header_value
8484
self.cookie = cookie
8585
# Set default User-Agent.
86-
self.user_agent = 'OpenAPI-Generator/7.2.6/python'
86+
self.user_agent = 'OpenAPI-Generator/7.2.7/python'
8787
# Set default X-Gate-Size-Decimal header for futures API
8888
self.default_headers['X-Gate-Size-Decimal'] = '1'
8989
self.client_side_validation = configuration.client_side_validation

0 commit comments

Comments
 (0)