average price and swap calculated from tempo-db