diff --git a/gate_api/models/contract.py b/gate_api/models/contract.py index ebd2f2c..6cf8f7d 100644 --- a/gate_api/models/contract.py +++ b/gate_api/models/contract.py @@ -53,15 +53,15 @@ class Contract(object): 'risk_limit_base': 'str', 'risk_limit_step': 'str', 'risk_limit_max': 'str', - 'order_size_min': 'int', - 'order_size_max': 'int', + 'order_size_min': 'str', + 'order_size_max': 'str', 'order_price_deviate': 'str', 'ref_discount_rate': 'str', 'ref_rebate_rate': 'str', 'orderbook_id': 'int', 'trade_id': 'int', - 'trade_size': 'int', - 'position_size': 'int', + 'trade_size': 'str', + 'position_size': 'str', 'config_change_time': 'float', 'in_delisting': 'bool', 'orders_limit': 'int', diff --git a/gate_api/models/futures_order.py b/gate_api/models/futures_order.py index 1ae0561..a080246 100644 --- a/gate_api/models/futures_order.py +++ b/gate_api/models/futures_order.py @@ -40,8 +40,8 @@ class FuturesOrder(object): 'finish_as': 'str', 'status': 'str', 'contract': 'str', - 'size': 'int', - 'iceberg': 'int', + 'size': 'str', + 'iceberg': 'str', 'price': 'str', 'close': 'bool', 'is_close': 'bool', @@ -49,7 +49,7 @@ class FuturesOrder(object): 'is_reduce_only': 'bool', 'is_liq': 'bool', 'tif': 'str', - 'left': 'int', + 'left': 'str', 'fill_price': 'str', 'text': 'str', 'tkfr': 'str', @@ -815,7 +815,7 @@ def stp_act(self, stp_act): :param stp_act: The stp_act of this FuturesOrder. # noqa: E501 :type: str """ - allowed_values = ["co", "cn", "cb"] # noqa: E501 + allowed_values = ["co", "cn", "cb", "-"] # noqa: E501 if self.local_vars_configuration.client_side_validation and stp_act not in allowed_values: # noqa: E501 raise ValueError( "Invalid value for `stp_act` ({0}), must be one of {1}".format(stp_act, allowed_values) # noqa: E501 diff --git a/gate_api/models/ledger_record.py b/gate_api/models/ledger_record.py index 66cceaa..90304cb 100644 --- a/gate_api/models/ledger_record.py +++ b/gate_api/models/ledger_record.py @@ -336,6 +336,7 @@ def status(self, status): "PEND", "DMOVE", "SPLITPEND", + "TRACK" ] # noqa: E501 if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501 raise ValueError( diff --git a/gate_api/models/position.py b/gate_api/models/position.py index 39f6f69..447e987 100644 --- a/gate_api/models/position.py +++ b/gate_api/models/position.py @@ -35,7 +35,7 @@ class Position(object): openapi_types = { 'user': 'int', 'contract': 'str', - 'size': 'int', + 'size': 'str', 'leverage': 'str', 'risk_limit': 'str', 'leverage_max': 'str',