Skip to content

Commit 0326467

Browse files
committed
Merge branch 'release/4.9.1'
2 parents e321f3b + 1a61162 commit 0326467

11 files changed

Lines changed: 425 additions & 19 deletions

File tree

README.md

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

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

6-
- API version: 4.9.0
7-
- Package version: 4.9.0
6+
- API version: 4.9.1
7+
- Package version: 4.9.1
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99
For more information, please visit [https://www.gate.io/page/contacts](https://www.gate.io/page/contacts)
1010

docs/BatchOrder.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**message** | **str** | Detailed error message, empty string if order succeeds | [optional]
1010
**id** | **str** | Order ID | [optional]
1111
**create_time** | **str** | Order creation time | [optional]
12+
**update_time** | **str** | Order last modification time | [optional]
1213
**status** | **str** | Order status - `open`: to be filled - `closed`: filled - `cancelled`: cancelled | [optional]
1314
**currency_pair** | **str** | Currency pair | [optional]
1415
**type** | **str** | Order type. limit - limit order | [optional] [default to 'limit']
@@ -19,6 +20,10 @@ Name | Type | Description | Notes
1920
**time_in_force** | **str** | Time in force | [optional] [default to 'gtc']
2021
**left** | **str** | Amount left to fill | [optional]
2122
**fill_price** | **str** | Fill price of the order | [optional]
23+
**fee** | **str** | Fee deducted | [optional]
24+
**fee_currency** | **str** | Fee currency unit | [optional]
25+
**point_fee** | **str** | Point used to deduct fee | [optional]
26+
**gt_fee** | **str** | GT used to deduct fee | [optional]
2227

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

docs/Order.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
**id** | **str** | Order ID | [optional]
77
**text** | **str** | User defined information. If not empty, must follow the rules below: 1. prefixed with `t-` 2. no longer than 16 bytes without `t-` prefix 3. can only include 0-9, A-Z, a-z, underscore(_), hyphen(-) or dot(.) | [optional]
88
**create_time** | **str** | Order creation time | [optional]
9+
**update_time** | **str** | Order last modification time | [optional]
910
**status** | **str** | Order status - `open`: to be filled - `closed`: filled - `cancelled`: cancelled | [optional]
1011
**currency_pair** | **str** | Currency pair |
1112
**type** | **str** | Order type. limit - limit order | [optional] [default to 'limit']
@@ -15,7 +16,11 @@ Name | Type | Description | Notes
1516
**price** | **str** | Order price |
1617
**time_in_force** | **str** | Time in force | [optional] [default to 'gtc']
1718
**left** | **str** | Amount left to fill | [optional]
18-
**fill_price** | **str** | Fill price of the order | [optional]
19+
**fill_price** | **str** | Total filled in quote currency | [optional]
20+
**fee** | **str** | Fee deducted | [optional]
21+
**fee_currency** | **str** | Fee currency unit | [optional]
22+
**point_fee** | **str** | Point used to deduct fee | [optional]
23+
**gt_fee** | **str** | GT used to deduct fee | [optional]
1924

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

docs/Trade.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ Name | Type | Description | Notes
99
**amount** | **str** | Trade amount | [optional]
1010
**price** | **str** | Order price | [optional]
1111
**order_id** | **str** | Related order ID. No value in public endpoints | [optional]
12+
**fee** | **str** | Fee deducted. No value in public endpoints | [optional]
13+
**fee_currency** | **str** | Fee currency unit. No value in public endpoints | [optional]
14+
**point_fee** | **str** | Point used to deduct fee | [optional]
15+
**gt_fee** | **str** | GT used to deduct fee | [optional]
1216

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

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.9.0"
17+
__version__ = "4.9.1"
1818

1919
# import apis into sdk package
2020
from gate_api.api.futures_api import FuturesApi

gate_api/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7575
self.default_headers[header_name] = header_value
7676
self.cookie = cookie
7777
# Set default User-Agent.
78-
self.user_agent = 'OpenAPI-Generator/4.9.0/python'
78+
self.user_agent = 'OpenAPI-Generator/4.9.1/python'
7979

8080
def __del__(self):
8181
if self._pool:

gate_api/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,6 @@ def to_debug_report(self):
248248
return "Python SDK Debug Report:\n"\
249249
"OS: {env}\n"\
250250
"Python Version: {pyversion}\n"\
251-
"Version of the API: 4.9.0\n"\
252-
"SDK Package Version: 4.9.0".\
251+
"Version of the API: 4.9.1\n"\
252+
"SDK Package Version: 4.9.1".\
253253
format(env=sys.platform, pyversion=sys.version)

gate_api/models/batch_order.py

Lines changed: 143 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class BatchOrder(object):
3737
'message': 'str',
3838
'id': 'str',
3939
'create_time': 'str',
40+
'update_time': 'str',
4041
'status': 'str',
4142
'currency_pair': 'str',
4243
'type': 'str',
@@ -46,7 +47,11 @@ class BatchOrder(object):
4647
'price': 'str',
4748
'time_in_force': 'str',
4849
'left': 'str',
49-
'fill_price': 'str'
50+
'fill_price': 'str',
51+
'fee': 'str',
52+
'fee_currency': 'str',
53+
'point_fee': 'str',
54+
'gt_fee': 'str'
5055
}
5156

