From 06158b81d4e626516b65fcde7cfe8ba98260fda7 Mon Sep 17 00:00:00 2001 From: Jack Waller Date: Mon, 9 Dec 2024 13:36:35 +1000 Subject: [PATCH] fix: serialisation of batch l2 endpoint --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index f799761..a092bb1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -639,7 +639,7 @@ const main = async (): Promise => { redisL2['bids'] = redisL2['bids']?.slice(0, depth); redisL2['asks'] = redisL2['asks']?.slice(0, depth); if (redisL2) { - l2Formatted = JSON.stringify(redisL2); + l2Formatted = redisL2; } if (l2Formatted) {