Please be aware that Shanghai and Bangkok has multiple airports and that these results are for all airports serving the city.
The best day to arrive at Shanghai is Saturday and it would be best to avoid Tuesday, as prices are on average 42.03% higher than on Saturday. (Average prices, based on 482 datapoints.)
The best time to fly is at around 10. (Average prices, based on 221 datapoints.)