chore: update to only look at majors

This commit is contained in:
Jack Waller
2025-10-16 11:31:50 +11:00
parent 7592af3202
commit 73278e02ea

View File

@@ -311,8 +311,9 @@ export function publishGroupings(
bids: aggregatedBids, bids: aggregatedBids,
asks: aggregatedAsks, 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(`Error aggregating dlob levels: group=${group}, bids=${fullAggregatedBids.length}, asks=${fullAggregatedAsks.length}`)
logger.error(`Response: ${JSON.stringify(l2Formatted_grouped20)}`) logger.error(`Response: ${JSON.stringify(l2Formatted_grouped20)}`)
} }