Made trade_record a dict.

Don't know if this will work though.