Skip to content

Commit ea5c929

Browse files
authored
Merge pull request #339 from InjectiveLabs/feat/add_order_data_creation_without_order_mask
Feat/add order data creation without order mask
2 parents 716a628 + 2ab34b3 commit ea5c929

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)