5257
attribute_map = {
@@ -56,6 +61,7 @@ class BatchOrder(object):
5661
'message': 'message',
5762
'id': 'id',
5863
'create_time': 'create_time',
64+
'update_time': 'update_time',
5965
'status': 'status',
6066
'currency_pair': 'currency_pair',
6167
'type': 'type',
@@ -65,10 +71,14 @@ class BatchOrder(object):
6571
'price': 'price',
6672
'time_in_force': 'time_in_force',
6773
'left': 'left',
68-
'fill_price': 'fill_price'
74+
'fill_price': 'fill_price',
75+
'fee': 'fee',
76+
'fee_currency': 'fee_currency',
77+
'point_fee': 'point_fee',
78+
'gt_fee': 'gt_fee'
6979
}
7080

71-
def __init__(self, text=None, succeeded=None, label=None, message=None, id=None, create_time=None, status=None, currency_pair=None, type='limit', account='spot', side=None, amount=None, price=None, time_in_force='gtc', left=None, fill_price=None): # noqa: E501
81+
def __init__(self, text=None, succeeded=None, label=None, message=None, id=None, create_time=None, update_time=None, status=None, currency_pair=None, type='limit', account='spot', side=None, amount=None, price=None, time_in_force='gtc', left=None, fill_price=None, fee=None, fee_currency=None, point_fee=None, gt_fee=None): # noqa: E501
7282
"""BatchOrder - a model defined in OpenAPI""" # noqa: E501
7383

