Another way to model that is for each shopkeeper to have limited amount of cash-on-hand and inventory, so after a certain point they can't offer you anything for yet-another Magic Sword except junk-items or store-credit for said junk items.
Skyrim kinda-sorta did this, but the campaign didn't have any hard limits of "world ends in X days" to stop people from just waiting for an economic reset, and there were some other ways to glitch things.
Yeah, that's what Fallout did, so at some point I had all the money in the world. And even exchanging them for the rest of their inventory becomes silly. Does the shopkeeper really prefer a stock of looted crap over his more useful potions?
I think it would be interesting to see some actual supply and demand: if you're flooding the market with crap you looted from goblins, at some point they become worthless. Even +1 magic swords can become worthless if you sell enough of them.
I'd really like a game where eventually the shopkeeper tells you: "Look, you've already sold me 10 of these +1 magic swords. We've got only 8 capable warriors of fighting age in this village, and none of them have the kind of money to buy these swords. I'm afraid I can't justify buying even more from you."