I can't help you yet but I plan to do something similar over the next week(s) and will share my experiences. Currently I have a very cheap fixed energy contract but I want to get insight into dynamic pricing contracts for the future, starting with electricity.
I plan to
1) take the 24hr future price data from the EU transparancy site via their API, see guide here :
https://transparency.entsoe.eu/content/ ... Guide.html
2) load that data into historic variables in Domoticz (or alternatively custom devices), since Domoticz does not have any other options to load future prices
3) create one device that shows the actual current price, update once per hour from the historic variables onto the device using a dzvents script.
4) calculate my energy costs with that price and compare it with my current contract (might need additional variables or devices for energy supplier surcharges, tax etc.)
For step2 I will look into the domoticz features available. I assume there is something available (openURL ? JSON?), if not I will write either a python program or use shell scripts to transform and load data.
Once the data is in, addditional scripts can be made for optimisation of usage and delivery.
I will keep you posted.
Where do you get your data? Energy supplier?