Mine too is quite similar in behaviour, always in his favourite spot, doesn't swim like it used to earlier, but sits all day long and will eat only when he/she feels like it or if I put crab meat.My male (I think) used to be very extroverted. I paired him with what I think was a female and the were doing great together. Then, a few months ago, she suddenly died. She had no signs of trauma or disease. She was the dominant of the two fish and ate really well until her sudden demise. Since then, he tends to sit in the back and I hardly ever see him. He used to beg for food as soon as I entered the room, but not now. He still eats because the feeders disappear, and if I catch him out he’ll eat mealworms and earthworms that i toss in. I don’t really know what his problem is unless he is depressed at the loss of the other one. Seems unlikely though..
Although in my case it has been by itself since day one.