@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.
@@ -9381,11 +9381,15 @@ var Client = class _Client {
9381
9381
  }
9382
9382
  });
9383
9383
  }
9384
- async cancelOrder(orderId) {
9384
+ async cancelOrder(orderId, clientOrderId) {
9385
+ if (!orderId && !clientOrderId) {
9386
+ throw new Error("Either orderId or clientOrderId must be provided");
9387
+ }
9385
9388
  return await this.submitTransaction({
9386
9389
  exchange: {
9387
9390
  cancel_order: {
9388
- order_id: orderId.toString()
9391
+ order_id: orderId?.toString() ?? null,
9392
+ client_order_id: clientOrderId?.toString() ?? null
9389
9393
  }
9390
9394
  }
9391
9395
  });