Skip to content

Commit

Permalink
add short_term_cancels to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
samtin0x committed Aug 19, 2024
1 parent 108826d commit 81848aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions v4-client-py-v2/documentation/cancelling_orders.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ pythonCopyfrom dydx_v4_client.node.message import batch_cancel
from v4_proto.dydxprotocol.clob.order_pb2 import OrderBatch

```python
PERPETUAL_PAIR_BTC_USD = 0

client_ids = [tx_client_id1, tx_client_id2]
short_term_cancels = [OrderBatch(clob_pair_id=PERPETUAL_PAIR_BTC_USD, client_ids=client_ids)]

batch_cancel_msg = batch_cancel(
subaccount_id,
short_term_cancels,
Expand Down

0 comments on commit 81848aa

Please sign in to comment.