This article is investigated the economic-legal basis of foreign relations of entities. Some general trends of the development of machine building industry in Ukraine were given. The production volumes and export sales of one of the machine building enterprises of Poltava were estimated by using factor analysis. Offers to improve the quality of contracts for improving the system of contract management were proposed. The results can be used for improving the quality of management, ensure stable operation of the company, sale products in specified amounts for export, and also to increase the predictability of income and expenditure for the next period. Taking into account all the recommendation, it will ensure a stable financial situation for the machine building plants in Ukraine. Keywords: contract, improvement, economic-legal basis, foreign economic relations.