I have the following statement if (obj.profit.percent < close) { msgSell.payload.push(obj.id)} sending array to function output "msgSell" which currently looks like this:
I need to transform that into individual msg objects that must look like this:
which are received with let trade_id = msg.payload.id
Stuck on this for several days. Even when I manage to transform it to something that looks right, I can't catch the variables. Thanks!