Share prices closed lower in Shanghai and Taipei , but ended higher in Bangkok .