diff --git a/src/utils/utils.ts b/src/utils/utils.ts index d8a1d56..610e69a 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -311,8 +311,9 @@ export function publishGroupings( bids: aggregatedBids, asks: aggregatedAsks, }); + - if(aggregatedBids.length == 20 || aggregatedAsks.length == 20) { + if(['SOL-PERP', 'BTC-PERP', 'ETH-PERP'].includes(l2Formatted_grouped20.marketName) && aggregatedBids.length !== 20 || aggregatedAsks.length !== 20) { logger.error(`Error aggregating dlob levels: group=${group}, bids=${fullAggregatedBids.length}, asks=${fullAggregatedAsks.length}`) logger.error(`Response: ${JSON.stringify(l2Formatted_grouped20)}`) }