Batch Cancel Orders
Cancel a batch of short-terms orders.
Method Declaration
Python
async def batch_cancel_orders(
self,
wallet: Wallet,
subaccount_id: SubaccountId,
short_term_cancels: List[OrderBatch],
good_til_block: int,
tx_options: Optional[TxOptions] = None,
)Unification plan
TxOptionsis not available in Rust
Parameters
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
wallet | query | Wallet | true | The wallet to use for signing the transaction. |
subaccount_id | query | SubaccountId | true | The subaccount ID for which to cancel orders. |
short_term_cancels | query | OrderBatch ⛁ | true | List of OrderBatch objects containing the orders to cancel. |
good_til_block | query | Height | true | The last block the short term order cancellations can be executed at. |
tx_options | query | TxOptions | false | Options for transaction to support authenticators. |
Response
| Status | Meaning | Schema | |
|---|---|---|---|
200 | OK | TxHash | |
400 | Bad Request | The request was malformed or invalid. | |
404 | Not Found | The subaccount was not found. |
Examples: Python | TypeScript | Rust