End-users are more active because of demand response programs and the penetration of distributed energy resources in the bottom-layer of the power systems. This paper presents a virtual organization of agents of the power distribution grid for local energy trade. An iterative algorithm is proposed; it enables interaction between end-users and the Distribution Company (DisCo). Then, the performance of the proposed algorithm is evaluated in a 33-bus distribution network; its effectiveness is measured in terms of its impact on the energy trading scenarios and, thus, of its contribution to the energy management problem. According to the simulation results, although aggregators do not play the role of decision makers in the proposed model, our iterative algorithm is profitable for them.