Market value is only substituted for sales proceeds where
1. You receive no capital proceeds; or
2. You did not deal with each other at arms length (common between related parties)
If however you dealt with each other at arms length and you received money from the sale then the proceeds are...