We analyze the principle of comparative advantage when agents in the world market are aware of the influence their individual supply exerts on the equilibrium exchange rate of goods, We show that specialization following comparative disadvantage can be an oligopoly equilibrium in a Ricardian economy. Moreover, for a wide class of economies, it is the only one. Nonetheless, when the number of agents in each country increases without limit, the equilibrium in which specialization follows comparative advantage again obtains.
Cordella, T., & Jaskold Gabszewicz, J. (1997). Comparative advantage under oligopoly. Journal of International Economics, 43(3-4), 333-346. https://doi.org/10.1016/S0022-1996(96)01479-1 (Original work published 1997)