A valve has a valve body which includes a sub. A bore extends through the valve body and the sub. The valve also comprises a port and a sleeve. The sleeve is mounted for hydraulic displacement. There is a passage through the sleeve which is in fluid communication with the bore. The sleeve is moveable in response to fluid pressure from the bore through the passage. The sleeve is moveable from a closed position, in which it restricts flow out of the bore through the port, to an open position, in which it allows flow out of the bore through the port.