How can I currently associate a bunch of trades to their origin order in a correct and complete way? Could someone provide an example of how I can do this with the actual API?
I start loading trades from the order’s open timestamp, skip irrelevant trades and repeat trade requests with advanced fromTime until loaded trades’ volume equals to the order’s filled volume. That’s super ugly but I haven’t found any better way.