working on functions to write trades, xrp balances, and gateways to csv