7484
self._text = None
@@ -77,6 +87,7 @@ def __init__(self, text=None, succeeded=None, label=None, message=None, id=None,
7787
self._message = None
7888
self._id = None
7989
self._create_time = None
90+
self._update_time = None
8091
self._status = None
8192
self._currency_pair = None
8293
self._type = None
@@ -87,6 +98,10 @@ def __init__(self, text=None, succeeded=None, label=None, message=None, id=None,
8798
self._time_in_force = None
8899
self._left = None
89100
self._fill_price = None
101+
self._fee = None
102+
self._fee_currency = None
103+
self._point_fee = None
104+
self._gt_fee = None
90105
self.discriminator = None
91106

92107
if text is not None:
@@ -101,6 +116,8 @@ def __init__(self, text=None, succeeded=None, label=None, message=None, id=None,
101116
self.id = id
102117
if create_time is not None:
103118
self.create_time = create_time
119+
if update_time is not None:
120+
self.update_time = update_time
104121
if status is not None:
105122
self.status = status
106123
if currency_pair is not None:
@@ -121,6 +138,14 @@ def __init__(self, text=None, succeeded=None, label=None, message=None, id=None,
121138
self.left = left
122139
if fill_price is not None:
123140
self.fill_price = fill_price
141+
if fee is not None:
142+
self.fee = fee
143+
if fee_currency is not None:
144+
self.fee_currency = fee_currency
145+
if point_fee is not None:
146+
self.point_fee = point_fee
147+
if gt_fee is not None:
148+
self.gt_fee = gt_fee
124149

125150
@property
126151
def text(self):
@@ -260,6 +285,29 @@ def create_time(self, create_time):
260285

261286
self._create_time = create_time
262287

288+
@property
289+
def update_time(self):
290+
"""Gets the update_time of this BatchOrder. # noqa: E501
291+
292+
Order last modification time # noqa: E501
293+
294+
:return: The update_time of this BatchOrder. # noqa: E501
295+
:rtype: str
296+
"""
297+
return self._update_time
298+
299+
@update_time.setter
300+
def update_time(self, update_time):
301+
"""Sets the update_time of this BatchOrder.
302+
303+
Order last modification time # noqa: E501
304+
305+
:param update_time: The update_time of this BatchOrder. # noqa: E501
306+
:type: str
307+
"""
308+
309+
self._update_time = update_time
310+
263311
@property
264312
def status(self):
265313
"""Gets the status of this BatchOrder. # noqa: E501
@@ -520,6 +568,98 @@ def fill_price(self, fill_price):
520568

521569
self._fill_price = fill_price
522570

571+
@property
572+
def fee(self):
573+
"""Gets the fee of this BatchOrder. # noqa: E501
574+
575+
Fee deducted # noqa: E501
576+
577+
:return: The fee of this BatchOrder. # noqa: E501
578+
:rtype: str
579+
"""
580+
return self._fee
581+
582+
@fee.setter
583+
def fee(self, fee):
584+
"""Sets the fee of this BatchOrder.
585+
586+
Fee deducted # noqa: E501
587+
588+
:param fee: The fee of this BatchOrder. # noqa: E501
589+
:type: str
590+
"""
591+
592+
self._fee = fee
593+
594+
@property
595+
def fee_currency(self):
596+
"""Gets the fee_currency of this BatchOrder. # noqa: E501
597+
598+
Fee currency unit # noqa: E501
599+
600+
:return: The fee_currency of this BatchOrder. # noqa: E501
601+
:rtype: str
602+
"""
603+
return self._fee_currency
604+
605+
@fee_currency.setter
606+
def fee_currency(self, fee_currency):
607+
"""Sets the fee_currency of this BatchOrder.
608+
609+
Fee currency unit # noqa: E501
610+
611+
:param fee_currency: The fee_currency of this BatchOrder. # noqa: E501
612+
:type: str
613+
"""
614+
615+
self._fee_currency = fee_currency
616+
617+
@property
618+
def point_fee(self):
619+
"""Gets the point_fee of this BatchOrder. # noqa: E501
620+
621+
Point used to deduct fee # noqa: E501
622+
623+
:return: The point_fee of this BatchOrder. # noqa: E501
624+
:rtype: str
625+
"""
626+
return self._point_fee
627+
628+
@point_fee.setter
629+
def point_fee(self, point_fee):
630+
"""Sets the point_fee of this BatchOrder.
631+
632+
Point used to deduct fee # noqa: E501
633+
634+
:param point_fee: The point_fee of this BatchOrder. # noqa: E501
635+
:type: str
636+
"""
637+
638+
self._point_fee = point_fee
639+
640+
@property
641+
def gt_fee(self):
642+
"""Gets the gt_fee of this BatchOrder. # noqa: E501
643+
644+
GT used to deduct fee # noqa: E501
645+
646+
:return: The gt_fee of this BatchOrder. # noqa: E501
647+
:rtype: str
648+
"""
649+
return self._gt_fee
650+
651+
@gt_fee.setter
652+
def gt_fee(self, gt_fee):
653+
"""Sets the gt_fee of this BatchOrder.
654+
655+
GT used to deduct fee # noqa: E501
656+
657+
:param gt_fee: The gt_fee of this BatchOrder. # noqa: E501
658+
:type: str
659+
"""
660+
661+
self._gt_fee = gt_fee
662+
523663
def to_dict(self):
524664
"""Returns the model properties as a dict"""
525665
result = {}

0 commit comments

Comments
 (0)