fix trades querying bug when out of quota