Energy Trading via double auction and smart contracts

Hey Guys,

I am trying to build a local energy market (LEM) for Cardano similar to some projects on Ethereum (Trading solar energy within the neighborhood: field implementation of a blockchain-based electricity market | Energy Informatics | Full Text). Therefore I need to code a double auction mechanism that simply collect the bids from sellers and buyers and calculates the market clearing price. Is there someone who has experience in this field or does know if this is possible with smart contracts on Marlowe or Plutus?

If you do so please contact me :slight_smile:

Thanks, JoBerl