when to use ltp API and websocket in terms of efficiency.