diff --git a/v4-client-py-v2/examples/basic_adder.py b/v4-client-py-v2/examples/basic_adder.py index d346e65f..e8712a53 100644 --- a/v4-client-py-v2/examples/basic_adder.py +++ b/v4-client-py-v2/examples/basic_adder.py @@ -2,7 +2,7 @@ import logging from decimal import Decimal -from v4_proto.dydxprotocol.clob.order_pb2 import OrderId +from v4_proto.dydxprotocol.clob.order_pb2 import OrderId, Order from dydx_v4_client.indexer.rest.constants import OrderSide, OrderTimeInForce from dydx_v4_client.indexer.socket.websocket import ( @@ -176,7 +176,7 @@ async def place_order(self, side: OrderSide, size: float, px: Decimal): current_block = await self.node_client.latest_block_height() new_order = order( order_id=oid, - side=side, + side=Order.SIDE_BUY if side == OrderSide.BUY else Order.SIDE_SELL, quantums=(quantums // step_base_quantums) * step_base_quantums, subticks=(subticks // subticks_per_tick) * subticks_per_tick, time_in_force=time_in_force, diff --git a/v4-client-py-v2/pyproject.toml b/v4-client-py-v2/pyproject.toml index 6e4d5e55..674691da 100644 --- a/v4-client-py-v2/pyproject.toml +++ b/v4-client-py-v2/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dydx-v4-client" -version = "1.0.0" +version = "1.0.1" description = "" authors = ["Piotr Piwoński "] readme = "README.md"