The “outboundAccountPosition” event that comes directly after an “executionReport” will have, always, his Timestamp the same as the “executionReport” event ?
If not, there is a way to tell that an “outboundAccountPosition” is directly related to an “executionReport” ?
I use User Data streams to keep my users balance synced and, If a user sells something through my platform I do some “other calculations” after that sell is completed (filled, partially filled or just closed).
That “other calculations” that I do needs to especially happen AFTER all “outboundAccountPosition” events that are related to that particular sell order are received.
My problem is that I can’t know, before I create the sell order, how many “outboundAccountPosition” events will be generated from that order but somehow I need to know when the last “outboundAccountPosition” is sent after I receive the last “executionReport” (which I know it’s the last based on his status, either Filled or Closed).
In a perfect world it’s easy, after the last “executionReport” I just grab the next “outboundAccountPosition” but I’m afraid that, in times when Binance is very loaded, this 2 events will not be sent in this “perfect” way (exec -> outbound -> exec -> outbound etc).
Any help it’s much appreciated, thanks :d