Sea trading goes back to before biblical times.
The first trading rules I am aware of are the 'Laws of Oleron'.