I remember reading about the provider Griddy that did exactly that - gave customers the wholesale rate for power. Then the 2021 winter storms hit with the price peaking at the limit of $9 per kWh ...
Yeah, that's the downside. Thus the need for home automation (or else, the ability of the grid company to cut you off if your bill exceeds some value, sorry about the burst pipes.)