Hi @bohdan.vahalik,
The RDP historical prices summary endpoint does not provide any means of specifying the average or any other function, to roll up the bar data. You could however request a granular time series (events) data and do the averaging in your application.