@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.
@@ -118,7 +118,7 @@ export declare class Client {
118
118
  placeTpslsForMarket(market: Market, tpslOrders: PlacePositionTpslArgs): Promise<TransactionResult<Transaction<RuntimeCall>>>;
119
119
  replaceOrder(options: ReplaceOrderOptions): Promise<TransactionResult<Transaction<RuntimeCall>>>;
120
120
  cancelTpsl(tpslOrderId: bigint): Promise<TransactionResult<Transaction<RuntimeCall>>>;
121
- cancelOrder(orderId: bigint): Promise<TransactionResult<Transaction<RuntimeCall>>>;
121
+ cancelOrder(orderId?: bigint, clientOrderId?: bigint): Promise<TransactionResult<Transaction<RuntimeCall>>>;
122
122
  cancelAllOrdersForMarket(market: Market): Promise<TransactionResult<Transaction<RuntimeCall>>>;
123
123
  updateOraclePrices(pricesToUpdate: OraclePriceUpdateArgs[], publishTimestamp?: number): Promise<TransactionResult<Transaction<RuntimeCall>>>;
124
124
  updateMarkPrices(pricesToUpdate: MarkPriceUpdateArgs[], publishTimestamp?: number): Promise<TransactionResult<Transaction<RuntimeCall>>>;
@@ -87,7 +87,8 @@ type ExchangeCallMessage = {
87
87
  tpsl_order_id: string;
88
88
  };
89
89
  cancel_order: {
90
- order_id: string;
90
+ order_id: string | null;
91
+ client_order_id: string | null;
91
92
  };
92
93
  cancel_all_orders_for_market: {
93
94
  market_id: MarketId;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/zetamarkets/bullet-sdk.git"
6
6
  },
7
- "version": "0.25.0",
7
+ "version": "0.25.1",
8
8
  "description": "Bullet SDK",
9
9
  "author": "@bulletxyz",
10
10
  "license": "Apache-2.0",