what is trading api