Okay, probably i found the solution - i can save prices based on 'classid_instancid' since they doesnt change after trade. But there is one thing - if i buy two items. One for 1$ and another one for 10$, there can be situation when 1$ item can got price 10$, but it doesnt matter i think, coz items (skins) the same)