Skip to content

Add an in-app price alert notification that fires when a watched key crosses the user's target price #883

Description

@Chucks1093

Summary

Price alerts are saved but never surface as in-app notifications. The notification polling loop should check active alerts against the latest prices and push an in-app notification to the drawer when a price crosses the user's threshold.

Scope

  • On each 60-second notification poll, fetch the current price for each key the user has an active alert on
  • Compare the fetched price against the alert's targetPrice and direction
  • If the threshold is crossed add a price_alert notification to the in-app notification list
  • Mark the alert as triggered in the backend via PATCH /alerts/:alertId/triggered and remove it from active monitoring
  • Show the notification in the drawer with: key name, direction (above/below), target price, and current price

Acceptance Criteria

  • Notification added to drawer when price crosses the target
  • Alert marked as triggered on the backend after firing
  • Alert removed from active monitoring after triggering
  • Notification shows correct key name, direction, target, and current price
  • No duplicate notifications for the same alert

ETA: 12 hours


Coordinate on Telegram

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions