Store history as JSON blob rather than individual rows
Add credit field to transactions; accept ?typeID on market/transactions