They don't seem to mind the water quality unless the water is really bad.
At any rate the tank needs to be cleaned every few months. It's important to clean the tank before adding new fish, because that way they don't introduce any diseases from the tank into their system.
Keep the aquarium with the fish out of direct sunlight, and keep it warm. This will prevent the fish from getting sunburned and/or dehydrated.