Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PY] v0.6.5 unwrap time_in_force enum when constructing MsgPlaceOrder #36

Merged
merged 1 commit into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)