From e5efe5855eb786f704723bee1bb73ad7aea1b9dd Mon Sep 17 00:00:00 2001 From: lucas-dydx <76970939+lucas-dydx@users.noreply.github.com> Date: Wed, 20 Sep 2023 09:58:34 -0400 Subject: [PATCH] [PY] v0.6.5 unwrap time_in_force enum when constructing MsgPlaceOrder (#36) --- v4-client-py/pyproject.toml | 2 +- v4-client-py/v4_client_py/clients/composer.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/v4-client-py/pyproject.toml b/v4-client-py/pyproject.toml index 234a1faa..073785d7 100644 --- a/v4-client-py/pyproject.toml +++ b/v4-client-py/pyproject.toml @@ -5,7 +5,7 @@ package-dir = {"" = "v4_client_py"} [tool.poetry] name = "v4-client-py" -version = "0.6.4" +version = "0.6.5" description = "dYdX v4 Client" authors = ["John Huang "] license = "BSL-1.1" diff --git a/v4-client-py/v4_client_py/clients/composer.py b/v4-client-py/v4_client_py/clients/composer.py index 2b5f4e49..7f3d86ae 100644 --- a/v4-client-py/v4_client_py/clients/composer.py +++ b/v4-client-py/v4_client_py/clients/composer.py @@ -90,7 +90,7 @@ def compose_msg_place_order( quantums=quantums, subticks=subticks, good_til_block=good_til_block, - time_in_force=time_in_force, + time_in_force=time_in_force.value, reduce_only=reduce_only, client_metadata=client_metadata, condition_type=condition_type, @@ -101,7 +101,7 @@ def compose_msg_place_order( quantums=quantums, subticks=subticks, good_til_block_time=good_til_block_time, - time_in_force=time_in_force, + time_in_force=time_in_force.value, reduce_only=reduce_only, client_metadata=client_metadata, condition_type=condition_type, @@ -197,4 +197,4 @@ def compose_msg_withdraw_from_subaccount( ) -> MsgWithdrawFromSubaccount: sender = SubaccountId(owner=address, number=subaccount_number) - return MsgWithdrawFromSubaccount(sender=sender, recipient=address, asset_id=asset_id, quantums=quantums) \ No newline at end of file + return MsgWithdrawFromSubaccount(sender=sender, recipient=address, asset_id=asset_id, quantums=quantums)