The adaptive nature of liquidity taking in limit order books