The thermodynamic properties of the Bañados-Teitelboim-Zanelli (BTZ) black hole endowed with Korteweg-de Vries (KdV)-type boundary conditions are considered. This familiy of boundary conditions for General Relativity on AdS 3 is labeled by a nonnegative integer n, and gives rise to a dual theory which possesses anisotropic Lifshitz scaling invariance with dynamical exponent z = 2n + 1. We show that from the scale invariance of the action for stationary and circularly symmetric spacetimes, an anisotropic version of the Smarr relation arises, and we prove that it is totally consistent with the previously reported anisotropic Cardy formula. The set of KdV-type boundary conditions defines an unconventional thermodynamic ensemble, which leads to a generalized description of the thermal stability of the system. Finally, we show that at the self-dual temperature T s = 1 2π ( 1 z ) z z+1 , there is a Hawking-Page phase transition between the BTZ black hole and thermal AdS 3 spacetime. arXiv:1907.13026v2 [hep-th]