In general, you must receive fair-market value for whatever you spend it on.
Generally, you should get a fair value based on the market conditions.