Price dip shaving?

dess pulls next day power prices, can it be setup to disable inverting (pulling from battery) below a certain price? ie: 5c/kwh

when power is really cheap i think there is no point in using batteries but keep using grid

or is this something I have to write myself and send api commands? I assume I can remotely using api enable and disable multiplus ii inverting and or charging?