Added basic trade API functionality.