Skip to content

Commit c47556f

Browse files
committed
fix invalid auto repay enum values
1 parent 916818e commit c47556f

File tree

12 files changed

+38
-31
lines changed

12 files changed

+38
-31
lines changed

README.md

Lines changed: 4 additions & 5 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.20.0
9-
- Package version: 4.20.0
8+
- API version: 4.20.1
9+
- Package version: 4.20.1
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

@@ -41,12 +41,11 @@ Python 2.7 and 3.4+
4141
## Installation & Usage
4242
### pip install
4343

44-
If the python package is hosted on a repository, you can install directly using:
44+
You can install directly using:
4545

4646
```sh
47-
pip install git+https://github.com/gateio/gateapi-python.git
47+
pip install --user gate-api
4848
```
49-
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/gateio/gateapi-python.git`)
5049

5150
Then import the package:
5251
```python

docs/CurrencyPair.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ 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-
**sell_start** | **int** | 允许卖出时间,秒级 Unix 时间戳 | [optional]
17-
**buy_start** | **int** | 允许买入时间,秒级 Unix 时间戳 | [optional]
16+
**sell_start** | **int** | Sell start unix timestamp in seconds | [optional]
17+
**buy_start** | **int** | Buy start unix timestamp in seconds | [optional]
1818

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

docs/MarginApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,7 @@ configuration = gate_api.Configuration(
12771277
api_client = gate_api.ApiClient(configuration)
12781278
# Create an instance of the API class
12791279
api_instance = gate_api.MarginApi(api_client)
1280-
status = 'true' # str | New auto repayment status. `on` - enabled, `off` - disabled
1280+
status = 'on' # str | New auto repayment status. `on` - enabled, `off` - disabled
12811281

12821282
try:
12831283
# Update user's auto repayment setting

docs/SpotApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,7 @@ api_client = gate_api.ApiClient(configuration)
13091309
# Create an instance of the API class
13101310
api_instance = gate_api.SpotApi(api_client)
13111311
status = 'status_example' # str | List orders based on status
1312-
market = 'BTC_USDT' # str | 交易市场 (optional)
1312+
market = 'BTC_USDT' # str | Currency pair (optional)
13131313
account = 'account_example' # str | Trading account (optional)
13141314
limit = 100 # int | Maximum number of records returned in one list (optional) (default to 100)
13151315
offset = 0 # int | List offset, starting from 0 (optional) (default to 0)
@@ -1329,7 +1329,7 @@ except ApiException as e:
13291329
Name | Type | Description | Notes
13301330
------------- | ------------- | ------------- | -------------
13311331
**status** | **str**| List orders based on status |
1332-
**market** | **str**| 交易市场 | [optional]
1332+
**market** | **str**| Currency pair | [optional]
13331333
**account** | **str**| Trading account | [optional]
13341334
**limit** | **int**| Maximum number of records returned in one list | [optional] [default to 100]
13351335
**offset** | **int**| List offset, starting from 0 | [optional] [default to 0]
@@ -1450,7 +1450,7 @@ configuration = gate_api.Configuration(
14501450
api_client = gate_api.ApiClient(configuration)
14511451
# Create an instance of the API class
14521452
api_instance = gate_api.SpotApi(api_client)
1453-
market = 'BTC_USDT' # str | 交易市场 (optional)
1453+
market = 'BTC_USDT' # str | Currency pair (optional)
14541454
account = 'account_example' # str | Trading account (optional)
14551455

14561456
try:
@@ -1467,7 +1467,7 @@ except ApiException as e:
14671467

14681468
Name | Type | Description | Notes
14691469
------------- | ------------- | ------------- | -------------
1470-
**market** | **str**| 交易市场 | [optional]
1470+
**market** | **str**| Currency pair | [optional]
14711471
**account** | **str**| Trading account | [optional]
14721472

14731473
### Return type

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.20.0"
17+
__version__ = "4.20.1"
1818

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

gate_api/api/spot_api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2175,7 +2175,7 @@ def list_spot_price_triggered_orders(self, status, **kwargs): # noqa: E501
21752175
21762176
:param bool async_req: execute request asynchronously
21772177
:param str status: List orders based on status (required)
2178-
:param str market: 交易市场
2178+
:param str market: Currency pair
21792179
:param str account: Trading account
21802180
:param int limit: Maximum number of records returned in one list
21812181
:param int offset: List offset, starting from 0
@@ -2203,7 +2203,7 @@ def list_spot_price_triggered_orders_with_http_info(self, status, **kwargs): #
22032203
22042204
:param bool async_req: execute request asynchronously
22052205
:param str status: List orders based on status (required)
2206-
:param str market: 交易市场
2206+
:param str market: Currency pair
22072207
:param str account: Trading account
22082208
:param int limit: Maximum number of records returned in one list
22092209
:param int offset: List offset, starting from 0
@@ -2426,7 +2426,7 @@ def cancel_spot_price_triggered_order_list(self, **kwargs): # noqa: E501
24262426
>>> result = thread.get()
24272427
24282428
:param bool async_req: execute request asynchronously
2429-
:param str market: 交易市场
2429+
:param str market: Currency pair
24302430
:param str account: Trading account
24312431
:param _preload_content: if False, the urllib3.HTTPResponse object will
24322432
be returned without reading/decoding response
@@ -2451,7 +2451,7 @@ def cancel_spot_price_triggered_order_list_with_http_info(self, **kwargs): # no
24512451
>>> result = thread.get()
24522452
24532453
:param bool async_req: execute request asynchronously
2454-
:param str market: 交易市场
2454+
:param str market: Currency pair
24552455
:param str account: Trading account
24562456
:param _return_http_data_only: response data without head status code
24572457
and headers

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

323323
def get_host_settings(self):

gate_api/models/auto_repay_setting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def status(self, status):
6969
:param status: The status of this AutoRepaySetting. # noqa: E501
7070
:type: str
7171
"""
72-
allowed_values = ["true", "false"] # noqa: E501
72+
allowed_values = ["on", "off"] # noqa: E501
7373
if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501
7474
raise ValueError(
7575
"Invalid value for `status` ({0}), must be one of {1}".format(status, allowed_values) # noqa: E501

gate_api/models/currency_pair.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def trade_status(self, trade_status):
335335
def sell_start(self):
336336
"""Gets the sell_start of this CurrencyPair. # noqa: E501
337337
338-
允许卖出时间,秒级 Unix 时间戳 # noqa: E501
338+
Sell start unix timestamp in seconds # noqa: E501
339339
340340
:return: The sell_start of this CurrencyPair. # noqa: E501
341341
:rtype: int
@@ -346,7 +346,7 @@ def sell_start(self):
346346
def sell_start(self, sell_start):
347347
"""Sets the sell_start of this CurrencyPair.
348348
349-
允许卖出时间,秒级 Unix 时间戳 # noqa: E501
349+
Sell start unix timestamp in seconds # noqa: E501
350350
351351
:param sell_start: The sell_start of this CurrencyPair. # noqa: E501
352352
:type: int
@@ -358,7 +358,7 @@ def sell_start(self, sell_start):
358358
def buy_start(self):
359359
"""Gets the buy_start of this CurrencyPair. # noqa: E501
360360
361-
允许买入时间,秒级 Unix 时间戳 # noqa: E501
361+
Buy start unix timestamp in seconds # noqa: E501
362362
363363
:return: The buy_start of this CurrencyPair. # noqa: E501
364364
:rtype: int
@@ -369,7 +369,7 @@ def buy_start(self):
369369
def buy_start(self, buy_start):
370370
"""Sets the buy_start of this CurrencyPair.
371371
372-
允许买入时间,秒级 Unix 时间戳 # noqa: E501
372+
Buy start unix timestamp in seconds # noqa: E501
373373
374374
:param buy_start: The buy_start of this CurrencyPair. # noqa: E501
375375
:type: int

setup.cfg

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
1+
[metadata]
2+
long_description = file: README.md
3+
long_description_content_type = text/markdown
4+
classifiers:
5+
License :: OSI Approved :: Apache-2.0
6+
Programming Language :: Python :: 2
7+
Programming Language :: Python :: 2.7
8+
Programming Language :: Python :: 3
9+
maintainer = gateio
10+
maintainer_email = dev@mail.gate.io
11+
112
[flake8]
213
max-line-length=99

setup.py

Lines changed: 3 additions & 6 deletions
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.20.0"
16+
VERSION = "4.20.1"
1717
# To install the library, run the following
1818
#
1919
# python setup.py install
@@ -29,13 +29,10 @@
2929
description="Gate API v4",
3030
author="Gate API support",
3131
author_email="support@mail.gate.io",
32-
url="",
32+
url="https://github.com/gateio/gateapi-python",
3333
keywords=["OpenAPI", "OpenAPI-Generator", "Gate API v4"],
3434
install_requires=REQUIRES,
3535
packages=find_packages(exclude=["test", "tests"]),
3636
include_package_data=True,
37-
license="Apache License 2.0",
38-
long_description="""\
39-
Welcome to Gate.io API APIv4 provides spot, margin and futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf. # noqa: E501
40-
"""
37+
license="Apache License 2.0"
4138
)

0 commit comments

Comments
 (0)