Market: fix market case handling in ticker command.

Thanks to TheLordOfTime for encouragement and some code on this and previous commits.