Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/add order data creation without order mask #339

Merged
merged 2 commits into from
Jul 30, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading