Minecraft wiki entry for Wandering_Trader, associated text: Wandering traders do not increase or decrease the prices of its items being sold if attacked by the player, or if the player has the Hero of the Village effect.