Source code for foreign trade