Skip to content

Commit 3351330

Browse files
committed
return etf in ticker
1 parent 4c5ae5b commit 3351330

9 files changed

Lines changed: 129 additions & 129 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.18.3
7-
- Package version: 4.18.3
6+
- API version: 4.18.4
7+
- Package version: 4.18.4
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/CurrencyPair.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ Name | Type | Description | Notes
1313
**amount_precision** | **int** | Amount scale | [optional]
1414
**precision** | **int** | Price scale | [optional]
1515
**trade_status** | **str** | How currency pair can be traded - untradable: cannot be bought or sold - buyable: can be bought - sellable: can be sold - tradable: can be bought or sold | [optional]
16-
**etf_net_value** | **str** | ETF net value | [optional]
17-
**etf_pre_net_value** | **str** | ETF previous net value at re-balancing time | [optional]
18-
**etf_pre_timestamp** | **int** | ETF previous re-balancing time | [optional]
19-
**etf_leverage** | **str** | ETF current leverage | [optional]
2016

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

docs/Ticker.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ Name | Type | Description | Notes
1212
**quote_volume** | **str** | Quote currency trade volume | [optional]
1313
**high_24h** | **str** | Highest price in 24h | [optional]
1414
**low_24h** | **str** | Lowest price in 24h | [optional]
15+
**etf_net_value** | **str** | ETF net value | [optional]
16+
**etf_pre_net_value** | **str** | ETF previous net value at re-balancing time | [optional]
17+
**etf_pre_timestamp** | **int** | ETF previous re-balancing time | [optional]
18+
**etf_leverage** | **str** | ETF current leverage | [optional]
1519

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

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.18.3"
17+
__version__ = "4.18.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.18.3/python'
85+
self.user_agent = 'OpenAPI-Generator/4.18.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.18.3\n"
320-
"SDK Package Version: 4.18.3".format(env=sys.platform, pyversion=sys.version)
319+
"Version of the API: 4.18.4\n"
320+
"SDK Package Version: 4.18.4".format(env=sys.platform, pyversion=sys.version)
321321
)
322322

323323
def get_host_settings(self):

gate_api/models/currency_pair.py

Lines changed: 1 addition & 117 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ class CurrencyPair(object):
4242
'amount_precision': 'int',
4343
'precision': 'int',
4444
'trade_status': 'str',
45-
'etf_net_value': 'str',
46-
'etf_pre_net_value': 'str',
47-
'etf_pre_timestamp': 'int',
48-
'etf_leverage': 'str',
4945
}
5046

5147
attribute_map = {
@@ -58,10 +54,6 @@ class CurrencyPair(object):
5854
'amount_precision': 'amount_precision',
5955
'precision': 'precision',
6056
'trade_status': 'trade_status',
61-
'etf_net_value': 'etf_net_value',
62-
'etf_pre_net_value': 'etf_pre_net_value',
63-
'etf_pre_timestamp': 'etf_pre_timestamp',
64-
'etf_leverage': 'etf_leverage',
6557
}
6658

