avanza icon indicating copy to clipboard operation
avanza copied to clipboard

New Feature: Add price alert for a stock

Open asifma opened this issue 3 years ago • 1 comments

addPriceAlert

Add an price alert.

Parameters

  • instrumentId [String][52] The ID of the instrument to add.
  • options [Object][51] Alert options.
    • options.price [Number][54] The target price to receive an alert on.
    • options.validUntil [String][52] A date on the form YYYY-MM-DD. Cancels alert if this date is

asifma avatar Aug 29 '21 16:08 asifma

I just haven't had time to look at it yet.

But in order to remove alerts, you need to (per my understanding).

  1. Get alerts for an underlying stock.
  2. If alert(s) exist
  3. Delete alert by alertID that you received in step 2.

So yes, we should probably introduce getPriceAlert & removePriceAlert

asifma avatar Sep 01 '21 14:09 asifma