Skip to content

Commit ab3371e

Browse files
committed
(feat) Added the method in Composer, to allow order cancellation just using the order's identifiers
1 parent 572d3ad commit ab3371e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pyinjective/composer.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,21 @@ def order_data(
211211
cid=cid,
212212
)
213213

214+
def order_data_without_mask(
215+
self,
216+
market_id: str,
217+
subaccount_id: str,
218+
order_hash: Optional[str] = None,
219+
cid: Optional[str] = None,
220+
) -> injective_exchange_tx_pb.OrderData:
221+
return injective_exchange_tx_pb.OrderData(
222+
market_id=market_id,
223+
subaccount_id=subaccount_id,
224+
order_hash=order_hash,
225+
order_mask=1,
226+
cid=cid,
227+
)
228+
214229
def SpotOrder(
215230
self,
216231
market_id: str,

0 commit comments

Comments
 (0)