Calculating tax on barter (private party)

I traded some items with another person (no cash involved).  Are the values for tax purposes calculated based on what I originally paid, original retail value, current retail value, or current market value?

 

Do monies I originally paid for the items I traded (including taxes) change anything I enter like values or gain?

 

Would this go under investment income?