Market power in input purchase and trade