@bulletxyz/bullet-sdk 0.25.0 → 0.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9367,11 +9367,15 @@ var Client = class _Client {
9367
9367
  }
9368
9368
  });
9369
9369
  }
9370
- async cancelOrder(orderId) {
9370
+ async cancelOrder(orderId, clientOrderId) {
9371
+ if (!orderId && !clientOrderId) {
9372
+ throw new Error("Either orderId or clientOrderId must be provided");
9373
+ }
9371
9374
  return await this.submitTransaction({
9372
9375
  exchange: {
9373
9376
  cancel_order: {
9374
- order_id: orderId.toString()
9377
+ order_id: orderId?.toString() ?? null,
9378
+ client_order_id: clientOrderId?.toString() ?? null
9375
9379
  }
9376
9380
  }
9377
9381
  });