Skip to content

Commit

Permalink
[PY] v0.6.5 unwrap time_in_force enum when constructing MsgPlaceOrder (
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-dydx authored Sep 20, 2023
1 parent caddbc9 commit e5efe58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion v4-client-py/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <contact@dydx.exchange>"]
license = "BSL-1.1"
Expand Down
6 changes: 3 additions & 3 deletions v4-client-py/v4_client_py/clients/composer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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)
return MsgWithdrawFromSubaccount(sender=sender, recipient=address, asset_id=asset_id, quantums=quantums)

0 comments on commit e5efe58

Please sign in to comment.