How to retrieve the AVG price?

Hi,

let say I’ve place a BUY LIMIT order at 23391.96, and it makes 3 trades orders respectively as:

  • “price”: “23391.33000000”, “qty”: “0.00200000”
  • “price”: “23391.55000000”, “qty”: “0.00046000”
  • “price”: “23391.71000000”, “qty”: “0.01785000”

If I see the Binance dashboard, on that order it will show total quantity at 0.02031 (which is the sum of the three qty), and AVG price of 23391.67. Which is not the sum of the three price / 3.

So, is there a field where I can take that AVG value? Or how do I calculate it?

Thanks

https://binance-docs.github.io/apidocs/spot/en/#payload-order-update → “Note: Average price can be found by doing Z divided by z.”