Buying items at trade post

Have yet to figure out the trade post. Selling is obvious but selling goods not so much. How do you sell goods? Second why do I need gold to sell items?