code for trade table module