CONTEXT:
When we create a TP/SL order with the full size position it will be a POSITIONAL_TP_SL but for custom qty TP/SL the type is TP_SL.
ISSUE:
As the tp sl with a custom qty is a TP_SL type, actually usePositionStream won't show the current algo order as it is filtered inside the findPositionTPSLFromOrders function ( order.algo_type === AlgoOrderRootType.POSITIONAL_TP_SL ).
FIX:
Adding a condition to the actual findPositionTPSLFromOrders to check if (order.algo_type === AlgoOrderRootType.POSITIONAL_TP_SL) OR (order.algo_type === AlgoOrderRootType.TP_SL )
