add writing trades to csv