filter indicative + random prettify (#443)

* filter indicative + random prettify

* bug fix

* update to filter orders that arent as good as resting orders
This commit is contained in:
moosecat
2025-07-10 10:27:12 -07:00
committed by GitHub
parent e7aedb839c
commit 4157cd8e5b
3 changed files with 52 additions and 17 deletions

View File

@@ -96,7 +96,10 @@ const getRedisChannelFromMessage = (message: any): string => {
case 'orderbook':
return `orderbook_${marketType}_${marketIndex}`;
case 'orderbook_indicative': {
if (message.grouping && GROUPING_OPTIONS.includes(parseInt(message.grouping))) {
if (
message.grouping &&
GROUPING_OPTIONS.includes(parseInt(message.grouping))
) {
return `orderbook_${marketType}_${marketIndex}_grouped_${message.grouping}_indicative`;
}
return `orderbook_${marketType}_${marketIndex}_indicative`;