Analysis of Trading Functions in Automated Market Making