Market Mechanisms and Channels of Capital Flows