The corporate authorities of each municipality may establish and regulate markets and markethouses.