Skip to content

Commit 5492fda

Browse files
committed
spot order add fok support
1 parent ea0d2bd commit 5492fda

9 files changed

Lines changed: 15 additions & 15 deletions

File tree

README.md

Lines changed: 2 additions & 2 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.23.0
9-
- Package version: 4.23.0
8+
- API version: 4.23.1
9+
- Package version: 4.23.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

docs/BatchOrder.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
2020
**side** | **str** | Order side | [optional]
2121
**amount** | **str** | Trade amount | [optional]
2222
**price** | **str** | Order price | [optional]
23-
**time_in_force** | **str** | Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee | [optional] [default to 'gtc']
23+
**time_in_force** | **str** | Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee - fok: FillOrKill, fill either completely or none | [optional] [default to 'gtc']
2424
**iceberg** | **str** | Amount to display for the iceberg order. Null or 0 for normal orders. Set to -1 to hide the order completely | [optional]
2525
**auto_borrow** | **bool** | Used in margin or cross margin trading to allow automatic loan of insufficient amount if balance is not enough. | [optional]
2626
**auto_repay** | **bool** | Enable or disable automatic repayment for automatic borrow loan generated by cross margin order. Default is disabled. Note that: 1. This field is only effective for cross margin orders. Margin account does not support setting auto repayment for orders. 2. `auto_borrow` and `auto_repay` cannot be both set to true in one order. | [optional]

docs/Order.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
1717
**side** | **str** | Order side |
1818
**amount** | **str** | Trade amount |
1919
**price** | **str** | Order price |
20-
**time_in_force** | **str** | Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee | [optional] [default to 'gtc']
20+
**time_in_force** | **str** | Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee - fok: FillOrKill, fill either completely or none | [optional] [default to 'gtc']
2121
**iceberg** | **str** | Amount to display for the iceberg order. Null or 0 for normal orders. Set to -1 to hide the order completely | [optional]
2222
**auto_borrow** | **bool** | Used in margin or cross margin trading to allow automatic loan of insufficient amount if balance is not enough. | [optional]
2323
**auto_repay** | **bool** | Enable or disable automatic repayment for automatic borrow loan generated by cross margin order. Default is disabled. Note that: 1. This field is only effective for cross margin orders. Margin account does not support setting auto repayment for orders. 2. `auto_borrow` and `auto_repay` cannot be both set to true in one order. | [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.23.0"
17+
__version__ = "4.23.1"
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.23.0/python'
85+
self.user_agent = 'OpenAPI-Generator/4.23.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
@@ -315,8 +315,8 @@ def to_debug_report(self):
315315
"Python SDK Debug Report:\n"
316316
"OS: {env}\n"
317317
"Python Version: {pyversion}\n"
318-
"Version of the API: 4.23.0\n"
319-
"SDK Package Version: 4.23.0".format(env=sys.platform, pyversion=sys.version)
318+
"Version of the API: 4.23.1\n"
319+
"SDK Package Version: 4.23.1".format(env=sys.platform, pyversion=sys.version)
320320
)
321321

322322
def get_host_settings(self):

gate_api/models/batch_order.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ def price(self, price):
623623
def time_in_force(self):
624624
"""Gets the time_in_force of this BatchOrder. # noqa: E501
625625
626-
Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee # noqa: E501
626+
Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee - fok: FillOrKill, fill either completely or none # noqa: E501
627627
628628
:return: The time_in_force of this BatchOrder. # noqa: E501
629629
:rtype: str
@@ -634,12 +634,12 @@ def time_in_force(self):
634634
def time_in_force(self, time_in_force):
635635
"""Sets the time_in_force of this BatchOrder.
636636
637-
Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee # noqa: E501
637+
Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee - fok: FillOrKill, fill either completely or none # noqa: E501
638638
639639
:param time_in_force: The time_in_force of this BatchOrder. # noqa: E501
640640
:type: str
641641
"""
642-
allowed_values = ["gtc", "ioc", "poc"] # noqa: E501
642+
allowed_values = ["gtc", "ioc", "poc", "fok"] # noqa: E501
643643
if self.local_vars_configuration.client_side_validation and time_in_force not in allowed_values: # noqa: E501
644644
raise ValueError(
645645
"Invalid value for `time_in_force` ({0}), must be one of {1}".format( # noqa: E501

gate_api/models/order.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ def price(self, price):
540540
def time_in_force(self):
541541
"""Gets the time_in_force of this Order. # noqa: E501
542542
543-
Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee # noqa: E501
543+
Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee - fok: FillOrKill, fill either completely or none # noqa: E501
544544
545545
:return: The time_in_force of this Order. # noqa: E501
546546
:rtype: str
@@ -551,12 +551,12 @@ def time_in_force(self):
551551
def time_in_force(self, time_in_force):
552552
"""Sets the time_in_force of this Order.
553553
554-
Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee # noqa: E501
554+
Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee - fok: FillOrKill, fill either completely or none # noqa: E501
555555
556556
:param time_in_force: The time_in_force of this Order. # noqa: E501
557557
:type: str
558558
"""
559-
allowed_values = ["gtc", "ioc", "poc"] # noqa: E501
559+
allowed_values = ["gtc", "ioc", "poc", "fok"] # noqa: E501
560560
if self.local_vars_configuration.client_side_validation and time_in_force not in allowed_values: # noqa: E501
561561
raise ValueError(
562562
"Invalid value for `time_in_force` ({0}), must be one of {1}".format( # 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.23.0"
16+
VERSION = "4.23.1"
1717
# To install the library, run the following
1818
#
1919
# python setup.py install

0 commit comments

Comments
 (0)