Merge pull request #308 from drift-labs/jack/fix-dlob-serialisation

fix: serialisation of batch l2 endpoint
This commit is contained in:
jack
2024-12-09 13:53:37 +10:00
committed by GitHub

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) {