fix: serialisation of batch l2 endpoint

This commit is contained in:
Jack Waller
2024-12-09 13:36:35 +10:00
parent 3b9f24cdf9
commit 06158b81d4

View File

@@ -639,7 +639,7 @@ const main = async (): Promise<void> => {
redisL2['bids'] = redisL2['bids']?.slice(0, depth); redisL2['bids'] = redisL2['bids']?.slice(0, depth);
redisL2['asks'] = redisL2['asks']?.slice(0, depth); redisL2['asks'] = redisL2['asks']?.slice(0, depth);
if (redisL2) { if (redisL2) {
l2Formatted = JSON.stringify(redisL2); l2Formatted = redisL2;
} }
if (l2Formatted) { if (l2Formatted) {