diff --git a/package.json b/package.json index 4f89879..0b30a00 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.16.7-rc.0", + "version": "0.16.8-rc.0", "description": "Orion Protocol SDK", "main": "./lib/esm/index.js", "module": "./lib/esm/index.js", diff --git a/src/services/OrionAggregator/ws/schemas/addressUpdateSchema.ts b/src/services/OrionAggregator/ws/schemas/addressUpdateSchema.ts index 1850585..631527f 100644 --- a/src/services/OrionAggregator/ws/schemas/addressUpdateSchema.ts +++ b/src/services/OrionAggregator/ws/schemas/addressUpdateSchema.ts @@ -33,6 +33,7 @@ export const orderUpdateSchema = z.object({ A: z.number(), // settled amount S: z.enum(orderStatuses), // status l: z.boolean().optional(), // is liquidation order + cl: z.boolean().optional(), // is closing t: z.number(), // update time c: subOrderSchema.array(), }) @@ -45,6 +46,7 @@ export const orderUpdateSchema = z.object({ settledAmount: o.A, status: o.S, liquidated: o.l, + closing: o.cl, subOrders: o.c.map((so) => ({ pair: so.P, exchange: so.e, @@ -69,6 +71,7 @@ export const fullOrderSchema = z.object({ F: z.string(), // fee asset f: z.number(), // fee l: z.boolean().optional(), // is liquidation order + cl: z.boolean().optional(), // is closing o: z.boolean(), // internal only S: z.enum(orderStatuses), // status T: z.number(), // creation time / unix timestamp @@ -84,6 +87,7 @@ export const fullOrderSchema = z.object({ feeAsset: o.F, fee: o.f, liquidated: o.l, + closing: o.cl, status: o.S, date: o.T, clientOrdId: o.O,