The Margins of Trade