All functions working as defined.

This fixes currencies other than USD and average price.