6759
def __init__(
@@ -75,13 +67,9 @@ def __init__(
7567
amount_precision=None,
7668
precision=None,
7769
trade_status=None,
78-
etf_net_value=None,
79-
etf_pre_net_value=None,
80-
etf_pre_timestamp=None,
81-
etf_leverage=None,
8270
local_vars_configuration=None,
8371
): # noqa: E501
84-
# type: (str, str, str, str, str, str, int, int, str, str, str, int, str, Configuration) -> None
72+
# type: (str, str, str, str, str, str, int, int, str, Configuration) -> None
8573
"""CurrencyPair - a model defined in OpenAPI""" # noqa: E501
8674
if local_vars_configuration is None:
8775
local_vars_configuration = Configuration()
@@ -96,10 +84,6 @@ def __init__(
9684
self._amount_precision = None
9785
self._precision = None
9886
self._trade_status = None
99-
self._etf_net_value = None
100-
self._etf_pre_net_value = None
101-
self._etf_pre_timestamp = None
102-
self._etf_leverage = None
10387
self.discriminator = None
10488

10589
if id is not None:
@@ -120,14 +104,6 @@ def __init__(
120104
self.precision = precision
121105
if trade_status is not None:
122106
self.trade_status = trade_status
123-
if etf_net_value is not None:
124-
self.etf_net_value = etf_net_value
125-
if etf_pre_net_value is not None:
126-
self.etf_pre_net_value = etf_pre_net_value
127-
if etf_pre_timestamp is not None:
128-
self.etf_pre_timestamp = etf_pre_timestamp
129-
if etf_leverage is not None:
130-
self.etf_leverage = etf_leverage
131107

132108
@property
133109
def id(self):
@@ -343,98 +319,6 @@ def trade_status(self, trade_status):
343319

344320
self._trade_status = trade_status
345321

346-
@property
347-
def etf_net_value(self):
348-
"""Gets the etf_net_value of this CurrencyPair. # noqa: E501
349-
350-
ETF net value # noqa: E501
351-
352-
:return: The etf_net_value of this CurrencyPair. # noqa: E501
353-
:rtype: str
354-
"""
355-
return self._etf_net_value
356-
357-
@etf_net_value.setter
358-
def etf_net_value(self, etf_net_value):
359-
"""Sets the etf_net_value of this CurrencyPair.
360-
361-
ETF net value # noqa: E501
362-
363-
:param etf_net_value: The etf_net_value of this CurrencyPair. # noqa: E501
364-
:type: str
365-
"""
366-
367-
self._etf_net_value = etf_net_value
368-
369-
@property
370-
def etf_pre_net_value(self):
371-
"""Gets the etf_pre_net_value of this CurrencyPair. # noqa: E501
372-
373-
ETF previous net value at re-balancing time # noqa: E501
374-
375-
:return: The etf_pre_net_value of this CurrencyPair. # noqa: E501
376-
:rtype: str
377-
"""
378-
return self._etf_pre_net_value
379-
380-
@etf_pre_net_value.setter
381-
def etf_pre_net_value(self, etf_pre_net_value):
382-
"""Sets the etf_pre_net_value of this CurrencyPair.
383-
384-
ETF previous net value at re-balancing time # noqa: E501
385-
386-
:param etf_pre_net_value: The etf_pre_net_value of this CurrencyPair. # noqa: E501
387-
:type: str
388-
"""
389-
390-
self._etf_pre_net_value = etf_pre_net_value
391-
392-
@property
393-
def etf_pre_timestamp(self):
394-
"""Gets the etf_pre_timestamp of this CurrencyPair. # noqa: E501
395-
396-
ETF previous re-balancing time # noqa: E501
397-
398-
:return: The etf_pre_timestamp of this CurrencyPair. # noqa: E501
399-
:rtype: int
400-
"""
401-
return self._etf_pre_timestamp
402-
403-
@etf_pre_timestamp.setter
404-
def etf_pre_timestamp(self, etf_pre_timestamp):
405-
"""Sets the etf_pre_timestamp of this CurrencyPair.
406-
407-
ETF previous re-balancing time # noqa: E501
408-
409-
:param etf_pre_timestamp: The etf_pre_timestamp of this CurrencyPair. # noqa: E501
410-
:type: int
411-
"""
412-
413-
self._etf_pre_timestamp = etf_pre_timestamp
414-
415-
@property
416-
def etf_leverage(self):
417-
"""Gets the etf_leverage of this CurrencyPair. # noqa: E501
418-
419-
ETF current leverage # noqa: E501
420-
421-
:return: The etf_leverage of this CurrencyPair. # noqa: E501
422-
:rtype: str
423-
"""
424-
return self._etf_leverage
425-
426-
@etf_leverage.setter
427-
def etf_leverage(self, etf_leverage):
428-
"""Sets the etf_leverage of this CurrencyPair.
429-
430-
ETF current leverage # noqa: E501
431-
432-
:param etf_leverage: The etf_leverage of this CurrencyPair. # noqa: E501
433-
:type: str
434-
"""
435-
436-
self._etf_leverage = etf_leverage
437-
438322
def to_dict(self):
439323
"""Returns the model properties as a dict"""
440324
result = {}

gate_api/models/ticker.py

Lines changed: 117 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ class Ticker(object):
4242
'quote_volume': 'str',
4343
'high_24h': 'str',
4444
'low_24h': 'str',
45+
'etf_net_value': 'str',
46+
'etf_pre_net_value': 'str',
47+
'etf_pre_timestamp': 'int',
48+
'etf_leverage': 'str',
4549
}
4650

4751
attribute_map = {
@@ -54,6 +58,10 @@ class Ticker(object):
5458
'quote_volume': 'quote_volume',
5559
'high_24h': 'high_24h',
5660
'low_24h': 'low_24h',
61+
'etf_net_value': 'etf_net_value',
62+
'etf_pre_net_value': 'etf_pre_net_value',
63+
'etf_pre_timestamp': 'etf_pre_timestamp',
64+
'etf_leverage': 'etf_leverage',
5765
}
5866

5967
def __init__(
@@ -67,9 +75,13 @@ def __init__(
6775
quote_volume=None,
6876
high_24h=None,
6977
low_24h=None,
78+
etf_net_value=None,
79+
etf_pre_net_value=None,
80+
etf_pre_timestamp=None,
81+
etf_leverage=None,
7082
local_vars_configuration=None,
7183
): # noqa: E501
72-
# type: (str, str, str, str, str, str, str, str, str, Configuration) -> None
84+
# type: (str, str, str, str, str, str, str, str, str, str, str, int, str, Configuration) -> None
7385
"""Ticker - a model defined in OpenAPI""" # noqa: E501
7486
if local_vars_configuration is None:
7587
local_vars_configuration = Configuration()
@@ -84,6 +96,10 @@ def __init__(
8496
self._quote_volume = None
8597
self._high_24h = None
8698
self._low_24h = None
99+
self._etf_net_value = None
100+
self._etf_pre_net_value = None
101+
self._etf_pre_timestamp = None
102+
self._etf_leverage = None
87103
self.discriminator = None
88104

89105
if currency_pair is not None:
@@ -104,6 +120,14 @@ def __init__(
104120
self.high_24h = high_24h
105121
if low_24h is not None:
106122
self.low_24h = low_24h
123+
if etf_net_value is not None:
124+
self.etf_net_value = etf_net_value
125+
if etf_pre_net_value is not None:
126+
self.etf_pre_net_value = etf_pre_net_value
127+
if etf_pre_timestamp is not None:
128+
self.etf_pre_timestamp = etf_pre_timestamp
129+
if etf_leverage is not None:
130+
self.etf_leverage = etf_leverage
107131

108132
@property
109133
def currency_pair(self):
@@ -312,6 +336,98 @@ def low_24h(self, low_24h):
312336

313337
self._low_24h = low_24h
314338

339+
@property
340+
def etf_net_value(self):
341+
"""Gets the etf_net_value of this Ticker. # noqa: E501
342+
343+
ETF net value # noqa: E501
344+
345+
:return: The etf_net_value of this Ticker. # noqa: E501
346+
:rtype: str
347+
"""
348+
return self._etf_net_value
349+
350+
@etf_net_value.setter
351+
def etf_net_value(self, etf_net_value):
352+
"""Sets the etf_net_value of this Ticker.
353+
354+
ETF net value # noqa: E501
355+
356+
:param etf_net_value: The etf_net_value of this Ticker. # noqa: E501
357+
:type: str
358+
"""
359+
360+
self._etf_net_value = etf_net_value
361+
362+
@property
363+
def etf_pre_net_value(self):
364+
"""Gets the etf_pre_net_value of this Ticker. # noqa: E501
365+
366+
ETF previous net value at re-balancing time # noqa: E501
367+
368+
:return: The etf_pre_net_value of this Ticker. # noqa: E501
369+
:rtype: str
370+
"""
371+
return self._etf_pre_net_value
372+
373+
@etf_pre_net_value.setter
374+
def etf_pre_net_value(self, etf_pre_net_value):
375+
"""Sets the etf_pre_net_value of this Ticker.
376+
377+
ETF previous net value at re-balancing time # noqa: E501
378+
379+
:param etf_pre_net_value: The etf_pre_net_value of this Ticker. # noqa: E501
380+
:type: str
381+
"""
382+
383+
self._etf_pre_net_value = etf_pre_net_value
384+
385+
@property
386+
def etf_pre_timestamp(self):
387+
"""Gets the etf_pre_timestamp of this Ticker. # noqa: E501
388+
389+
ETF previous re-balancing time # noqa: E501
390+
391+
:return: The etf_pre_timestamp of this Ticker. # noqa: E501
392+
:rtype: int
393+
"""
394+
return self._etf_pre_timestamp
395+
396+
@etf_pre_timestamp.setter
397+
def etf_pre_timestamp(self, etf_pre_timestamp):
398+
"""Sets the etf_pre_timestamp of this Ticker.
399+
400+
ETF previous re-balancing time # noqa: E501
401+
402+
:param etf_pre_timestamp: The etf_pre_timestamp of this Ticker. # noqa: E501
403+
:type: int
404+
"""
405+
406+
self._etf_pre_timestamp = etf_pre_timestamp
407+
408+
@property
409+
def etf_leverage(self):
410+
"""Gets the etf_leverage of this Ticker. # noqa: E501
411+
412+
ETF current leverage # noqa: E501
413+
414+
:return: The etf_leverage of this Ticker. # noqa: E501
415+
:rtype: str
416+
"""
417+
return self._etf_leverage
418+
419+
@etf_leverage.setter
420+
def etf_leverage(self, etf_leverage):
421+
"""Sets the etf_leverage of this Ticker.
422+
423+
ETF current leverage # noqa: E501
424+
425+
:param etf_leverage: The etf_leverage of this Ticker. # noqa: E501
426+
:type: str
427+
"""
428+
429+
self._etf_leverage = etf_leverage
430+
315431
def to_dict(self):
316432
"""Returns the model properties as a dict"""
317433
result = {}

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

0 commit comments

Comments
 (0)