When placing an item for sale it will search for current prices of the same item in the market and will put the lowest price there is there for u for sale.
Or
If you want to do it more advanced you can save the average price for every item and (if able show a graph even) put that price on the item.