Skip to content

Add a price alert modal allowing users to set a notification when a key crosses a target price #849

Description

@Chucks1093

Summary

Users who want to buy or sell at a specific price have no way to set a target alert. A price alert modal on the key detail page should let users set an above or below threshold price and receive an in-app notification when the price crosses it.

Scope

  • Add a Set Alert button on the key detail page alongside the Buy and Sell buttons
  • Open a modal with a price input, a direction toggle (Above / Below), and a Save button
  • Store alerts in the backend via POST /alerts with keyId, targetPrice, and direction
  • Trigger an in-app notification when the polled price crosses the target (checked every 60 seconds)
  • Allow users to view and delete their active alerts from a My Alerts section on the profile page

Acceptance Criteria

  • Alert saved with correct keyId, targetPrice, and direction
  • In-app notification triggered when price crosses the target
  • My Alerts section lists all active alerts with a Delete button
  • Deleting an alert removes it from the backend and the list
  • Target price input validates it is a positive number before enabling Save

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

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions