File tree 4 files changed +9
-4
lines changed
v4-client-py-deprecated/v4_client_py/clients/modules
4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 15
15
from ...chain .aerial .client .utils import prepare_and_broadcast_basic_transaction
16
16
17
17
18
+ PY_V1_CLIENT_ID = 1
19
+
20
+
18
21
class Post :
19
22
def __init__ (
20
23
self ,
@@ -134,7 +137,7 @@ def place_order(
134
137
subticks = subticks ,
135
138
time_in_force = time_in_force ,
136
139
reduce_only = reduce_only ,
137
- client_metadata = client_metadata ,
140
+ client_metadata = PY_V1_CLIENT_ID ,
138
141
condition_type = condition_type ,
139
142
conditional_order_trigger_subticks = conditional_order_trigger_subticks ,
140
143
)
Original file line number Diff line number Diff line change 13
13
from v4_proto .dydxprotocol .subaccounts .subaccount_pb2 import SubaccountId
14
14
from v4_proto .dydxprotocol .clob .tx_pb2 import MsgBatchCancel , OrderBatch
15
15
16
+ PY_V2_CLIENT_ID = 2
17
+
16
18
17
19
def order (
18
20
order_id : OrderId ,
@@ -36,7 +38,7 @@ def order(
36
38
good_til_block_time = good_til_block_time ,
37
39
time_in_force = time_in_force ,
38
40
reduce_only = reduce_only ,
39
- client_metadata = client_metadata ,
41
+ client_metadata = PY_V2_CLIENT_ID ,
40
42
condition_type = condition_type ,
41
43
conditional_order_trigger_subticks = conditional_order_trigger_subticks ,
42
44
)
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " dydx-v4-client"
3
- version = " 1.1.0 "
3
+ version = " 1.1.1 "
4
4
description = " "
5
5
authors = [
6
6
" Saul Martin <[email protected] >" ,
Original file line number Diff line number Diff line change 13
13
)
14
14
from tests .conftest import TEST_ADDRESS
15
15
16
- SERIALIZED_PLACE_ORDER = b"\n F \n 1\n -\n +dydx14zzueazeh0hj67cghhf9jypslcf9sh2n5k6art\x18 @\x10 \x01 \x18 \x80 \xad \xe2 \x04 \x80 \xa0 \xbe \x81 \x95 \x01 5\t \x9c Yf "
16
+ SERIALIZED_PLACE_ORDER = b"\n H \n 1\n -\n +dydx14zzueazeh0hj67cghhf9jypslcf9sh2n5k6art\x18 @\x10 \x01 \x18 \x80 \xad \xe2 \x04 \x80 \xa0 \xbe \x81 \x95 \x01 5\t \x9c YfH \x02 "
17
17
SERIALIZED_CANCEL_ORDER = (
18
18
b"\n 1\n -\n +dydx14zzueazeh0hj67cghhf9jypslcf9sh2n5k6art\x18 @\x1d \t \x9c Yf"
19
19
)
You can’t perform that action at this time.
0 commit comments