From 11470cbebaef603ac0493de5176cf37c880d0a6f Mon Sep 17 00:00:00 2001 From: Mikhail Gladchenko Date: Fri, 24 Feb 2023 13:56:28 +0000 Subject: [PATCH] cfdBalance schemas small fix --- src/services/OrionAggregator/ws/schemas/cfdBalancesSchema.ts | 2 +- src/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/OrionAggregator/ws/schemas/cfdBalancesSchema.ts b/src/services/OrionAggregator/ws/schemas/cfdBalancesSchema.ts index 5ca9f22..e7abacd 100644 --- a/src/services/OrionAggregator/ws/schemas/cfdBalancesSchema.ts +++ b/src/services/OrionAggregator/ws/schemas/cfdBalancesSchema.ts @@ -22,7 +22,7 @@ const cfdBalanceSchema = z lfrd: z.string(), sfrs: z.string(), sfrd: z.string(), - sop: z.string().nullable(), + sop: z.string().optional(), }) .transform((obj) => ({ instrument: obj.i, diff --git a/src/types.ts b/src/types.ts index 1cd6279..95f1bb9 100644 --- a/src/types.ts +++ b/src/types.ts @@ -54,7 +54,7 @@ export type CFDBalance = { longFundingRatePerDay: string shortFundingRatePerSecond: string shortFundingRatePerDay: string - stopOutPrice: string | null + stopOutPrice?: string } export type Order = {