lambdaclass/finance_playground

Alert mechanism

Closed this issue · 0 comments

Alerts will work in the following way:

  • If there is no alert triggered and the criteria for one is met we create and save it (timestamp, type, amount, etc)
  • If there is an ongoing alert we compare against the value in it to determine if we should send a new alert or do nothing
  • When comparing against an alert if the current value wouldn't trigger the original alert we notify it as "resolved" and deactivate it