Mathematical Models of Trading