Skip to content

Commit

Permalink
Merge pull request #339 from InjectiveLabs/feat/add_order_data_creati…
Browse files Browse the repository at this point in the history
…on_without_order_mask

Feat/add order data creation without order mask
  • Loading branch information
aarmoa authored Jul 30, 2024
2 parents 716a628 + 2ab34b3 commit ea5c929
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pyinjective/composer.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,21 @@ def order_data(
cid=cid,
)

def order_data_without_mask(
self,
market_id: str,
subaccount_id: str,
order_hash: Optional[str] = None,
cid: Optional[str] = None,
) -> injective_exchange_tx_pb.OrderData:
return injective_exchange_tx_pb.OrderData(
market_id=market_id,
subaccount_id=subaccount_id,
order_hash=order_hash,
order_mask=1,
cid=cid,
)

def SpotOrder(
self,
market_id: str,
Expand Down

0 comments on commit ea5c929

Please sign in to comment.