Charge and discharge battery depending on prices

I am trying to make a node that collects the electric price 00:01 every day from Nordpool or Tiber api for SE3 and use currency SEK that calculates the difference between the lowest and the highest value between 00:00-11:00 and based on the difference choose 3 difference scenarios.
If the price difference is lover than 0.3 SEK I want to do xxx
If the price difference is lover than 0.6 SEK but higher than 0.3 SEK want to do xxx
If the price difference is higher than 0.6 SEK I want to do XXX

But I am really stuck here since I am new to this.
Any help here or someone seen something similar?

What I want to do is control my house battery to but and sell when it is worth doing so, the battery is Huawei Luna 2000.
I will then do the same between 11:00-23:59 but I guess it is more copy paste to get that to work if I get the first node to work.
Br/Lars

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.