Conflicting Order signals in Main vs Sub Account

I have a main account and a sub account running automated trading bots via webhook. I noticed that when both accounts are trading the same symbol, it closes out the trades in the sub account because it sees that there’s a standing order in the main account. This can create a huge problem.

For example: There was an open Long trade in the Main account with a standing Limit order for take profit. Then the Sub account opened a Long trade afterwards, but closed out immediately (within 1 second of opening) because it saw the Limit order for take profit in the Main account.

Does anyone else have this issue? Is there any way to fix this?

i will start automated testing in a few weeks. when I do I will revisit and answer my experience

Yeah this is really weird…

The orderVersion event doesnt even come with an accountId to filter which account the message belongs to.

This means you cant see which account had a market close order activated.

extremely weird why they dont send accountId with every message…

sounds like the sub account is recognizing the main account’s orders maybe check api settings or webhook logic to keep them separate