From 69e6159b46f91a6c968981cdbc4f9ca99c8fbed4 Mon Sep 17 00:00:00 2001 From: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 29 May 2025 22:19:17 +0000 Subject: [PATCH 1/2] Bumping drift-common to bac317766c42bfeab31c093bd3f5cbbbc7e0da8c --- drift-common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drift-common b/drift-common index fc0fb4d..bac3177 160000 --- a/drift-common +++ b/drift-common @@ -1 +1 @@ -Subproject commit fc0fb4d2bd37ede822008c6f57a6e7dbb2b9cb39 +Subproject commit bac317766c42bfeab31c093bd3f5cbbbc7e0da8c From 2c78aef965e0b6f0644d07e5a8abb94fbfb8842b Mon Sep 17 00:00:00 2001 From: Nour Alharithi Date: Thu, 29 May 2025 17:39:30 -0700 Subject: [PATCH 2/2] change indicative quotes id --- src/dlob-subscriber/DLOBSubscriberIO.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/dlob-subscriber/DLOBSubscriberIO.ts b/src/dlob-subscriber/DLOBSubscriberIO.ts index ad5ac28..5acbc7a 100644 --- a/src/dlob-subscriber/DLOBSubscriberIO.ts +++ b/src/dlob-subscriber/DLOBSubscriberIO.ts @@ -134,6 +134,7 @@ export class DLOBSubscriberIO extends DLOBSubscriber { override async updateDLOB(): Promise { await super.updateDLOB(); + let indicativeOrderId = 0; for (const marketArgs of this.marketArgs) { try { if (this.indicativeQuotesRedisClient) { @@ -185,13 +186,14 @@ export class DLOBSubscriberIO extends DLOBSubscriber { postedSlotTail: 0, }; - if (quote['bid_size'] && quote['bid_price']) { + if (quote['bid_size'] && quote['bid_price'] != null) { // Sanity check bid price and size const indicativeBid: Order = Object.assign( {}, indicativeBaseOrder, { + orderId: indicativeOrderId, oraclePriceOffset: quote['is_oracle_offset'] ? quote['bid_price'] : 0, @@ -208,13 +210,15 @@ export class DLOBSubscriberIO extends DLOBSubscriber { this.slotSource.getSlot(), false ); + indicativeOrderId += 1; } - if (quote['ask_size'] && quote['ask_price']) { + if (quote['ask_size'] && quote['ask_price'] != null) { const indicativeAsk: Order = Object.assign( {}, indicativeBaseOrder, { + orderId: indicativeOrderId, oraclePriceOffset: quote['is_oracle_offset'] ? quote['ask_price'] : 0, @@ -231,6 +235,7 @@ export class DLOBSubscriberIO extends DLOBSubscriber { this.slotSource.getSlot(), false ); + indicativeOrderId += 1; } } }