Skip to content

Commit 42ffaca

Browse files
committed
fix incorrect data type in SpotPriceTriggeredOrder
1 parent 2f10575 commit 42ffaca

9 files changed

Lines changed: 20 additions & 20 deletions

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ APIv4 provides spot, margin and futures trading operations. There are public API
55

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

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

docs/SpotPricePutOrder.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
77
**side** | **str** | Order side - buy: buy side - sell: sell side |
88
**price** | **str** | Order price |
99
**amount** | **str** | Order amount |
10-
**account** | **str** | Trading type - normal: spot trading - margin: margin trading |
11-
**time_in_force** | **str** | time_in_force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only | [optional]
10+
**account** | **str** | Trading type - normal: spot trading - margin: margin trading | [default to 'normal']
11+
**time_in_force** | **str** | time_in_force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only | [optional] [default to 'gtc']
1212

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

docs/SpotPriceTriggeredOrder.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Name | Type | Description | Notes
99
**id** | **int** | Auto order ID | [optional] [readonly]
1010
**user** | **int** | User ID | [optional] [readonly]
1111
**market** | **str** | Currency pair |
12-
**ctime** | **float** | Creation time | [optional] [readonly]
13-
**ftime** | **float** | Finished time | [optional] [readonly]
12+
**ctime** | **int** | Creation time | [optional] [readonly]
13+
**ftime** | **int** | Finished time | [optional] [readonly]
1414
**fired_order_id** | **int** | ID of the newly created order on condition triggered | [optional] [readonly]
1515
**status** | **str** | Status - open: open - cancelled: being manually cancelled - finish: successfully executed - failed: failed to execute - expired - expired | [optional] [readonly]
1616
**reason** | **str** | Additional remarks on how the order was finished | [optional] [readonly]

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__ = "4.22.3"
17+
__version__ = "4.22.4"
1818

1919
# import apis into sdk package
2020
from gate_api.api.delivery_api import DeliveryApi

gate_api/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, cook
8282
self.default_headers[header_name] = header_value
8383
self.cookie = cookie
8484
# Set default User-Agent.
85-
self.user_agent = 'OpenAPI-Generator/4.22.3/python'
85+
self.user_agent = 'OpenAPI-Generator/4.22.4/python'
8686
self.client_side_validation = configuration.client_side_validation
8787

8888
def __enter__(self):

gate_api/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,8 @@ def to_debug_report(self):
316316
"Python SDK Debug Report:\n"
317317
"OS: {env}\n"
318318
"Python Version: {pyversion}\n"
319-
"Version of the API: 4.22.3\n"
320-
"SDK Package Version: 4.22.3".format(env=sys.platform, pyversion=sys.version)
319+
"Version of the API: 4.22.4\n"
320+
"SDK Package Version: 4.22.4".format(env=sys.platform, pyversion=sys.version)
321321
)
322322

323323
def get_host_settings(self):

gate_api/models/spot_price_put_order.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ def __init__(
5656
side=None,
5757
price=None,
5858
amount=None,
59-
account=None,
60-
time_in_force=None,
59+
account='normal',
60+
time_in_force='gtc',
6161
local_vars_configuration=None,
6262
): # noqa: E501
6363
# type: (str, str, str, str, str, str, Configuration) -> None

gate_api/models/spot_price_triggered_order.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ class SpotPriceTriggeredOrder(object):
3838
'id': 'int',
3939
'user': 'int',
4040
'market': 'str',
41-
'ctime': 'float',
42-
'ftime': 'float',
41+
'ctime': 'int',
42+
'ftime': 'int',
4343
'fired_order_id': 'int',
4444
'status': 'str',
4545
'reason': 'str',
@@ -72,7 +72,7 @@ def __init__(
7272
reason=None,
7373
local_vars_configuration=None,
7474
): # noqa: E501
75-
# type: (SpotPriceTrigger, SpotPricePutOrder, int, int, str, float, float, int, str, str, Configuration) -> None
75+
# type: (SpotPriceTrigger, SpotPricePutOrder, int, int, str, int, int, int, str, str, Configuration) -> None
7676
"""SpotPriceTriggeredOrder - a model defined in OpenAPI""" # noqa: E501
7777
if local_vars_configuration is None:
7878
local_vars_configuration = Configuration()
@@ -232,7 +232,7 @@ def ctime(self):
232232
Creation time # noqa: E501
233233
234234
:return: The ctime of this SpotPriceTriggeredOrder. # noqa: E501
235-
:rtype: float
235+
:rtype: int
236236
"""
237237
return self._ctime
238238

@@ -243,7 +243,7 @@ def ctime(self, ctime):
243243
Creation time # noqa: E501
244244
245245
:param ctime: The ctime of this SpotPriceTriggeredOrder. # noqa: E501
246-
:type: float
246+
:type: int
247247
"""
248248

249249
self._ctime = ctime
@@ -255,7 +255,7 @@ def ftime(self):
255255
Finished time # noqa: E501
256256
257257
:return: The ftime of this SpotPriceTriggeredOrder. # noqa: E501
258-
:rtype: float
258+
:rtype: int
259259
"""
260260
return self._ftime
261261

@@ -266,7 +266,7 @@ def ftime(self, ftime):
266266
Finished time # noqa: E501
267267
268268
:param ftime: The ftime of this SpotPriceTriggeredOrder. # noqa: E501
269-
:type: float
269+
:type: int
270270
"""
271271

272272
self._ftime = ftime

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from setuptools import setup, find_packages # noqa: H301
1414

1515
NAME = "gate-api"
16-
VERSION = "4.22.3"
16+
VERSION = "4.22.4"
1717
# To install the library, run the following
1818
#
1919
# python setup.py install

0 commit comments

Comments
 (0)