TWAP is calculated by dividing the sum of all trade prices by the number of total trades.
The TWAP aims to evenly distribute
an order over user specified duration dynamically balancing adverse selection and market impact in real time. Typically utilised for liquid tickers, generating
many small and frequent orders.