added query parameter from_time to_time