trading UI and API implementation