Skip to content

Commit 25e62e4

Browse files
committed
spot order use filled_total to deprecate fill_price
1 parent a235d03 commit 25e62e4

9 files changed

Lines changed: 73 additions & 15 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.11.1
7-
- Package version: 4.11.1
6+
- API version: 4.11.2
7+
- Package version: 4.11.2
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ Name | Type | Description | Notes
2020
**time_in_force** | **str** | Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, reduce only | [optional] [default to 'gtc']
2121
**auto_borrow** | **bool** | Used in margin trading(i.e. `account` is `margin`) to allow automatic loan of insufficient part if balance is not enough. | [optional]
2222
**left** | **str** | Amount left to fill | [optional]
23-
**fill_price** | **str** | Fill price of the order | [optional]
23+
**fill_price** | **str** | Total filled in quote currency. Deprecated in favor of `filled_total` | [optional]
24+
**filled_total** | **str** | Total filled in quote currency | [optional]
2425
**fee** | **str** | Fee deducted | [optional]
2526
**fee_currency** | **str** | Fee currency unit | [optional]
2627
**point_fee** | **str** | Point used to deduct fee | [optional]

docs/Order.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ Name | Type | Description | Notes
1717
**time_in_force** | **str** | Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, reduce only | [optional] [default to 'gtc']
1818
**auto_borrow** | **bool** | Used in margin trading(i.e. `account` is `margin`) to allow automatic loan of insufficient part if balance is not enough. | [optional]
1919
**left** | **str** | Amount left to fill | [optional]
20-
**fill_price** | **str** | Total filled in quote currency | [optional]
20+
**fill_price** | **str** | Total filled in quote currency. Deprecated in favor of `filled_total` | [optional]
21+
**filled_total** | **str** | Total filled in quote currency | [optional]
2122
**fee** | **str** | Fee deducted | [optional]
2223
**fee_currency** | **str** | Fee currency unit | [optional]
2324
**point_fee** | **str** | Point used to deduct fee | [optional]

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.11.1"
17+
__version__ = "4.11.2"
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.11.1/python'
78+
self.user_agent = 'OpenAPI-Generator/4.11.2/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.11.1\n"\
252-
"SDK Package Version: 4.11.1".\
251+
"Version of the API: 4.11.2\n"\
252+
"SDK Package Version: 4.11.2".\
253253
format(env=sys.platform, pyversion=sys.version)

gate_api/models/batch_order.py

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class BatchOrder(object):
4949
'auto_borrow': 'bool',
5050
'left': 'str',
5151
'fill_price': 'str',
52+
'filled_total': 'str',
5253
'fee': 'str',
5354
'fee_currency': 'str',
5455
'point_fee': 'str',
@@ -77,6 +78,7 @@ class BatchOrder(object):
7778
'auto_borrow': 'auto_borrow',
7879
'left': 'left',
7980
'fill_price': 'fill_price',
81+
'filled_total': 'filled_total',
8082
'fee': 'fee',
8183
'fee_currency': 'fee_currency',
8284
'point_fee': 'point_fee',
@@ -86,7 +88,7 @@ class BatchOrder(object):
8688
'rebated_fee_currency': 'rebated_fee_currency'
8789
}
8890

89-
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', auto_borrow=None, left=None, fill_price=None, fee=None, fee_currency=None, point_fee=None, gt_fee=None, gt_discount=None, rebated_fee=None, rebated_fee_currency=None): # noqa: E501
91+
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', auto_borrow=None, left=None, fill_price=None, filled_total=None, fee=None, fee_currency=None, point_fee=None, gt_fee=None, gt_discount=None, rebated_fee=None, rebated_fee_currency=None): # noqa: E501
9092
"""BatchOrder - a model defined in OpenAPI""" # noqa: E501
9193

