pmm dlob server

This commit is contained in:
wphan
2025-01-30 14:43:12 -08:00
parent a5d8d81ec6
commit 3c7a934214
6 changed files with 109 additions and 78 deletions

View File

@@ -263,11 +263,15 @@ export class DLOBSubscriberIO extends DLOBSubscriber {
});
this.redisClient.publish(
`${clientPrefix}orderbook_${marketType}_${marketArgs.marketIndex}`,
`${clientPrefix}orderbook_${marketType}_${marketArgs.marketIndex}${
this.protectedMakerView ? '_pmm' : ''
}`,
l2Formatted
);
this.redisClient.set(
`last_update_orderbook_${marketType}_${marketArgs.marketIndex}`,
`last_update_orderbook_${marketType}_${marketArgs.marketIndex}${
this.protectedMakerView ? '_pmm' : ''
}`,
l2Formatted_depth100
);
const oraclePriceData =
@@ -350,7 +354,9 @@ export class DLOBSubscriberIO extends DLOBSubscriber {
);
this.redisClient.set(
`last_update_orderbook_l3_${marketType}_${marketArgs.marketIndex}`,
`last_update_orderbook_l3_${marketType}_${marketArgs.marketIndex}${
this.protectedMakerView ? '_pmm' : ''
}`,
l3
);
}