add realtime train API calls