Skip to content

Commit 6ce5279

Browse files
author
gate
committed
update to v7.2.179
1 parent fa34a5e commit 6ce5279

12 files changed

Lines changed: 268 additions & 310 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.178
8-
- Package version: 7.2.178
7+
- API version: v4.106.179
8+
- Package version: 7.2.179
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/FuturesApi.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4047,7 +4047,7 @@ Name | Type | Description | Notes
40474047
[[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)
40484048

40494049
# **stop_all_trail_orders**
4050-
> TrailOrderListResponse stop_all_trail_orders(settle, stop_all_trail_orders)
4050+
> TrailOrderListResponseEnvelope stop_all_trail_orders(settle, stop_all_trail_orders)
40514051
40524052
Batch terminate trail orders
40534053

@@ -4097,7 +4097,7 @@ Name | Type | Description | Notes
40974097

40984098
### Return type
40994099

4100-
[**TrailOrderListResponse**](TrailOrderListResponse.md)
4100+
[**TrailOrderListResponseEnvelope**](TrailOrderListResponseEnvelope.md)
41014101

41024102
### Authorization
41034103

‎docs/TrailOrderListResponseEnvelope.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
**code** | **int** | Status code, 0 means success | [optional]
88
**message** | **str** | Response message | [optional]
99
**data** | [**TrailOrderListResponse**](TrailOrderListResponse.md) | | [optional]
10-
**timestamp** | **int** | Response timestamp in microseconds. | [optional]
10+
**timestamp** | **int** | Response timestamp (milliseconds) | [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

‎docs/UpdateOrderData.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ Response data
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**order_id** | **int** | Order ID | [optional]
8-
**symbol** | **str** | Currency pair | [optional]
9-
**state** | **str** | Order status code | [optional]
10-
**volume** | **str** | Order quantity | [optional]
11-
**price** | **str** | Current price | [optional]
12-
**price_tp** | **str** | Current take profit price | [optional]
13-
**price_sl** | **str** | Current stop loss price | [optional]
7+
**order_id** | **int** | Order ID |
8+
**symbol** | **str** | Currency pair |
9+
**state** | **str** | Order status code |
10+
**volume** | **str** | Order quantity |
11+
**price** | **str** | Current price |
12+
**price_tp** | **str** | Current take profit price |
13+
**price_sl** | **str** | Current stop loss price |
1414

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

‎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.178"
17+
__version__ = "7.2.179"
1818

1919
# import apis into sdk package
2020
from gate_api.api.activity_api import ActivityApi

‎gate_api/api/futures_api.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7544,7 +7544,7 @@ def stop_all_trail_orders(self, settle, stop_all_trail_orders, **kwargs): # noq
75447544
number provided, it will be total request
75457545
timeout. It can also be a pair (tuple) of
75467546
(connection, read) timeouts.
7547-
:rtype: gate_api.TrailOrderListResponse
7547+
:rtype: gate_api.TrailOrderListResponseEnvelope
75487548
:return: If the method is called asynchronously,
75497549
returns the request thread.
75507550
"""
@@ -7571,7 +7571,7 @@ def stop_all_trail_orders_with_http_info(self, settle, stop_all_trail_orders, **
75717571
number provided, it will be total request
75727572
timeout. It can also be a pair (tuple) of
75737573
(connection, read) timeouts.
7574-
:rtype: tuple(gate_api.TrailOrderListResponse, status_code(int), headers(HTTPHeaderDict))
7574+
:rtype: tuple(gate_api.TrailOrderListResponseEnvelope, status_code(int), headers(HTTPHeaderDict))
75757575
:return: If the method is called asynchronously,
75767576
returns the request thread.
75777577
"""
@@ -7643,7 +7643,7 @@ def stop_all_trail_orders_with_http_info(self, settle, stop_all_trail_orders, **
76437643
body=body_params,
76447644
post_params=form_params,
76457645
files=local_var_files,
7646-
response_type='TrailOrderListResponse', # noqa: E501
7646+
response_type='TrailOrderListResponseEnvelope', # noqa: E501
76477647
auth_settings=auth_settings,
76487648
async_req=local_var_params.get('async_req'),
76497649
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501

‎gate_api/api_client.py‎

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

‎gate_api/configuration.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@ def to_debug_report(self):
313313
return "Python SDK Debug Report:\n"\
314314
"OS: {env}\n"\
315315
"Python Version: {pyversion}\n"\
316-
"Version of the API: v4.106.178\n"\
317-
"SDK Package Version: 7.2.178".\
316+
"Version of the API: v4.106.179\n"\
317+
"SDK Package Version: 7.2.179".\
318318
format(env=sys.platform, pyversion=sys.version)
319319

320320
def get_host_settings(self):

‎gate_api/models/trail_order_list_response_envelope.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def data(self, data):
139139
def timestamp(self):
140140
"""Gets the timestamp of this TrailOrderListResponseEnvelope. # noqa: E501
141141
142-
Response timestamp in microseconds. # noqa: E501
142+
Response timestamp (milliseconds) # noqa: E501
143143
144144
:return: The timestamp of this TrailOrderListResponseEnvelope. # noqa: E501
145145
:rtype: int
@@ -150,7 +150,7 @@ def timestamp(self):
150150
def timestamp(self, timestamp):
151151
"""Sets the timestamp of this TrailOrderListResponseEnvelope.
152152
153-
Response timestamp in microseconds. # noqa: E501
153+
Response timestamp (milliseconds) # noqa: E501
154154
155155
:param timestamp: The timestamp of this TrailOrderListResponseEnvelope. # noqa: E501
156156
:type: int

‎gate_api/models/update_order_data.py‎

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,13 @@ def __init__(self, order_id=None, symbol=None, state=None, volume=None, price=No
6868
self._price_sl = None
6969
self.discriminator = None
7070

71-
if order_id is not None:
72-
self.order_id = order_id
73-
if symbol is not None:
74-
self.symbol = symbol
75-
if state is not None:
76-
self.state = state
77-
if volume is not None:
78-
self.volume = volume
79-
if price is not None:
80-
self.price = price
81-
if price_tp is not None:
82-
self.price_tp = price_tp
83-
if price_sl is not None:
84-
self.price_sl = price_sl
71+
self.order_id = order_id
72+
self.symbol = symbol
73+
self.state = state
74+
self.volume = volume
75+
self.price = price
76+
self.price_tp = price_tp
77+
self.price_sl = price_sl
8578

8679
@property
8780
def order_id(self):
@@ -103,6 +96,8 @@ def order_id(self, order_id):
10396
:param order_id: The order_id of this UpdateOrderData. # noqa: E501
10497
:type: int
10598
"""
99+
if self.local_vars_configuration.client_side_validation and order_id is None: # noqa: E501
100+
raise ValueError("Invalid value for `order_id`, must not be `None`") # noqa: E501
106101

107102
self._order_id = order_id
108103

@@ -126,6 +121,8 @@ def symbol(self, symbol):
126121
:param symbol: The symbol of this UpdateOrderData. # noqa: E501
127122
:type: str
128123
"""
124+
if self.local_vars_configuration.client_side_validation and symbol is None: # noqa: E501
125+
raise ValueError("Invalid value for `symbol`, must not be `None`") # noqa: E501
129126

130127
self._symbol = symbol
131128

@@ -149,6 +146,8 @@ def state(self, state):
149146
:param state: The state of this UpdateOrderData. # noqa: E501
150147
:type: str
151148
"""
149+
if self.local_vars_configuration.client_side_validation and state is None: # noqa: E501
150+
raise ValueError("Invalid value for `state`, must not be `None`") # noqa: E501
152151

153152
self._state = state
154153

@@ -172,6 +171,8 @@ def volume(self, volume):
172171
:param volume: The volume of this UpdateOrderData. # noqa: E501
173172
:type: str
174173
"""
174+
if self.local_vars_configuration.client_side_validation and volume is None: # noqa: E501
175+
raise ValueError("Invalid value for `volume`, must not be `None`") # noqa: E501
175176

176177
self._volume = volume
177178

@@ -195,6 +196,8 @@ def price(self, price):
195196
:param price: The price of this UpdateOrderData. # noqa: E501
196197
:type: str
197198
"""
199+
if self.local_vars_configuration.client_side_validation and price is None: # noqa: E501
200+
raise ValueError("Invalid value for `price`, must not be `None`") # noqa: E501
198201

199202
self._price = price
200203

@@ -218,6 +221,8 @@ def price_tp(self, price_tp):
218221
:param price_tp: The price_tp of this UpdateOrderData. # noqa: E501
219222
:type: str
220223
"""
224+
if self.local_vars_configuration.client_side_validation and price_tp is None: # noqa: E501
225+
raise ValueError("Invalid value for `price_tp`, must not be `None`") # noqa: E501
221226

222227
self._price_tp = price_tp
223228

@@ -241,6 +246,8 @@ def price_sl(self, price_sl):
241246
:param price_sl: The price_sl of this UpdateOrderData. # noqa: E501
242247
:type: str
243248
"""
249+
if self.local_vars_configuration.client_side_validation and price_sl is None: # noqa: E501
250+
raise ValueError("Invalid value for `price_sl`, must not be `None`") # noqa: E501
244251

245252
self._price_sl = price_sl
246253

0 commit comments

Comments
 (0)