Skip to content

Commit 0654d9a

Browse files
committed
add client_id support in spot and futures orders
1 parent cfdf2cc commit 0654d9a

50 files changed

Lines changed: 117 additions & 56 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 5 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.7.2
7-
- Package version: 4.7.2
6+
- API version: 4.7.3
7+
- Package version: 4.7.3
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

@@ -55,6 +55,9 @@ configuration.key = 'YOUR_API_KEY'
5555
configuration.secret = 'YOUR_API_SECRET'
5656
# uncomment the next line if using the API with another host
5757
# configuration.host = 'https://some-other-host'
58+
# configuration.proxy = 'http://localhost:1080' # uncomment to proxy through a http proxy
59+
# configuration.verify_ssl = False # uncomment to turn off ssl verification
60+
# More connection configuration is available in `Configuration` model.
5861

5962
# create an instance of the API class
6063
api_instance = gate_api.FuturesApi(gate_api.ApiClient(configuration))

docs/FuturesOrder.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**id** | **int** | Futures order ID | [optional]
77
**user** | **int** | User ID | [optional]
8+
**client_id** | **str** | User defined ID | [optional]
89
**create_time** | **float** | Order creation time | [optional]
910
**finish_time** | **float** | Order finished time. Not returned if order is open | [optional]
1011
**finish_as** | **str** | How the order is finished. - filled: all filled - cancelled: manually cancelled - liquidated: cancelled because of liquidation - ioc: time in force is `IOC`, finish immediately - auto_deleveraged: finished by ADL - reduce_only: cancelled because of increasing position while `reduce-only` set | [optional]

docs/Order.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**id** | **str** | Order ID | [optional]
7+
**client_id** | **str** | User defined ID | [optional]
78
**create_time** | **str** | Order creation time | [optional]
89
**status** | **str** | Order status - `open`: to be filled- `closed`: filled- `cancelled`: cancelled | [optional]
910
**currency_pair** | **str** | Currency pair |

gate_api/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
88
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
99
10-
OpenAPI spec version: 4.7.2
10+
OpenAPI spec version: 4.7.3
1111
Contact: support@mail.gate.io
1212
Generated by: https://openapi-generator.tech
1313
"""
1414

1515

1616
from __future__ import absolute_import
1717

18-
__version__ = "4.7.2"
18+
__version__ = "4.7.3"
1919

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

gate_api/api/futures_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
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
77
8-
OpenAPI spec version: 4.7.2
8+
OpenAPI spec version: 4.7.3
99
Contact: support@mail.gate.io
1010
Generated by: https://openapi-generator.tech
1111
"""

gate_api/api/margin_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
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
77
8-
OpenAPI spec version: 4.7.2
8+
OpenAPI spec version: 4.7.3
99
Contact: support@mail.gate.io
1010
Generated by: https://openapi-generator.tech
1111
"""

gate_api/api/spot_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
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
77
8-
OpenAPI spec version: 4.7.2
8+
OpenAPI spec version: 4.7.3
99
Contact: support@mail.gate.io
1010
Generated by: https://openapi-generator.tech
1111
"""

gate_api/api/wallet_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
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
77
8-
OpenAPI spec version: 4.7.2
8+
OpenAPI spec version: 4.7.3
99
Contact: support@mail.gate.io
1010
Generated by: https://openapi-generator.tech
1111
"""

gate_api/api_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
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
66
7-
OpenAPI spec version: 4.7.2
7+
OpenAPI spec version: 4.7.3
88
Contact: support@mail.gate.io
99
Generated by: https://openapi-generator.tech
1010
"""
@@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7676
self.default_headers[header_name] = header_value
7777
self.cookie = cookie
7878
# Set default User-Agent.
79-
self.user_agent = 'OpenAPI-Generator/4.7.2/python'
79+
self.user_agent = 'OpenAPI-Generator/4.7.3/python'
8080

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

gate_api/configuration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
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
77
8-
OpenAPI spec version: 4.7.2
8+
OpenAPI spec version: 4.7.3
99
Contact: support@mail.gate.io
1010
Generated by: https://openapi-generator.tech
1111
"""
@@ -249,6 +249,6 @@ def to_debug_report(self):
249249
return "Python SDK Debug Report:\n"\
250250
"OS: {env}\n"\
251251
"Python Version: {pyversion}\n"\
252-
"Version of the API: 4.7.2\n"\
253-
"SDK Package Version: 4.7.2".\
252+
"Version of the API: 4.7.3\n"\
253+
"SDK Package Version: 4.7.3".\
254254
format(env=sys.platform, pyversion=sys.version)

0 commit comments

Comments
 (0)