Better market transactions total

Should now work in all currencies and for all of an account's
transactions.