Skip to content

Commit

Permalink
fix: positions stream should still filter on party when it has no der…
Browse files Browse the repository at this point in the history
…ived parties
  • Loading branch information
wwestgarth committed May 21, 2024
1 parent 9f9059c commit bfb8813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datanode/api/trading_data_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit bfb8813

Please sign in to comment.