Merge pull request #308 from drift-labs/jack/fix-dlob-serialisation
fix: serialisation of batch l2 endpoint
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user