From c77766790772d22af172a7a596a0bb5f2febf038 Mon Sep 17 00:00:00 2001 From: Nour Alharithi Date: Thu, 29 May 2025 14:13:30 -0700 Subject: [PATCH] forEach to for loop for indicative quotes --- src/dlob-subscriber/DLOBSubscriberIO.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dlob-subscriber/DLOBSubscriberIO.ts b/src/dlob-subscriber/DLOBSubscriberIO.ts index b978097..ad5ac28 100644 --- a/src/dlob-subscriber/DLOBSubscriberIO.ts +++ b/src/dlob-subscriber/DLOBSubscriberIO.ts @@ -153,7 +153,7 @@ export class DLOBSubscriberIO extends DLOBSubscriber { ); const nowMinus1000Ms = Date.now() - 1000; - mmQuotes.forEach((quote) => { + for (const quote of mmQuotes) { if (Number(quote['ts']) > nowMinus1000Ms) { const indicativeBaseOrder: Order = { status: OrderStatus.OPEN, @@ -233,7 +233,7 @@ export class DLOBSubscriberIO extends DLOBSubscriber { ); } } - }); + } } this.getL2AndSendMsg(marketArgs); this.getL3AndSendMsg(marketArgs);