From bfb881392dbd87b0423836412e7947492632a7f1 Mon Sep 17 00:00:00 2001 From: wwestgarth Date: Tue, 21 May 2024 08:59:56 +0100 Subject: [PATCH] fix: positions stream should still filter on party when it has no derived parties --- datanode/api/trading_data_v2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datanode/api/trading_data_v2.go b/datanode/api/trading_data_v2.go index 618f9fa1105..c50117d5282 100644 --- a/datanode/api/trading_data_v2.go +++ b/datanode/api/trading_data_v2.go @@ -1604,7 +1604,7 @@ func (t *TradingDataServiceV2) ObservePositions(req *v2.ObservePositionsRequest, } // add the party to the derived parties - if len(derivedParties) > 0 { + if req.PartyId != nil && len(*req.PartyId) > 0 { derivedParties = append(derivedParties, *req.PartyId) }