Under the background of the current development of energy Internet, the scale and utilization efficiency of distributed power resource allocation are gradually improved. In order to solve the problem that distributed energy participates in market trading and the guarantee of resource allocation scale is not high in the current power spot market. Build strong flexibility, overall performance of the new power system, and put forward the optimized spot market trading mechanism, the use of distributed energy and thermal power unit equally participate in electric power market bidding, start distributed energy generation alternative mechanism, to abandon electricity distributed clean energy instead of offer higher thermal power unit. In order to verify the effectiveness of the optimization mechanism, through the method of node electricity price clearing to analyze the mechanism of the electricity market price design and settlement mechanism of thermal power unit of energy compensation, and through the algorithm instance verify the effectiveness of the optimization mechanism, promote the power market under the background of new power system can get better development.