Skip to content

Commit

Permalink
feat: set pyv2 client metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
samtin0x committed Oct 17, 2024
1 parent 41027e6 commit c1bd996
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion v4-client-py-v2/dydx_v4_client/node/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from v4_proto.dydxprotocol.subaccounts.subaccount_pb2 import SubaccountId
from v4_proto.dydxprotocol.clob.tx_pb2 import MsgBatchCancel, OrderBatch

PY_V2_CLIENT_ID = 2

def order(
order_id: OrderId,
Expand All @@ -36,7 +37,7 @@ def order(
good_til_block_time=good_til_block_time,
time_in_force=time_in_force,
reduce_only=reduce_only,
client_metadata=client_metadata,
client_metadata=PY_V2_CLIENT_ID,
condition_type=condition_type,
conditional_order_trigger_subticks=conditional_order_trigger_subticks,
)
Expand Down
1 change: 1 addition & 0 deletions v4-client-py-v2/tests/test_mutating_node_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ async def test_order(
placed = await node_client.place_order(
wallet,
test_order,

)
assert_successful_broadcast(placed)

Expand Down

0 comments on commit c1bd996

Please sign in to comment.