chore: update to only look at majors
This commit is contained in:
@@ -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)}`)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user