The use of renewable energy sources is increasing, but their volatility makes it difficult to maintain a balance between energy generation and consumption. To address this issue, we propose a peer-to-peer microgrid energy market where consumers and prosumers can trade self-produced energy and keep the profits.