9294
self._text = None
@@ -107,6 +109,7 @@ def __init__(self, text=None, succeeded=None, label=None, message=None, id=None,
107109
self._auto_borrow = None
108110
self._left = None
109111
self._fill_price = None
112+
self._filled_total = None
110113
self._fee = None
111114
self._fee_currency = None
112115
self._point_fee = None
@@ -152,6 +155,8 @@ def __init__(self, text=None, succeeded=None, label=None, message=None, id=None,
152155
self.left = left
153156
if fill_price is not None:
154157
self.fill_price = fill_price
158+
if filled_total is not None:
159+
self.filled_total = filled_total
155160
if fee is not None:
156161
self.fee = fee
157162
if fee_currency is not None:
@@ -592,7 +597,7 @@ def left(self, left):
592597
def fill_price(self):
593598
"""Gets the fill_price of this BatchOrder. # noqa: E501
594599
595-
Fill price of the order # noqa: E501
600+
Total filled in quote currency. Deprecated in favor of `filled_total` # noqa: E501
596601
597602
:return: The fill_price of this BatchOrder. # noqa: E501
598603
:rtype: str
@@ -603,14 +608,37 @@ def fill_price(self):
603608
def fill_price(self, fill_price):
604609
"""Sets the fill_price of this BatchOrder.
605610
606-
Fill price of the order # noqa: E501
611+
Total filled in quote currency. Deprecated in favor of `filled_total` # noqa: E501
607612
608613
:param fill_price: The fill_price of this BatchOrder. # noqa: E501
609614
:type: str
610615
"""
611616

612617
self._fill_price = fill_price
613618

619+
@property
620+
def filled_total(self):
621+
"""Gets the filled_total of this BatchOrder. # noqa: E501
622+
623+
Total filled in quote currency # noqa: E501
624+
625+
:return: The filled_total of this BatchOrder. # noqa: E501
626+
:rtype: str
627+
"""
628+
return self._filled_total
629+
630+
@filled_total.setter
631+
def filled_total(self, filled_total):
632+
"""Sets the filled_total of this BatchOrder.
633+
634+
Total filled in quote currency # noqa: E501
635+
636+
:param filled_total: The filled_total of this BatchOrder. # noqa: E501
637+
:type: str
638+
"""
639+
640+
self._filled_total = filled_total
641+
614642
@property
615643
def fee(self):
616644
"""Gets the fee of this BatchOrder. # noqa: E501

gate_api/models/order.py

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class Order(object):
4646
'auto_borrow': 'bool',
4747
'left': 'str',
4848
'fill_price': 'str',
49+
'filled_total': 'str',
4950
'fee': 'str',
5051
'fee_currency': 'str',
5152
'point_fee': 'str',
@@ -71,6 +72,7 @@ class Order(object):
7172
'auto_borrow': 'auto_borrow',
7273
'left': 'left',
7374
'fill_price': 'fill_price',
75+
'filled_total': 'filled_total',
7476
'fee': 'fee',
7577
'fee_currency': 'fee_currency',
7678
'point_fee': 'point_fee',
@@ -80,7 +82,7 @@ class Order(object):
8082
'rebated_fee_currency': 'rebated_fee_currency'
8183
}
8284

83-
def __init__(self, id=None, text=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', auto_borrow=None, left=None, fill_price=None, fee=None, fee_currency=None, point_fee=None, gt_fee=None, gt_discount=None, rebated_fee=None, rebated_fee_currency=None): # noqa: E501
85+
def __init__(self, id=None, text=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', auto_borrow=None, left=None, fill_price=None, filled_total=None, fee=None, fee_currency=None, point_fee=None, gt_fee=None, gt_discount=None, rebated_fee=None, rebated_fee_currency=None): # noqa: E501
8486
"""Order - a model defined in OpenAPI""" # noqa: E501
8587

8688
self._id = None
@@ -98,6 +100,7 @@ def __init__(self, id=None, text=None, create_time=None, update_time=None, statu
98100
self._auto_borrow = None
99101
self._left = None
100102
self._fill_price = None
103+
self._filled_total = None
101104
self._fee = None
102105
self._fee_currency = None
103106
self._point_fee = None
@@ -133,6 +136,8 @@ def __init__(self, id=None, text=None, create_time=None, update_time=None, statu
133136
self.left = left
134137
if fill_price is not None:
135138
self.fill_price = fill_price
139+
if filled_total is not None:
140+
self.filled_total = filled_total
136141
if fee is not None:
137142
self.fee = fee
138143
if fee_currency is not None:
@@ -512,7 +517,7 @@ def left(self, left):
512517
def fill_price(self):
513518
"""Gets the fill_price of this Order. # noqa: E501
514519
515-
Total filled in quote currency # noqa: E501
520+
Total filled in quote currency. Deprecated in favor of `filled_total` # noqa: E501
516521
517522
:return: The fill_price of this Order. # noqa: E501
518523
:rtype: str
@@ -523,14 +528,37 @@ def fill_price(self):
523528
def fill_price(self, fill_price):
524529
"""Sets the fill_price of this Order.
525530
526-
Total filled in quote currency # noqa: E501
531+
Total filled in quote currency. Deprecated in favor of `filled_total` # noqa: E501
527532
528533
:param fill_price: The fill_price of this Order. # noqa: E501
529534
:type: str
530535
"""
531536

532537
self._fill_price = fill_price
533538

539+
@property
540+
def filled_total(self):
541+
"""Gets the filled_total of this Order. # noqa: E501
542+
543+
Total filled in quote currency # noqa: E501
544+
545+
:return: The filled_total of this Order. # noqa: E501
546+
:rtype: str
547+
"""
548+
return self._filled_total
549+
550+
@filled_total.setter
551+
def filled_total(self, filled_total):
552+
"""Sets the filled_total of this Order.
553+
554+
Total filled in quote currency # noqa: E501
555+
556+
:param filled_total: The filled_total of this Order. # noqa: E501
557+
:type: str
558+
"""
559+
560+
self._filled_total = filled_total
561+
534562
@property
535563
def fee(self):
536564
"""Gets the fee of this Order. # noqa: E501

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.11.1"
16+
VERSION = "4.11.2"
1717
# To install the library, run the following
1818
#
1919
# python setup.py install

0 commit comments

Comments
 (0)