Add logging output when entering market

Not sure the calculations are correct.