From 81848aaa8aa1eea1fe043f2f90969ebf854f6212 Mon Sep 17 00:00:00 2001 From: samtin0x <40127309+samtin0x@users.noreply.github.com> Date: Mon, 19 Aug 2024 18:56:42 +0100 Subject: [PATCH] add `short_term_cancels` to documentation --- v4-client-py-v2/documentation/cancelling_orders.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/v4-client-py-v2/documentation/cancelling_orders.md b/v4-client-py-v2/documentation/cancelling_orders.md index 3b1512c1..1de8aab7 100644 --- a/v4-client-py-v2/documentation/cancelling_orders.md +++ b/v4-client-py-v2/documentation/cancelling_orders.md @@ -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,